]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.1.0~rc1
[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.0-rc1.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.0-rc1'
732 PACKAGE_STRING='linux nfs-utils 1.1.0-rc1'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 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 CONFIG_RQUOTAD_TRUE
860 CONFIG_RQUOTAD_FALSE
861 RPCGEN_PATH
862 CONFIG_RPCGEN_TRUE
863 CONFIG_RPCGEN_FALSE
864 CONFIG_MOUNT_TRUE
865 CONFIG_MOUNT_FALSE
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 ac_ct_CC
871 EXEEXT
872 OBJEXT
873 DEPDIR
874 am__include
875 am__quote
876 AMDEP_TRUE
877 AMDEP_FALSE
878 AMDEPBACKSLASH
879 CCDEPMODE
880 am__fastdepCC_TRUE
881 am__fastdepCC_FALSE
882 LIBWRAP
883 HAVE_LIBWRAP
884 HAVE_TCP_WRAPPER
885 CXX
886 CXXFLAGS
887 ac_ct_CXX
888 CXXDEPMODE
889 am__fastdepCXX_TRUE
890 am__fastdepCXX_FALSE
891 CPP
892 LN_S
893 GREP
894 EGREP
895 ECHO
896 AR
897 RANLIB
898 CXXCPP
899 F77
900 FFLAGS
901 ac_ct_F77
902 LIBTOOL
903 CC_FOR_BUILD
904 LD
905 LIBNSL
906 PKG_CONFIG
907 RPCSECGSS_CFLAGS
908 RPCSECGSS_LIBS
909 GSSAPI_CFLAGS
910 GSSAPI_LIBS
911 LIBSOCKET
912 LIBCRYPT
913 LIBBSD
914 LIBBLKID
915 KRBDIR
916 KRBLIBS
917 KRBCFLAGS
918 KRBLDFLAGS
919 K5VERS
920 ALLOCA
921 LIBOBJS
922 CFLAGS_FOR_BUILD
923 CXXFLAGS_FOR_BUILD
924 CPPFLAGS_FOR_BUILD
925 LDFLAGS_FOR_BUILD
926 AM_CPPFLAGS
927 AM_CFLAGS
928 ACLOCAL_AMFLAGS
929 LTLIBOBJS'
930 ac_subst_files=''
931       ac_precious_vars='build_alias
932 host_alias
933 target_alias
934 CC
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
939 CXX
940 CXXFLAGS
941 CCC
942 CPP
943 CXXCPP
944 F77
945 FFLAGS
946 PKG_CONFIG
947 RPCSECGSS_CFLAGS
948 RPCSECGSS_LIBS
949 GSSAPI_CFLAGS
950 GSSAPI_LIBS'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003   # If the previous option needs an argument, assign it.
1004   if test -n "$ac_prev"; then
1005     eval $ac_prev=\$ac_option
1006     ac_prev=
1007     continue
1008   fi
1009
1010   case $ac_option in
1011   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012   *)    ac_optarg=yes ;;
1013   esac
1014
1015   # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017   case $ac_dashdash$ac_option in
1018   --)
1019     ac_dashdash=yes ;;
1020
1021   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022     ac_prev=bindir ;;
1023   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024     bindir=$ac_optarg ;;
1025
1026   -build | --build | --buil | --bui | --bu)
1027     ac_prev=build_alias ;;
1028   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029     build_alias=$ac_optarg ;;
1030
1031   -cache-file | --cache-file | --cache-fil | --cache-fi \
1032   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033     ac_prev=cache_file ;;
1034   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036     cache_file=$ac_optarg ;;
1037
1038   --config-cache | -C)
1039     cache_file=config.cache ;;
1040
1041   -datadir | --datadir | --datadi | --datad)
1042     ac_prev=datadir ;;
1043   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044     datadir=$ac_optarg ;;
1045
1046   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047   | --dataroo | --dataro | --datar)
1048     ac_prev=datarootdir ;;
1049   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051     datarootdir=$ac_optarg ;;
1052
1053   -disable-* | --disable-*)
1054     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058    { (exit 1); exit 1; }; }
1059     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060     eval enable_$ac_feature=no ;;
1061
1062   -docdir | --docdir | --docdi | --doc | --do)
1063     ac_prev=docdir ;;
1064   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065     docdir=$ac_optarg ;;
1066
1067   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068     ac_prev=dvidir ;;
1069   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070     dvidir=$ac_optarg ;;
1071
1072   -enable-* | --enable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       { echo "$as_me: error: invalid package name: $ac_package" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276     eval with_$ac_package=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285     eval with_$ac_package=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307    { (exit 1); exit 1; }; }
1308     ;;
1309
1310   *=*)
1311     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315    { (exit 1); exit 1; }; }
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   { echo "$as_me: error: missing argument to $ac_option" >&2
1333    { (exit 1); exit 1; }; }
1334 fi
1335
1336 # Be sure to have absolute directory names.
1337 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                 datadir sysconfdir sharedstatedir localstatedir includedir \
1339                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                 libdir localedir mandir
1341 do
1342   eval ac_val=\$$ac_var
1343   case $ac_val in
1344     [\\/$]* | ?:[\\/]* )  continue;;
1345     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346   esac
1347   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348    { (exit 1); exit 1; }; }
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360   if test "x$build_alias" = x; then
1361     cross_compiling=maybe
1362     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363     If a cross compiler is detected then cross compile mode will be used." >&2
1364   elif test "x$build_alias" != "x$host_alias"; then
1365     cross_compiling=yes
1366   fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378   { echo "$as_me: error: Working directory cannot be determined" >&2
1379    { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381   { echo "$as_me: error: pwd does not report name of working directory" >&2
1382    { (exit 1); exit 1; }; }
1383
1384
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387   ac_srcdir_defaulted=yes
1388   # Try the directory containing this script, then the parent directory.
1389   ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391          X"$0" : 'X\(//\)[^/]' \| \
1392          X"$0" : 'X\(//\)$' \| \
1393          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 echo X"$0" |
1395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)[^/].*/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\).*/{
1408             s//\1/
1409             q
1410           }
1411           s/.*/./; q'`
1412   srcdir=$ac_confdir
1413   if test ! -r "$srcdir/$ac_unique_file"; then
1414     srcdir=..
1415   fi
1416 else
1417   ac_srcdir_defaulted=no
1418 fi
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427    { (exit 1); exit 1; }; }
1428         pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431   srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_env_${ac_var}_value=\$${ac_var}
1442   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450   # Omit some internal or obsolete options to make the list less imposing.
1451   # This message is too long to be a string in the A/UX 3.1 sh.
1452   cat <<_ACEOF
1453 \`configure' configures linux nfs-utils 1.1.0-rc1 to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463   -h, --help              display this help and exit
1464       --help=short        display options specific to this package
1465       --help=recursive    display the short help of all the included packages
1466   -V, --version           display version information and exit
1467   -q, --quiet, --silent   do not print \`checking...' messages
1468       --cache-file=FILE   cache test results in FILE [disabled]
1469   -C, --config-cache      alias for \`--cache-file=config.cache'
1470   -n, --no-create         do not create output files
1471       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474   --prefix=PREFIX         install architecture-independent files in PREFIX
1475                           [$ac_default_prefix]
1476   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                           [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487   --bindir=DIR           user executables [EPREFIX/bin]
1488   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1489   --libexecdir=DIR       program executables [EPREFIX/libexec]
1490   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1491   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1492   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1493   --libdir=DIR           object code libraries [EPREFIX/lib]
1494   --includedir=DIR       C header files [PREFIX/include]
1495   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1496   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1497   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1498   --infodir=DIR          info documentation [DATAROOTDIR/info]
1499   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1500   --mandir=DIR           man documentation [DATAROOTDIR/man]
1501   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1502   --htmldir=DIR          html documentation [DOCDIR]
1503   --dvidir=DIR           dvi documentation [DOCDIR]
1504   --pdfdir=DIR           pdf documentation [DOCDIR]
1505   --psdir=DIR            ps documentation [DOCDIR]
1506 _ACEOF
1507
1508   cat <<\_ACEOF
1509
1510 Program names:
1511   --program-prefix=PREFIX            prepend PREFIX to installed program names
1512   --program-suffix=SUFFIX            append SUFFIX to installed program names
1513   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522   case $ac_init_help in
1523      short | recursive ) echo "Configuration of linux nfs-utils 1.1.0-rc1:";;
1524    esac
1525   cat <<\_ACEOF
1526
1527 Optional Features:
1528   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530   --enable-maintainer-mode  enable make rules and dependencies not useful
1531                           (and sometimes confusing) to the casual installer
1532   --enable-nfsv3          enable support for NFSv3 [default=yes]
1533   --enable-nfsv4          enable support for NFSv4 [default=yes]
1534   --enable-gss            enable support for rpcsec_gss [default=yes]
1535   --enable-kprefix        install progs as rpc.knfsd etc
1536   --enable-secure-statd   Only lockd can use statd (security)
1537   --enable-rquotad        enable rquotad [default=yes]
1538   --without-uuid          Exclude uuid support and so avoid possibly buggy
1539                           libblkid
1540   --enable-mount          Create mount.nfs and don't use the util-linux
1541                           mount(8) functionality. [default=no]
1542   --disable-dependency-tracking  speeds up one-time build
1543   --enable-dependency-tracking   do not reject slow dependency extractors
1544   --disable-largefile     omit support for large files
1545   --enable-shared[=PKGS]  build shared libraries [default=yes]
1546   --enable-static[=PKGS]  build static libraries [default=yes]
1547   --enable-fast-install[=PKGS]
1548                           optimize for fast installation [default=yes]
1549   --disable-libtool-lock  avoid locking (might break parallel builds)
1550
1551 Optional Packages:
1552   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554   --with-release=XXX      set release to XXX [1]
1555   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1556   --with-statduser=rpcuser
1557                           statd to run under [rpcuser or nobody]
1558   --with-start-statd=scriptname
1559                           When an nfs filesystems is mounted with locking, run
1560                           this script
1561   --with-rpcgen=internal  use internal rpcgen instead of system one
1562   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1563                  (optionally in PATH)
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565   --with-pic              try to use only PIC/non-PIC objects [default=use
1566                           both]
1567   --with-tags[=TAGS]      include additional configurations [automatic]
1568   --with-krb5=DIR         use Kerberos v5 installation in DIR
1569
1570 Some influential environment variables:
1571   CC          C compiler command
1572   CFLAGS      C compiler flags
1573   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1574               nonstandard directory <lib dir>
1575   LIBS        libraries to pass to the linker, e.g. -l<library>
1576   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577               you have headers in a nonstandard directory <include dir>
1578   CXX         C++ compiler command
1579   CXXFLAGS    C++ compiler flags
1580   CPP         C preprocessor
1581   CXXCPP      C++ preprocessor
1582   F77         Fortran 77 compiler command
1583   FFLAGS      Fortran 77 compiler flags
1584   PKG_CONFIG  path to pkg-config utility
1585   RPCSECGSS_CFLAGS
1586               C compiler flags for RPCSECGSS, overriding pkg-config
1587   RPCSECGSS_LIBS
1588               linker flags for RPCSECGSS, overriding pkg-config
1589   GSSAPI_CFLAGS
1590               C compiler flags for GSSAPI, overriding pkg-config
1591   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <nfs@lists.sf.net>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602   # If there are subdirs, report their specific --help.
1603   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604     test -d "$ac_dir" || continue
1605     ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1611   # A ".." for each directory in $ac_dir_suffix.
1612   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1613   case $ac_top_builddir_sub in
1614   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616   esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624   .)  # We are building in place.
1625     ac_srcdir=.
1626     ac_top_srcdir=$ac_top_builddir_sub
1627     ac_abs_top_srcdir=$ac_pwd ;;
1628   [\\/]* | ?:[\\/]* )  # Absolute name.
1629     ac_srcdir=$srcdir$ac_dir_suffix;
1630     ac_top_srcdir=$srcdir
1631     ac_abs_top_srcdir=$srcdir ;;
1632   *) # Relative name.
1633     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634     ac_top_srcdir=$ac_top_build_prefix$srcdir
1635     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639     cd "$ac_dir" || { ac_status=$?; continue; }
1640     # Check for guested configure.
1641     if test -f "$ac_srcdir/configure.gnu"; then
1642       echo &&
1643       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644     elif test -f "$ac_srcdir/configure"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure" --help=recursive
1647     else
1648       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649     fi || ac_status=$?
1650     cd "$ac_pwd" || { ac_status=$?; break; }
1651   done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656   cat <<\_ACEOF
1657 linux nfs-utils configure 1.1.0-rc1
1658 generated by GNU Autoconf 2.61
1659
1660 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1661 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665   exit
1666 fi
1667 cat >config.log <<_ACEOF
1668 This file contains any messages produced by compilers while
1669 running configure, to aid debugging if configure makes a mistake.
1670
1671 It was created by linux nfs-utils $as_me 1.1.0-rc1, which was
1672 generated by GNU Autoconf 2.61.  Invocation command line was
1673
1674   $ $0 $@
1675
1676 _ACEOF
1677 exec 5>>config.log
1678 {
1679 cat <<_ASUNAME
1680 ## --------- ##
1681 ## Platform. ##
1682 ## --------- ##
1683
1684 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1685 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1686 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1687 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1688 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689
1690 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1691 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1692
1693 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1694 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1695 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1696 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1697 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1698 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1699 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1700
1701 _ASUNAME
1702
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   echo "PATH: $as_dir"
1709 done
1710 IFS=$as_save_IFS
1711
1712 } >&5
1713
1714 cat >&5 <<_ACEOF
1715
1716
1717 ## ----------- ##
1718 ## Core tests. ##
1719 ## ----------- ##
1720
1721 _ACEOF
1722
1723
1724 # Keep a trace of the command line.
1725 # Strip out --no-create and --no-recursion so they do not pile up.
1726 # Strip out --silent because we don't want to record it for future runs.
1727 # Also quote any args containing shell meta-characters.
1728 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_configure_args=
1730 ac_configure_args0=
1731 ac_configure_args1=
1732 ac_must_keep_next=false
1733 for ac_pass in 1 2
1734 do
1735   for ac_arg
1736   do
1737     case $ac_arg in
1738     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1739     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1740     | -silent | --silent | --silen | --sile | --sil)
1741       continue ;;
1742     *\'*)
1743       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744     esac
1745     case $ac_pass in
1746     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747     2)
1748       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1749       if test $ac_must_keep_next = true; then
1750         ac_must_keep_next=false # Got value, back to normal.
1751       else
1752         case $ac_arg in
1753           *=* | --config-cache | -C | -disable-* | --disable-* \
1754           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1755           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1756           | -with-* | --with-* | -without-* | --without-* | --x)
1757             case "$ac_configure_args0 " in
1758               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759             esac
1760             ;;
1761           -* ) ac_must_keep_next=true ;;
1762         esac
1763       fi
1764       ac_configure_args="$ac_configure_args '$ac_arg'"
1765       ;;
1766     esac
1767   done
1768 done
1769 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1770 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771
1772 # When interrupted or exit'd, cleanup temporary files, and complete
1773 # config.log.  We remove comments because anyway the quotes in there
1774 # would cause problems or look ugly.
1775 # WARNING: Use '\'' to represent an apostrophe within the trap.
1776 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1777 trap 'exit_status=$?
1778   # Save into config.log some information that might help in debugging.
1779   {
1780     echo
1781
1782     cat <<\_ASBOX
1783 ## ---------------- ##
1784 ## Cache variables. ##
1785 ## ---------------- ##
1786 _ASBOX
1787     echo
1788     # The following way of writing the cache mishandles newlines in values,
1789 (
1790   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1791     eval ac_val=\$$ac_var
1792     case $ac_val in #(
1793     *${as_nl}*)
1794       case $ac_var in #(
1795       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1796 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1797       esac
1798       case $ac_var in #(
1799       _ | IFS | as_nl) ;; #(
1800       *) $as_unset $ac_var ;;
1801       esac ;;
1802     esac
1803   done
1804   (set) 2>&1 |
1805     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806     *${as_nl}ac_space=\ *)
1807       sed -n \
1808         "s/'\''/'\''\\\\'\'''\''/g;
1809           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810       ;; #(
1811     *)
1812       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813       ;;
1814     esac |
1815     sort
1816 )
1817     echo
1818
1819     cat <<\_ASBOX
1820 ## ----------------- ##
1821 ## Output variables. ##
1822 ## ----------------- ##
1823 _ASBOX
1824     echo
1825     for ac_var in $ac_subst_vars
1826     do
1827       eval ac_val=\$$ac_var
1828       case $ac_val in
1829       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830       esac
1831       echo "$ac_var='\''$ac_val'\''"
1832     done | sort
1833     echo
1834
1835     if test -n "$ac_subst_files"; then
1836       cat <<\_ASBOX
1837 ## ------------------- ##
1838 ## File substitutions. ##
1839 ## ------------------- ##
1840 _ASBOX
1841       echo
1842       for ac_var in $ac_subst_files
1843       do
1844         eval ac_val=\$$ac_var
1845         case $ac_val in
1846         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847         esac
1848         echo "$ac_var='\''$ac_val'\''"
1849       done | sort
1850       echo
1851     fi
1852
1853     if test -s confdefs.h; then
1854       cat <<\_ASBOX
1855 ## ----------- ##
1856 ## confdefs.h. ##
1857 ## ----------- ##
1858 _ASBOX
1859       echo
1860       cat confdefs.h
1861       echo
1862     fi
1863     test "$ac_signal" != 0 &&
1864       echo "$as_me: caught signal $ac_signal"
1865     echo "$as_me: exit $exit_status"
1866   } >&5
1867   rm -f core *.core core.conftest.* &&
1868     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869     exit $exit_status
1870 ' 0
1871 for ac_signal in 1 2 13 15; do
1872   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 done
1874 ac_signal=0
1875
1876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1877 rm -f -r conftest* confdefs.h
1878
1879 # Predefined preprocessor variables.
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 _ACEOF
1904
1905
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909   set x "$CONFIG_SITE"
1910 elif test "x$prefix" != xNONE; then
1911   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912 else
1913   set x "$ac_default_prefix/share/config.site" \
1914         "$ac_default_prefix/etc/config.site"
1915 fi
1916 shift
1917 for ac_site_file
1918 do
1919   if test -r "$ac_site_file"; then
1920     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 echo "$as_me: loading site script $ac_site_file" >&6;}
1922     sed 's/^/| /' "$ac_site_file" >&5
1923     . "$ac_site_file"
1924   fi
1925 done
1926
1927 if test -r "$cache_file"; then
1928   # Some versions of bash will fail to source /dev/null (special
1929   # files actually), so we avoid doing that.
1930   if test -f "$cache_file"; then
1931     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 echo "$as_me: loading cache $cache_file" >&6;}
1933     case $cache_file in
1934       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1935       *)                      . "./$cache_file";;
1936     esac
1937   fi
1938 else
1939   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 echo "$as_me: creating cache $cache_file" >&6;}
1941   >$cache_file
1942 fi
1943
1944 # Check that the precious variables saved in the cache have kept the same
1945 # value.
1946 ac_cache_corrupted=false
1947 for ac_var in $ac_precious_vars; do
1948   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1949   eval ac_new_set=\$ac_env_${ac_var}_set
1950   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1951   eval ac_new_val=\$ac_env_${ac_var}_value
1952   case $ac_old_set,$ac_new_set in
1953     set,)
1954       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1955 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1956       ac_cache_corrupted=: ;;
1957     ,set)
1958       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1959 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1960       ac_cache_corrupted=: ;;
1961     ,);;
1962     *)
1963       if test "x$ac_old_val" != "x$ac_new_val"; then
1964         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1965 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1966         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1967 echo "$as_me:   former value:  $ac_old_val" >&2;}
1968         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1969 echo "$as_me:   current value: $ac_new_val" >&2;}
1970         ac_cache_corrupted=:
1971       fi;;
1972   esac
1973   # Pass precious variables to config.status.
1974   if test "$ac_new_set" = set; then
1975     case $ac_new_val in
1976     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977     *) ac_arg=$ac_var=$ac_new_val ;;
1978     esac
1979     case " $ac_configure_args " in
1980       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1981       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1982     esac
1983   fi
1984 done
1985 if $ac_cache_corrupted; then
1986   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990    { (exit 1); exit 1; }; }
1991 fi
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017 ac_ext=c
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
2023
2024 ac_aux_dir=
2025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2026   if test -f "$ac_dir/install-sh"; then
2027     ac_aux_dir=$ac_dir
2028     ac_install_sh="$ac_aux_dir/install-sh -c"
2029     break
2030   elif test -f "$ac_dir/install.sh"; then
2031     ac_aux_dir=$ac_dir
2032     ac_install_sh="$ac_aux_dir/install.sh -c"
2033     break
2034   elif test -f "$ac_dir/shtool"; then
2035     ac_aux_dir=$ac_dir
2036     ac_install_sh="$ac_aux_dir/shtool install -c"
2037     break
2038   fi
2039 done
2040 if test -z "$ac_aux_dir"; then
2041   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2042 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2043    { (exit 1); exit 1; }; }
2044 fi
2045
2046 # These three variables are undocumented and unsupported,
2047 # and are intended to be withdrawn in a future Autoconf release.
2048 # They can cause serious problems if a builder's source tree is in a directory
2049 # whose full name contains unusual characters.
2050 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2051 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2052 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2053
2054
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 { echo "$as_me:$LINENO: checking build system type" >&5
2062 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072    { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 fi
2079 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 echo "${ECHO_T}$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2082 *-*-*) ;;
2083 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 echo "$as_me: error: invalid value of canonical build" >&2;}
2085    { (exit 1); exit 1; }; };;
2086 esac
2087 build=$ac_cv_build
2088 ac_save_IFS=$IFS; IFS='-'
2089 set x $ac_cv_build
2090 shift
2091 build_cpu=$1
2092 build_vendor=$2
2093 shift; shift
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2096 build_os=$*
2097 IFS=$ac_save_IFS
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099
2100
2101 { echo "$as_me:$LINENO: checking host system type" >&5
2102 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   if test "x$host_alias" = x; then
2107   ac_cv_host=$ac_cv_build
2108 else
2109   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 fi
2116 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 echo "${ECHO_T}$ac_cv_host" >&6; }
2118 case $ac_cv_host in
2119 *-*-*) ;;
2120 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 echo "$as_me: error: invalid value of canonical host" >&2;}
2122    { (exit 1); exit 1; }; };;
2123 esac
2124 host=$ac_cv_host
2125 ac_save_IFS=$IFS; IFS='-'
2126 set x $ac_cv_host
2127 shift
2128 host_cpu=$1
2129 host_vendor=$2
2130 shift; shift
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2133 host_os=$*
2134 IFS=$ac_save_IFS
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136
2137
2138
2139 am__api_version='1.10'
2140
2141 # Find a good install program.  We prefer a C program (faster),
2142 # so one script is as good as another.  But avoid the broken or
2143 # incompatible versions:
2144 # SysV /etc/install, /usr/sbin/install
2145 # SunOS /usr/etc/install
2146 # IRIX /sbin/install
2147 # AIX /bin/install
2148 # AmigaOS /C/install, which installs bootblocks on floppy discs
2149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2152 # OS/2's system install, which has a completely different semantic
2153 # ./install, which can be erroneously created by make from ./install.sh.
2154 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2155 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2156 if test -z "$INSTALL"; then
2157 if test "${ac_cv_path_install+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   # Account for people who put trailing slashes in PATH elements.
2166 case $as_dir/ in
2167   ./ | .// | /cC/* | \
2168   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2169   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2170   /usr/ucb/* ) ;;
2171   *)
2172     # OSF1 and SCO ODT 3.0 have their own names for install.
2173     # Don't use installbsd from OSF since it installs stuff as root
2174     # by default.
2175     for ac_prog in ginstall scoinst install; do
2176       for ac_exec_ext in '' $ac_executable_extensions; do
2177         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2178           if test $ac_prog = install &&
2179             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180             # AIX install.  It has an incompatible calling convention.
2181             :
2182           elif test $ac_prog = install &&
2183             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2184             # program-specific install script used by HP pwplus--don't use.
2185             :
2186           else
2187             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2188             break 3
2189           fi
2190         fi
2191       done
2192     done
2193     ;;
2194 esac
2195 done
2196 IFS=$as_save_IFS
2197
2198
2199 fi
2200   if test "${ac_cv_path_install+set}" = set; then
2201     INSTALL=$ac_cv_path_install
2202   else
2203     # As a last resort, use the slow shell script.  Don't cache a
2204     # value for INSTALL within a source directory, because that will
2205     # break other packages using the cache if that directory is
2206     # removed, or if the value is a relative name.
2207     INSTALL=$ac_install_sh
2208   fi
2209 fi
2210 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2211 echo "${ECHO_T}$INSTALL" >&6; }
2212
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2216
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2218
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2220
2221 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2222 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2223 # Just in case
2224 sleep 1
2225 echo timestamp > conftest.file
2226 # Do `set' in a subshell so we don't clobber the current shell's
2227 # arguments.  Must try -L first in case configure is actually a
2228 # symlink; some systems play weird games with the mod time of symlinks
2229 # (eg FreeBSD returns the mod time of the symlink's containing
2230 # directory).
2231 if (
2232    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2233    if test "$*" = "X"; then
2234       # -L didn't work.
2235       set X `ls -t $srcdir/configure conftest.file`
2236    fi
2237    rm -f conftest.file
2238    if test "$*" != "X $srcdir/configure conftest.file" \
2239       && test "$*" != "X conftest.file $srcdir/configure"; then
2240
2241       # If neither matched, then we have a broken ls.  This can happen
2242       # if, for instance, CONFIG_SHELL is bash and it inherits a
2243       # broken ls alias from the environment.  This has actually
2244       # happened.  Such a system could not be considered "sane".
2245       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2246 alias in your environment" >&5
2247 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2248 alias in your environment" >&2;}
2249    { (exit 1); exit 1; }; }
2250    fi
2251
2252    test "$2" = conftest.file
2253    )
2254 then
2255    # Ok.
2256    :
2257 else
2258    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2259 Check your system clock" >&5
2260 echo "$as_me: error: newly created file is older than distributed files!
2261 Check your system clock" >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266 test "$program_prefix" != NONE &&
2267   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2268 # Use a double $ so make ignores it.
2269 test "$program_suffix" != NONE &&
2270   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2271 # Double any \ or $.  echo might interpret backslashes.
2272 # By default was `s,x,x', remove it if useless.
2273 cat <<\_ACEOF >conftest.sed
2274 s/[\\$]/&&/g;s/;s,x,x,$//
2275 _ACEOF
2276 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2277 rm -f conftest.sed
2278
2279 # expand $ac_aux_dir to an absolute path
2280 am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2283 # Use eval to expand $SHELL
2284 if eval "$MISSING --run true"; then
2285   am_missing_run="$MISSING --run "
2286 else
2287   am_missing_run=
2288   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2289 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290 fi
2291
2292 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2293 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2294 if test -z "$MKDIR_P"; then
2295   if test "${ac_cv_path_mkdir+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_prog in mkdir gmkdir; do
2304          for ac_exec_ext in '' $ac_executable_extensions; do
2305            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2306            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2307              'mkdir (GNU coreutils) '* | \
2308              'mkdir (coreutils) '* | \
2309              'mkdir (fileutils) '4.1*)
2310                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2311                break 3;;
2312            esac
2313          done
2314        done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319
2320   if test "${ac_cv_path_mkdir+set}" = set; then
2321     MKDIR_P="$ac_cv_path_mkdir -p"
2322   else
2323     # As a last resort, use the slow shell script.  Don't cache a
2324     # value for MKDIR_P within a source directory, because that will
2325     # break other packages using the cache if that directory is
2326     # removed, or if the value is a relative name.
2327     test -d ./--version && rmdir ./--version
2328     MKDIR_P="$ac_install_sh -d"
2329   fi
2330 fi
2331 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2332 echo "${ECHO_T}$MKDIR_P" >&6; }
2333
2334 mkdir_p="$MKDIR_P"
2335 case $mkdir_p in
2336   [\\/$]* | ?:[\\/]*) ;;
2337   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2338 esac
2339
2340 for ac_prog in gawk mawk nawk awk
2341 do
2342   # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_AWK+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$AWK"; then
2350   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359     ac_cv_prog_AWK="$ac_prog"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 AWK=$ac_cv_prog_AWK
2370 if test -n "$AWK"; then
2371   { echo "$as_me:$LINENO: result: $AWK" >&5
2372 echo "${ECHO_T}$AWK" >&6; }
2373 else
2374   { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2376 fi
2377
2378
2379   test -n "$AWK" && break
2380 done
2381
2382 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2383 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2384 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2385 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   cat >conftest.make <<\_ACEOF
2389 SHELL = /bin/sh
2390 all:
2391         @echo '@@@%%%=$(MAKE)=@@@%%%'
2392 _ACEOF
2393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2395   *@@@%%%=?*=@@@%%%*)
2396     eval ac_cv_prog_make_${ac_make}_set=yes;;
2397   *)
2398     eval ac_cv_prog_make_${ac_make}_set=no;;
2399 esac
2400 rm -f conftest.make
2401 fi
2402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2403   { echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6; }
2405   SET_MAKE=
2406 else
2407   { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409   SET_MAKE="MAKE=${MAKE-make}"
2410 fi
2411
2412 rm -rf .tst 2>/dev/null
2413 mkdir .tst 2>/dev/null
2414 if test -d .tst; then
2415   am__leading_dot=.
2416 else
2417   am__leading_dot=_
2418 fi
2419 rmdir .tst 2>/dev/null
2420
2421 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2422   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2423   # is not polluted with repeated "-I."
2424   am__isrc=' -I$(srcdir)'
2425   # test to see if srcdir already configured
2426   if test -f $srcdir/config.status; then
2427     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2428 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2429    { (exit 1); exit 1; }; }
2430   fi
2431 fi
2432
2433 # test whether we have cygpath
2434 if test -z "$CYGPATH_W"; then
2435   if (cygpath --version) >/dev/null 2>/dev/null; then
2436     CYGPATH_W='cygpath -w'
2437   else
2438     CYGPATH_W=echo
2439   fi
2440 fi
2441
2442
2443 # Define the identity of the package.
2444  PACKAGE='nfs-utils'
2445  VERSION='1.1.0-rc1'
2446
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE "$PACKAGE"
2450 _ACEOF
2451
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define VERSION "$VERSION"
2455 _ACEOF
2456
2457 # Some tools Automake needs.
2458
2459 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2460
2461
2462 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2463
2464
2465 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2466
2467
2468 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2469
2470
2471 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2472
2473 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2474
2475 # Installed binaries are usually stripped using `strip' when the user
2476 # run `make install-strip'.  However `strip' might not be the right
2477 # tool to use in cross-compilation environments, therefore Automake
2478 # will honor the `STRIP' environment variable to overrule this program.
2479 if test "$cross_compiling" != no; then
2480   if test -n "$ac_tool_prefix"; then
2481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}strip; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_STRIP+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   if test -n "$STRIP"; then
2489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 STRIP=$ac_cv_prog_STRIP
2509 if test -n "$STRIP"; then
2510   { echo "$as_me:$LINENO: result: $STRIP" >&5
2511 echo "${ECHO_T}$STRIP" >&6; }
2512 else
2513   { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2515 fi
2516
2517
2518 fi
2519 if test -z "$ac_cv_prog_STRIP"; then
2520   ac_ct_STRIP=$STRIP
2521   # Extract the first word of "strip", so it can be a program name with args.
2522 set dummy strip; ac_word=$2
2523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$ac_ct_STRIP"; then
2529   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538     ac_cv_prog_ac_ct_STRIP="strip"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2549 if test -n "$ac_ct_STRIP"; then
2550   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2551 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2552 else
2553   { echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6; }
2555 fi
2556
2557   if test "x$ac_ct_STRIP" = x; then
2558     STRIP=":"
2559   else
2560     case $cross_compiling:$ac_tool_warned in
2561 yes:)
2562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet.  If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&5
2565 echo "$as_me: 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." >&2;}
2568 ac_tool_warned=yes ;;
2569 esac
2570     STRIP=$ac_ct_STRIP
2571   fi
2572 else
2573   STRIP="$ac_cv_prog_STRIP"
2574 fi
2575
2576 fi
2577 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2578
2579 # We need awk for the "check" target.  The system "awk" is bad on
2580 # some platforms.
2581 # Always define AMTAR for backward compatibility.
2582
2583 AMTAR=${AMTAR-"${am_missing_run}tar"}
2584
2585 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2586
2587
2588
2589
2590
2591
2592
2593 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2595     # Check whether --enable-maintainer-mode was given.
2596 if test "${enable_maintainer_mode+set}" = set; then
2597   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2598 else
2599   USE_MAINTAINER_MODE=no
2600 fi
2601
2602   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2604    if test $USE_MAINTAINER_MODE = yes; then
2605   MAINTAINER_MODE_TRUE=
2606   MAINTAINER_MODE_FALSE='#'
2607 else
2608   MAINTAINER_MODE_TRUE='#'
2609   MAINTAINER_MODE_FALSE=
2610 fi
2611
2612   MAINT=$MAINTAINER_MODE_TRUE
2613
2614
2615
2616
2617 # Check whether --with-release was given.
2618 if test "${with_release+set}" = set; then
2619   withval=$with_release; RELEASE=$withval
2620 else
2621   RELEASE=1
2622 fi
2623
2624
2625
2626 # Check whether --with-statedir was given.
2627 if test "${with_statedir+set}" = set; then
2628   withval=$with_statedir; statedir=$withval
2629 else
2630   statedir=/var/lib/nfs
2631 fi
2632
2633
2634
2635 # Check whether --with-statduser was given.
2636 if test "${with_statduser+set}" = set; then
2637   withval=$with_statduser; statduser=$withval
2638 else
2639   if test "x$cross_compiling" = "xno"; then
2640                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2641                         statduser=rpcuser
2642                 else
2643                         statduser=nobody
2644                 fi
2645         else
2646                 statduser=nobody
2647         fi
2648 fi
2649
2650
2651
2652 # Check whether --with-start-statd was given.
2653 if test "${with_start_statd+set}" = set; then
2654   withval=$with_start_statd; startstatd=$withval
2655 else
2656   startstatd=/usr/sbin/start-statd
2657
2658 fi
2659
2660
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define START_STATD "$startstatd"
2664 _ACEOF
2665
2666 # Check whether --enable-nfsv3 was given.
2667 if test "${enable_nfsv3+set}" = set; then
2668   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2669 else
2670   enable_nfsv3=yes
2671 fi
2672
2673         if test "$enable_nfsv3" = yes; then
2674
2675 cat >>confdefs.h <<\_ACEOF
2676 #define NFS3_SUPPORTED 1
2677 _ACEOF
2678
2679         else
2680                 enable_nfsv3=
2681         fi
2682
2683 # Check whether --enable-nfsv4 was given.
2684 if test "${enable_nfsv4+set}" = set; then
2685   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2686 else
2687   enable_nfsv4=yes
2688 fi
2689
2690         if test "$enable_nfsv4" = yes; then
2691
2692 cat >>confdefs.h <<\_ACEOF
2693 #define NFS4_SUPPORTED 1
2694 _ACEOF
2695
2696                 IDMAPD=idmapd
2697         else
2698                 enable_nfsv4=
2699                 IDMAPD=
2700         fi
2701
2702
2703          if test "$enable_nfsv4" = "yes"; then
2704   CONFIG_NFSV4_TRUE=
2705   CONFIG_NFSV4_FALSE='#'
2706 else
2707   CONFIG_NFSV4_TRUE='#'
2708   CONFIG_NFSV4_FALSE=
2709 fi
2710
2711 # Check whether --enable-gss was given.
2712 if test "${enable_gss+set}" = set; then
2713   enableval=$enable_gss; enable_gss=$enableval
2714 else
2715   enable_gss=yes
2716 fi
2717
2718         if test "$enable_gss" = yes; then
2719
2720 cat >>confdefs.h <<\_ACEOF
2721 #define GSS_SUPPORTED 1
2722 _ACEOF
2723
2724                 GSSD=gssd
2725                 SVCGSSD=svcgssd
2726         else
2727                 enable_gss=
2728                 GSSD=
2729                 SVCGSSD=
2730         fi
2731
2732
2733
2734          if test "$enable_gss" = "yes"; then
2735   CONFIG_GSS_TRUE=
2736   CONFIG_GSS_FALSE='#'
2737 else
2738   CONFIG_GSS_TRUE='#'
2739   CONFIG_GSS_FALSE=
2740 fi
2741
2742 # Check whether --enable-kprefix was given.
2743 if test "${enable_kprefix+set}" = set; then
2744   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2745 else
2746   kprefix=
2747 fi
2748
2749
2750 # Check whether --enable-secure-statd was given.
2751 if test "${enable_secure_statd+set}" = set; then
2752   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2753 else
2754   secure_statd=yes
2755 fi
2756
2757         if test "$secure_statd" = yes; then
2758
2759 cat >>confdefs.h <<\_ACEOF
2760 #define RESTRICTED_STATD 1
2761 _ACEOF
2762
2763         fi
2764
2765 # Check whether --enable-rquotad was given.
2766 if test "${enable_rquotad+set}" = set; then
2767   enableval=$enable_rquotad; enable_rquotad=$enableval
2768 else
2769   enable_rquotad=yes
2770 fi
2771
2772         if test "$enable_rquotad" = yes; then
2773                 RQUOTAD=rquotad
2774         else
2775                 RQUOTAD=
2776         fi
2777          if test "$enable_rquotad" = "yes"; then
2778   CONFIG_RQUOTAD_TRUE=
2779   CONFIG_RQUOTAD_FALSE='#'
2780 else
2781   CONFIG_RQUOTAD_TRUE='#'
2782   CONFIG_RQUOTAD_FALSE=
2783 fi
2784
2785
2786 # Check whether --with-rpcgen was given.
2787 if test "${with_rpcgen+set}" = set; then
2788   withval=$with_rpcgen; rpcgen_path=$withval
2789 else
2790   rpcgen_path=yes
2791 fi
2792
2793         RPCGEN_PATH=
2794         if test "$rpcgen_path" == "yes"; then
2795             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2796             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2797         elif test "$rpcgen_path" != "internal"; then
2798             RPCGEN_PATH=$rpcgen_path
2799         fi
2800
2801          if test "$RPCGEN_PATH" == ""; then
2802   CONFIG_RPCGEN_TRUE=
2803   CONFIG_RPCGEN_FALSE='#'
2804 else
2805   CONFIG_RPCGEN_TRUE='#'
2806   CONFIG_RPCGEN_FALSE=
2807 fi
2808
2809 # Check whether --enable-uuid was given.
2810 if test "${enable_uuid+set}" = set; then
2811   enableval=$enable_uuid; if test "$enableval" = "yes" ; then use_blkid=1; else use_blkid=0; fi
2812 else
2813   use_blkid=1
2814 fi
2815
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define USE_BLKID $use_blkid
2819 _ACEOF
2820
2821 # Check whether --enable-mount was given.
2822 if test "${enable_mount+set}" = set; then
2823   enableval=$enable_mount; enable_mount=$enableval
2824 else
2825   enable_mount=yes
2826 fi
2827
2828          if test "$enable_mount" = "yes"; then
2829   CONFIG_MOUNT_TRUE=
2830   CONFIG_MOUNT_FALSE='#'
2831 else
2832   CONFIG_MOUNT_TRUE='#'
2833   CONFIG_MOUNT_FALSE=
2834 fi
2835
2836
2837 # Check whether user wants TCP wrappers support
2838 DEPDIR="${am__leading_dot}deps"
2839
2840 ac_config_commands="$ac_config_commands depfiles"
2841
2842
2843 am_make=${MAKE-make}
2844 cat > confinc << 'END'
2845 am__doit:
2846         @echo done
2847 .PHONY: am__doit
2848 END
2849 # If we don't find an include directive, just comment out the code.
2850 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2851 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2852 am__include="#"
2853 am__quote=
2854 _am_result=none
2855 # First try GNU make style include.
2856 echo "include confinc" > confmf
2857 # We grep out `Entering directory' and `Leaving directory'
2858 # messages which can occur if `w' ends up in MAKEFLAGS.
2859 # In particular we don't look at `^make:' because GNU make might
2860 # be invoked under some other name (usually "gmake"), in which
2861 # case it prints its new name instead of `make'.
2862 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2863    am__include=include
2864    am__quote=
2865    _am_result=GNU
2866 fi
2867 # Now try BSD make style include.
2868 if test "$am__include" = "#"; then
2869    echo '.include "confinc"' > confmf
2870    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2871       am__include=.include
2872       am__quote="\""
2873       _am_result=BSD
2874    fi
2875 fi
2876
2877
2878 { echo "$as_me:$LINENO: result: $_am_result" >&5
2879 echo "${ECHO_T}$_am_result" >&6; }
2880 rm -f confinc confmf
2881
2882 # Check whether --enable-dependency-tracking was given.
2883 if test "${enable_dependency_tracking+set}" = set; then
2884   enableval=$enable_dependency_tracking;
2885 fi
2886
2887 if test "x$enable_dependency_tracking" != xno; then
2888   am_depcomp="$ac_aux_dir/depcomp"
2889   AMDEPBACKSLASH='\'
2890 fi
2891  if test "x$enable_dependency_tracking" != xno; then
2892   AMDEP_TRUE=
2893   AMDEP_FALSE='#'
2894 else
2895   AMDEP_TRUE='#'
2896   AMDEP_FALSE=
2897 fi
2898
2899
2900 ac_ext=c
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 if test -n "$ac_tool_prefix"; then
2906   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   for ac_exec_ext in '' $ac_executable_extensions; do
2922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938   { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942
2943 fi
2944 if test -z "$ac_cv_prog_CC"; then
2945   ac_ct_CC=$CC
2946   # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -n "$ac_ct_CC"; then
2954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961   for ac_exec_ext in '' $ac_executable_extensions; do
2962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963     ac_cv_prog_ac_ct_CC="gcc"
2964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976 echo "${ECHO_T}$ac_ct_CC" >&6; }
2977 else
2978   { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2980 fi
2981
2982   if test "x$ac_ct_CC" = x; then
2983     CC=""
2984   else
2985     case $cross_compiling:$ac_tool_warned in
2986 yes:)
2987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet.  If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&5
2990 echo "$as_me: 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." >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995     CC=$ac_ct_CC
2996   fi
2997 else
2998   CC="$ac_cv_prog_CC"
2999 fi
3000
3001 if test -z "$CC"; then
3002           if test -n "$ac_tool_prefix"; then
3003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010   if test -n "$CC"; then
3011   ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018   for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_CC="${ac_tool_prefix}cc"
3021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025 done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { echo "$as_me:$LINENO: result: $CC" >&5
3033 echo "${ECHO_T}$CC" >&6; }
3034 else
3035   { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3037 fi
3038
3039
3040   fi
3041 fi
3042 if test -z "$CC"; then
3043   # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053   ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059   for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062        ac_prog_rejected=yes
3063        continue
3064      fi
3065     ac_cv_prog_CC="cc"
3066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 if test $ac_prog_rejected = yes; then
3074   # We found a bogon in the path, so make sure we never use it.
3075   set dummy $ac_cv_prog_CC
3076   shift
3077   if test $# != 0; then
3078     # We chose a different compiler from the bogus one.
3079     # However, it has the same basename, so the bogon will be chosen
3080     # first if we set CC to just the basename; use the full file name.
3081     shift
3082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083   fi
3084 fi
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { echo "$as_me:$LINENO: result: $CC" >&5
3090 echo "${ECHO_T}$CC" >&6; }
3091 else
3092   { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$CC"; then
3099   if test -n "$ac_tool_prefix"; then
3100   for ac_prog in cl.exe
3101   do
3102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117   for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { echo "$as_me:$LINENO: result: $CC" >&5
3132 echo "${ECHO_T}$CC" >&6; }
3133 else
3134   { echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6; }
3136 fi
3137
3138
3139     test -n "$CC" && break
3140   done
3141 fi
3142 if test -z "$CC"; then
3143   ac_ct_CC=$CC
3144   for ac_prog in cl.exe
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   if test -n "$ac_ct_CC"; then
3154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161   for ac_exec_ext in '' $ac_executable_extensions; do
3162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163     ac_cv_prog_ac_ct_CC="$ac_prog"
3164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3176 echo "${ECHO_T}$ac_ct_CC" >&6; }
3177 else
3178   { echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6; }
3180 fi
3181
3182
3183   test -n "$ac_ct_CC" && break
3184 done
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3192 whose name does not start with the host triplet.  If you think this
3193 configuration is useful to you, please write to autoconf@gnu.org." >&5
3194 echo "$as_me: 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." >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199     CC=$ac_ct_CC
3200   fi
3201 fi
3202
3203 fi
3204
3205
3206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: no acceptable C compiler found in \$PATH
3209 See \`config.log' for more details." >&2;}
3210    { (exit 1); exit 1; }; }
3211
3212 # Provide some information about the compiler.
3213 echo "$as_me:$LINENO: checking for C compiler version" >&5
3214 ac_compiler=`set X $ac_compile; echo $2`
3215 { (ac_try="$ac_compiler --version >&5"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compiler --version >&5") 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }
3225 { (ac_try="$ac_compiler -v >&5"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_compiler -v >&5") 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }
3235 { (ac_try="$ac_compiler -V >&5"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compiler -V >&5") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }
3245
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252
3253 int
3254 main ()
3255 {
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3265 # of exeext.
3266 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3267 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269 #
3270 # List of possible output files, starting from the most likely.
3271 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3272 # only as a last resort.  b.out is created by i960 compilers.
3273 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3274 #
3275 # The IRIX 6 linker writes into existing files which may not be
3276 # executable, retaining their permissions.  Remove them first so a
3277 # subsequent execution test works.
3278 ac_rmfiles=
3279 for ac_file in $ac_files
3280 do
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3283     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284   esac
3285 done
3286 rm -f $ac_rmfiles
3287
3288 if { (ac_try="$ac_link_default"
3289 case "(($ac_try" in
3290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291   *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294   (eval "$ac_link_default") 2>&5
3295   ac_status=$?
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); }; then
3298   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3301 # so that the user can short-circuit this test for compilers unknown to
3302 # Autoconf.
3303 for ac_file in $ac_files ''
3304 do
3305   test -f "$ac_file" || continue
3306   case $ac_file in
3307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3308         ;;
3309     [ab].out )
3310         # We found the default executable, but exeext='' is most
3311         # certainly right.
3312         break;;
3313     *.* )
3314         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3315         then :; else
3316            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317         fi
3318         # We set ac_cv_exeext here because the later test for it is not
3319         # safe: cross compilers may not add the suffix if given an `-o'
3320         # argument, so we may need to know it at that point already.
3321         # Even if this section looks crufty: it has the advantage of
3322         # actually working.
3323         break;;
3324     * )
3325         break;;
3326   esac
3327 done
3328 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329
3330 else
3331   ac_file=''
3332 fi
3333
3334 { echo "$as_me:$LINENO: result: $ac_file" >&5
3335 echo "${ECHO_T}$ac_file" >&6; }
3336 if test -z "$ac_file"; then
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3341 See \`config.log' for more details." >&5
3342 echo "$as_me: error: C compiler cannot create executables
3343 See \`config.log' for more details." >&2;}
3344    { (exit 77); exit 77; }; }
3345 fi
3346
3347 ac_exeext=$ac_cv_exeext
3348
3349 # Check that the compiler produces executables we can run.  If not, either
3350 # the compiler is broken, or we cross compile.
3351 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3352 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3353 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3354 # If not cross compiling, check that we can run a simple program.
3355 if test "$cross_compiling" != yes; then
3356   if { ac_try='./$ac_file'
3357   { (case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_try") 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; }; then
3366     cross_compiling=no
3367   else
3368     if test "$cross_compiling" = maybe; then
3369         cross_compiling=yes
3370     else
3371         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3372 If you meant to cross compile, use \`--host'.
3373 See \`config.log' for more details." >&5
3374 echo "$as_me: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&2;}
3377    { (exit 1); exit 1; }; }
3378     fi
3379   fi
3380 fi
3381 { echo "$as_me:$LINENO: result: yes" >&5
3382 echo "${ECHO_T}yes" >&6; }
3383
3384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 # Check that the compiler produces executables we can run.  If not, either
3387 # the compiler is broken, or we cross compile.
3388 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3390 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3391 echo "${ECHO_T}$cross_compiling" >&6; }
3392
3393 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3395 if { (ac_try="$ac_link"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_link") 2>&5
3402   ac_status=$?
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); }; then
3405   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3406 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3407 # work properly (i.e., refer to `conftest.exe'), while it won't with
3408 # `rm'.
3409 for ac_file in conftest.exe conftest conftest.*; do
3410   test -f "$ac_file" || continue
3411   case $ac_file in
3412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3413     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3414           break;;
3415     * ) break;;
3416   esac
3417 done
3418 else
3419   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3422 See \`config.log' for more details." >&2;}
3423    { (exit 1); exit 1; }; }
3424 fi
3425
3426 rm -f conftest$ac_cv_exeext
3427 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3428 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3429
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3432 ac_exeext=$EXEEXT
3433 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3435 if test "${ac_cv_objext+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444
3445 int
3446 main ()
3447 {
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.o conftest.obj
3454 if { (ac_try="$ac_compile"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_compile") 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); }; then
3464   for ac_file in conftest.o conftest.obj conftest.*; do
3465   test -f "$ac_file" || continue;
3466   case $ac_file in
3467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3468     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469        break;;
3470   esac
3471 done
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3479 See \`config.log' for more details." >&2;}
3480    { (exit 1); exit 1; }; }
3481 fi
3482
3483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3484 fi
3485 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3486 echo "${ECHO_T}$ac_cv_objext" >&6; }
3487 OBJEXT=$ac_cv_objext
3488 ac_objext=$OBJEXT
3489 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505        choke me
3506 #endif
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519   (eval "$ac_compile") 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } && {
3526          test -z "$ac_c_werror_flag" ||
3527          test ! -s conftest.err
3528        } && test -s conftest.$ac_objext; then
3529   ac_compiler_gnu=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534         ac_compiler_gnu=no
3535 fi
3536
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540 fi
3541 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3543 GCC=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_cc_g+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_save_c_werror_flag=$ac_c_werror_flag
3552    ac_c_werror_flag=yes
3553    ac_cv_prog_cc_g=no
3554    CFLAGS="-g"
3555    cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_compile") 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } && {
3584          test -z "$ac_c_werror_flag" ||
3585          test ! -s conftest.err
3586        } && test -s conftest.$ac_objext; then
3587   ac_cv_prog_cc_g=yes
3588 else
3589   echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592         CFLAGS=""
3593       cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599
3600 int
3601 main ()
3602 {
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_c_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest.$ac_objext; then
3625   :
3626 else
3627   echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630         ac_c_werror_flag=$ac_save_c_werror_flag
3631          CFLAGS="-g"
3632          cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (ac_try="$ac_compile"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654   (eval "$ac_compile") 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } && {
3661          test -z "$ac_c_werror_flag" ||
3662          test ! -s conftest.err
3663        } && test -s conftest.$ac_objext; then
3664   ac_cv_prog_cc_g=yes
3665 else
3666   echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669
3670 fi
3671
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3680 fi
3681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684   CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686   if test "$GCC" = yes; then
3687     CFLAGS="-g -O2"
3688   else
3689     CFLAGS="-g"
3690   fi
3691 else
3692   if test "$GCC" = yes; then
3693     CFLAGS="-O2"
3694   else
3695     CFLAGS=
3696   fi
3697 fi
3698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3700 if test "${ac_cv_prog_cc_c89+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   ac_cv_prog_cc_c89=no
3704 ac_save_CC=$CC
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #include <stdarg.h>
3712 #include <stdio.h>
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3719      char **p;
3720      int i;
3721 {
3722   return p[i];
3723 }
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3725 {
3726   char *s;
3727   va_list v;
3728   va_start (v,p);
3729   s = g (p, va_arg (v,int));
3730   va_end (v);
3731   return s;
3732 }
3733
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3735    function prototypes and stuff, but not '\xHH' hex character constants.
3736    These don't provoke an error unfortunately, instead are silently treated
3737    as 'x'.  The following induces an error, until -std is added to get
3738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3739    array size at least.  It's necessary to write '\x00'==0 to get something
3740    that's true only with -std.  */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744    inside strings and character constants.  */
3745 #define FOO(x) 'x'
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3752 int argc;
3753 char **argv;
3754 int
3755 main ()
3756 {
3757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 do
3765   CC="$ac_save_CC $ac_arg"
3766   rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773   (eval "$ac_compile") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest.$ac_objext; then
3783   ac_cv_prog_cc_c89=$ac_arg
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext
3792   test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800   x)
3801     { echo "$as_me:$LINENO: result: none needed" >&5
3802 echo "${ECHO_T}none needed" >&6; } ;;
3803   xno)
3804     { echo "$as_me:$LINENO: result: unsupported" >&5
3805 echo "${ECHO_T}unsupported" >&6; } ;;
3806   *)
3807     CC="$CC $ac_cv_prog_cc_c89"
3808     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819 depcc="$CC"   am_compiler_list=
3820
3821 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827   # We make a subdir and do the tests there.  Otherwise we can end up
3828   # making bogus files that we don't know about and never remove.  For
3829   # instance it was reported that on HP-UX the gcc test will end up
3830   # making a dummy file named `D' -- because `-MD' means `put the output
3831   # in D'.
3832   mkdir conftest.dir
3833   # Copy depcomp to subdir because otherwise we won't find it if we're
3834   # using a relative directory.
3835   cp "$am_depcomp" conftest.dir
3836   cd conftest.dir
3837   # We will build objects and dependencies in a subdirectory because
3838   # it helps to detect inapplicable dependency modes.  For instance
3839   # both Tru64's cc and ICC support -MD to output dependencies as a
3840   # side effect of compilation, but ICC will put the dependencies in
3841   # the current directory while Tru64 will put them in the object
3842   # directory.
3843   mkdir sub
3844
3845   am_cv_CC_dependencies_compiler_type=none
3846   if test "$am_compiler_list" = ""; then
3847      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3848   fi
3849   for depmode in $am_compiler_list; do
3850     # Setup a source with many dependencies, because some compilers
3851     # like to wrap large dependency lists on column 80 (with \), and
3852     # we should not choose a depcomp mode which is confused by this.
3853     #
3854     # We need to recreate these files for each test, as the compiler may
3855     # overwrite some of them when testing with obscure command lines.
3856     # This happens at least with the AIX C compiler.
3857     : > sub/conftest.c
3858     for i in 1 2 3 4 5 6; do
3859       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3860       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3861       # Solaris 8's {/usr,}/bin/sh.
3862       touch sub/conftst$i.h
3863     done
3864     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3865
3866     case $depmode in
3867     nosideeffect)
3868       # after this tag, mechanisms are not by side-effect, so they'll
3869       # only be used when explicitly requested
3870       if test "x$enable_dependency_tracking" = xyes; then
3871         continue
3872       else
3873         break
3874       fi
3875       ;;
3876     none) break ;;
3877     esac
3878     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879     # mode.  It turns out that the SunPro C++ compiler does not properly
3880     # handle `-M -o', and we need to detect this.
3881     if depmode=$depmode \
3882        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3883        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3884        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3885          >/dev/null 2>conftest.err &&
3886        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3887        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3888        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3889        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3890       # icc doesn't choke on unknown options, it will just issue warnings
3891       # or remarks (even with -Werror).  So we grep stderr for any message
3892       # that says an option was ignored or not supported.
3893       # When given -MP, icc 7.0 and 7.1 complain thusly:
3894       #   icc: Command line warning: ignoring option '-M'; no argument required
3895       # The diagnosis changed in icc 8.0:
3896       #   icc: Command line remark: option '-MP' not supported
3897       if (grep 'ignoring option' conftest.err ||
3898           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3899         am_cv_CC_dependencies_compiler_type=$depmode
3900         break
3901       fi
3902     fi
3903   done
3904
3905   cd ..
3906   rm -rf conftest.dir
3907 else
3908   am_cv_CC_dependencies_compiler_type=none
3909 fi
3910
3911 fi
3912 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3913 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3914 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3915
3916  if
3917   test "x$enable_dependency_tracking" != xno \
3918   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3919   am__fastdepCC_TRUE=
3920   am__fastdepCC_FALSE='#'
3921 else
3922   am__fastdepCC_TRUE='#'
3923   am__fastdepCC_FALSE=
3924 fi
3925
3926
3927
3928
3929   TCPW_MSG="no"
3930
3931 # Check whether --with-tcp-wrappers was given.
3932 if test "${with_tcp_wrappers+set}" = set; then
3933   withval=$with_tcp_wrappers; with_tcpw=$withval
3934 else
3935   with_tcpw=yes
3936 fi
3937
3938         if test "x$with_tcpw" != "xno" ; then
3939             saved_LIBS="$LIBS"
3940             saved_LDFLAGS="$LDFLAGS"
3941             saved_CPPFLAGS="$CPPFLAGS"
3942             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3943                 if test -d "${with_tcpw}/lib"; then
3944                     if test -n "${need_dash_r}"; then
3945                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3946                     else
3947                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3948                     fi
3949                 else
3950                     if test -n "${need_dash_r}"; then
3951                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3952                     else
3953                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3954                     fi
3955                 fi
3956                 if test -d "${with_tcpw}/include"; then
3957                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3958                 else
3959                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3960                 fi
3961             fi
3962             LIBWRAP="-lwrap"
3963             LIBS="$LIBWRAP $LIBS"
3964             { echo "$as_me:$LINENO: checking for libwrap" >&5
3965 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3966             cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972
3973                 #include <tcpd.h>
3974                 int deny_severity = 0, allow_severity = 0;
3975
3976 int
3977 main ()
3978 {
3979 hosts_access(0);
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3986 case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991   (eval "$ac_link") 2>conftest.er1
3992   ac_status=$?
3993   grep -v '^ *+' conftest.er1 >conftest.err
3994   rm -f conftest.er1
3995   cat conftest.err >&5
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); } && {
3998          test -z "$ac_c_werror_flag" ||
3999          test ! -s conftest.err
4000        } && test -s conftest$ac_exeext &&
4001        $as_test_x conftest$ac_exeext; then
4002
4003                 { echo "$as_me:$LINENO: result: yes" >&5
4004 echo "${ECHO_T}yes" >&6; }
4005
4006
4007 cat >>confdefs.h <<\_ACEOF
4008 #define LIBWRAP 1
4009 _ACEOF
4010
4011
4012 cat >>confdefs.h <<\_ACEOF
4013 #define HAVE_LIBWRAP 1
4014 _ACEOF
4015
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define HAVE_TCP_WRAPPER 1
4019 _ACEOF
4020
4021                 TCPW_MSG="yes"
4022
4023 else
4024   echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027
4028                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4029 echo "$as_me: error: *** libwrap missing" >&2;}
4030    { (exit 1); exit 1; }; }
4031
4032
4033 fi
4034
4035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036       conftest$ac_exeext conftest.$ac_ext
4037             LIBS="$saved_LIBS"
4038         fi
4039
4040
4041
4042
4043
4044 # Arrange for large-file support
4045 # Check whether --enable-largefile was given.
4046 if test "${enable_largefile+set}" = set; then
4047   enableval=$enable_largefile;
4048 fi
4049
4050 if test "$enable_largefile" != no; then
4051
4052   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4053 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   ac_cv_sys_largefile_CC=no
4058      if test "$GCC" != yes; then
4059        ac_save_CC=$CC
4060        while :; do
4061          # IRIX 6.2 and later do not support large files by default,
4062          # so use the C compiler's -n32 option if that helps.
4063          cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 #include <sys/types.h>
4070  /* Check that off_t can represent 2**63 - 1 correctly.
4071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072     since some C++ compilers masquerading as C compilers
4073     incorrectly reject 9223372036854775807.  */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076                        && LARGE_OFF_T % 2147483647 == 1)
4077                       ? 1 : -1];
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086          rm -f conftest.$ac_objext
4087 if { (ac_try="$ac_compile"
4088 case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_compile") 2>conftest.er1
4094   ac_status=$?
4095   grep -v '^ *+' conftest.er1 >conftest.err
4096   rm -f conftest.er1
4097   cat conftest.err >&5
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } && {
4100          test -z "$ac_c_werror_flag" ||
4101          test ! -s conftest.err
4102        } && test -s conftest.$ac_objext; then
4103   break
4104 else
4105   echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext
4112          CC="$CC -n32"
4113          rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && {
4127          test -z "$ac_c_werror_flag" ||
4128          test ! -s conftest.err
4129        } && test -s conftest.$ac_objext; then
4130   ac_cv_sys_largefile_CC=' -n32'; break
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext
4139          break
4140        done
4141        CC=$ac_save_CC
4142        rm -f conftest.$ac_ext
4143     fi
4144 fi
4145 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4146 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4147   if test "$ac_cv_sys_largefile_CC" != no; then
4148     CC=$CC$ac_cv_sys_largefile_CC
4149   fi
4150
4151   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4152 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4153 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   while :; do
4157   cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <sys/types.h>
4164  /* Check that off_t can represent 2**63 - 1 correctly.
4165     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166     since some C++ compilers masquerading as C compilers
4167     incorrectly reject 9223372036854775807.  */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170                        && LARGE_OFF_T % 2147483647 == 1)
4171                       ? 1 : -1];
4172 int
4173 main ()
4174 {
4175
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (ac_try="$ac_compile"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_compile") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && {
4194          test -z "$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        } && test -s conftest.$ac_objext; then
4197   ac_cv_sys_file_offset_bits=no; break
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202
4203 fi
4204
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #define _FILE_OFFSET_BITS 64
4213 #include <sys/types.h>
4214  /* Check that off_t can represent 2**63 - 1 correctly.
4215     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4216     since some C++ compilers masquerading as C compilers
4217     incorrectly reject 9223372036854775807.  */
4218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4219   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4220                        && LARGE_OFF_T % 2147483647 == 1)
4221                       ? 1 : -1];
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4232 case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_compile") 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } && {
4244          test -z "$ac_c_werror_flag" ||
4245          test ! -s conftest.err
4246        } && test -s conftest.$ac_objext; then
4247   ac_cv_sys_file_offset_bits=64; break
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4251
4252
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256   ac_cv_sys_file_offset_bits=unknown
4257   break
4258 done
4259 fi
4260 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4261 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4262 case $ac_cv_sys_file_offset_bits in #(
4263   no | unknown) ;;
4264   *)
4265 cat >>confdefs.h <<_ACEOF
4266 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4267 _ACEOF
4268 ;;
4269 esac
4270 rm -f conftest*
4271   if test $ac_cv_sys_file_offset_bits = unknown; then
4272     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4273 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4274 if test "${ac_cv_sys_large_files+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   while :; do
4278   cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284 #include <sys/types.h>
4285  /* Check that off_t can represent 2**63 - 1 correctly.
4286     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287     since some C++ compilers masquerading as C compilers
4288     incorrectly reject 9223372036854775807.  */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291                        && LARGE_OFF_T % 2147483647 == 1)
4292                       ? 1 : -1];
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (ac_try="$ac_compile"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_compile") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest.$ac_objext; then
4318   ac_cv_sys_large_files=no; break
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 #define _LARGE_FILES 1
4334 #include <sys/types.h>
4335  /* Check that off_t can represent 2**63 - 1 correctly.
4336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4337     since some C++ compilers masquerading as C compilers
4338     incorrectly reject 9223372036854775807.  */
4339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4341                        && LARGE_OFF_T % 2147483647 == 1)
4342                       ? 1 : -1];
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_compile") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest.$ac_objext; then
4368   ac_cv_sys_large_files=1; break
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377   ac_cv_sys_large_files=unknown
4378   break
4379 done
4380 fi
4381 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4382 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4383 case $ac_cv_sys_large_files in #(
4384   no | unknown) ;;
4385   *)
4386 cat >>confdefs.h <<_ACEOF
4387 #define _LARGE_FILES $ac_cv_sys_large_files
4388 _ACEOF
4389 ;;
4390 esac
4391 rm -f conftest*
4392   fi
4393 fi
4394
4395
4396
4397 ac_config_headers="$ac_config_headers support/include/config.h"
4398
4399
4400 # Checks for programs.
4401 ac_ext=cpp
4402 ac_cpp='$CXXCPP $CPPFLAGS'
4403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4406 if test -z "$CXX"; then
4407   if test -n "$CCC"; then
4408     CXX=$CCC
4409   else
4410     if test -n "$ac_tool_prefix"; then
4411   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4412   do
4413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_CXX+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -n "$CXX"; then
4421   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 CXX=$ac_cv_prog_CXX
4441 if test -n "$CXX"; then
4442   { echo "$as_me:$LINENO: result: $CXX" >&5
4443 echo "${ECHO_T}$CXX" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450     test -n "$CXX" && break
4451   done
4452 fi
4453 if test -z "$CXX"; then
4454   ac_ct_CXX=$CXX
4455   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4456 do
4457   # Extract the first word of "$ac_prog", so it can be a program name with args.
4458 set dummy $ac_prog; ac_word=$2
4459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4461 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4462   echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464   if test -n "$ac_ct_CXX"; then
4465   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474     ac_cv_prog_ac_ct_CXX="$ac_prog"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480 IFS=$as_save_IFS
4481
4482 fi
4483 fi
4484 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4485 if test -n "$ac_ct_CXX"; then
4486   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4487 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4488 else
4489   { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4491 fi
4492
4493
4494   test -n "$ac_ct_CXX" && break
4495 done
4496
4497   if test "x$ac_ct_CXX" = x; then
4498     CXX="g++"
4499   else
4500     case $cross_compiling:$ac_tool_warned in
4501 yes:)
4502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet.  If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&5
4505 echo "$as_me: 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." >&2;}
4508 ac_tool_warned=yes ;;
4509 esac
4510     CXX=$ac_ct_CXX
4511   fi
4512 fi
4513
4514   fi
4515 fi
4516 # Provide some information about the compiler.
4517 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4518 ac_compiler=`set X $ac_compile; echo $2`
4519 { (ac_try="$ac_compiler --version >&5"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525   (eval "$ac_compiler --version >&5") 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }
4529 { (ac_try="$ac_compiler -v >&5"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535   (eval "$ac_compiler -v >&5") 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }
4539 { (ac_try="$ac_compiler -V >&5"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545   (eval "$ac_compiler -V >&5") 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549
4550 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4551 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4552 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565 #ifndef __GNUC__
4566        choke me
4567 #endif
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_compile") 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } && {
4587          test -z "$ac_cxx_werror_flag" ||
4588          test ! -s conftest.err
4589        } && test -s conftest.$ac_objext; then
4590   ac_compiler_gnu=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595         ac_compiler_gnu=no
4596 fi
4597
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4600
4601 fi
4602 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4604 GXX=`test $ac_compiler_gnu = yes && echo yes`
4605 ac_test_CXXFLAGS=${CXXFLAGS+set}
4606 ac_save_CXXFLAGS=$CXXFLAGS
4607 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4608 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_cxx_g+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4613    ac_cxx_werror_flag=yes
4614    ac_cv_prog_cxx_g=no
4615    CXXFLAGS="-g"
4616    cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h.  */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.$ac_objext
4632 if { (ac_try="$ac_compile"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638   (eval "$ac_compile") 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } && {
4645          test -z "$ac_cxx_werror_flag" ||
4646          test ! -s conftest.err
4647        } && test -s conftest.$ac_objext; then
4648   ac_cv_prog_cxx_g=yes
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653         CXXFLAGS=""
4654       cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676   (eval "$ac_compile") 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } && {
4683          test -z "$ac_cxx_werror_flag" ||
4684          test ! -s conftest.err
4685        } && test -s conftest.$ac_objext; then
4686   :
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4692          CXXFLAGS="-g"
4693          cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699
4700 int
4701 main ()
4702 {
4703
4704   ;
4705   return 0;
4706 }
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715   (eval "$ac_compile") 2>conftest.er1
4716   ac_status=$?
4717   grep -v '^ *+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } && {
4722          test -z "$ac_cxx_werror_flag" ||
4723          test ! -s conftest.err
4724        } && test -s conftest.$ac_objext; then
4725   ac_cv_prog_cxx_g=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730
4731 fi
4732
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4741 fi
4742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4743 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4744 if test "$ac_test_CXXFLAGS" = set; then
4745   CXXFLAGS=$ac_save_CXXFLAGS
4746 elif test $ac_cv_prog_cxx_g = yes; then
4747   if test "$GXX" = yes; then
4748     CXXFLAGS="-g -O2"
4749   else
4750     CXXFLAGS="-g"
4751   fi
4752 else
4753   if test "$GXX" = yes; then
4754     CXXFLAGS="-O2"
4755   else
4756     CXXFLAGS=
4757   fi
4758 fi
4759 ac_ext=c
4760 ac_cpp='$CPP $CPPFLAGS'
4761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764
4765 depcc="$CXX"  am_compiler_list=
4766
4767 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4769 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4773   # We make a subdir and do the tests there.  Otherwise we can end up
4774   # making bogus files that we don't know about and never remove.  For
4775   # instance it was reported that on HP-UX the gcc test will end up
4776   # making a dummy file named `D' -- because `-MD' means `put the output
4777   # in D'.
4778   mkdir conftest.dir
4779   # Copy depcomp to subdir because otherwise we won't find it if we're
4780   # using a relative directory.
4781   cp "$am_depcomp" conftest.dir
4782   cd conftest.dir
4783   # We will build objects and dependencies in a subdirectory because
4784   # it helps to detect inapplicable dependency modes.  For instance
4785   # both Tru64's cc and ICC support -MD to output dependencies as a
4786   # side effect of compilation, but ICC will put the dependencies in
4787   # the current directory while Tru64 will put them in the object
4788   # directory.
4789   mkdir sub
4790
4791   am_cv_CXX_dependencies_compiler_type=none
4792   if test "$am_compiler_list" = ""; then
4793      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4794   fi
4795   for depmode in $am_compiler_list; do
4796     # Setup a source with many dependencies, because some compilers
4797     # like to wrap large dependency lists on column 80 (with \), and
4798     # we should not choose a depcomp mode which is confused by this.
4799     #
4800     # We need to recreate these files for each test, as the compiler may
4801     # overwrite some of them when testing with obscure command lines.
4802     # This happens at least with the AIX C compiler.
4803     : > sub/conftest.c
4804     for i in 1 2 3 4 5 6; do
4805       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4806       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4807       # Solaris 8's {/usr,}/bin/sh.
4808       touch sub/conftst$i.h
4809     done
4810     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4811
4812     case $depmode in
4813     nosideeffect)
4814       # after this tag, mechanisms are not by side-effect, so they'll
4815       # only be used when explicitly requested
4816       if test "x$enable_dependency_tracking" = xyes; then
4817         continue
4818       else
4819         break
4820       fi
4821       ;;
4822     none) break ;;
4823     esac
4824     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4825     # mode.  It turns out that the SunPro C++ compiler does not properly
4826     # handle `-M -o', and we need to detect this.
4827     if depmode=$depmode \
4828        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4829        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4830        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4831          >/dev/null 2>conftest.err &&
4832        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4833        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4834        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4835        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4836       # icc doesn't choke on unknown options, it will just issue warnings
4837       # or remarks (even with -Werror).  So we grep stderr for any message
4838       # that says an option was ignored or not supported.
4839       # When given -MP, icc 7.0 and 7.1 complain thusly:
4840       #   icc: Command line warning: ignoring option '-M'; no argument required
4841       # The diagnosis changed in icc 8.0:
4842       #   icc: Command line remark: option '-MP' not supported
4843       if (grep 'ignoring option' conftest.err ||
4844           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4845         am_cv_CXX_dependencies_compiler_type=$depmode
4846         break
4847       fi
4848     fi
4849   done
4850
4851   cd ..
4852   rm -rf conftest.dir
4853 else
4854   am_cv_CXX_dependencies_compiler_type=none
4855 fi
4856
4857 fi
4858 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4859 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4860 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4861
4862  if
4863   test "x$enable_dependency_tracking" != xno \
4864   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4865   am__fastdepCXX_TRUE=
4866   am__fastdepCXX_FALSE='#'
4867 else
4868   am__fastdepCXX_TRUE='#'
4869   am__fastdepCXX_FALSE=
4870 fi
4871
4872
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_prog_CC+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   if test -n "$CC"; then
4887   ac_cv_prog_CC="$CC" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894   for ac_exec_ext in '' $ac_executable_extensions; do
4895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901 done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 CC=$ac_cv_prog_CC
4907 if test -n "$CC"; then
4908   { echo "$as_me:$LINENO: result: $CC" >&5
4909 echo "${ECHO_T}$CC" >&6; }
4910 else
4911   { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4914
4915
4916 fi
4917 if test -z "$ac_cv_prog_CC"; then
4918   ac_ct_CC=$CC
4919   # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   if test -n "$ac_ct_CC"; then
4927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_prog_ac_ct_CC="gcc"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4949 echo "${ECHO_T}$ac_ct_CC" >&6; }
4950 else
4951   { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4953 fi
4954
4955   if test "x$ac_ct_CC" = x; then
4956     CC=""
4957   else
4958     case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4961 whose name does not start with the host triplet.  If you think this
4962 configuration is useful to you, please write to autoconf@gnu.org." >&5
4963 echo "$as_me: 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." >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968     CC=$ac_ct_CC
4969   fi
4970 else
4971   CC="$ac_cv_prog_CC"
4972 fi
4973
4974 if test -z "$CC"; then
4975           if test -n "$ac_tool_prefix"; then
4976     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}cc; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_prog_CC+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   if test -n "$CC"; then
4984   ac_cv_prog_CC="$CC" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     ac_cv_prog_CC="${ac_tool_prefix}cc"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005   { echo "$as_me:$LINENO: result: $CC" >&5
5006 echo "${ECHO_T}$CC" >&6; }
5007 else
5008   { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5010 fi
5011
5012
5013   fi
5014 fi
5015 if test -z "$CC"; then
5016   # Extract the first word of "cc", so it can be a program name with args.
5017 set dummy cc; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   if test -n "$CC"; then
5024   ac_cv_prog_CC="$CC" # Let the user override the test.
5025 else
5026   ac_prog_rejected=no
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   for ac_exec_ext in '' $ac_executable_extensions; do
5033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5035        ac_prog_rejected=yes
5036        continue
5037      fi
5038     ac_cv_prog_CC="cc"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 if test $ac_prog_rejected = yes; then
5047   # We found a bogon in the path, so make sure we never use it.
5048   set dummy $ac_cv_prog_CC
5049   shift
5050   if test $# != 0; then
5051     # We chose a different compiler from the bogus one.
5052     # However, it has the same basename, so the bogon will be chosen
5053     # first if we set CC to just the basename; use the full file name.
5054     shift
5055     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5056   fi
5057 fi
5058 fi
5059 fi
5060 CC=$ac_cv_prog_CC
5061 if test -n "$CC"; then
5062   { echo "$as_me:$LINENO: result: $CC" >&5
5063 echo "${ECHO_T}$CC" >&6; }
5064 else
5065   { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5067 fi
5068
5069
5070 fi
5071 if test -z "$CC"; then
5072   if test -n "$ac_tool_prefix"; then
5073   for ac_prog in cl.exe
5074   do
5075     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5079 if test "${ac_cv_prog_CC+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   if test -n "$CC"; then
5083   ac_cv_prog_CC="$CC" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090   for ac_exec_ext in '' $ac_executable_extensions; do
5091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097 done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 CC=$ac_cv_prog_CC
5103 if test -n "$CC"; then
5104   { echo "$as_me:$LINENO: result: $CC" >&5
5105 echo "${ECHO_T}$CC" >&6; }
5106 else
5107   { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111
5112     test -n "$CC" && break
5113   done
5114 fi
5115 if test -z "$CC"; then
5116   ac_ct_CC=$CC
5117   for ac_prog in cl.exe
5118 do
5119   # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   if test -n "$ac_ct_CC"; then
5127   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_prog_ac_ct_CC="$ac_prog"
5137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5147 if test -n "$ac_ct_CC"; then
5148   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5149 echo "${ECHO_T}$ac_ct_CC" >&6; }
5150 else
5151   { echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6; }
5153 fi
5154
5155
5156   test -n "$ac_ct_CC" && break
5157 done
5158
5159   if test "x$ac_ct_CC" = x; then
5160     CC=""
5161   else
5162     case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5165 whose name does not start with the host triplet.  If you think this
5166 configuration is useful to you, please write to autoconf@gnu.org." >&5
5167 echo "$as_me: 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." >&2;}
5170 ac_tool_warned=yes ;;
5171 esac
5172     CC=$ac_ct_CC
5173   fi
5174 fi
5175
5176 fi
5177
5178
5179 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5180 See \`config.log' for more details." >&5
5181 echo "$as_me: error: no acceptable C compiler found in \$PATH
5182 See \`config.log' for more details." >&2;}
5183    { (exit 1); exit 1; }; }
5184
5185 # Provide some information about the compiler.
5186 echo "$as_me:$LINENO: checking for C compiler version" >&5
5187 ac_compiler=`set X $ac_compile; echo $2`
5188 { (ac_try="$ac_compiler --version >&5"
5189 case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194   (eval "$ac_compiler --version >&5") 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }
5198 { (ac_try="$ac_compiler -v >&5"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_compiler -v >&5") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }
5208 { (ac_try="$ac_compiler -V >&5"
5209 case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_compiler -V >&5") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }
5218
5219 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5220 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5221 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230
5231 int
5232 main ()
5233 {
5234 #ifndef __GNUC__
5235        choke me
5236 #endif
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249   (eval "$ac_compile") 2>conftest.er1
5250   ac_status=$?
5251   grep -v '^ *+' conftest.er1 >conftest.err
5252   rm -f conftest.er1
5253   cat conftest.err >&5
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } && {
5256          test -z "$ac_c_werror_flag" ||
5257          test ! -s conftest.err
5258        } && test -s conftest.$ac_objext; then
5259   ac_compiler_gnu=yes
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264         ac_compiler_gnu=no
5265 fi
5266
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5269
5270 fi
5271 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273 GCC=`test $ac_compiler_gnu = yes && echo yes`
5274 ac_test_CFLAGS=${CFLAGS+set}
5275 ac_save_CFLAGS=$CFLAGS
5276 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_g+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   ac_save_c_werror_flag=$ac_c_werror_flag
5282    ac_c_werror_flag=yes
5283    ac_cv_prog_cc_g=no
5284    CFLAGS="-g"
5285    cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291
5292 int
5293 main ()
5294 {
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_compile") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && {
5314          test -z "$ac_c_werror_flag" ||
5315          test ! -s conftest.err
5316        } && test -s conftest.$ac_objext; then
5317   ac_cv_prog_cc_g=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322         CFLAGS=""
5323       cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342   *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345   (eval "$ac_compile") 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } && {
5352          test -z "$ac_c_werror_flag" ||
5353          test ! -s conftest.err
5354        } && test -s conftest.$ac_objext; then
5355   :
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360         ac_c_werror_flag=$ac_save_c_werror_flag
5361          CFLAGS="-g"
5362          cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368
5369 int
5370 main ()
5371 {
5372
5373   ;
5374   return 0;
5375 }
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5379 case "(($ac_try" in
5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381   *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384   (eval "$ac_compile") 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } && {
5391          test -z "$ac_c_werror_flag" ||
5392          test ! -s conftest.err
5393        } && test -s conftest.$ac_objext; then
5394   ac_cv_prog_cc_g=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399
5400 fi
5401
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
5410 fi
5411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5412 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5413 if test "$ac_test_CFLAGS" = set; then
5414   CFLAGS=$ac_save_CFLAGS
5415 elif test $ac_cv_prog_cc_g = yes; then
5416   if test "$GCC" = yes; then
5417     CFLAGS="-g -O2"
5418   else
5419     CFLAGS="-g"
5420   fi
5421 else
5422   if test "$GCC" = yes; then
5423     CFLAGS="-O2"
5424   else
5425     CFLAGS=
5426   fi
5427 fi
5428 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5429 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5430 if test "${ac_cv_prog_cc_c89+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   ac_cv_prog_cc_c89=no
5434 ac_save_CC=$CC
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 #include <stdarg.h>
5442 #include <stdio.h>
5443 #include <sys/types.h>
5444 #include <sys/stat.h>
5445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5446 struct buf { int x; };
5447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5448 static char *e (p, i)
5449      char **p;
5450      int i;
5451 {
5452   return p[i];
5453 }
5454 static char *f (char * (*g) (char **, int), char **p, ...)
5455 {
5456   char *s;
5457   va_list v;
5458   va_start (v,p);
5459   s = g (p, va_arg (v,int));
5460   va_end (v);
5461   return s;
5462 }
5463
5464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5465    function prototypes and stuff, but not '\xHH' hex character constants.
5466    These don't provoke an error unfortunately, instead are silently treated
5467    as 'x'.  The following induces an error, until -std is added to get
5468    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5469    array size at least.  It's necessary to write '\x00'==0 to get something
5470    that's true only with -std.  */
5471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5472
5473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5474    inside strings and character constants.  */
5475 #define FOO(x) 'x'
5476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5477
5478 int test (int i, double x);
5479 struct s1 {int (*f) (int a);};
5480 struct s2 {int (*f) (double a);};
5481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5482 int argc;
5483 char **argv;
5484 int
5485 main ()
5486 {
5487 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5493         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5494 do
5495   CC="$ac_save_CC $ac_arg"
5496   rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compile") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && {
5510          test -z "$ac_c_werror_flag" ||
5511          test ! -s conftest.err
5512        } && test -s conftest.$ac_objext; then
5513   ac_cv_prog_cc_c89=$ac_arg
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext
5522   test "x$ac_cv_prog_cc_c89" != "xno" && break
5523 done
5524 rm -f conftest.$ac_ext
5525 CC=$ac_save_CC
5526
5527 fi
5528 # AC_CACHE_VAL
5529 case "x$ac_cv_prog_cc_c89" in
5530   x)
5531     { echo "$as_me:$LINENO: result: none needed" >&5
5532 echo "${ECHO_T}none needed" >&6; } ;;
5533   xno)
5534     { echo "$as_me:$LINENO: result: unsupported" >&5
5535 echo "${ECHO_T}unsupported" >&6; } ;;
5536   *)
5537     CC="$CC $ac_cv_prog_cc_c89"
5538     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5539 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5540 esac
5541
5542
5543 ac_ext=c
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548
5549 depcc="$CC"   am_compiler_list=
5550
5551 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5557   # We make a subdir and do the tests there.  Otherwise we can end up
5558   # making bogus files that we don't know about and never remove.  For
5559   # instance it was reported that on HP-UX the gcc test will end up
5560   # making a dummy file named `D' -- because `-MD' means `put the output
5561   # in D'.
5562   mkdir conftest.dir
5563   # Copy depcomp to subdir because otherwise we won't find it if we're
5564   # using a relative directory.
5565   cp "$am_depcomp" conftest.dir
5566   cd conftest.dir
5567   # We will build objects and dependencies in a subdirectory because
5568   # it helps to detect inapplicable dependency modes.  For instance
5569   # both Tru64's cc and ICC support -MD to output dependencies as a
5570   # side effect of compilation, but ICC will put the dependencies in
5571   # the current directory while Tru64 will put them in the object
5572   # directory.
5573   mkdir sub
5574
5575   am_cv_CC_dependencies_compiler_type=none
5576   if test "$am_compiler_list" = ""; then
5577      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5578   fi
5579   for depmode in $am_compiler_list; do
5580     # Setup a source with many dependencies, because some compilers
5581     # like to wrap large dependency lists on column 80 (with \), and
5582     # we should not choose a depcomp mode which is confused by this.
5583     #
5584     # We need to recreate these files for each test, as the compiler may
5585     # overwrite some of them when testing with obscure command lines.
5586     # This happens at least with the AIX C compiler.
5587     : > sub/conftest.c
5588     for i in 1 2 3 4 5 6; do
5589       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5590       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5591       # Solaris 8's {/usr,}/bin/sh.
5592       touch sub/conftst$i.h
5593     done
5594     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5595
5596     case $depmode in
5597     nosideeffect)
5598       # after this tag, mechanisms are not by side-effect, so they'll
5599       # only be used when explicitly requested
5600       if test "x$enable_dependency_tracking" = xyes; then
5601         continue
5602       else
5603         break
5604       fi
5605       ;;
5606     none) break ;;
5607     esac
5608     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5609     # mode.  It turns out that the SunPro C++ compiler does not properly
5610     # handle `-M -o', and we need to detect this.
5611     if depmode=$depmode \
5612        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5613        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5614        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5615          >/dev/null 2>conftest.err &&
5616        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5617        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5618        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5619        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5620       # icc doesn't choke on unknown options, it will just issue warnings
5621       # or remarks (even with -Werror).  So we grep stderr for any message
5622       # that says an option was ignored or not supported.
5623       # When given -MP, icc 7.0 and 7.1 complain thusly:
5624       #   icc: Command line warning: ignoring option '-M'; no argument required
5625       # The diagnosis changed in icc 8.0:
5626       #   icc: Command line remark: option '-MP' not supported
5627       if (grep 'ignoring option' conftest.err ||
5628           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5629         am_cv_CC_dependencies_compiler_type=$depmode
5630         break
5631       fi
5632     fi
5633   done
5634
5635   cd ..
5636   rm -rf conftest.dir
5637 else
5638   am_cv_CC_dependencies_compiler_type=none
5639 fi
5640
5641 fi
5642 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5643 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5645
5646  if
5647   test "x$enable_dependency_tracking" != xno \
5648   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5649   am__fastdepCC_TRUE=
5650   am__fastdepCC_FALSE='#'
5651 else
5652   am__fastdepCC_TRUE='#'
5653   am__fastdepCC_FALSE=
5654 fi
5655
5656
5657 ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5664 # On Suns, sometimes $CPP names a directory.
5665 if test -n "$CPP" && test -d "$CPP"; then
5666   CPP=
5667 fi
5668 if test -z "$CPP"; then
5669   if test "${ac_cv_prog_CPP+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672       # Double quotes because CPP needs to be expanded
5673     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5674     do
5675       ac_preproc_ok=false
5676 for ac_c_preproc_warn_flag in '' yes
5677 do
5678   # Use a header file that comes with gcc, so configuring glibc
5679   # with a fresh cross-compiler works.
5680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681   # <limits.h> exists even on freestanding compilers.
5682   # On the NeXT, cc -E runs the code through the compiler's parser,
5683   # not just through cpp. "Syntax error" is here to catch this case.
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5695                      Syntax error
5696 _ACEOF
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null && {
5710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5711          test ! -s conftest.err
5712        }; then
5713   :
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718   # Broken: fails on valid input.
5719 continue
5720 fi
5721
5722 rm -f conftest.err conftest.$ac_ext
5723
5724   # OK, works on sane cases.  Now check whether nonexistent headers
5725   # can be detected and how.
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <ac_nonexistent.h>
5733 _ACEOF
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } >/dev/null && {
5747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5748          test ! -s conftest.err
5749        }; then
5750   # Broken: success on invalid input.
5751 continue
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756   # Passes both tests.
5757 ac_preproc_ok=:
5758 break
5759 fi
5760
5761 rm -f conftest.err conftest.$ac_ext
5762
5763 done
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5767   break
5768 fi
5769
5770     done
5771     ac_cv_prog_CPP=$CPP
5772
5773 fi
5774   CPP=$ac_cv_prog_CPP
5775 else
5776   ac_cv_prog_CPP=$CPP
5777 fi
5778 { echo "$as_me:$LINENO: result: $CPP" >&5
5779 echo "${ECHO_T}$CPP" >&6; }
5780 ac_preproc_ok=false
5781 for ac_c_preproc_warn_flag in '' yes
5782 do
5783   # Use a header file that comes with gcc, so configuring glibc
5784   # with a fresh cross-compiler works.
5785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786   # <limits.h> exists even on freestanding compilers.
5787   # On the NeXT, cc -E runs the code through the compiler's parser,
5788   # not just through cpp. "Syntax error" is here to catch this case.
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #ifdef __STDC__
5796 # include <limits.h>
5797 #else
5798 # include <assert.h>
5799 #endif
5800                      Syntax error
5801 _ACEOF
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null && {
5815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5816          test ! -s conftest.err
5817        }; then
5818   :
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823   # Broken: fails on valid input.
5824 continue
5825 fi
5826
5827 rm -f conftest.err conftest.$ac_ext
5828
5829   # OK, works on sane cases.  Now check whether nonexistent headers
5830   # can be detected and how.
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5840 case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } >/dev/null && {
5852          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5853          test ! -s conftest.err
5854        }; then
5855   # Broken: success on invalid input.
5856 continue
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861   # Passes both tests.
5862 ac_preproc_ok=:
5863 break
5864 fi
5865
5866 rm -f conftest.err conftest.$ac_ext
5867
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5872   :
5873 else
5874   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878    { (exit 1); exit 1; }; }
5879 fi
5880
5881 ac_ext=c
5882 ac_cpp='$CPP $CPPFLAGS'
5883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5886
5887 # Find a good install program.  We prefer a C program (faster),
5888 # so one script is as good as another.  But avoid the broken or
5889 # incompatible versions:
5890 # SysV /etc/install, /usr/sbin/install
5891 # SunOS /usr/etc/install
5892 # IRIX /sbin/install
5893 # AIX /bin/install
5894 # AmigaOS /C/install, which installs bootblocks on floppy discs
5895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5898 # OS/2's system install, which has a completely different semantic
5899 # ./install, which can be erroneously created by make from ./install.sh.
5900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5902 if test -z "$INSTALL"; then
5903 if test "${ac_cv_path_install+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   # Account for people who put trailing slashes in PATH elements.
5912 case $as_dir/ in
5913   ./ | .// | /cC/* | \
5914   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5915   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5916   /usr/ucb/* ) ;;
5917   *)
5918     # OSF1 and SCO ODT 3.0 have their own names for install.
5919     # Don't use installbsd from OSF since it installs stuff as root
5920     # by default.
5921     for ac_prog in ginstall scoinst install; do
5922       for ac_exec_ext in '' $ac_executable_extensions; do
5923         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5924           if test $ac_prog = install &&
5925             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5926             # AIX install.  It has an incompatible calling convention.
5927             :
5928           elif test $ac_prog = install &&
5929             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5930             # program-specific install script used by HP pwplus--don't use.
5931             :
5932           else
5933             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5934             break 3
5935           fi
5936         fi
5937       done
5938     done
5939     ;;
5940 esac
5941 done
5942 IFS=$as_save_IFS
5943
5944
5945 fi
5946   if test "${ac_cv_path_install+set}" = set; then
5947     INSTALL=$ac_cv_path_install
5948   else
5949     # As a last resort, use the slow shell script.  Don't cache a
5950     # value for INSTALL within a source directory, because that will
5951     # break other packages using the cache if that directory is
5952     # removed, or if the value is a relative name.
5953     INSTALL=$ac_install_sh
5954   fi
5955 fi
5956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5957 echo "${ECHO_T}$INSTALL" >&6; }
5958
5959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5960 # It thinks the first close brace ends the variable substitution.
5961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5962
5963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5964
5965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5966
5967 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5968 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5969 LN_S=$as_ln_s
5970 if test "$LN_S" = "ln -s"; then
5971   { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5973 else
5974   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5975 echo "${ECHO_T}no, using $LN_S" >&6; }
5976 fi
5977
5978 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5979 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5980 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   cat >conftest.make <<\_ACEOF
5985 SHELL = /bin/sh
5986 all:
5987         @echo '@@@%%%=$(MAKE)=@@@%%%'
5988 _ACEOF
5989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5991   *@@@%%%=?*=@@@%%%*)
5992     eval ac_cv_prog_make_${ac_make}_set=yes;;
5993   *)
5994     eval ac_cv_prog_make_${ac_make}_set=no;;
5995 esac
5996 rm -f conftest.make
5997 fi
5998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5999   { echo "$as_me:$LINENO: result: yes" >&5
6000 echo "${ECHO_T}yes" >&6; }
6001   SET_MAKE=
6002 else
6003   { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6005   SET_MAKE="MAKE=${MAKE-make}"
6006 fi
6007
6008 # Check whether --enable-shared was given.
6009 if test "${enable_shared+set}" = set; then
6010   enableval=$enable_shared; p=${PACKAGE-default}
6011     case $enableval in
6012     yes) enable_shared=yes ;;
6013     no) enable_shared=no ;;
6014     *)
6015       enable_shared=no
6016       # Look at the argument we got.  We use all the common list separators.
6017       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6018       for pkg in $enableval; do
6019         IFS="$lt_save_ifs"
6020         if test "X$pkg" = "X$p"; then
6021           enable_shared=yes
6022         fi
6023       done
6024       IFS="$lt_save_ifs"
6025       ;;
6026     esac
6027 else
6028   enable_shared=yes
6029 fi
6030
6031
6032 # Check whether --enable-static was given.
6033 if test "${enable_static+set}" = set; then
6034   enableval=$enable_static; p=${PACKAGE-default}
6035     case $enableval in
6036     yes) enable_static=yes ;;
6037     no) enable_static=no ;;
6038     *)
6039      enable_static=no
6040       # Look at the argument we got.  We use all the common list separators.
6041       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6042       for pkg in $enableval; do
6043         IFS="$lt_save_ifs"
6044         if test "X$pkg" = "X$p"; then
6045           enable_static=yes
6046         fi
6047       done
6048       IFS="$lt_save_ifs"
6049       ;;
6050     esac
6051 else
6052   enable_static=yes
6053 fi
6054
6055
6056 # Check whether --enable-fast-install was given.
6057 if test "${enable_fast_install+set}" = set; then
6058   enableval=$enable_fast_install; p=${PACKAGE-default}
6059     case $enableval in
6060     yes) enable_fast_install=yes ;;
6061     no) enable_fast_install=no ;;
6062     *)
6063       enable_fast_install=no
6064       # Look at the argument we got.  We use all the common list separators.
6065       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6066       for pkg in $enableval; do
6067         IFS="$lt_save_ifs"
6068         if test "X$pkg" = "X$p"; then
6069           enable_fast_install=yes
6070         fi
6071       done
6072       IFS="$lt_save_ifs"
6073       ;;
6074     esac
6075 else
6076   enable_fast_install=yes
6077 fi
6078
6079
6080 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6081 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6082 if test "${lt_cv_path_SED+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   # Loop through the user's path and test for sed and gsed.
6086 # Then use that list of sed's as ones to test for truncation.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092   for lt_ac_prog in sed gsed; do
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6095         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6096       fi
6097     done
6098   done
6099 done
6100 lt_ac_max=0
6101 lt_ac_count=0
6102 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6103 # along with /bin/sed that truncates output.
6104 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6105   test ! -f $lt_ac_sed && continue
6106   cat /dev/null > conftest.in
6107   lt_ac_count=0
6108   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6109   # Check for GNU sed and select it if it is found.
6110   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6111     lt_cv_path_SED=$lt_ac_sed
6112     break
6113   fi
6114   while true; do
6115     cat conftest.in conftest.in >conftest.tmp
6116     mv conftest.tmp conftest.in
6117     cp conftest.in conftest.nl
6118     echo >>conftest.nl
6119     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6120     cmp -s conftest.out conftest.nl || break
6121     # 10000 chars as input seems more than enough
6122     test $lt_ac_count -gt 10 && break
6123     lt_ac_count=`expr $lt_ac_count + 1`
6124     if test $lt_ac_count -gt $lt_ac_max; then
6125       lt_ac_max=$lt_ac_count
6126       lt_cv_path_SED=$lt_ac_sed
6127     fi
6128   done
6129 done
6130
6131 fi
6132
6133 SED=$lt_cv_path_SED
6134 { echo "$as_me:$LINENO: result: $SED" >&5
6135 echo "${ECHO_T}$SED" >&6; }
6136
6137 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6138 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_GREP+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   # Extract the first word of "grep ggrep" to use in msg output
6143 if test -z "$GREP"; then
6144 set dummy grep ggrep; ac_prog_name=$2
6145 if test "${ac_cv_path_GREP+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   ac_path_GREP_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155   for ac_prog in grep ggrep; do
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6158     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6159     # Check for GNU ac_path_GREP and select it if it is found.
6160   # Check for GNU $ac_path_GREP
6161 case `"$ac_path_GREP" --version 2>&1` in
6162 *GNU*)
6163   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6164 *)
6165   ac_count=0
6166   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6167   while :
6168   do
6169     cat "conftest.in" "conftest.in" >"conftest.tmp"
6170     mv "conftest.tmp" "conftest.in"
6171     cp "conftest.in" "conftest.nl"
6172     echo 'GREP' >> "conftest.nl"
6173     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175     ac_count=`expr $ac_count + 1`
6176     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6177       # Best one so far, save it but keep looking for a better one
6178       ac_cv_path_GREP="$ac_path_GREP"
6179       ac_path_GREP_max=$ac_count
6180     fi
6181     # 10*(2^10) chars as input seems more than enough
6182     test $ac_count -gt 10 && break
6183   done
6184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185 esac
6186
6187
6188     $ac_path_GREP_found && break 3
6189   done
6190 done
6191
6192 done
6193 IFS=$as_save_IFS
6194
6195
6196 fi
6197
6198 GREP="$ac_cv_path_GREP"
6199 if test -z "$GREP"; then
6200   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6202    { (exit 1); exit 1; }; }
6203 fi
6204
6205 else
6206   ac_cv_path_GREP=$GREP
6207 fi
6208
6209
6210 fi
6211 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6212 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6213  GREP="$ac_cv_path_GREP"
6214
6215
6216 { echo "$as_me:$LINENO: checking for egrep" >&5
6217 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6218 if test "${ac_cv_path_EGREP+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6222    then ac_cv_path_EGREP="$GREP -E"
6223    else
6224      # Extract the first word of "egrep" to use in msg output
6225 if test -z "$EGREP"; then
6226 set dummy egrep; ac_prog_name=$2
6227 if test "${ac_cv_path_EGREP+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   ac_path_EGREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_prog in egrep; do
6238   for ac_exec_ext in '' $ac_executable_extensions; do
6239     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6240     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6241     # Check for GNU ac_path_EGREP and select it if it is found.
6242   # Check for GNU $ac_path_EGREP
6243 case `"$ac_path_EGREP" --version 2>&1` in
6244 *GNU*)
6245   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6246 *)
6247   ac_count=0
6248   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6249   while :
6250   do
6251     cat "conftest.in" "conftest.in" >"conftest.tmp"
6252     mv "conftest.tmp" "conftest.in"
6253     cp "conftest.in" "conftest.nl"
6254     echo 'EGREP' >> "conftest.nl"
6255     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257     ac_count=`expr $ac_count + 1`
6258     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6259       # Best one so far, save it but keep looking for a better one
6260       ac_cv_path_EGREP="$ac_path_EGREP"
6261       ac_path_EGREP_max=$ac_count
6262     fi
6263     # 10*(2^10) chars as input seems more than enough
6264     test $ac_count -gt 10 && break
6265   done
6266   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6267 esac
6268
6269
6270     $ac_path_EGREP_found && break 3
6271   done
6272 done
6273
6274 done
6275 IFS=$as_save_IFS
6276
6277
6278 fi
6279
6280 EGREP="$ac_cv_path_EGREP"
6281 if test -z "$EGREP"; then
6282   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6283 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6284    { (exit 1); exit 1; }; }
6285 fi
6286
6287 else
6288   ac_cv_path_EGREP=$EGREP
6289 fi
6290
6291
6292    fi
6293 fi
6294 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6295 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6296  EGREP="$ac_cv_path_EGREP"
6297
6298
6299
6300 # Check whether --with-gnu-ld was given.
6301 if test "${with_gnu_ld+set}" = set; then
6302   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6303 else
6304   with_gnu_ld=no
6305 fi
6306
6307 ac_prog=ld
6308 if test "$GCC" = yes; then
6309   # Check if gcc -print-prog-name=ld gives a path.
6310   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6311 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6312   case $host in
6313   *-*-mingw*)
6314     # gcc leaves a trailing carriage return which upsets mingw
6315     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6316   *)
6317     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6318   esac
6319   case $ac_prog in
6320     # Accept absolute paths.
6321     [\\/]* | ?:[\\/]*)
6322       re_direlt='/[^/][^/]*/\.\./'
6323       # Canonicalize the pathname of ld
6324       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6325       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6326         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6327       done
6328       test -z "$LD" && LD="$ac_prog"
6329       ;;
6330   "")
6331     # If it fails, then pretend we aren't using GCC.
6332     ac_prog=ld
6333     ;;
6334   *)
6335     # If it is relative, then search for the first ld in PATH.
6336     with_gnu_ld=unknown
6337     ;;
6338   esac
6339 elif test "$with_gnu_ld" = yes; then
6340   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6345 fi
6346 if test "${lt_cv_path_LD+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   if test -z "$LD"; then
6350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6351   for ac_dir in $PATH; do
6352     IFS="$lt_save_ifs"
6353     test -z "$ac_dir" && ac_dir=.
6354     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6355       lt_cv_path_LD="$ac_dir/$ac_prog"
6356       # Check to see if the program is GNU ld.  I'd rather use --version,
6357       # but apparently some variants of GNU ld only accept -v.
6358       # Break only if it was the GNU/non-GNU ld that we prefer.
6359       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6360       *GNU* | *'with BFD'*)
6361         test "$with_gnu_ld" != no && break
6362         ;;
6363       *)
6364         test "$with_gnu_ld" != yes && break
6365         ;;
6366       esac
6367     fi
6368   done
6369   IFS="$lt_save_ifs"
6370 else
6371   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6372 fi
6373 fi
6374
6375 LD="$lt_cv_path_LD"
6376 if test -n "$LD"; then
6377   { echo "$as_me:$LINENO: result: $LD" >&5
6378 echo "${ECHO_T}$LD" >&6; }
6379 else
6380   { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6382 fi
6383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6385    { (exit 1); exit 1; }; }
6386 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6392 case `$LD -v 2>&1 </dev/null` in
6393 *GNU* | *'with BFD'*)
6394   lt_cv_prog_gnu_ld=yes
6395   ;;
6396 *)
6397   lt_cv_prog_gnu_ld=no
6398   ;;
6399 esac
6400 fi
6401 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6403 with_gnu_ld=$lt_cv_prog_gnu_ld
6404
6405
6406 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6408 if test "${lt_cv_ld_reload_flag+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   lt_cv_ld_reload_flag='-r'
6412 fi
6413 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6415 reload_flag=$lt_cv_ld_reload_flag
6416 case $reload_flag in
6417 "" | " "*) ;;
6418 *) reload_flag=" $reload_flag" ;;
6419 esac
6420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6421 case $host_os in
6422   darwin*)
6423     if test "$GCC" = yes; then
6424       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6425     else
6426       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6427     fi
6428     ;;
6429 esac
6430
6431 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6432 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6433 if test "${lt_cv_path_NM+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test -n "$NM"; then
6437   # Let the user override the test.
6438   lt_cv_path_NM="$NM"
6439 else
6440   lt_nm_to_check="${ac_tool_prefix}nm"
6441   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6442     lt_nm_to_check="$lt_nm_to_check nm"
6443   fi
6444   for lt_tmp_nm in $lt_nm_to_check; do
6445     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6447       IFS="$lt_save_ifs"
6448       test -z "$ac_dir" && ac_dir=.
6449       tmp_nm="$ac_dir/$lt_tmp_nm"
6450       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6451         # Check to see if the nm accepts a BSD-compat flag.
6452         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6453         #   nm: unknown option "B" ignored
6454         # Tru64's nm complains that /dev/null is an invalid object file
6455         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6456         */dev/null* | *'Invalid file or object type'*)
6457           lt_cv_path_NM="$tmp_nm -B"
6458           break
6459           ;;
6460         *)
6461           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6462           */dev/null*)
6463             lt_cv_path_NM="$tmp_nm -p"
6464             break
6465             ;;
6466           *)
6467             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6468             continue # so that we can try to find one that supports BSD flags
6469             ;;
6470           esac
6471           ;;
6472         esac
6473       fi
6474     done
6475     IFS="$lt_save_ifs"
6476   done
6477   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6478 fi
6479 fi
6480 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6481 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6482 NM="$lt_cv_path_NM"
6483
6484 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6485 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6486 if test "${lt_cv_deplibs_check_method+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   lt_cv_file_magic_cmd='$MAGIC_CMD'
6490 lt_cv_file_magic_test_file=
6491 lt_cv_deplibs_check_method='unknown'
6492 # Need to set the preceding variable on all platforms that support
6493 # interlibrary dependencies.
6494 # 'none' -- dependencies not supported.
6495 # `unknown' -- same as none, but documents that we really don't know.
6496 # 'pass_all' -- all dependencies passed with no checks.
6497 # 'test_compile' -- check by making test program.
6498 # 'file_magic [[regex]]' -- check by looking for files in library path
6499 # which responds to the $file_magic_cmd with a given extended regex.
6500 # If you have `file' or equivalent on your system and you're not sure
6501 # whether `pass_all' will *always* work, you probably want this one.
6502
6503 case $host_os in
6504 aix4* | aix5*)
6505   lt_cv_deplibs_check_method=pass_all
6506   ;;
6507
6508 beos*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 bsdi[45]*)
6513   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6514   lt_cv_file_magic_cmd='/usr/bin/file -L'
6515   lt_cv_file_magic_test_file=/shlib/libc.so
6516   ;;
6517
6518 cygwin*)
6519   # func_win32_libid is a shell function defined in ltmain.sh
6520   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6521   lt_cv_file_magic_cmd='func_win32_libid'
6522   ;;
6523
6524 mingw* | pw32*)
6525   # Base MSYS/MinGW do not provide the 'file' command needed by
6526   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6527   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6528   lt_cv_file_magic_cmd='$OBJDUMP -f'
6529   ;;
6530
6531 darwin* | rhapsody*)
6532   lt_cv_deplibs_check_method=pass_all
6533   ;;
6534
6535 freebsd* | dragonfly*)
6536   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6537     case $host_cpu in
6538     i*86 )
6539       # Not sure whether the presence of OpenBSD here was a mistake.
6540       # Let's accept both of them until this is cleared up.
6541       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6542       lt_cv_file_magic_cmd=/usr/bin/file
6543       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6544       ;;
6545     esac
6546   else
6547     lt_cv_deplibs_check_method=pass_all
6548   fi
6549   ;;
6550
6551 gnu*)
6552   lt_cv_deplibs_check_method=pass_all
6553   ;;
6554
6555 hpux10.20* | hpux11*)
6556   lt_cv_file_magic_cmd=/usr/bin/file
6557   case $host_cpu in
6558   ia64*)
6559     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6560     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6561     ;;
6562   hppa*64*)
6563     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]'
6564     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6565     ;;
6566   *)
6567     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6568     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6569     ;;
6570   esac
6571   ;;
6572
6573 interix3*)
6574   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6575   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6576   ;;
6577
6578 irix5* | irix6* | nonstopux*)
6579   case $LD in
6580   *-32|*"-32 ") libmagic=32-bit;;
6581   *-n32|*"-n32 ") libmagic=N32;;
6582   *-64|*"-64 ") libmagic=64-bit;;
6583   *) libmagic=never-match;;
6584   esac
6585   lt_cv_deplibs_check_method=pass_all
6586   ;;
6587
6588 # This must be Linux ELF.
6589 linux* | k*bsd*-gnu)
6590   lt_cv_deplibs_check_method=pass_all
6591   ;;
6592
6593 netbsd* | netbsdelf*-gnu)
6594   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6596   else
6597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6598   fi
6599   ;;
6600
6601 newos6*)
6602   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6603   lt_cv_file_magic_cmd=/usr/bin/file
6604   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6605   ;;
6606
6607 nto-qnx*)
6608   lt_cv_deplibs_check_method=unknown
6609   ;;
6610
6611 openbsd*)
6612   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6614   else
6615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6616   fi
6617   ;;
6618
6619 osf3* | osf4* | osf5*)
6620   lt_cv_deplibs_check_method=pass_all
6621   ;;
6622
6623 solaris*)
6624   lt_cv_deplibs_check_method=pass_all
6625   ;;
6626
6627 sysv4 | sysv4.3*)
6628   case $host_vendor in
6629   motorola)
6630     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]'
6631     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6632     ;;
6633   ncr)
6634     lt_cv_deplibs_check_method=pass_all
6635     ;;
6636   sequent)
6637     lt_cv_file_magic_cmd='/bin/file'
6638     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6639     ;;
6640   sni)
6641     lt_cv_file_magic_cmd='/bin/file'
6642     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6643     lt_cv_file_magic_test_file=/lib/libc.so
6644     ;;
6645   siemens)
6646     lt_cv_deplibs_check_method=pass_all
6647     ;;
6648   pc)
6649     lt_cv_deplibs_check_method=pass_all
6650     ;;
6651   esac
6652   ;;
6653
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655   lt_cv_deplibs_check_method=pass_all
6656   ;;
6657 esac
6658
6659 fi
6660 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6661 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6662 file_magic_cmd=$lt_cv_file_magic_cmd
6663 deplibs_check_method=$lt_cv_deplibs_check_method
6664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6665
6666
6667
6668
6669 # If no C compiler was specified, use CC.
6670 LTCC=${LTCC-"$CC"}
6671
6672 # If no C compiler flags were specified, use CFLAGS.
6673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6674
6675 # Allow CC to be a program name with arguments.
6676 compiler=$CC
6677
6678 # Check whether --enable-libtool-lock was given.
6679 if test "${enable_libtool_lock+set}" = set; then
6680   enableval=$enable_libtool_lock;
6681 fi
6682
6683 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6684
6685 # Some flags need to be propagated to the compiler or linker for good
6686 # libtool support.
6687 case $host in
6688 ia64-*-hpux*)
6689   # Find out which ABI we are using.
6690   echo 'int i;' > conftest.$ac_ext
6691   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692   (eval $ac_compile) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; then
6696     case `/usr/bin/file conftest.$ac_objext` in
6697     *ELF-32*)
6698       HPUX_IA64_MODE="32"
6699       ;;
6700     *ELF-64*)
6701       HPUX_IA64_MODE="64"
6702       ;;
6703     esac
6704   fi
6705   rm -rf conftest*
6706   ;;
6707 *-*-irix6*)
6708   # Find out which ABI we are using.
6709   echo '#line 6709 "configure"' > conftest.$ac_ext
6710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711   (eval $ac_compile) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; then
6715    if test "$lt_cv_prog_gnu_ld" = yes; then
6716     case `/usr/bin/file conftest.$ac_objext` in
6717     *32-bit*)
6718       LD="${LD-ld} -melf32bsmip"
6719       ;;
6720     *N32*)
6721       LD="${LD-ld} -melf32bmipn32"
6722       ;;
6723     *64-bit*)
6724       LD="${LD-ld} -melf64bmip"
6725       ;;
6726     esac
6727    else
6728     case `/usr/bin/file conftest.$ac_objext` in
6729     *32-bit*)
6730       LD="${LD-ld} -32"
6731       ;;
6732     *N32*)
6733       LD="${LD-ld} -n32"
6734       ;;
6735     *64-bit*)
6736       LD="${LD-ld} -64"
6737       ;;
6738     esac
6739    fi
6740   fi
6741   rm -rf conftest*
6742   ;;
6743
6744 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6745   # Find out which ABI we are using.
6746   echo 'int i;' > conftest.$ac_ext
6747   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748   (eval $ac_compile) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; then
6752     case `/usr/bin/file conftest.o` in
6753     *32-bit*)
6754       case $host in
6755         x86_64-*linux*)
6756           LD="${LD-ld} -m elf_i386"
6757           ;;
6758         ppc64-*linux*|powerpc64-*linux*)
6759           LD="${LD-ld} -m elf32ppclinux"
6760           ;;
6761         s390x-*linux*)
6762           LD="${LD-ld} -m elf_s390"
6763           ;;
6764         sparc64-*linux*)
6765           LD="${LD-ld} -m elf32_sparc"
6766           ;;
6767       esac
6768       ;;
6769     *64-bit*)
6770       case $host in
6771         x86_64-*linux*)
6772           LD="${LD-ld} -m elf_x86_64"
6773           ;;
6774         ppc*-*linux*|powerpc*-*linux*)
6775           LD="${LD-ld} -m elf64ppc"
6776           ;;
6777         s390*-*linux*)
6778           LD="${LD-ld} -m elf64_s390"
6779           ;;
6780         sparc*-*linux*)
6781           LD="${LD-ld} -m elf64_sparc"
6782           ;;
6783       esac
6784       ;;
6785     esac
6786   fi
6787   rm -rf conftest*
6788   ;;
6789
6790 *-*-sco3.2v5*)
6791   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6792   SAVE_CFLAGS="$CFLAGS"
6793   CFLAGS="$CFLAGS -belf"
6794   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6795 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6796 if test "${lt_cv_cc_needs_belf+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   ac_ext=c
6800 ac_cpp='$CPP $CPPFLAGS'
6801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6804
6805      cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811
6812 int
6813 main ()
6814 {
6815
6816   ;
6817   return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (ac_try="$ac_link"
6822 case "(($ac_try" in
6823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6824   *) ac_try_echo=$ac_try;;
6825 esac
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827   (eval "$ac_link") 2>conftest.er1
6828   ac_status=$?
6829   grep -v '^ *+' conftest.er1 >conftest.err
6830   rm -f conftest.er1
6831   cat conftest.err >&5
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); } && {
6834          test -z "$ac_c_werror_flag" ||
6835          test ! -s conftest.err
6836        } && test -s conftest$ac_exeext &&
6837        $as_test_x conftest$ac_exeext; then
6838   lt_cv_cc_needs_belf=yes
6839 else
6840   echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843         lt_cv_cc_needs_belf=no
6844 fi
6845
6846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6847       conftest$ac_exeext conftest.$ac_ext
6848      ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853
6854 fi
6855 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6856 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6857   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6858     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6859     CFLAGS="$SAVE_CFLAGS"
6860   fi
6861   ;;
6862 sparc*-*solaris*)
6863   # Find out which ABI we are using.
6864   echo 'int i;' > conftest.$ac_ext
6865   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866   (eval $ac_compile) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); }; then
6870     case `/usr/bin/file conftest.o` in
6871     *64-bit*)
6872       case $lt_cv_prog_gnu_ld in
6873       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6874       *)    LD="${LD-ld} -64" ;;
6875       esac
6876       ;;
6877     esac
6878   fi
6879   rm -rf conftest*
6880   ;;
6881
6882
6883 esac
6884
6885 need_locks="$enable_libtool_lock"
6886
6887
6888
6889 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6891 if test "${ac_cv_header_stdc+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900 #include <stdlib.h>
6901 #include <stdarg.h>
6902 #include <string.h>
6903 #include <float.h>
6904
6905 int
6906 main ()
6907 {
6908
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (ac_try="$ac_compile"
6915 case "(($ac_try" in
6916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917   *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920   (eval "$ac_compile") 2>conftest.er1
6921   ac_status=$?
6922   grep -v '^ *+' conftest.er1 >conftest.err
6923   rm -f conftest.er1
6924   cat conftest.err >&5
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } && {
6927          test -z "$ac_c_werror_flag" ||
6928          test ! -s conftest.err
6929        } && test -s conftest.$ac_objext; then
6930   ac_cv_header_stdc=yes
6931 else
6932   echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935         ac_cv_header_stdc=no
6936 fi
6937
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939
6940 if test $ac_cv_header_stdc = yes; then
6941   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6942   cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h.  */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h.  */
6948 #include <string.h>
6949
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952   $EGREP "memchr" >/dev/null 2>&1; then
6953   :
6954 else
6955   ac_cv_header_stdc=no
6956 fi
6957 rm -f conftest*
6958
6959 fi
6960
6961 if test $ac_cv_header_stdc = yes; then
6962   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6963   cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969 #include <stdlib.h>
6970
6971 _ACEOF
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973   $EGREP "free" >/dev/null 2>&1; then
6974   :
6975 else
6976   ac_cv_header_stdc=no
6977 fi
6978 rm -f conftest*
6979
6980 fi
6981
6982 if test $ac_cv_header_stdc = yes; then
6983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6984   if test "$cross_compiling" = yes; then
6985   :
6986 else
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 #include <ctype.h>
6994 #include <stdlib.h>
6995 #if ((' ' & 0x0FF) == 0x020)
6996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6998 #else
6999 # define ISLOWER(c) \
7000                    (('a' <= (c) && (c) <= 'i') \
7001                      || ('j' <= (c) && (c) <= 'r') \
7002                      || ('s' <= (c) && (c) <= 'z'))
7003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7004 #endif
7005
7006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7007 int
7008 main ()
7009 {
7010   int i;
7011   for (i = 0; i < 256; i++)
7012     if (XOR (islower (i), ISLOWER (i))
7013         || toupper (i) != TOUPPER (i))
7014       return 2;
7015   return 0;
7016 }
7017 _ACEOF
7018 rm -f conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7020 case "(($ac_try" in
7021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022   *) ac_try_echo=$ac_try;;
7023 esac
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025   (eval "$ac_link") 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7029   { (case "(($ac_try" in
7030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031   *) ac_try_echo=$ac_try;;
7032 esac
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034   (eval "$ac_try") 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; }; then
7038   :
7039 else
7040   echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ( exit $ac_status )
7045 ac_cv_header_stdc=no
7046 fi
7047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7048 fi
7049
7050
7051 fi
7052 fi
7053 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7054 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7055 if test $ac_cv_header_stdc = yes; then
7056
7057 cat >>confdefs.h <<\_ACEOF
7058 #define STDC_HEADERS 1
7059 _ACEOF
7060
7061 fi
7062
7063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7074                   inttypes.h stdint.h unistd.h
7075 do
7076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 $ac_includes_default
7089
7090 #include <$ac_header>
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (ac_try="$ac_compile"
7094 case "(($ac_try" in
7095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096   *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099   (eval "$ac_compile") 2>conftest.er1
7100   ac_status=$?
7101   grep -v '^ *+' conftest.er1 >conftest.err
7102   rm -f conftest.er1
7103   cat conftest.err >&5
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } && {
7106          test -z "$ac_c_werror_flag" ||
7107          test ! -s conftest.err
7108        } && test -s conftest.$ac_objext; then
7109   eval "$as_ac_Header=yes"
7110 else
7111   echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114         eval "$as_ac_Header=no"
7115 fi
7116
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 fi
7119 ac_res=`eval echo '${'$as_ac_Header'}'`
7120                { echo "$as_me:$LINENO: result: $ac_res" >&5
7121 echo "${ECHO_T}$ac_res" >&6; }
7122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7123   cat >>confdefs.h <<_ACEOF
7124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7125 _ACEOF
7126
7127 fi
7128
7129 done
7130
7131
7132
7133 for ac_header in dlfcn.h
7134 do
7135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7137   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
7146   # Is the header compilable?
7147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 $ac_includes_default
7156 #include <$ac_header>
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162   *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165   (eval "$ac_compile") 2>conftest.er1
7166   ac_status=$?
7167   grep -v '^ *+' conftest.er1 >conftest.err
7168   rm -f conftest.er1
7169   cat conftest.err >&5
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } && {
7172          test -z "$ac_c_werror_flag" ||
7173          test ! -s conftest.err
7174        } && test -s conftest.$ac_objext; then
7175   ac_header_compiler=yes
7176 else
7177   echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180         ac_header_compiler=no
7181 fi
7182
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6; }
7186
7187 # Is the header present?
7188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 #include <$ac_header>
7197 _ACEOF
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7199 case "(($ac_try" in
7200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201   *) ac_try_echo=$ac_try;;
7202 esac
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7205   ac_status=$?
7206   grep -v '^ *+' conftest.er1 >conftest.err
7207   rm -f conftest.er1
7208   cat conftest.err >&5
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); } >/dev/null && {
7211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7212          test ! -s conftest.err
7213        }; then
7214   ac_header_preproc=yes
7215 else
7216   echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219   ac_header_preproc=no
7220 fi
7221
7222 rm -f conftest.err conftest.$ac_ext
7223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7224 echo "${ECHO_T}$ac_header_preproc" >&6; }
7225
7226 # So?  What about this header?
7227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7228   yes:no: )
7229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7233     ac_header_preproc=yes
7234     ;;
7235   no:yes:* )
7236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7248     ( cat <<\_ASBOX
7249 ## ------------------------------- ##
7250 ## Report this to nfs@lists.sf.net ##
7251 ## ------------------------------- ##
7252 _ASBOX
7253      ) | sed "s/^/$as_me: WARNING:     /" >&2
7254     ;;
7255 esac
7256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   eval "$as_ac_Header=\$ac_header_preproc"
7262 fi
7263 ac_res=`eval echo '${'$as_ac_Header'}'`
7264                { echo "$as_me:$LINENO: result: $ac_res" >&5
7265 echo "${ECHO_T}$ac_res" >&6; }
7266
7267 fi
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269   cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271 _ACEOF
7272
7273 fi
7274
7275 done
7276
7277
7278
7279 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7280     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7281     (test "X$CXX" != "Xg++"))) ; then
7282   ac_ext=cpp
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7287 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7288 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7289 if test -z "$CXXCPP"; then
7290   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293       # Double quotes because CXXCPP needs to be expanded
7294     for CXXCPP in "$CXX -E" "/lib/cpp"
7295     do
7296       ac_preproc_ok=false
7297 for ac_cxx_preproc_warn_flag in '' yes
7298 do
7299   # Use a header file that comes with gcc, so configuring glibc
7300   # with a fresh cross-compiler works.
7301   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302   # <limits.h> exists even on freestanding compilers.
7303   # On the NeXT, cc -E runs the code through the compiler's parser,
7304   # not just through cpp. "Syntax error" is here to catch this case.
7305   cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h.  */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h.  */
7311 #ifdef __STDC__
7312 # include <limits.h>
7313 #else
7314 # include <assert.h>
7315 #endif
7316                      Syntax error
7317 _ACEOF
7318 if { (ac_try="$ac_cpp conftest.$ac_ext"
7319 case "(($ac_try" in
7320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321   *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7325   ac_status=$?
7326   grep -v '^ *+' conftest.er1 >conftest.err
7327   rm -f conftest.er1
7328   cat conftest.err >&5
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } >/dev/null && {
7331          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7332          test ! -s conftest.err
7333        }; then
7334   :
7335 else
7336   echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339   # Broken: fails on valid input.
7340 continue
7341 fi
7342
7343 rm -f conftest.err conftest.$ac_ext
7344
7345   # OK, works on sane cases.  Now check whether nonexistent headers
7346   # can be detected and how.
7347   cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353 #include <ac_nonexistent.h>
7354 _ACEOF
7355 if { (ac_try="$ac_cpp conftest.$ac_ext"
7356 case "(($ac_try" in
7357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358   *) ac_try_echo=$ac_try;;
7359 esac
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } >/dev/null && {
7368          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7369          test ! -s conftest.err
7370        }; then
7371   # Broken: success on invalid input.
7372 continue
7373 else
7374   echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377   # Passes both tests.
7378 ac_preproc_ok=:
7379 break
7380 fi
7381
7382 rm -f conftest.err conftest.$ac_ext
7383
7384 done
7385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7386 rm -f conftest.err conftest.$ac_ext
7387 if $ac_preproc_ok; then
7388   break
7389 fi
7390
7391     done
7392     ac_cv_prog_CXXCPP=$CXXCPP
7393
7394 fi
7395   CXXCPP=$ac_cv_prog_CXXCPP
7396 else
7397   ac_cv_prog_CXXCPP=$CXXCPP
7398 fi
7399 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7400 echo "${ECHO_T}$CXXCPP" >&6; }
7401 ac_preproc_ok=false
7402 for ac_cxx_preproc_warn_flag in '' yes
7403 do
7404   # Use a header file that comes with gcc, so configuring glibc
7405   # with a fresh cross-compiler works.
7406   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7407   # <limits.h> exists even on freestanding compilers.
7408   # On the NeXT, cc -E runs the code through the compiler's parser,
7409   # not just through cpp. "Syntax error" is here to catch this case.
7410   cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h.  */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h.  */
7416 #ifdef __STDC__
7417 # include <limits.h>
7418 #else
7419 # include <assert.h>
7420 #endif
7421                      Syntax error
7422 _ACEOF
7423 if { (ac_try="$ac_cpp conftest.$ac_ext"
7424 case "(($ac_try" in
7425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426   *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7430   ac_status=$?
7431   grep -v '^ *+' conftest.er1 >conftest.err
7432   rm -f conftest.er1
7433   cat conftest.err >&5
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); } >/dev/null && {
7436          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7437          test ! -s conftest.err
7438        }; then
7439   :
7440 else
7441   echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444   # Broken: fails on valid input.
7445 continue
7446 fi
7447
7448 rm -f conftest.err conftest.$ac_ext
7449
7450   # OK, works on sane cases.  Now check whether nonexistent headers
7451   # can be detected and how.
7452   cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h.  */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h.  */
7458 #include <ac_nonexistent.h>
7459 _ACEOF
7460 if { (ac_try="$ac_cpp conftest.$ac_ext"
7461 case "(($ac_try" in
7462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463   *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7467   ac_status=$?
7468   grep -v '^ *+' conftest.er1 >conftest.err
7469   rm -f conftest.er1
7470   cat conftest.err >&5
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); } >/dev/null && {
7473          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7474          test ! -s conftest.err
7475        }; then
7476   # Broken: success on invalid input.
7477 continue
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482   # Passes both tests.
7483 ac_preproc_ok=:
7484 break
7485 fi
7486
7487 rm -f conftest.err conftest.$ac_ext
7488
7489 done
7490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7491 rm -f conftest.err conftest.$ac_ext
7492 if $ac_preproc_ok; then
7493   :
7494 else
7495   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7496 See \`config.log' for more details." >&5
7497 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7498 See \`config.log' for more details." >&2;}
7499    { (exit 1); exit 1; }; }
7500 fi
7501
7502 ac_ext=cpp
7503 ac_cpp='$CXXCPP $CPPFLAGS'
7504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7507
7508 fi
7509
7510
7511 ac_ext=f
7512 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7513 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7514 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7515 if test -n "$ac_tool_prefix"; then
7516   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
7517   do
7518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522 if test "${ac_cv_prog_F77+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   if test -n "$F77"; then
7526   ac_cv_prog_F77="$F77" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7535     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 F77=$ac_cv_prog_F77
7546 if test -n "$F77"; then
7547   { echo "$as_me:$LINENO: result: $F77" >&5
7548 echo "${ECHO_T}$F77" >&6; }
7549 else
7550   { echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6; }
7552 fi
7553
7554
7555     test -n "$F77" && break
7556   done
7557 fi
7558 if test -z "$F77"; then
7559   ac_ct_F77=$F77
7560   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
7561 do
7562   # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   if test -n "$ac_ct_F77"; then
7570   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577   for ac_exec_ext in '' $ac_executable_extensions; do
7578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579     ac_cv_prog_ac_ct_F77="$ac_prog"
7580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7590 if test -n "$ac_ct_F77"; then
7591   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7592 echo "${ECHO_T}$ac_ct_F77" >&6; }
7593 else
7594   { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7596 fi
7597
7598
7599   test -n "$ac_ct_F77" && break
7600 done
7601
7602   if test "x$ac_ct_F77" = x; then
7603     F77=""
7604   else
7605     case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7608 whose name does not start with the host triplet.  If you think this
7609 configuration is useful to you, please write to autoconf@gnu.org." >&5
7610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7611 whose name does not start with the host triplet.  If you think this
7612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7613 ac_tool_warned=yes ;;
7614 esac
7615     F77=$ac_ct_F77
7616   fi
7617 fi
7618
7619
7620 # Provide some information about the compiler.
7621 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7622 ac_compiler=`set X $ac_compile; echo $2`
7623 { (ac_try="$ac_compiler --version >&5"
7624 case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_compiler --version >&5") 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }
7633 { (ac_try="$ac_compiler -v >&5"
7634 case "(($ac_try" in
7635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636   *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639   (eval "$ac_compiler -v >&5") 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }
7643 { (ac_try="$ac_compiler -V >&5"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649   (eval "$ac_compiler -V >&5") 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }
7653 rm -f a.out
7654
7655 # If we don't use `.F' as extension, the preprocessor is not run on the
7656 # input file.  (Note that this only needs to work for GNU compilers.)
7657 ac_save_ext=$ac_ext
7658 ac_ext=F
7659 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7660 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7661 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   cat >conftest.$ac_ext <<_ACEOF
7665       program main
7666 #ifndef __GNUC__
7667        choke me
7668 #endif
7669
7670       end
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (ac_try="$ac_compile"
7674 case "(($ac_try" in
7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676   *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679   (eval "$ac_compile") 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } && {
7686          test -z "$ac_f77_werror_flag" ||
7687          test ! -s conftest.err
7688        } && test -s conftest.$ac_objext; then
7689   ac_compiler_gnu=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694         ac_compiler_gnu=no
7695 fi
7696
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7699
7700 fi
7701 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7702 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7703 ac_ext=$ac_save_ext
7704 ac_test_FFLAGS=${FFLAGS+set}
7705 ac_save_FFLAGS=$FFLAGS
7706 FFLAGS=
7707 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7708 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7709 if test "${ac_cv_prog_f77_g+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   FFLAGS=-g
7713 cat >conftest.$ac_ext <<_ACEOF
7714       program main
7715
7716       end
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7720 case "(($ac_try" in
7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722   *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725   (eval "$ac_compile") 2>conftest.er1
7726   ac_status=$?
7727   grep -v '^ *+' conftest.er1 >conftest.err
7728   rm -f conftest.er1
7729   cat conftest.err >&5
7730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731   (exit $ac_status); } && {
7732          test -z "$ac_f77_werror_flag" ||
7733          test ! -s conftest.err
7734        } && test -s conftest.$ac_objext; then
7735   ac_cv_prog_f77_g=yes
7736 else
7737   echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7739
7740         ac_cv_prog_f77_g=no
7741 fi
7742
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744
7745 fi
7746 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7747 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7748 if test "$ac_test_FFLAGS" = set; then
7749   FFLAGS=$ac_save_FFLAGS
7750 elif test $ac_cv_prog_f77_g = yes; then
7751   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7752     FFLAGS="-g -O2"
7753   else
7754     FFLAGS="-g"
7755   fi
7756 else
7757   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7758     FFLAGS="-O2"
7759   else
7760     FFLAGS=
7761   fi
7762 fi
7763
7764 G77=`test $ac_compiler_gnu = yes && echo yes`
7765 ac_ext=c
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771
7772
7773 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7774
7775 # find the maximum length of command line arguments
7776 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7777 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7778 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7779   echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781     i=0
7782   teststring="ABCD"
7783
7784   case $build_os in
7785   msdosdjgpp*)
7786     # On DJGPP, this test can blow up pretty badly due to problems in libc
7787     # (any single argument exceeding 2000 bytes causes a buffer overrun
7788     # during glob expansion).  Even if it were fixed, the result of this
7789     # check would be larger than it should be.
7790     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7791     ;;
7792
7793   gnu*)
7794     # Under GNU Hurd, this test is not required because there is
7795     # no limit to the length of command line arguments.
7796     # Libtool will interpret -1 as no limit whatsoever
7797     lt_cv_sys_max_cmd_len=-1;
7798     ;;
7799
7800   cygwin* | mingw*)
7801     # On Win9x/ME, this test blows up -- it succeeds, but takes
7802     # about 5 minutes as the teststring grows exponentially.
7803     # Worse, since 9x/ME are not pre-emptively multitasking,
7804     # you end up with a "frozen" computer, even though with patience
7805     # the test eventually succeeds (with a max line length of 256k).
7806     # Instead, let's just punt: use the minimum linelength reported by
7807     # all of the supported platforms: 8192 (on NT/2K/XP).
7808     lt_cv_sys_max_cmd_len=8192;
7809     ;;
7810
7811   amigaos*)
7812     # On AmigaOS with pdksh, this test takes hours, literally.
7813     # So we just punt and use a minimum line length of 8192.
7814     lt_cv_sys_max_cmd_len=8192;
7815     ;;
7816
7817   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7818     # This has been around since 386BSD, at least.  Likely further.
7819     if test -x /sbin/sysctl; then
7820       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7821     elif test -x /usr/sbin/sysctl; then
7822       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7823     else
7824       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7825     fi
7826     # And add a safety zone
7827     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7828     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7829     ;;
7830
7831   interix*)
7832     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7833     lt_cv_sys_max_cmd_len=196608
7834     ;;
7835
7836   osf*)
7837     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7838     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7839     # nice to cause kernel panics so lets avoid the loop below.
7840     # First set a reasonable default.
7841     lt_cv_sys_max_cmd_len=16384
7842     #
7843     if test -x /sbin/sysconfig; then
7844       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7845         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7846       esac
7847     fi
7848     ;;
7849   sco3.2v5*)
7850     lt_cv_sys_max_cmd_len=102400
7851     ;;
7852   sysv5* | sco5v6* | sysv4.2uw2*)
7853     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7854     if test -n "$kargmax"; then
7855       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7856     else
7857       lt_cv_sys_max_cmd_len=32768
7858     fi
7859     ;;
7860   *)
7861     # If test is not a shell built-in, we'll probably end up computing a
7862     # maximum length that is only half of the actual maximum length, but
7863     # we can't tell.
7864     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7865     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7866                = "XX$teststring") >/dev/null 2>&1 &&
7867             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7868             lt_cv_sys_max_cmd_len=$new_result &&
7869             test $i != 17 # 1/2 MB should be enough
7870     do
7871       i=`expr $i + 1`
7872       teststring=$teststring$teststring
7873     done
7874     teststring=
7875     # Add a significant safety factor because C++ compilers can tack on massive
7876     # amounts of additional arguments before passing them to the linker.
7877     # It appears as though 1/2 is a usable value.
7878     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7879     ;;
7880   esac
7881
7882 fi
7883
7884 if test -n $lt_cv_sys_max_cmd_len ; then
7885   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7886 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7887 else
7888   { echo "$as_me:$LINENO: result: none" >&5
7889 echo "${ECHO_T}none" >&6; }
7890 fi
7891
7892
7893
7894
7895 # Check for command to grab the raw symbol name followed by C symbol from nm.
7896 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7897 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7898 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901
7902 # These are sane defaults that work on at least a few old systems.
7903 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7904
7905 # Character class describing NM global symbol codes.
7906 symcode='[BCDEGRST]'
7907
7908 # Regexp to match symbols that can be accessed directly from C.
7909 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7910
7911 # Transform an extracted symbol line into a proper C declaration
7912 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7913
7914 # Transform an extracted symbol line into symbol name and symbol address
7915 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'"
7916
7917 # Define system-specific variables.
7918 case $host_os in
7919 aix*)
7920   symcode='[BCDT]'
7921   ;;
7922 cygwin* | mingw* | pw32*)
7923   symcode='[ABCDGISTW]'
7924   ;;
7925 hpux*) # Its linker distinguishes data from code symbols
7926   if test "$host_cpu" = ia64; then
7927     symcode='[ABCDEGRST]'
7928   fi
7929   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7930   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'"
7931   ;;
7932 linux* | k*bsd*-gnu)
7933   if test "$host_cpu" = ia64; then
7934     symcode='[ABCDGIRSTW]'
7935     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7936     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'"
7937   fi
7938   ;;
7939 irix* | nonstopux*)
7940   symcode='[BCDEGRST]'
7941   ;;
7942 osf*)
7943   symcode='[BCDEGQRST]'
7944   ;;
7945 solaris*)
7946   symcode='[BDRT]'
7947   ;;
7948 sco3.2v5*)
7949   symcode='[DT]'
7950   ;;
7951 sysv4.2uw2*)
7952   symcode='[DT]'
7953   ;;
7954 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7955   symcode='[ABDT]'
7956   ;;
7957 sysv4)
7958   symcode='[DFNSTU]'
7959   ;;
7960 esac
7961
7962 # Handle CRLF in mingw tool chain
7963 opt_cr=
7964 case $build_os in
7965 mingw*)
7966   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7967   ;;
7968 esac
7969
7970 # If we're using GNU nm, then use its standard symbol codes.
7971 case `$NM -V 2>&1` in
7972 *GNU* | *'with BFD'*)
7973   symcode='[ABCDGIRSTW]' ;;
7974 esac
7975
7976 # Try without a prefix undercore, then with it.
7977 for ac_symprfx in "" "_"; do
7978
7979   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7980   symxfrm="\\1 $ac_symprfx\\2 \\2"
7981
7982   # Write the raw and C identifiers.
7983   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7984
7985   # Check to see that the pipe works correctly.
7986   pipe_works=no
7987
7988   rm -f conftest*
7989   cat > conftest.$ac_ext <<EOF
7990 #ifdef __cplusplus
7991 extern "C" {
7992 #endif
7993 char nm_test_var;
7994 void nm_test_func(){}
7995 #ifdef __cplusplus
7996 }
7997 #endif
7998 int main(){nm_test_var='a';nm_test_func();return(0);}
7999 EOF
8000
8001   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8002   (eval $ac_compile) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; then
8006     # Now try to grab the symbols.
8007     nlist=conftest.nm
8008     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8009   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } && test -s "$nlist"; then
8013       # Try sorting and uniquifying the output.
8014       if sort "$nlist" | uniq > "$nlist"T; then
8015         mv -f "$nlist"T "$nlist"
8016       else
8017         rm -f "$nlist"T
8018       fi
8019
8020       # Make sure that we snagged all the symbols we need.
8021       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8022         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8023           cat <<EOF > conftest.$ac_ext
8024 #ifdef __cplusplus
8025 extern "C" {
8026 #endif
8027
8028 EOF
8029           # Now generate the symbol file.
8030           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8031
8032           cat <<EOF >> conftest.$ac_ext
8033 #if defined (__STDC__) && __STDC__
8034 # define lt_ptr_t void *
8035 #else
8036 # define lt_ptr_t char *
8037 # define const
8038 #endif
8039
8040 /* The mapping between symbol names and symbols. */
8041 const struct {
8042   const char *name;
8043   lt_ptr_t address;
8044 }
8045 lt_preloaded_symbols[] =
8046 {
8047 EOF
8048           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8049           cat <<\EOF >> conftest.$ac_ext
8050   {0, (lt_ptr_t) 0}
8051 };
8052
8053 #ifdef __cplusplus
8054 }
8055 #endif
8056 EOF
8057           # Now try linking the two files.
8058           mv conftest.$ac_objext conftstm.$ac_objext
8059           lt_save_LIBS="$LIBS"
8060           lt_save_CFLAGS="$CFLAGS"
8061           LIBS="conftstm.$ac_objext"
8062           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8063           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064   (eval $ac_link) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8068             pipe_works=yes
8069           fi
8070           LIBS="$lt_save_LIBS"
8071           CFLAGS="$lt_save_CFLAGS"
8072         else
8073           echo "cannot find nm_test_func in $nlist" >&5
8074         fi
8075       else
8076         echo "cannot find nm_test_var in $nlist" >&5
8077       fi
8078     else
8079       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8080     fi
8081   else
8082     echo "$progname: failed program was:" >&5
8083     cat conftest.$ac_ext >&5
8084   fi
8085   rm -f conftest* conftst*
8086
8087   # Do not use the global_symbol_pipe unless it works.
8088   if test "$pipe_works" = yes; then
8089     break
8090   else
8091     lt_cv_sys_global_symbol_pipe=
8092   fi
8093 done
8094
8095 fi
8096
8097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8098   lt_cv_sys_global_symbol_to_cdecl=
8099 fi
8100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8101   { echo "$as_me:$LINENO: result: failed" >&5
8102 echo "${ECHO_T}failed" >&6; }
8103 else
8104   { echo "$as_me:$LINENO: result: ok" >&5
8105 echo "${ECHO_T}ok" >&6; }
8106 fi
8107
8108 { echo "$as_me:$LINENO: checking for objdir" >&5
8109 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8110 if test "${lt_cv_objdir+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   rm -f .libs 2>/dev/null
8114 mkdir .libs 2>/dev/null
8115 if test -d .libs; then
8116   lt_cv_objdir=.libs
8117 else
8118   # MS-DOS does not allow filenames that begin with a dot.
8119   lt_cv_objdir=_libs
8120 fi
8121 rmdir .libs 2>/dev/null
8122 fi
8123 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8124 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8125 objdir=$lt_cv_objdir
8126
8127
8128
8129
8130
8131 case $host_os in
8132 aix3*)
8133   # AIX sometimes has problems with the GCC collect2 program.  For some
8134   # reason, if we set the COLLECT_NAMES environment variable, the problems
8135   # vanish in a puff of smoke.
8136   if test "X${COLLECT_NAMES+set}" != Xset; then
8137     COLLECT_NAMES=
8138     export COLLECT_NAMES
8139   fi
8140   ;;
8141 esac
8142
8143 # Sed substitution that helps us do robust quoting.  It backslashifies
8144 # metacharacters that are still active within double-quoted strings.
8145 Xsed='sed -e 1s/^X//'
8146 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8147
8148 # Same as above, but do not quote variable references.
8149 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8150
8151 # Sed substitution to delay expansion of an escaped shell variable in a
8152 # double_quote_subst'ed string.
8153 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8154
8155 # Sed substitution to avoid accidental globbing in evaled expressions
8156 no_glob_subst='s/\*/\\\*/g'
8157
8158 # Constants:
8159 rm="rm -f"
8160
8161 # Global variables:
8162 default_ofile=libtool
8163 can_build_shared=yes
8164
8165 # All known linkers require a `.a' archive for static linking (except MSVC,
8166 # which needs '.lib').
8167 libext=a
8168 ltmain="$ac_aux_dir/ltmain.sh"
8169 ofile="$default_ofile"
8170 with_gnu_ld="$lt_cv_prog_gnu_ld"
8171
8172 if test -n "$ac_tool_prefix"; then
8173   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}ar; ac_word=$2
8175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8177 if test "${ac_cv_prog_AR+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   if test -n "$AR"; then
8181   ac_cv_prog_AR="$AR" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188   for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_prog_AR="${ac_tool_prefix}ar"
8191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 AR=$ac_cv_prog_AR
8201 if test -n "$AR"; then
8202   { echo "$as_me:$LINENO: result: $AR" >&5
8203 echo "${ECHO_T}$AR" >&6; }
8204 else
8205   { echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6; }
8207 fi
8208
8209
8210 fi
8211 if test -z "$ac_cv_prog_AR"; then
8212   ac_ct_AR=$AR
8213   # Extract the first word of "ar", so it can be a program name with args.
8214 set dummy ar; ac_word=$2
8215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8218   echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220   if test -n "$ac_ct_AR"; then
8221   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228   for ac_exec_ext in '' $ac_executable_extensions; do
8229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230     ac_cv_prog_ac_ct_AR="ar"
8231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235 done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8241 if test -n "$ac_ct_AR"; then
8242   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8243 echo "${ECHO_T}$ac_ct_AR" >&6; }
8244 else
8245   { echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6; }
8247 fi
8248
8249   if test "x$ac_ct_AR" = x; then
8250     AR="false"
8251   else
8252     case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8255 whose name does not start with the host triplet.  If you think this
8256 configuration is useful to you, please write to autoconf@gnu.org." >&5
8257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8258 whose name does not start with the host triplet.  If you think this
8259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262     AR=$ac_ct_AR
8263   fi
8264 else
8265   AR="$ac_cv_prog_AR"
8266 fi
8267
8268 if test -n "$ac_tool_prefix"; then
8269   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273 if test "${ac_cv_prog_RANLIB+set}" = set; then
8274   echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276   if test -n "$RANLIB"; then
8277   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282   IFS=$as_save_IFS
8283   test -z "$as_dir" && as_dir=.
8284   for ac_exec_ext in '' $ac_executable_extensions; do
8285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8288     break 2
8289   fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 RANLIB=$ac_cv_prog_RANLIB
8297 if test -n "$RANLIB"; then
8298   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8299 echo "${ECHO_T}$RANLIB" >&6; }
8300 else
8301   { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8303 fi
8304
8305
8306 fi
8307 if test -z "$ac_cv_prog_RANLIB"; then
8308   ac_ct_RANLIB=$RANLIB
8309   # Extract the first word of "ranlib", so it can be a program name with args.
8310 set dummy ranlib; ac_word=$2
8311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8313 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   if test -n "$ac_ct_RANLIB"; then
8317   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8321 do
8322   IFS=$as_save_IFS
8323   test -z "$as_dir" && as_dir=.
8324   for ac_exec_ext in '' $ac_executable_extensions; do
8325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326     ac_cv_prog_ac_ct_RANLIB="ranlib"
8327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328     break 2
8329   fi
8330 done
8331 done
8332 IFS=$as_save_IFS
8333
8334 fi
8335 fi
8336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8337 if test -n "$ac_ct_RANLIB"; then
8338   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8339 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8340 else
8341   { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8343 fi
8344
8345   if test "x$ac_ct_RANLIB" = x; then
8346     RANLIB=":"
8347   else
8348     case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8351 whose name does not start with the host triplet.  If you think this
8352 configuration is useful to you, please write to autoconf@gnu.org." >&5
8353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8354 whose name does not start with the host triplet.  If you think this
8355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8356 ac_tool_warned=yes ;;
8357 esac
8358     RANLIB=$ac_ct_RANLIB
8359   fi
8360 else
8361   RANLIB="$ac_cv_prog_RANLIB"
8362 fi
8363
8364 if test -n "$ac_tool_prefix"; then
8365   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8366 set dummy ${ac_tool_prefix}strip; ac_word=$2
8367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8369 if test "${ac_cv_prog_STRIP+set}" = set; then
8370   echo $ECHO_N "(cached) $ECHO_C" >&6
8371 else
8372   if test -n "$STRIP"; then
8373   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380   for ac_exec_ext in '' $ac_executable_extensions; do
8381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 STRIP=$ac_cv_prog_STRIP
8393 if test -n "$STRIP"; then
8394   { echo "$as_me:$LINENO: result: $STRIP" >&5
8395 echo "${ECHO_T}$STRIP" >&6; }
8396 else
8397   { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8399 fi
8400
8401
8402 fi
8403 if test -z "$ac_cv_prog_STRIP"; then
8404   ac_ct_STRIP=$STRIP
8405   # Extract the first word of "strip", so it can be a program name with args.
8406 set dummy strip; ac_word=$2
8407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   if test -n "$ac_ct_STRIP"; then
8413   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420   for ac_exec_ext in '' $ac_executable_extensions; do
8421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422     ac_cv_prog_ac_ct_STRIP="strip"
8423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8433 if test -n "$ac_ct_STRIP"; then
8434   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8435 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8436 else
8437   { echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6; }
8439 fi
8440
8441   if test "x$ac_ct_STRIP" = x; then
8442     STRIP=":"
8443   else
8444     case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&5
8449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet.  If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8452 ac_tool_warned=yes ;;
8453 esac
8454     STRIP=$ac_ct_STRIP
8455   fi
8456 else
8457   STRIP="$ac_cv_prog_STRIP"
8458 fi
8459
8460
8461 old_CC="$CC"
8462 old_CFLAGS="$CFLAGS"
8463
8464 # Set sane defaults for various variables
8465 test -z "$AR" && AR=ar
8466 test -z "$AR_FLAGS" && AR_FLAGS=cru
8467 test -z "$AS" && AS=as
8468 test -z "$CC" && CC=cc
8469 test -z "$LTCC" && LTCC=$CC
8470 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8471 test -z "$DLLTOOL" && DLLTOOL=dlltool
8472 test -z "$LD" && LD=ld
8473 test -z "$LN_S" && LN_S="ln -s"
8474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8475 test -z "$NM" && NM=nm
8476 test -z "$SED" && SED=sed
8477 test -z "$OBJDUMP" && OBJDUMP=objdump
8478 test -z "$RANLIB" && RANLIB=:
8479 test -z "$STRIP" && STRIP=:
8480 test -z "$ac_objext" && ac_objext=o
8481
8482 # Determine commands to create old-style static archives.
8483 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8484 old_postinstall_cmds='chmod 644 $oldlib'
8485 old_postuninstall_cmds=
8486
8487 if test -n "$RANLIB"; then
8488   case $host_os in
8489   openbsd*)
8490     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8491     ;;
8492   *)
8493     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8494     ;;
8495   esac
8496   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8497 fi
8498
8499 for cc_temp in $compiler""; do
8500   case $cc_temp in
8501     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8502     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8503     \-*) ;;
8504     *) break;;
8505   esac
8506 done
8507 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8508
8509
8510 # Only perform the check for file, if the check method requires it
8511 case $deplibs_check_method in
8512 file_magic*)
8513   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8514     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8515 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8516 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   case $MAGIC_CMD in
8520 [\\/*] |  ?:[\\/]*)
8521   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522   ;;
8523 *)
8524   lt_save_MAGIC_CMD="$MAGIC_CMD"
8525   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527   for ac_dir in $ac_dummy; do
8528     IFS="$lt_save_ifs"
8529     test -z "$ac_dir" && ac_dir=.
8530     if test -f $ac_dir/${ac_tool_prefix}file; then
8531       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8532       if test -n "$file_magic_test_file"; then
8533         case $deplibs_check_method in
8534         "file_magic "*)
8535           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538             $EGREP "$file_magic_regex" > /dev/null; then
8539             :
8540           else
8541             cat <<EOF 1>&2
8542
8543 *** Warning: the command libtool uses to detect shared libraries,
8544 *** $file_magic_cmd, produces output that libtool cannot recognize.
8545 *** The result is that libtool may fail to recognize shared libraries
8546 *** as such.  This will affect the creation of libtool libraries that
8547 *** depend on shared libraries, but programs linked with such libtool
8548 *** libraries will work regardless of this problem.  Nevertheless, you
8549 *** may want to report the problem to your system manager and/or to
8550 *** bug-libtool@gnu.org
8551
8552 EOF
8553           fi ;;
8554         esac
8555       fi
8556       break
8557     fi
8558   done
8559   IFS="$lt_save_ifs"
8560   MAGIC_CMD="$lt_save_MAGIC_CMD"
8561   ;;
8562 esac
8563 fi
8564
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if test -n "$MAGIC_CMD"; then
8567   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8568 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8569 else
8570   { echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6; }
8572 fi
8573
8574 if test -z "$lt_cv_path_MAGIC_CMD"; then
8575   if test -n "$ac_tool_prefix"; then
8576     { echo "$as_me:$LINENO: checking for file" >&5
8577 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   case $MAGIC_CMD in
8582 [\\/*] |  ?:[\\/]*)
8583   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8584   ;;
8585 *)
8586   lt_save_MAGIC_CMD="$MAGIC_CMD"
8587   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8588   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8589   for ac_dir in $ac_dummy; do
8590     IFS="$lt_save_ifs"
8591     test -z "$ac_dir" && ac_dir=.
8592     if test -f $ac_dir/file; then
8593       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8594       if test -n "$file_magic_test_file"; then
8595         case $deplibs_check_method in
8596         "file_magic "*)
8597           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8598           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8599           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8600             $EGREP "$file_magic_regex" > /dev/null; then
8601             :
8602           else
8603             cat <<EOF 1>&2
8604
8605 *** Warning: the command libtool uses to detect shared libraries,
8606 *** $file_magic_cmd, produces output that libtool cannot recognize.
8607 *** The result is that libtool may fail to recognize shared libraries
8608 *** as such.  This will affect the creation of libtool libraries that
8609 *** depend on shared libraries, but programs linked with such libtool
8610 *** libraries will work regardless of this problem.  Nevertheless, you
8611 *** may want to report the problem to your system manager and/or to
8612 *** bug-libtool@gnu.org
8613
8614 EOF
8615           fi ;;
8616         esac
8617       fi
8618       break
8619     fi
8620   done
8621   IFS="$lt_save_ifs"
8622   MAGIC_CMD="$lt_save_MAGIC_CMD"
8623   ;;
8624 esac
8625 fi
8626
8627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628 if test -n "$MAGIC_CMD"; then
8629   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8630 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8631 else
8632   { echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6; }
8634 fi
8635
8636   else
8637     MAGIC_CMD=:
8638   fi
8639 fi
8640
8641   fi
8642   ;;
8643 esac
8644
8645 enable_dlopen=no
8646 enable_win32_dll=no
8647
8648 # Check whether --enable-libtool-lock was given.
8649 if test "${enable_libtool_lock+set}" = set; then
8650   enableval=$enable_libtool_lock;
8651 fi
8652
8653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8654
8655
8656 # Check whether --with-pic was given.
8657 if test "${with_pic+set}" = set; then
8658   withval=$with_pic; pic_mode="$withval"
8659 else
8660   pic_mode=default
8661 fi
8662
8663 test -z "$pic_mode" && pic_mode=default
8664
8665 # Use C for the default configuration in the libtool script
8666 tagname=
8667 lt_save_CC="$CC"
8668 ac_ext=c
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8673
8674
8675 # Source file extension for C test sources.
8676 ac_ext=c
8677
8678 # Object file extension for compiled C test sources.
8679 objext=o
8680 objext=$objext
8681
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;\n"
8684
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}\n'
8687
8688
8689 # If no C compiler was specified, use CC.
8690 LTCC=${LTCC-"$CC"}
8691
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8694
8695 # Allow CC to be a program name with arguments.
8696 compiler=$CC
8697
8698
8699 # save warnings/boilerplate of simple test code
8700 ac_outfile=conftest.$ac_objext
8701 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8702 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703 _lt_compiler_boilerplate=`cat conftest.err`
8704 $rm conftest*
8705
8706 ac_outfile=conftest.$ac_objext
8707 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8708 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8709 _lt_linker_boilerplate=`cat conftest.err`
8710 $rm conftest*
8711
8712
8713
8714 lt_prog_compiler_no_builtin_flag=
8715
8716 if test "$GCC" = yes; then
8717   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8718
8719
8720 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8722 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725   lt_cv_prog_compiler_rtti_exceptions=no
8726   ac_outfile=conftest.$ac_objext
8727    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8728    lt_compiler_flag="-fno-rtti -fno-exceptions"
8729    # Insert the option either (1) after the last *FLAGS variable, or
8730    # (2) before a word containing "conftest.", or (3) at the end.
8731    # Note that $ac_compile itself does not contain backslashes and begins
8732    # with a dollar sign (not a hyphen), so the echo should work correctly.
8733    # The option is referenced via a variable to avoid confusing sed.
8734    lt_compile=`echo "$ac_compile" | $SED \
8735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737    -e 's:$: $lt_compiler_flag:'`
8738    (eval echo "\"\$as_me:8738: $lt_compile\"" >&5)
8739    (eval "$lt_compile" 2>conftest.err)
8740    ac_status=$?
8741    cat conftest.err >&5
8742    echo "$as_me:8742: \$? = $ac_status" >&5
8743    if (exit $ac_status) && test -s "$ac_outfile"; then
8744      # The compiler can only warn and ignore the option if not recognized
8745      # So say no if there are warnings other than the usual output.
8746      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8747      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749        lt_cv_prog_compiler_rtti_exceptions=yes
8750      fi
8751    fi
8752    $rm conftest*
8753
8754 fi
8755 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8757
8758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8760 else
8761     :
8762 fi
8763
8764 fi
8765
8766 lt_prog_compiler_wl=
8767 lt_prog_compiler_pic=
8768 lt_prog_compiler_static=
8769
8770 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8771 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8772
8773   if test "$GCC" = yes; then
8774     lt_prog_compiler_wl='-Wl,'
8775     lt_prog_compiler_static='-static'
8776
8777     case $host_os in
8778       aix*)
8779       # All AIX code is PIC.
8780       if test "$host_cpu" = ia64; then
8781         # AIX 5 now supports IA64 processor
8782         lt_prog_compiler_static='-Bstatic'
8783       fi
8784       ;;
8785
8786     amigaos*)
8787       # FIXME: we need at least 68020 code to build shared libraries, but
8788       # adding the `-m68020' flag to GCC prevents building anything better,
8789       # like `-m68040'.
8790       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8791       ;;
8792
8793     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8794       # PIC is the default for these OSes.
8795       ;;
8796
8797     mingw* | pw32* | os2*)
8798       # This hack is so that the source file can tell whether it is being
8799       # built for inclusion in a dll (and should export symbols for example).
8800       lt_prog_compiler_pic='-DDLL_EXPORT'
8801       ;;
8802
8803     darwin* | rhapsody*)
8804       # PIC is the default on this platform
8805       # Common symbols not allowed in MH_DYLIB files
8806       lt_prog_compiler_pic='-fno-common'
8807       ;;
8808
8809     interix3*)
8810       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8811       # Instead, we relocate shared libraries at runtime.
8812       ;;
8813
8814     msdosdjgpp*)
8815       # Just because we use GCC doesn't mean we suddenly get shared libraries
8816       # on systems that don't support them.
8817       lt_prog_compiler_can_build_shared=no
8818       enable_shared=no
8819       ;;
8820
8821     sysv4*MP*)
8822       if test -d /usr/nec; then
8823         lt_prog_compiler_pic=-Kconform_pic
8824       fi
8825       ;;
8826
8827     hpux*)
8828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8829       # not for PA HP-UX.
8830       case $host_cpu in
8831       hppa*64*|ia64*)
8832         # +Z the default
8833         ;;
8834       *)
8835         lt_prog_compiler_pic='-fPIC'
8836         ;;
8837       esac
8838       ;;
8839
8840     *)
8841       lt_prog_compiler_pic='-fPIC'
8842       ;;
8843     esac
8844   else
8845     # PORTME Check for flag to pass linker flags through the system compiler.
8846     case $host_os in
8847     aix*)
8848       lt_prog_compiler_wl='-Wl,'
8849       if test "$host_cpu" = ia64; then
8850         # AIX 5 now supports IA64 processor
8851         lt_prog_compiler_static='-Bstatic'
8852       else
8853         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8854       fi
8855       ;;
8856       darwin*)
8857         # PIC is the default on this platform
8858         # Common symbols not allowed in MH_DYLIB files
8859        case $cc_basename in
8860          xlc*)
8861          lt_prog_compiler_pic='-qnocommon'
8862          lt_prog_compiler_wl='-Wl,'
8863          ;;
8864        esac
8865        ;;
8866
8867     mingw* | pw32* | os2*)
8868       # This hack is so that the source file can tell whether it is being
8869       # built for inclusion in a dll (and should export symbols for example).
8870       lt_prog_compiler_pic='-DDLL_EXPORT'
8871       ;;
8872
8873     hpux9* | hpux10* | hpux11*)
8874       lt_prog_compiler_wl='-Wl,'
8875       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8876       # not for PA HP-UX.
8877       case $host_cpu in
8878       hppa*64*|ia64*)
8879         # +Z the default
8880         ;;
8881       *)
8882         lt_prog_compiler_pic='+Z'
8883         ;;
8884       esac
8885       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886       lt_prog_compiler_static='${wl}-a ${wl}archive'
8887       ;;
8888
8889     irix5* | irix6* | nonstopux*)
8890       lt_prog_compiler_wl='-Wl,'
8891       # PIC (with -KPIC) is the default.
8892       lt_prog_compiler_static='-non_shared'
8893       ;;
8894
8895     newsos6)
8896       lt_prog_compiler_pic='-KPIC'
8897       lt_prog_compiler_static='-Bstatic'
8898       ;;
8899
8900     linux* | k*bsd*-gnu)
8901       case $cc_basename in
8902       icc* | ecc*)
8903         lt_prog_compiler_wl='-Wl,'
8904         lt_prog_compiler_pic='-KPIC'
8905         lt_prog_compiler_static='-static'
8906         ;;
8907       pgcc* | pgf77* | pgf90* | pgf95*)
8908         # Portland Group compilers (*not* the Pentium gcc compiler,
8909         # which looks to be a dead project)
8910         lt_prog_compiler_wl='-Wl,'
8911         lt_prog_compiler_pic='-fpic'
8912         lt_prog_compiler_static='-Bstatic'
8913         ;;
8914       ccc*)
8915         lt_prog_compiler_wl='-Wl,'
8916         # All Alpha code is PIC.
8917         lt_prog_compiler_static='-non_shared'
8918         ;;
8919       esac
8920       ;;
8921
8922     osf3* | osf4* | osf5*)
8923       lt_prog_compiler_wl='-Wl,'
8924       # All OSF/1 code is PIC.
8925       lt_prog_compiler_static='-non_shared'
8926       ;;
8927
8928     solaris*)
8929       lt_prog_compiler_pic='-KPIC'
8930       lt_prog_compiler_static='-Bstatic'
8931       case $cc_basename in
8932       f77* | f90* | f95*)
8933         lt_prog_compiler_wl='-Qoption ld ';;
8934       *)
8935         lt_prog_compiler_wl='-Wl,';;
8936       esac
8937       ;;
8938
8939     sunos4*)
8940       lt_prog_compiler_wl='-Qoption ld '
8941       lt_prog_compiler_pic='-PIC'
8942       lt_prog_compiler_static='-Bstatic'
8943       ;;
8944
8945     sysv4 | sysv4.2uw2* | sysv4.3*)
8946       lt_prog_compiler_wl='-Wl,'
8947       lt_prog_compiler_pic='-KPIC'
8948       lt_prog_compiler_static='-Bstatic'
8949       ;;
8950
8951     sysv4*MP*)
8952       if test -d /usr/nec ;then
8953         lt_prog_compiler_pic='-Kconform_pic'
8954         lt_prog_compiler_static='-Bstatic'
8955       fi
8956       ;;
8957
8958     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8959       lt_prog_compiler_wl='-Wl,'
8960       lt_prog_compiler_pic='-KPIC'
8961       lt_prog_compiler_static='-Bstatic'
8962       ;;
8963
8964     unicos*)
8965       lt_prog_compiler_wl='-Wl,'
8966       lt_prog_compiler_can_build_shared=no
8967       ;;
8968
8969     uts4*)
8970       lt_prog_compiler_pic='-pic'
8971       lt_prog_compiler_static='-Bstatic'
8972       ;;
8973
8974     *)
8975       lt_prog_compiler_can_build_shared=no
8976       ;;
8977     esac
8978   fi
8979
8980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8981 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8982
8983 #
8984 # Check to make sure the PIC flag actually works.
8985 #
8986 if test -n "$lt_prog_compiler_pic"; then
8987
8988 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8990 if test "${lt_prog_compiler_pic_works+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993   lt_prog_compiler_pic_works=no
8994   ac_outfile=conftest.$ac_objext
8995    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8996    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8997    # Insert the option either (1) after the last *FLAGS variable, or
8998    # (2) before a word containing "conftest.", or (3) at the end.
8999    # Note that $ac_compile itself does not contain backslashes and begins
9000    # with a dollar sign (not a hyphen), so the echo should work correctly.
9001    # The option is referenced via a variable to avoid confusing sed.
9002    lt_compile=`echo "$ac_compile" | $SED \
9003    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005    -e 's:$: $lt_compiler_flag:'`
9006    (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
9007    (eval "$lt_compile" 2>conftest.err)
9008    ac_status=$?
9009    cat conftest.err >&5
9010    echo "$as_me:9010: \$? = $ac_status" >&5
9011    if (exit $ac_status) && test -s "$ac_outfile"; then
9012      # The compiler can only warn and ignore the option if not recognized
9013      # So say no if there are warnings other than the usual output.
9014      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9015      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9017        lt_prog_compiler_pic_works=yes
9018      fi
9019    fi
9020    $rm conftest*
9021
9022 fi
9023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9024 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9025
9026 if test x"$lt_prog_compiler_pic_works" = xyes; then
9027     case $lt_prog_compiler_pic in
9028      "" | " "*) ;;
9029      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9030      esac
9031 else
9032     lt_prog_compiler_pic=
9033      lt_prog_compiler_can_build_shared=no
9034 fi
9035
9036 fi
9037 case $host_os in
9038   # For platforms which do not support PIC, -DPIC is meaningless:
9039   *djgpp*)
9040     lt_prog_compiler_pic=
9041     ;;
9042   *)
9043     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9044     ;;
9045 esac
9046
9047 #
9048 # Check to make sure the static flag actually works.
9049 #
9050 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9051 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9052 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9053 if test "${lt_prog_compiler_static_works+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   lt_prog_compiler_static_works=no
9057    save_LDFLAGS="$LDFLAGS"
9058    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9059    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9060    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9061      # The linker can only warn and ignore the option if not recognized
9062      # So say no if there are warnings
9063      if test -s conftest.err; then
9064        # Append any errors to the config.log.
9065        cat conftest.err 1>&5
9066        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9067        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9068        if diff conftest.exp conftest.er2 >/dev/null; then
9069          lt_prog_compiler_static_works=yes
9070        fi
9071      else
9072        lt_prog_compiler_static_works=yes
9073      fi
9074    fi
9075    $rm conftest*
9076    LDFLAGS="$save_LDFLAGS"
9077
9078 fi
9079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9080 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9081
9082 if test x"$lt_prog_compiler_static_works" = xyes; then
9083     :
9084 else
9085     lt_prog_compiler_static=
9086 fi
9087
9088
9089 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9090 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9091 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   lt_cv_prog_compiler_c_o=no
9095    $rm -r conftest 2>/dev/null
9096    mkdir conftest
9097    cd conftest
9098    mkdir out
9099    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9100
9101    lt_compiler_flag="-o out/conftest2.$ac_objext"
9102    # Insert the option either (1) after the last *FLAGS variable, or
9103    # (2) before a word containing "conftest.", or (3) at the end.
9104    # Note that $ac_compile itself does not contain backslashes and begins
9105    # with a dollar sign (not a hyphen), so the echo should work correctly.
9106    lt_compile=`echo "$ac_compile" | $SED \
9107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109    -e 's:$: $lt_compiler_flag:'`
9110    (eval echo "\"\$as_me:9110: $lt_compile\"" >&5)
9111    (eval "$lt_compile" 2>out/conftest.err)
9112    ac_status=$?
9113    cat out/conftest.err >&5
9114    echo "$as_me:9114: \$? = $ac_status" >&5
9115    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9116    then
9117      # The compiler can only warn and ignore the option if not recognized
9118      # So say no if there are warnings
9119      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9120      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9121      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9122        lt_cv_prog_compiler_c_o=yes
9123      fi
9124    fi
9125    chmod u+w . 2>&5
9126    $rm conftest*
9127    # SGI C++ compiler will create directory out/ii_files/ for
9128    # template instantiation
9129    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9130    $rm out/* && rmdir out
9131    cd ..
9132    rmdir conftest
9133    $rm conftest*
9134
9135 fi
9136 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9137 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9138
9139
9140 hard_links="nottested"
9141 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9142   # do not overwrite the value of need_locks provided by the user
9143   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9144 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9145   hard_links=yes
9146   $rm conftest*
9147   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9148   touch conftest.a
9149   ln conftest.a conftest.b 2>&5 || hard_links=no
9150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9151   { echo "$as_me:$LINENO: result: $hard_links" >&5
9152 echo "${ECHO_T}$hard_links" >&6; }
9153   if test "$hard_links" = no; then
9154     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9155 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9156     need_locks=warn
9157   fi
9158 else
9159   need_locks=no
9160 fi
9161
9162 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9163 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9164
9165   runpath_var=
9166   allow_undefined_flag=
9167   enable_shared_with_static_runtimes=no
9168   archive_cmds=
9169   archive_expsym_cmds=
9170   old_archive_From_new_cmds=
9171   old_archive_from_expsyms_cmds=
9172   export_dynamic_flag_spec=
9173   whole_archive_flag_spec=
9174   thread_safe_flag_spec=
9175   hardcode_libdir_flag_spec=
9176   hardcode_libdir_flag_spec_ld=
9177   hardcode_libdir_separator=
9178   hardcode_direct=no
9179   hardcode_minus_L=no
9180   hardcode_shlibpath_var=unsupported
9181   link_all_deplibs=unknown
9182   hardcode_automatic=no
9183   module_cmds=
9184   module_expsym_cmds=
9185   always_export_symbols=no
9186   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9187   # include_expsyms should be a list of space-separated symbols to be *always*
9188   # included in the symbol list
9189   include_expsyms=
9190   # exclude_expsyms can be an extended regexp of symbols to exclude
9191   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9192   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9193   # as well as any symbol that contains `d'.
9194   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9195   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9196   # platforms (ab)use it in PIC code, but their linkers get confused if
9197   # the symbol is explicitly referenced.  Since portable code cannot
9198   # rely on this symbol name, it's probably fine to never include it in
9199   # preloaded symbol tables.
9200   extract_expsyms_cmds=
9201   # Just being paranoid about ensuring that cc_basename is set.
9202   for cc_temp in $compiler""; do
9203   case $cc_temp in
9204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9206     \-*) ;;
9207     *) break;;
9208   esac
9209 done
9210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9211
9212   case $host_os in
9213   cygwin* | mingw* | pw32*)
9214     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9215     # When not using gcc, we currently assume that we are using
9216     # Microsoft Visual C++.
9217     if test "$GCC" != yes; then
9218       with_gnu_ld=no
9219     fi
9220     ;;
9221   interix*)
9222     # we just hope/assume this is gcc and not c89 (= MSVC++)
9223     with_gnu_ld=yes
9224     ;;
9225   openbsd*)
9226     with_gnu_ld=no
9227     ;;
9228   esac
9229
9230   ld_shlibs=yes
9231   if test "$with_gnu_ld" = yes; then
9232     # If archive_cmds runs LD, not CC, wlarc should be empty
9233     wlarc='${wl}'
9234
9235     # Set some defaults for GNU ld with shared library support. These
9236     # are reset later if shared libraries are not supported. Putting them
9237     # here allows them to be overridden if necessary.
9238     runpath_var=LD_RUN_PATH
9239     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9240     export_dynamic_flag_spec='${wl}--export-dynamic'
9241     # ancient GNU ld didn't support --whole-archive et. al.
9242     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9243         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9244       else
9245         whole_archive_flag_spec=
9246     fi
9247     supports_anon_versioning=no
9248     case `$LD -v 2>/dev/null` in
9249       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252       *\ 2.11.*) ;; # other 2.11 versions
9253       *) supports_anon_versioning=yes ;;
9254     esac
9255
9256     # See if GNU ld supports shared libraries.
9257     case $host_os in
9258     aix3* | aix4* | aix5*)
9259       # On AIX/PPC, the GNU linker is very broken
9260       if test "$host_cpu" != ia64; then
9261         ld_shlibs=no
9262         cat <<EOF 1>&2
9263
9264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9265 *** to be unable to reliably create shared libraries on AIX.
9266 *** Therefore, libtool is disabling shared libraries support.  If you
9267 *** really care for shared libraries, you may want to modify your PATH
9268 *** so that a non-GNU linker is found, and then restart.
9269
9270 EOF
9271       fi
9272       ;;
9273
9274     amigaos*)
9275       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)'
9276       hardcode_libdir_flag_spec='-L$libdir'
9277       hardcode_minus_L=yes
9278
9279       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9280       # that the semantics of dynamic libraries on AmigaOS, at least up
9281       # to version 4, is to share data among multiple programs linked
9282       # with the same dynamic library.  Since this doesn't match the
9283       # behavior of shared libraries on other platforms, we can't use
9284       # them.
9285       ld_shlibs=no
9286       ;;
9287
9288     beos*)
9289       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9290         allow_undefined_flag=unsupported
9291         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9292         # support --undefined.  This deserves some investigation.  FIXME
9293         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294       else
9295         ld_shlibs=no
9296       fi
9297       ;;
9298
9299     cygwin* | mingw* | pw32*)
9300       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9301       # as there is no search path for DLLs.
9302       hardcode_libdir_flag_spec='-L$libdir'
9303       allow_undefined_flag=unsupported
9304       always_export_symbols=no
9305       enable_shared_with_static_runtimes=yes
9306       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9307
9308       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9309         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9310         # If the export-symbols file already is a .def file (1st line
9311         # is EXPORTS), use it as is; otherwise, prepend...
9312         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9313           cp $export_symbols $output_objdir/$soname.def;
9314         else
9315           echo EXPORTS > $output_objdir/$soname.def;
9316           cat $export_symbols >> $output_objdir/$soname.def;
9317         fi~
9318         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319       else
9320         ld_shlibs=no
9321       fi
9322       ;;
9323
9324     interix3*)
9325       hardcode_direct=no
9326       hardcode_shlibpath_var=no
9327       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328       export_dynamic_flag_spec='${wl}-E'
9329       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9330       # Instead, shared libraries are loaded at an image base (0x10000000 by
9331       # default) and relocated if they conflict, which is a slow very memory
9332       # consuming and fragmenting process.  To avoid this, we pick a random,
9333       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9334       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9335       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9336       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'
9337       ;;
9338
9339     linux* | k*bsd*-gnu)
9340       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9341         tmp_addflag=
9342         case $cc_basename,$host_cpu in
9343         pgcc*)                          # Portland Group C compiler
9344           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'
9345           tmp_addflag=' $pic_flag'
9346           ;;
9347         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9348           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'
9349           tmp_addflag=' $pic_flag -Mnomain' ;;
9350         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9351           tmp_addflag=' -i_dynamic' ;;
9352         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9353           tmp_addflag=' -i_dynamic -nofor_main' ;;
9354         ifc* | ifort*)                  # Intel Fortran compiler
9355           tmp_addflag=' -nofor_main' ;;
9356         esac
9357         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358
9359         if test $supports_anon_versioning = yes; then
9360           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9361   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9362   $echo "local: *; };" >> $output_objdir/$libname.ver~
9363           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9364         fi
9365         link_all_deplibs=no
9366       else
9367         ld_shlibs=no
9368       fi
9369       ;;
9370
9371     netbsd* | netbsdelf*-gnu)
9372       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9373         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9374         wlarc=
9375       else
9376         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9378       fi
9379       ;;
9380
9381     solaris*)
9382       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9383         ld_shlibs=no
9384         cat <<EOF 1>&2
9385
9386 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9387 *** create shared libraries on Solaris systems.  Therefore, libtool
9388 *** is disabling shared libraries support.  We urge you to upgrade GNU
9389 *** binutils to release 2.9.1 or newer.  Another option is to modify
9390 *** your PATH or compiler configuration so that the native linker is
9391 *** used, and then restart.
9392
9393 EOF
9394       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9395         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9397       else
9398         ld_shlibs=no
9399       fi
9400       ;;
9401
9402     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9403       case `$LD -v 2>&1` in
9404         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9405         ld_shlibs=no
9406         cat <<_LT_EOF 1>&2
9407
9408 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9409 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9410 *** is disabling shared libraries support.  We urge you to upgrade GNU
9411 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9412 *** your PATH or compiler configuration so that the native linker is
9413 *** used, and then restart.
9414
9415 _LT_EOF
9416         ;;
9417         *)
9418           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9419             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9420             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9421             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9422           else
9423             ld_shlibs=no
9424           fi
9425         ;;
9426       esac
9427       ;;
9428
9429     sunos4*)
9430       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9431       wlarc=
9432       hardcode_direct=yes
9433       hardcode_shlibpath_var=no
9434       ;;
9435
9436     *)
9437       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9438         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440       else
9441         ld_shlibs=no
9442       fi
9443       ;;
9444     esac
9445
9446     if test "$ld_shlibs" = no; then
9447       runpath_var=
9448       hardcode_libdir_flag_spec=
9449       export_dynamic_flag_spec=
9450       whole_archive_flag_spec=
9451     fi
9452   else
9453     # PORTME fill in a description of your system's linker (not GNU ld)
9454     case $host_os in
9455     aix3*)
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=yes
9458       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'
9459       # Note: this linker hardcodes the directories in LIBPATH if there
9460       # are no directories specified by -L.
9461       hardcode_minus_L=yes
9462       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9463         # Neither direct hardcoding nor static linking is supported with a
9464         # broken collect2.
9465         hardcode_direct=unsupported
9466       fi
9467       ;;
9468
9469     aix4* | aix5*)
9470       if test "$host_cpu" = ia64; then
9471         # On IA64, the linker does run time linking by default, so we don't
9472         # have to do anything special.
9473         aix_use_runtimelinking=no
9474         exp_sym_flag='-Bexport'
9475         no_entry_flag=""
9476       else
9477         # If we're using GNU nm, then we don't want the "-C" option.
9478         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9479         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9480           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'
9481         else
9482           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'
9483         fi
9484         aix_use_runtimelinking=no
9485
9486         # Test if we are trying to use run time linking or normal
9487         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9488         # need to do runtime linking.
9489         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9490           for ld_flag in $LDFLAGS; do
9491           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9492             aix_use_runtimelinking=yes
9493             break
9494           fi
9495           done
9496           ;;
9497         esac
9498
9499         exp_sym_flag='-bexport'
9500         no_entry_flag='-bnoentry'
9501       fi
9502
9503       # When large executables or shared objects are built, AIX ld can
9504       # have problems creating the table of contents.  If linking a library
9505       # or program results in "error TOC overflow" add -mminimal-toc to
9506       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9507       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9508
9509       archive_cmds=''
9510       hardcode_direct=yes
9511       hardcode_libdir_separator=':'
9512       link_all_deplibs=yes
9513
9514       if test "$GCC" = yes; then
9515         case $host_os in aix4.[012]|aix4.[012].*)
9516         # We only want to do this on AIX 4.2 and lower, the check
9517         # below for broken collect2 doesn't work under 4.3+
9518           collect2name=`${CC} -print-prog-name=collect2`
9519           if test -f "$collect2name" && \
9520            strings "$collect2name" | grep resolve_lib_name >/dev/null
9521           then
9522           # We have reworked collect2
9523           hardcode_direct=yes
9524           else
9525           # We have old collect2
9526           hardcode_direct=unsupported
9527           # It fails to find uninstalled libraries when the uninstalled
9528           # path is not listed in the libpath.  Setting hardcode_minus_L
9529           # to unsupported forces relinking
9530           hardcode_minus_L=yes
9531           hardcode_libdir_flag_spec='-L$libdir'
9532           hardcode_libdir_separator=
9533           fi
9534           ;;
9535         esac
9536         shared_flag='-shared'
9537         if test "$aix_use_runtimelinking" = yes; then
9538           shared_flag="$shared_flag "'${wl}-G'
9539         fi
9540       else
9541         # not using gcc
9542         if test "$host_cpu" = ia64; then
9543         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9544         # chokes on -Wl,-G. The following line is correct:
9545           shared_flag='-G'
9546         else
9547           if test "$aix_use_runtimelinking" = yes; then
9548             shared_flag='${wl}-G'
9549           else
9550             shared_flag='${wl}-bM:SRE'
9551           fi
9552         fi
9553       fi
9554
9555       # It seems that -bexpall does not export symbols beginning with
9556       # underscore (_), so it is better to generate a list of symbols to export.
9557       always_export_symbols=yes
9558       if test "$aix_use_runtimelinking" = yes; then
9559         # Warning - without using the other runtime loading flags (-brtl),
9560         # -berok will link without error, but may produce a broken library.
9561         allow_undefined_flag='-berok'
9562        # Determine the default libpath from the value encoded in an empty executable.
9563        cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569
9570 int
9571 main ()
9572 {
9573
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (ac_try="$ac_link"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_link") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_c_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest$ac_exeext &&
9595        $as_test_x conftest$ac_exeext; then
9596
9597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9598 }'`
9599 # Check for a 64-bit object if we didn't find anything.
9600 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9601 }'`; fi
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610       conftest$ac_exeext conftest.$ac_ext
9611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9612
9613        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614         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"
9615        else
9616         if test "$host_cpu" = ia64; then
9617           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9618           allow_undefined_flag="-z nodefs"
9619           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"
9620         else
9621          # Determine the default libpath from the value encoded in an empty executable.
9622          cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628
9629 int
9630 main ()
9631 {
9632
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_link") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } && {
9651          test -z "$ac_c_werror_flag" ||
9652          test ! -s conftest.err
9653        } && test -s conftest$ac_exeext &&
9654        $as_test_x conftest$ac_exeext; then
9655
9656 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9657 }'`
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9660 }'`; fi
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665
9666 fi
9667
9668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9669       conftest$ac_exeext conftest.$ac_ext
9670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9671
9672          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673           # Warning - without using the other run time loading flags,
9674           # -berok will link without error, but may produce a broken library.
9675           no_undefined_flag=' ${wl}-bernotok'
9676           allow_undefined_flag=' ${wl}-berok'
9677           # Exported symbols can be pulled into shared objects from archives
9678           whole_archive_flag_spec='$convenience'
9679           archive_cmds_need_lc=yes
9680           # This is similar to how AIX traditionally builds its shared libraries.
9681           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'
9682         fi
9683       fi
9684       ;;
9685
9686     amigaos*)
9687       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)'
9688       hardcode_libdir_flag_spec='-L$libdir'
9689       hardcode_minus_L=yes
9690       # see comment about different semantics on the GNU ld section
9691       ld_shlibs=no
9692       ;;
9693
9694     bsdi[45]*)
9695       export_dynamic_flag_spec=-rdynamic
9696       ;;
9697
9698     cygwin* | mingw* | pw32*)
9699       # When not using gcc, we currently assume that we are using
9700       # Microsoft Visual C++.
9701       # hardcode_libdir_flag_spec is actually meaningless, as there is
9702       # no search path for DLLs.
9703       hardcode_libdir_flag_spec=' '
9704       allow_undefined_flag=unsupported
9705       # Tell ltmain to make .lib files, not .a files.
9706       libext=lib
9707       # Tell ltmain to make .dll files, not .so files.
9708       shrext_cmds=".dll"
9709       # FIXME: Setting linknames here is a bad hack.
9710       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9711       # The linker will automatically build a .lib file if we build a DLL.
9712       old_archive_From_new_cmds='true'
9713       # FIXME: Should let the user specify the lib program.
9714       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9715       fix_srcfile_path='`cygpath -w "$srcfile"`'
9716       enable_shared_with_static_runtimes=yes
9717       ;;
9718
9719     darwin* | rhapsody*)
9720       case $host_os in
9721         rhapsody* | darwin1.[012])
9722          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9723          ;;
9724        *) # Darwin 1.3 on
9725          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9726            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9727          else
9728            case ${MACOSX_DEPLOYMENT_TARGET} in
9729              10.[012])
9730                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9731                ;;
9732              10.*)
9733                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9734                ;;
9735            esac
9736          fi
9737          ;;
9738       esac
9739       archive_cmds_need_lc=no
9740       hardcode_direct=no
9741       hardcode_automatic=yes
9742       hardcode_shlibpath_var=unsupported
9743       whole_archive_flag_spec=''
9744       link_all_deplibs=yes
9745     if test "$GCC" = yes ; then
9746         output_verbose_link_cmd='echo'
9747         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9748       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9749       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9750       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}'
9751       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}'
9752     else
9753       case $cc_basename in
9754         xlc*)
9755          output_verbose_link_cmd='echo'
9756          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9757          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9758           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9759          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9760           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}'
9761           ;;
9762        *)
9763          ld_shlibs=no
9764           ;;
9765       esac
9766     fi
9767       ;;
9768
9769     dgux*)
9770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771       hardcode_libdir_flag_spec='-L$libdir'
9772       hardcode_shlibpath_var=no
9773       ;;
9774
9775     freebsd1*)
9776       ld_shlibs=no
9777       ;;
9778
9779     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9780     # support.  Future versions do this automatically, but an explicit c++rt0.o
9781     # does not break anything, and helps significantly (at the cost of a little
9782     # extra space).
9783     freebsd2.2*)
9784       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9785       hardcode_libdir_flag_spec='-R$libdir'
9786       hardcode_direct=yes
9787       hardcode_shlibpath_var=no
9788       ;;
9789
9790     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9791     freebsd2*)
9792       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9793       hardcode_direct=yes
9794       hardcode_minus_L=yes
9795       hardcode_shlibpath_var=no
9796       ;;
9797
9798     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9799     freebsd* | dragonfly*)
9800       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9801       hardcode_libdir_flag_spec='-R$libdir'
9802       hardcode_direct=yes
9803       hardcode_shlibpath_var=no
9804       ;;
9805
9806     hpux9*)
9807       if test "$GCC" = yes; then
9808         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'
9809       else
9810         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'
9811       fi
9812       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9813       hardcode_libdir_separator=:
9814       hardcode_direct=yes
9815
9816       # hardcode_minus_L: Not really in the search PATH,
9817       # but as the default location of the library.
9818       hardcode_minus_L=yes
9819       export_dynamic_flag_spec='${wl}-E'
9820       ;;
9821
9822     hpux10*)
9823       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9824         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825       else
9826         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827       fi
9828       if test "$with_gnu_ld" = no; then
9829         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9830         hardcode_libdir_separator=:
9831
9832         hardcode_direct=yes
9833         export_dynamic_flag_spec='${wl}-E'
9834
9835         # hardcode_minus_L: Not really in the search PATH,
9836         # but as the default location of the library.
9837         hardcode_minus_L=yes
9838       fi
9839       ;;
9840
9841     hpux11*)
9842       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9843         case $host_cpu in
9844         hppa*64*)
9845           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9846           ;;
9847         ia64*)
9848           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849           ;;
9850         *)
9851           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852           ;;
9853         esac
9854       else
9855         case $host_cpu in
9856         hppa*64*)
9857           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9858           ;;
9859         ia64*)
9860           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9861           ;;
9862         *)
9863           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9864           ;;
9865         esac
9866       fi
9867       if test "$with_gnu_ld" = no; then
9868         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9869         hardcode_libdir_separator=:
9870
9871         case $host_cpu in
9872         hppa*64*|ia64*)
9873           hardcode_libdir_flag_spec_ld='+b $libdir'
9874           hardcode_direct=no
9875           hardcode_shlibpath_var=no
9876           ;;
9877         *)
9878           hardcode_direct=yes
9879           export_dynamic_flag_spec='${wl}-E'
9880
9881           # hardcode_minus_L: Not really in the search PATH,
9882           # but as the default location of the library.
9883           hardcode_minus_L=yes
9884           ;;
9885         esac
9886       fi
9887       ;;
9888
9889     irix5* | irix6* | nonstopux*)
9890       if test "$GCC" = yes; then
9891         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'
9892       else
9893         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'
9894         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9895       fi
9896       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897       hardcode_libdir_separator=:
9898       link_all_deplibs=yes
9899       ;;
9900
9901     netbsd* | netbsdelf*-gnu)
9902       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9903         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9904       else
9905         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9906       fi
9907       hardcode_libdir_flag_spec='-R$libdir'
9908       hardcode_direct=yes
9909       hardcode_shlibpath_var=no
9910       ;;
9911
9912     newsos6)
9913       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914       hardcode_direct=yes
9915       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916       hardcode_libdir_separator=:
9917       hardcode_shlibpath_var=no
9918       ;;
9919
9920     openbsd*)
9921       hardcode_direct=yes
9922       hardcode_shlibpath_var=no
9923       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9924         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9925         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9926         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9927         export_dynamic_flag_spec='${wl}-E'
9928       else
9929        case $host_os in
9930          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9931            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9932            hardcode_libdir_flag_spec='-R$libdir'
9933            ;;
9934          *)
9935            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9937            ;;
9938        esac
9939       fi
9940       ;;
9941
9942     os2*)
9943       hardcode_libdir_flag_spec='-L$libdir'
9944       hardcode_minus_L=yes
9945       allow_undefined_flag=unsupported
9946       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'
9947       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9948       ;;
9949
9950     osf3*)
9951       if test "$GCC" = yes; then
9952         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9953         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'
9954       else
9955         allow_undefined_flag=' -expect_unresolved \*'
9956         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'
9957       fi
9958       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959       hardcode_libdir_separator=:
9960       ;;
9961
9962     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9963       if test "$GCC" = yes; then
9964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965         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'
9966         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967       else
9968         allow_undefined_flag=' -expect_unresolved \*'
9969         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'
9970         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9971         $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'
9972
9973         # Both c and cxx compiler support -rpath directly
9974         hardcode_libdir_flag_spec='-rpath $libdir'
9975       fi
9976       hardcode_libdir_separator=:
9977       ;;
9978
9979     solaris*)
9980       no_undefined_flag=' -z text'
9981       if test "$GCC" = yes; then
9982         wlarc='${wl}'
9983         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9985           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9986       else
9987         wlarc=''
9988         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9990         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9991       fi
9992       hardcode_libdir_flag_spec='-R$libdir'
9993       hardcode_shlibpath_var=no
9994       case $host_os in
9995       solaris2.[0-5] | solaris2.[0-5].*) ;;
9996       *)
9997         # The compiler driver will combine linker options so we
9998         # cannot just pass the convience library names through
9999         # without $wl, iff we do not link with $LD.
10000         # Luckily, gcc supports the same syntax we need for Sun Studio.
10001         # Supported since Solaris 2.6 (maybe 2.5.1?)
10002         case $wlarc in
10003         '')
10004           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10005         *)
10006           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10007         esac ;;
10008       esac
10009       link_all_deplibs=yes
10010       ;;
10011
10012     sunos4*)
10013       if test "x$host_vendor" = xsequent; then
10014         # Use $CC to link under sequent, because it throws in some extra .o
10015         # files that make .init and .fini sections work.
10016         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10017       else
10018         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10019       fi
10020       hardcode_libdir_flag_spec='-L$libdir'
10021       hardcode_direct=yes
10022       hardcode_minus_L=yes
10023       hardcode_shlibpath_var=no
10024       ;;
10025
10026     sysv4)
10027       case $host_vendor in
10028         sni)
10029           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030           hardcode_direct=yes # is this really true???
10031         ;;
10032         siemens)
10033           ## LD is ld it makes a PLAMLIB
10034           ## CC just makes a GrossModule.
10035           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10036           reload_cmds='$CC -r -o $output$reload_objs'
10037           hardcode_direct=no
10038         ;;
10039         motorola)
10040           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10042         ;;
10043       esac
10044       runpath_var='LD_RUN_PATH'
10045       hardcode_shlibpath_var=no
10046       ;;
10047
10048     sysv4.3*)
10049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050       hardcode_shlibpath_var=no
10051       export_dynamic_flag_spec='-Bexport'
10052       ;;
10053
10054     sysv4*MP*)
10055       if test -d /usr/nec; then
10056         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057         hardcode_shlibpath_var=no
10058         runpath_var=LD_RUN_PATH
10059         hardcode_runpath_var=yes
10060         ld_shlibs=yes
10061       fi
10062       ;;
10063
10064     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10065       no_undefined_flag='${wl}-z,text'
10066       archive_cmds_need_lc=no
10067       hardcode_shlibpath_var=no
10068       runpath_var='LD_RUN_PATH'
10069
10070       if test "$GCC" = yes; then
10071         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073       else
10074         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076       fi
10077       ;;
10078
10079     sysv5* | sco3.2v5* | sco5v6*)
10080       # Note: We can NOT use -z defs as we might desire, because we do not
10081       # link with -lc, and that would cause any symbols used from libc to
10082       # always be unresolved, which means just about no library would
10083       # ever link correctly.  If we're not using GNU ld we use -z text
10084       # though, which does catch some bad symbols but isn't as heavy-handed
10085       # as -z defs.
10086       no_undefined_flag='${wl}-z,text'
10087       allow_undefined_flag='${wl}-z,nodefs'
10088       archive_cmds_need_lc=no
10089       hardcode_shlibpath_var=no
10090       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10091       hardcode_libdir_separator=':'
10092       link_all_deplibs=yes
10093       export_dynamic_flag_spec='${wl}-Bexport'
10094       runpath_var='LD_RUN_PATH'
10095
10096       if test "$GCC" = yes; then
10097         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10098         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10099       else
10100         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10102       fi
10103       ;;
10104
10105     uts4*)
10106       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107       hardcode_libdir_flag_spec='-L$libdir'
10108       hardcode_shlibpath_var=no
10109       ;;
10110
10111     *)
10112       ld_shlibs=no
10113       ;;
10114     esac
10115   fi
10116
10117 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10118 echo "${ECHO_T}$ld_shlibs" >&6; }
10119 test "$ld_shlibs" = no && can_build_shared=no
10120
10121 #
10122 # Do we need to explicitly link libc?
10123 #
10124 case "x$archive_cmds_need_lc" in
10125 x|xyes)
10126   # Assume -lc should be added
10127   archive_cmds_need_lc=yes
10128
10129   if test "$enable_shared" = yes && test "$GCC" = yes; then
10130     case $archive_cmds in
10131     *'~'*)
10132       # FIXME: we may have to deal with multi-command sequences.
10133       ;;
10134     '$CC '*)
10135       # Test whether the compiler implicitly links with -lc since on some
10136       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10137       # to ld, don't add -lc before -lgcc.
10138       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10139 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10140       $rm conftest*
10141       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10142
10143       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } 2>conftest.err; then
10148         soname=conftest
10149         lib=conftest
10150         libobjs=conftest.$ac_objext
10151         deplibs=
10152         wl=$lt_prog_compiler_wl
10153         pic_flag=$lt_prog_compiler_pic
10154         compiler_flags=-v
10155         linker_flags=-v
10156         verstring=
10157         output_objdir=.
10158         libname=conftest
10159         lt_save_allow_undefined_flag=$allow_undefined_flag
10160         allow_undefined_flag=
10161         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10162   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }
10166         then
10167           archive_cmds_need_lc=no
10168         else
10169           archive_cmds_need_lc=yes
10170         fi
10171         allow_undefined_flag=$lt_save_allow_undefined_flag
10172       else
10173         cat conftest.err 1>&5
10174       fi
10175       $rm conftest*
10176       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10177 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10178       ;;
10179     esac
10180   fi
10181   ;;
10182 esac
10183
10184 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10185 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10186 library_names_spec=
10187 libname_spec='lib$name'
10188 soname_spec=
10189 shrext_cmds=".so"
10190 postinstall_cmds=
10191 postuninstall_cmds=
10192 finish_cmds=
10193 finish_eval=
10194 shlibpath_var=
10195 shlibpath_overrides_runpath=unknown
10196 version_type=none
10197 dynamic_linker="$host_os ld.so"
10198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10199 if test "$GCC" = yes; then
10200   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10201   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10202     # if the path contains ";" then we assume it to be the separator
10203     # otherwise default to the standard path separator (i.e. ":") - it is
10204     # assumed that no part of a normal pathname contains ";" but that should
10205     # okay in the real world where ";" in dirpaths is itself problematic.
10206     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10207   else
10208     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10209   fi
10210 else
10211   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10212 fi
10213 need_lib_prefix=unknown
10214 hardcode_into_libs=no
10215
10216 # when you set need_version to no, make sure it does not cause -set_version
10217 # flags to be left without arguments
10218 need_version=unknown
10219
10220 case $host_os in
10221 aix3*)
10222   version_type=linux
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10224   shlibpath_var=LIBPATH
10225
10226   # AIX 3 has no versioning support, so we append a major version to the name.
10227   soname_spec='${libname}${release}${shared_ext}$major'
10228   ;;
10229
10230 aix4* | aix5*)
10231   version_type=linux
10232   need_lib_prefix=no
10233   need_version=no
10234   hardcode_into_libs=yes
10235   if test "$host_cpu" = ia64; then
10236     # AIX 5 supports IA64
10237     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10238     shlibpath_var=LD_LIBRARY_PATH
10239   else
10240     # With GCC up to 2.95.x, collect2 would create an import file
10241     # for dependence libraries.  The import file would start with
10242     # the line `#! .'.  This would cause the generated library to
10243     # depend on `.', always an invalid library.  This was fixed in
10244     # development snapshots of GCC prior to 3.0.
10245     case $host_os in
10246       aix4 | aix4.[01] | aix4.[01].*)
10247       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10248            echo ' yes '
10249            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10250         :
10251       else
10252         can_build_shared=no
10253       fi
10254       ;;
10255     esac
10256     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10257     # soname into executable. Probably we can add versioning support to
10258     # collect2, so additional links can be useful in future.
10259     if test "$aix_use_runtimelinking" = yes; then
10260       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10261       # instead of lib<name>.a to let people know that these are not
10262       # typical AIX shared libraries.
10263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264     else
10265       # We preserve .a as extension for shared libraries through AIX4.2
10266       # and later when we are not doing run time linking.
10267       library_names_spec='${libname}${release}.a $libname.a'
10268       soname_spec='${libname}${release}${shared_ext}$major'
10269     fi
10270     shlibpath_var=LIBPATH
10271   fi
10272   ;;
10273
10274 amigaos*)
10275   library_names_spec='$libname.ixlibrary $libname.a'
10276   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10277   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'
10278   ;;
10279
10280 beos*)
10281   library_names_spec='${libname}${shared_ext}'
10282   dynamic_linker="$host_os ld.so"
10283   shlibpath_var=LIBRARY_PATH
10284   ;;
10285
10286 bsdi[45]*)
10287   version_type=linux
10288   need_version=no
10289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290   soname_spec='${libname}${release}${shared_ext}$major'
10291   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10294   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10295   # the default ld.so.conf also contains /usr/contrib/lib and
10296   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10297   # libtool to hard-code these into programs
10298   ;;
10299
10300 cygwin* | mingw* | pw32*)
10301   version_type=windows
10302   shrext_cmds=".dll"
10303   need_version=no
10304   need_lib_prefix=no
10305
10306   case $GCC,$host_os in
10307   yes,cygwin* | yes,mingw* | yes,pw32*)
10308     library_names_spec='$libname.dll.a'
10309     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10310     postinstall_cmds='base_file=`basename \${file}`~
10311       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10312       dldir=$destdir/`dirname \$dlpath`~
10313       test -d \$dldir || mkdir -p \$dldir~
10314       $install_prog $dir/$dlname \$dldir/$dlname~
10315       chmod a+x \$dldir/$dlname'
10316     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10317       dlpath=$dir/\$dldll~
10318        $rm \$dlpath'
10319     shlibpath_overrides_runpath=yes
10320
10321     case $host_os in
10322     cygwin*)
10323       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10324       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10326       ;;
10327     mingw*)
10328       # MinGW DLLs use traditional 'lib' prefix
10329       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10331       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10332         # It is most probably a Windows format PATH printed by
10333         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10334         # path with ; separators, and with drive letters. We can handle the
10335         # drive letters (cygwin fileutils understands them), so leave them,
10336         # especially as we might pass files found there to a mingw objdump,
10337         # which wouldn't understand a cygwinified path. Ahh.
10338         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10339       else
10340         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10341       fi
10342       ;;
10343     pw32*)
10344       # pw32 DLLs use 'pw' prefix rather than 'lib'
10345       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10346       ;;
10347     esac
10348     ;;
10349
10350   *)
10351     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10352     ;;
10353   esac
10354   dynamic_linker='Win32 ld.exe'
10355   # FIXME: first we should search . and the directory the executable is in
10356   shlibpath_var=PATH
10357   ;;
10358
10359 darwin* | rhapsody*)
10360   dynamic_linker="$host_os dyld"
10361   version_type=darwin
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10365   soname_spec='${libname}${release}${major}$shared_ext'
10366   shlibpath_overrides_runpath=yes
10367   shlibpath_var=DYLD_LIBRARY_PATH
10368   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10369   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10370   if test "$GCC" = yes; then
10371     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10372   else
10373     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10374   fi
10375   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10376   ;;
10377
10378 dgux*)
10379   version_type=linux
10380   need_lib_prefix=no
10381   need_version=no
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   ;;
10386
10387 freebsd1*)
10388   dynamic_linker=no
10389   ;;
10390
10391 freebsd* | dragonfly*)
10392   # DragonFly does not have aout.  When/if they implement a new
10393   # versioning mechanism, adjust this.
10394   if test -x /usr/bin/objformat; then
10395     objformat=`/usr/bin/objformat`
10396   else
10397     case $host_os in
10398     freebsd[123]*) objformat=aout ;;
10399     *) objformat=elf ;;
10400     esac
10401   fi
10402   version_type=freebsd-$objformat
10403   case $version_type in
10404     freebsd-elf*)
10405       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406       need_version=no
10407       need_lib_prefix=no
10408       ;;
10409     freebsd-*)
10410       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10411       need_version=yes
10412       ;;
10413   esac
10414   shlibpath_var=LD_LIBRARY_PATH
10415   case $host_os in
10416   freebsd2*)
10417     shlibpath_overrides_runpath=yes
10418     ;;
10419   freebsd3.[01]* | freebsdelf3.[01]*)
10420     shlibpath_overrides_runpath=yes
10421     hardcode_into_libs=yes
10422     ;;
10423   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10424   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10425     shlibpath_overrides_runpath=no
10426     hardcode_into_libs=yes
10427     ;;
10428   freebsd*) # from 4.6 on
10429     shlibpath_overrides_runpath=yes
10430     hardcode_into_libs=yes
10431     ;;
10432   esac
10433   ;;
10434
10435 gnu*)
10436   version_type=linux
10437   need_lib_prefix=no
10438   need_version=no
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10440   soname_spec='${libname}${release}${shared_ext}$major'
10441   shlibpath_var=LD_LIBRARY_PATH
10442   hardcode_into_libs=yes
10443   ;;
10444
10445 hpux9* | hpux10* | hpux11*)
10446   # Give a soname corresponding to the major version so that dld.sl refuses to
10447   # link against other versions.
10448   version_type=sunos
10449   need_lib_prefix=no
10450   need_version=no
10451   case $host_cpu in
10452   ia64*)
10453     shrext_cmds='.so'
10454     hardcode_into_libs=yes
10455     dynamic_linker="$host_os dld.so"
10456     shlibpath_var=LD_LIBRARY_PATH
10457     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459     soname_spec='${libname}${release}${shared_ext}$major'
10460     if test "X$HPUX_IA64_MODE" = X32; then
10461       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10462     else
10463       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10464     fi
10465     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10466     ;;
10467    hppa*64*)
10468      shrext_cmds='.sl'
10469      hardcode_into_libs=yes
10470      dynamic_linker="$host_os dld.sl"
10471      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474      soname_spec='${libname}${release}${shared_ext}$major'
10475      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10477      ;;
10478    *)
10479     shrext_cmds='.sl'
10480     dynamic_linker="$host_os dld.sl"
10481     shlibpath_var=SHLIB_PATH
10482     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484     soname_spec='${libname}${release}${shared_ext}$major'
10485     ;;
10486   esac
10487   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10488   postinstall_cmds='chmod 555 $lib'
10489   ;;
10490
10491 interix3*)
10492   version_type=linux
10493   need_lib_prefix=no
10494   need_version=no
10495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496   soname_spec='${libname}${release}${shared_ext}$major'
10497   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10498   shlibpath_var=LD_LIBRARY_PATH
10499   shlibpath_overrides_runpath=no
10500   hardcode_into_libs=yes
10501   ;;
10502
10503 irix5* | irix6* | nonstopux*)
10504   case $host_os in
10505     nonstopux*) version_type=nonstopux ;;
10506     *)
10507         if test "$lt_cv_prog_gnu_ld" = yes; then
10508                 version_type=linux
10509         else
10510                 version_type=irix
10511         fi ;;
10512   esac
10513   need_lib_prefix=no
10514   need_version=no
10515   soname_spec='${libname}${release}${shared_ext}$major'
10516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10517   case $host_os in
10518   irix5* | nonstopux*)
10519     libsuff= shlibsuff=
10520     ;;
10521   *)
10522     case $LD in # libtool.m4 will add one of these switches to LD
10523     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10524       libsuff= shlibsuff= libmagic=32-bit;;
10525     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10526       libsuff=32 shlibsuff=N32 libmagic=N32;;
10527     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10528       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10529     *) libsuff= shlibsuff= libmagic=never-match;;
10530     esac
10531     ;;
10532   esac
10533   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10534   shlibpath_overrides_runpath=no
10535   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10536   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10537   hardcode_into_libs=yes
10538   ;;
10539
10540 # No shared lib support for Linux oldld, aout, or coff.
10541 linux*oldld* | linux*aout* | linux*coff*)
10542   dynamic_linker=no
10543   ;;
10544
10545 # This must be Linux ELF.
10546 linux* | k*bsd*-gnu)
10547   version_type=linux
10548   need_lib_prefix=no
10549   need_version=no
10550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10553   shlibpath_var=LD_LIBRARY_PATH
10554   shlibpath_overrides_runpath=no
10555   # This implies no fast_install, which is unacceptable.
10556   # Some rework will be needed to allow for fast_install
10557   # before this can be enabled.
10558   hardcode_into_libs=yes
10559
10560   # Append ld.so.conf contents to the search path
10561   if test -f /etc/ld.so.conf; then
10562     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10563     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10564   fi
10565
10566   # We used to test for /lib/ld.so.1 and disable shared libraries on
10567   # powerpc, because MkLinux only supported shared libraries with the
10568   # GNU dynamic linker.  Since this was broken with cross compilers,
10569   # most powerpc-linux boxes support dynamic linking these days and
10570   # people can always --disable-shared, the test was removed, and we
10571   # assume the GNU/Linux dynamic linker is in use.
10572   dynamic_linker='GNU/Linux ld.so'
10573   ;;
10574
10575 netbsdelf*-gnu)
10576   version_type=linux
10577   need_lib_prefix=no
10578   need_version=no
10579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10580   soname_spec='${libname}${release}${shared_ext}$major'
10581   shlibpath_var=LD_LIBRARY_PATH
10582   shlibpath_overrides_runpath=no
10583   hardcode_into_libs=yes
10584   dynamic_linker='NetBSD ld.elf_so'
10585   ;;
10586
10587 netbsd*)
10588   version_type=sunos
10589   need_lib_prefix=no
10590   need_version=no
10591   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10594     dynamic_linker='NetBSD (a.out) ld.so'
10595   else
10596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597     soname_spec='${libname}${release}${shared_ext}$major'
10598     dynamic_linker='NetBSD ld.elf_so'
10599   fi
10600   shlibpath_var=LD_LIBRARY_PATH
10601   shlibpath_overrides_runpath=yes
10602   hardcode_into_libs=yes
10603   ;;
10604
10605 newsos6)
10606   version_type=linux
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   shlibpath_overrides_runpath=yes
10610   ;;
10611
10612 nto-qnx*)
10613   version_type=linux
10614   need_lib_prefix=no
10615   need_version=no
10616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617   soname_spec='${libname}${release}${shared_ext}$major'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   shlibpath_overrides_runpath=yes
10620   ;;
10621
10622 openbsd*)
10623   version_type=sunos
10624   sys_lib_dlsearch_path_spec="/usr/lib"
10625   need_lib_prefix=no
10626   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10627   case $host_os in
10628     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10629     *)                         need_version=no  ;;
10630   esac
10631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10633   shlibpath_var=LD_LIBRARY_PATH
10634   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10635     case $host_os in
10636       openbsd2.[89] | openbsd2.[89].*)
10637         shlibpath_overrides_runpath=no
10638         ;;
10639       *)
10640         shlibpath_overrides_runpath=yes
10641         ;;
10642       esac
10643   else
10644     shlibpath_overrides_runpath=yes
10645   fi
10646   ;;
10647
10648 os2*)
10649   libname_spec='$name'
10650   shrext_cmds=".dll"
10651   need_lib_prefix=no
10652   library_names_spec='$libname${shared_ext} $libname.a'
10653   dynamic_linker='OS/2 ld.exe'
10654   shlibpath_var=LIBPATH
10655   ;;
10656
10657 osf3* | osf4* | osf5*)
10658   version_type=osf
10659   need_lib_prefix=no
10660   need_version=no
10661   soname_spec='${libname}${release}${shared_ext}$major'
10662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663   shlibpath_var=LD_LIBRARY_PATH
10664   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10665   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10666   ;;
10667
10668 solaris*)
10669   version_type=linux
10670   need_lib_prefix=no
10671   need_version=no
10672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673   soname_spec='${libname}${release}${shared_ext}$major'
10674   shlibpath_var=LD_LIBRARY_PATH
10675   shlibpath_overrides_runpath=yes
10676   hardcode_into_libs=yes
10677   # ldd complains unless libraries are executable
10678   postinstall_cmds='chmod +x $lib'
10679   ;;
10680
10681 sunos4*)
10682   version_type=sunos
10683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10684   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10685   shlibpath_var=LD_LIBRARY_PATH
10686   shlibpath_overrides_runpath=yes
10687   if test "$with_gnu_ld" = yes; then
10688     need_lib_prefix=no
10689   fi
10690   need_version=yes
10691   ;;
10692
10693 sysv4 | sysv4.3*)
10694   version_type=linux
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   case $host_vendor in
10699     sni)
10700       shlibpath_overrides_runpath=no
10701       need_lib_prefix=no
10702       export_dynamic_flag_spec='${wl}-Blargedynsym'
10703       runpath_var=LD_RUN_PATH
10704       ;;
10705     siemens)
10706       need_lib_prefix=no
10707       ;;
10708     motorola)
10709       need_lib_prefix=no
10710       need_version=no
10711       shlibpath_overrides_runpath=no
10712       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10713       ;;
10714   esac
10715   ;;
10716
10717 sysv4*MP*)
10718   if test -d /usr/nec ;then
10719     version_type=linux
10720     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10721     soname_spec='$libname${shared_ext}.$major'
10722     shlibpath_var=LD_LIBRARY_PATH
10723   fi
10724   ;;
10725
10726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10727   version_type=freebsd-elf
10728   need_lib_prefix=no
10729   need_version=no
10730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10731   soname_spec='${libname}${release}${shared_ext}$major'
10732   shlibpath_var=LD_LIBRARY_PATH
10733   hardcode_into_libs=yes
10734   if test "$with_gnu_ld" = yes; then
10735     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10736     shlibpath_overrides_runpath=no
10737   else
10738     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10739     shlibpath_overrides_runpath=yes
10740     case $host_os in
10741       sco3.2v5*)
10742         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10743         ;;
10744     esac
10745   fi
10746   sys_lib_dlsearch_path_spec='/usr/lib'
10747   ;;
10748
10749 uts4*)
10750   version_type=linux
10751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752   soname_spec='${libname}${release}${shared_ext}$major'
10753   shlibpath_var=LD_LIBRARY_PATH
10754   ;;
10755
10756 *)
10757   dynamic_linker=no
10758   ;;
10759 esac
10760 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10761 echo "${ECHO_T}$dynamic_linker" >&6; }
10762 test "$dynamic_linker" = no && can_build_shared=no
10763
10764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10765 if test "$GCC" = yes; then
10766   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10767 fi
10768
10769 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10770 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10771 hardcode_action=
10772 if test -n "$hardcode_libdir_flag_spec" || \
10773    test -n "$runpath_var" || \
10774    test "X$hardcode_automatic" = "Xyes" ; then
10775
10776   # We can hardcode non-existant directories.
10777   if test "$hardcode_direct" != no &&
10778      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10779      # have to relink, otherwise we might link with an installed library
10780      # when we should be linking with a yet-to-be-installed one
10781      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10782      test "$hardcode_minus_L" != no; then
10783     # Linking always hardcodes the temporary library directory.
10784     hardcode_action=relink
10785   else
10786     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10787     hardcode_action=immediate
10788   fi
10789 else
10790   # We cannot hardcode anything, or else we can only hardcode existing
10791   # directories.
10792   hardcode_action=unsupported
10793 fi
10794 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10795 echo "${ECHO_T}$hardcode_action" >&6; }
10796
10797 if test "$hardcode_action" = relink; then
10798   # Fast installation is not supported
10799   enable_fast_install=no
10800 elif test "$shlibpath_overrides_runpath" = yes ||
10801      test "$enable_shared" = no; then
10802   # Fast installation is not necessary
10803   enable_fast_install=needless
10804 fi
10805
10806 striplib=
10807 old_striplib=
10808 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10809 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10810 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10811   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10812   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10813   { echo "$as_me:$LINENO: result: yes" >&5
10814 echo "${ECHO_T}yes" >&6; }
10815 else
10816 # FIXME - insert some real tests, host_os isn't really good enough
10817   case $host_os in
10818    darwin*)
10819        if test -n "$STRIP" ; then
10820          striplib="$STRIP -x"
10821          { echo "$as_me:$LINENO: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6; }
10823        else
10824   { echo "$as_me:$LINENO: result: no" >&5
10825 echo "${ECHO_T}no" >&6; }
10826 fi
10827        ;;
10828    *)
10829   { echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6; }
10831     ;;
10832   esac
10833 fi
10834
10835 if test "x$enable_dlopen" != xyes; then
10836   enable_dlopen=unknown
10837   enable_dlopen_self=unknown
10838   enable_dlopen_self_static=unknown
10839 else
10840   lt_cv_dlopen=no
10841   lt_cv_dlopen_libs=
10842
10843   case $host_os in
10844   beos*)
10845     lt_cv_dlopen="load_add_on"
10846     lt_cv_dlopen_libs=
10847     lt_cv_dlopen_self=yes
10848     ;;
10849
10850   mingw* | pw32*)
10851     lt_cv_dlopen="LoadLibrary"
10852     lt_cv_dlopen_libs=
10853    ;;
10854
10855   cygwin*)
10856     lt_cv_dlopen="dlopen"
10857     lt_cv_dlopen_libs=
10858    ;;
10859
10860   darwin*)
10861   # if libdl is installed we need to link against it
10862     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   ac_check_lib_save_LIBS=$LIBS
10868 LIBS="-ldl  $LIBS"
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char dlopen ();
10883 int
10884 main ()
10885 {
10886 return dlopen ();
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895   *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898   (eval "$ac_link") 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } && {
10905          test -z "$ac_c_werror_flag" ||
10906          test ! -s conftest.err
10907        } && test -s conftest$ac_exeext &&
10908        $as_test_x conftest$ac_exeext; then
10909   ac_cv_lib_dl_dlopen=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         ac_cv_lib_dl_dlopen=no
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918       conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10920 fi
10921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10923 if test $ac_cv_lib_dl_dlopen = yes; then
10924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10925 else
10926
10927     lt_cv_dlopen="dyld"
10928     lt_cv_dlopen_libs=
10929     lt_cv_dlopen_self=yes
10930
10931 fi
10932
10933    ;;
10934
10935   *)
10936     { echo "$as_me:$LINENO: checking for shl_load" >&5
10937 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10938 if test "${ac_cv_func_shl_load+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949 #define shl_load innocuous_shl_load
10950
10951 /* System header to define __stub macros and hopefully few prototypes,
10952     which can conflict with char shl_load (); below.
10953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954     <limits.h> exists even on freestanding compilers.  */
10955
10956 #ifdef __STDC__
10957 # include <limits.h>
10958 #else
10959 # include <assert.h>
10960 #endif
10961
10962 #undef shl_load
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char shl_load ();
10971 /* The GNU C library defines this for functions which it implements
10972     to always fail with ENOSYS.  Some functions are actually named
10973     something starting with __ and the normal name is an alias.  */
10974 #if defined __stub_shl_load || defined __stub___shl_load
10975 choke me
10976 #endif
10977
10978 int
10979 main ()
10980 {
10981 return shl_load ();
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (ac_try="$ac_link"
10988 case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_link") 2>conftest.er1
10994   ac_status=$?
10995   grep -v '^ *+' conftest.er1 >conftest.err
10996   rm -f conftest.er1
10997   cat conftest.err >&5
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); } && {
11000          test -z "$ac_c_werror_flag" ||
11001          test ! -s conftest.err
11002        } && test -s conftest$ac_exeext &&
11003        $as_test_x conftest$ac_exeext; then
11004   ac_cv_func_shl_load=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009         ac_cv_func_shl_load=no
11010 fi
11011
11012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11013       conftest$ac_exeext conftest.$ac_ext
11014 fi
11015 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11016 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11017 if test $ac_cv_func_shl_load = yes; then
11018   lt_cv_dlopen="shl_load"
11019 else
11020   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11021 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   ac_check_lib_save_LIBS=$LIBS
11026 LIBS="-ldld  $LIBS"
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035    Use char because int might match the return type of a GCC
11036    builtin and then its argument prototype would still apply.  */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char shl_load ();
11041 int
11042 main ()
11043 {
11044 return shl_load ();
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053   *) ac_try_echo=$ac_try;;
11054 esac
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056   (eval "$ac_link") 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } && {
11063          test -z "$ac_c_werror_flag" ||
11064          test ! -s conftest.err
11065        } && test -s conftest$ac_exeext &&
11066        $as_test_x conftest$ac_exeext; then
11067   ac_cv_lib_dld_shl_load=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         ac_cv_lib_dld_shl_load=no
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076       conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11078 fi
11079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11080 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11081 if test $ac_cv_lib_dld_shl_load = yes; then
11082   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11083 else
11084   { echo "$as_me:$LINENO: checking for dlopen" >&5
11085 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11086 if test "${ac_cv_func_dlopen+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11097 #define dlopen innocuous_dlopen
11098
11099 /* System header to define __stub macros and hopefully few prototypes,
11100     which can conflict with char dlopen (); below.
11101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102     <limits.h> exists even on freestanding compilers.  */
11103
11104 #ifdef __STDC__
11105 # include <limits.h>
11106 #else
11107 # include <assert.h>
11108 #endif
11109
11110 #undef dlopen
11111
11112 /* Override any GCC internal prototype to avoid an error.
11113    Use char because int might match the return type of a GCC
11114    builtin and then its argument prototype would still apply.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 char dlopen ();
11119 /* The GNU C library defines this for functions which it implements
11120     to always fail with ENOSYS.  Some functions are actually named
11121     something starting with __ and the normal name is an alias.  */
11122 #if defined __stub_dlopen || defined __stub___dlopen
11123 choke me
11124 #endif
11125
11126 int
11127 main ()
11128 {
11129 return dlopen ();
11130   ;
11131   return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_link") 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } && {
11148          test -z "$ac_c_werror_flag" ||
11149          test ! -s conftest.err
11150        } && test -s conftest$ac_exeext &&
11151        $as_test_x conftest$ac_exeext; then
11152   ac_cv_func_dlopen=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157         ac_cv_func_dlopen=no
11158 fi
11159
11160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11161       conftest$ac_exeext conftest.$ac_ext
11162 fi
11163 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11164 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11165 if test $ac_cv_func_dlopen = yes; then
11166   lt_cv_dlopen="dlopen"
11167 else
11168   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11169 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   ac_check_lib_save_LIBS=$LIBS
11174 LIBS="-ldl  $LIBS"
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181
11182 /* Override any GCC internal prototype to avoid an error.
11183    Use char because int might match the return type of a GCC
11184    builtin and then its argument prototype would still apply.  */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char dlopen ();
11189 int
11190 main ()
11191 {
11192 return dlopen ();
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201   *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204   (eval "$ac_link") 2>conftest.er1
11205   ac_status=$?
11206   grep -v '^ *+' conftest.er1 >conftest.err
11207   rm -f conftest.er1
11208   cat conftest.err >&5
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); } && {
11211          test -z "$ac_c_werror_flag" ||
11212          test ! -s conftest.err
11213        } && test -s conftest$ac_exeext &&
11214        $as_test_x conftest$ac_exeext; then
11215   ac_cv_lib_dl_dlopen=yes
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220         ac_cv_lib_dl_dlopen=no
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224       conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11228 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11229 if test $ac_cv_lib_dl_dlopen = yes; then
11230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11231 else
11232   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11233 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-lsvld  $LIBS"
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h.  */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h.  */
11245
11246 /* Override any GCC internal prototype to avoid an error.
11247    Use char because int might match the return type of a GCC
11248    builtin and then its argument prototype would still apply.  */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char dlopen ();
11253 int
11254 main ()
11255 {
11256 return dlopen ();
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_link") 2>conftest.er1
11269   ac_status=$?
11270   grep -v '^ *+' conftest.er1 >conftest.err
11271   rm -f conftest.er1
11272   cat conftest.err >&5
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); } && {
11275          test -z "$ac_c_werror_flag" ||
11276          test ! -s conftest.err
11277        } && test -s conftest$ac_exeext &&
11278        $as_test_x conftest$ac_exeext; then
11279   ac_cv_lib_svld_dlopen=yes
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284         ac_cv_lib_svld_dlopen=no
11285 fi
11286
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288       conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11292 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11293 if test $ac_cv_lib_svld_dlopen = yes; then
11294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11295 else
11296   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11297 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11298 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11299   echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301   ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldld  $LIBS"
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309
11310 /* Override any GCC internal prototype to avoid an error.
11311    Use char because int might match the return type of a GCC
11312    builtin and then its argument prototype would still apply.  */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char dld_link ();
11317 int
11318 main ()
11319 {
11320 return dld_link ();
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329   *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332   (eval "$ac_link") 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } && {
11339          test -z "$ac_c_werror_flag" ||
11340          test ! -s conftest.err
11341        } && test -s conftest$ac_exeext &&
11342        $as_test_x conftest$ac_exeext; then
11343   ac_cv_lib_dld_dld_link=yes
11344 else
11345   echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348         ac_cv_lib_dld_dld_link=no
11349 fi
11350
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352       conftest$ac_exeext conftest.$ac_ext
11353 LIBS=$ac_check_lib_save_LIBS
11354 fi
11355 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11357 if test $ac_cv_lib_dld_dld_link = yes; then
11358   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11359 fi
11360
11361
11362 fi
11363
11364
11365 fi
11366
11367
11368 fi
11369
11370
11371 fi
11372
11373
11374 fi
11375
11376     ;;
11377   esac
11378
11379   if test "x$lt_cv_dlopen" != xno; then
11380     enable_dlopen=yes
11381   else
11382     enable_dlopen=no
11383   fi
11384
11385   case $lt_cv_dlopen in
11386   dlopen)
11387     save_CPPFLAGS="$CPPFLAGS"
11388     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11389
11390     save_LDFLAGS="$LDFLAGS"
11391     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11392
11393     save_LIBS="$LIBS"
11394     LIBS="$lt_cv_dlopen_libs $LIBS"
11395
11396     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11398 if test "${lt_cv_dlopen_self+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401           if test "$cross_compiling" = yes; then :
11402   lt_cv_dlopen_self=cross
11403 else
11404   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11405   lt_status=$lt_dlunknown
11406   cat > conftest.$ac_ext <<EOF
11407 #line 11407 "configure"
11408 #include "confdefs.h"
11409
11410 #if HAVE_DLFCN_H
11411 #include <dlfcn.h>
11412 #endif
11413
11414 #include <stdio.h>
11415
11416 #ifdef RTLD_GLOBAL
11417 #  define LT_DLGLOBAL           RTLD_GLOBAL
11418 #else
11419 #  ifdef DL_GLOBAL
11420 #    define LT_DLGLOBAL         DL_GLOBAL
11421 #  else
11422 #    define LT_DLGLOBAL         0
11423 #  endif
11424 #endif
11425
11426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11427    find out it does not work in some platform. */
11428 #ifndef LT_DLLAZY_OR_NOW
11429 #  ifdef RTLD_LAZY
11430 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11431 #  else
11432 #    ifdef DL_LAZY
11433 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11434 #    else
11435 #      ifdef RTLD_NOW
11436 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11437 #      else
11438 #        ifdef DL_NOW
11439 #          define LT_DLLAZY_OR_NOW      DL_NOW
11440 #        else
11441 #          define LT_DLLAZY_OR_NOW      0
11442 #        endif
11443 #      endif
11444 #    endif
11445 #  endif
11446 #endif
11447
11448 #ifdef __cplusplus
11449 extern "C" void exit (int);
11450 #endif
11451
11452 void fnord() { int i=42;}
11453 int main ()
11454 {
11455   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11456   int status = $lt_dlunknown;
11457
11458   if (self)
11459     {
11460       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11461       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11462       /* dlclose (self); */
11463     }
11464   else
11465     puts (dlerror ());
11466
11467     exit (status);
11468 }
11469 EOF
11470   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11471   (eval $ac_link) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11475     (./conftest; exit; ) >&5 2>/dev/null
11476     lt_status=$?
11477     case x$lt_status in
11478       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11481     esac
11482   else :
11483     # compilation failed
11484     lt_cv_dlopen_self=no
11485   fi
11486 fi
11487 rm -fr conftest*
11488
11489
11490 fi
11491 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11492 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11493
11494     if test "x$lt_cv_dlopen_self" = xyes; then
11495       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11497 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11498 if test "${lt_cv_dlopen_self_static+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501           if test "$cross_compiling" = yes; then :
11502   lt_cv_dlopen_self_static=cross
11503 else
11504   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505   lt_status=$lt_dlunknown
11506   cat > conftest.$ac_ext <<EOF
11507 #line 11507 "configure"
11508 #include "confdefs.h"
11509
11510 #if HAVE_DLFCN_H
11511 #include <dlfcn.h>
11512 #endif
11513
11514 #include <stdio.h>
11515
11516 #ifdef RTLD_GLOBAL
11517 #  define LT_DLGLOBAL           RTLD_GLOBAL
11518 #else
11519 #  ifdef DL_GLOBAL
11520 #    define LT_DLGLOBAL         DL_GLOBAL
11521 #  else
11522 #    define LT_DLGLOBAL         0
11523 #  endif
11524 #endif
11525
11526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527    find out it does not work in some platform. */
11528 #ifndef LT_DLLAZY_OR_NOW
11529 #  ifdef RTLD_LAZY
11530 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11531 #  else
11532 #    ifdef DL_LAZY
11533 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11534 #    else
11535 #      ifdef RTLD_NOW
11536 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11537 #      else
11538 #        ifdef DL_NOW
11539 #          define LT_DLLAZY_OR_NOW      DL_NOW
11540 #        else
11541 #          define LT_DLLAZY_OR_NOW      0
11542 #        endif
11543 #      endif
11544 #    endif
11545 #  endif
11546 #endif
11547
11548 #ifdef __cplusplus
11549 extern "C" void exit (int);
11550 #endif
11551
11552 void fnord() { int i=42;}
11553 int main ()
11554 {
11555   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11556   int status = $lt_dlunknown;
11557
11558   if (self)
11559     {
11560       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11561       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11562       /* dlclose (self); */
11563     }
11564   else
11565     puts (dlerror ());
11566
11567     exit (status);
11568 }
11569 EOF
11570   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571   (eval $ac_link) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11575     (./conftest; exit; ) >&5 2>/dev/null
11576     lt_status=$?
11577     case x$lt_status in
11578       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11579       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11580       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11581     esac
11582   else :
11583     # compilation failed
11584     lt_cv_dlopen_self_static=no
11585   fi
11586 fi
11587 rm -fr conftest*
11588
11589
11590 fi
11591 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11592 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11593     fi
11594
11595     CPPFLAGS="$save_CPPFLAGS"
11596     LDFLAGS="$save_LDFLAGS"
11597     LIBS="$save_LIBS"
11598     ;;
11599   esac
11600
11601   case $lt_cv_dlopen_self in
11602   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11603   *) enable_dlopen_self=unknown ;;
11604   esac
11605
11606   case $lt_cv_dlopen_self_static in
11607   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11608   *) enable_dlopen_self_static=unknown ;;
11609   esac
11610 fi
11611
11612
11613 # Report which library types will actually be built
11614 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11615 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11616 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11617 echo "${ECHO_T}$can_build_shared" >&6; }
11618
11619 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11620 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11621 test "$can_build_shared" = "no" && enable_shared=no
11622
11623 # On AIX, shared libraries and static libraries use the same namespace, and
11624 # are all built from PIC.
11625 case $host_os in
11626 aix3*)
11627   test "$enable_shared" = yes && enable_static=no
11628   if test -n "$RANLIB"; then
11629     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11630     postinstall_cmds='$RANLIB $lib'
11631   fi
11632   ;;
11633
11634 aix4* | aix5*)
11635   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11636     test "$enable_shared" = yes && enable_static=no
11637   fi
11638     ;;
11639 esac
11640 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11641 echo "${ECHO_T}$enable_shared" >&6; }
11642
11643 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11644 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11645 # Make sure either enable_shared or enable_static is yes.
11646 test "$enable_shared" = yes || enable_static=yes
11647 { echo "$as_me:$LINENO: result: $enable_static" >&5
11648 echo "${ECHO_T}$enable_static" >&6; }
11649
11650 # The else clause should only fire when bootstrapping the
11651 # libtool distribution, otherwise you forgot to ship ltmain.sh
11652 # with your package, and you will get complaints that there are
11653 # no rules to generate ltmain.sh.
11654 if test -f "$ltmain"; then
11655   # See if we are running on zsh, and set the options which allow our commands through
11656   # without removal of \ escapes.
11657   if test -n "${ZSH_VERSION+set}" ; then
11658     setopt NO_GLOB_SUBST
11659   fi
11660   # Now quote all the things that may contain metacharacters while being
11661   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11662   # variables and quote the copies for generation of the libtool script.
11663   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11664     SED SHELL STRIP \
11665     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11666     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11667     deplibs_check_method reload_flag reload_cmds need_locks \
11668     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11669     lt_cv_sys_global_symbol_to_c_name_address \
11670     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11671     old_postinstall_cmds old_postuninstall_cmds \
11672     compiler \
11673     CC \
11674     LD \
11675     lt_prog_compiler_wl \
11676     lt_prog_compiler_pic \
11677     lt_prog_compiler_static \
11678     lt_prog_compiler_no_builtin_flag \
11679     export_dynamic_flag_spec \
11680     thread_safe_flag_spec \
11681     whole_archive_flag_spec \
11682     enable_shared_with_static_runtimes \
11683     old_archive_cmds \
11684     old_archive_from_new_cmds \
11685     predep_objects \
11686     postdep_objects \
11687     predeps \
11688     postdeps \
11689     compiler_lib_search_path \
11690     archive_cmds \
11691     archive_expsym_cmds \
11692     postinstall_cmds \
11693     postuninstall_cmds \
11694     old_archive_from_expsyms_cmds \
11695     allow_undefined_flag \
11696     no_undefined_flag \
11697     export_symbols_cmds \
11698     hardcode_libdir_flag_spec \
11699     hardcode_libdir_flag_spec_ld \
11700     hardcode_libdir_separator \
11701     hardcode_automatic \
11702     module_cmds \
11703     module_expsym_cmds \
11704     lt_cv_prog_compiler_c_o \
11705     exclude_expsyms \
11706     include_expsyms; do
11707
11708     case $var in
11709     old_archive_cmds | \
11710     old_archive_from_new_cmds | \
11711     archive_cmds | \
11712     archive_expsym_cmds | \
11713     module_cmds | \
11714     module_expsym_cmds | \
11715     old_archive_from_expsyms_cmds | \
11716     export_symbols_cmds | \
11717     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11718     postinstall_cmds | postuninstall_cmds | \
11719     old_postinstall_cmds | old_postuninstall_cmds | \
11720     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11721       # Double-quote double-evaled strings.
11722       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11723       ;;
11724     *)
11725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11726       ;;
11727     esac
11728   done
11729
11730   case $lt_echo in
11731   *'\$0 --fallback-echo"')
11732     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11733     ;;
11734   esac
11735
11736 cfgfile="${ofile}T"
11737   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11738   $rm -f "$cfgfile"
11739   { echo "$as_me:$LINENO: creating $ofile" >&5
11740 echo "$as_me: creating $ofile" >&6;}
11741
11742   cat <<__EOF__ >> "$cfgfile"
11743 #! $SHELL
11744
11745 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11746 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11747 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11748 #
11749 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11750 # Free Software Foundation, Inc.
11751 #
11752 # This file is part of GNU Libtool:
11753 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11754 #
11755 # This program is free software; you can redistribute it and/or modify
11756 # it under the terms of the GNU General Public License as published by
11757 # the Free Software Foundation; either version 2 of the License, or
11758 # (at your option) any later version.
11759 #
11760 # This program is distributed in the hope that it will be useful, but
11761 # WITHOUT ANY WARRANTY; without even the implied warranty of
11762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11763 # General Public License for more details.
11764 #
11765 # You should have received a copy of the GNU General Public License
11766 # along with this program; if not, write to the Free Software
11767 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11768 #
11769 # As a special exception to the GNU General Public License, if you
11770 # distribute this file as part of a program that contains a
11771 # configuration script generated by Autoconf, you may include it under
11772 # the same distribution terms that you use for the rest of that program.
11773
11774 # A sed program that does not truncate output.
11775 SED=$lt_SED
11776
11777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11778 Xsed="$SED -e 1s/^X//"
11779
11780 # The HP-UX ksh and POSIX shell print the target directory to stdout
11781 # if CDPATH is set.
11782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11783
11784 # The names of the tagged configurations supported by this script.
11785 available_tags=
11786
11787 # ### BEGIN LIBTOOL CONFIG
11788
11789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11790
11791 # Shell to use when invoking shell scripts.
11792 SHELL=$lt_SHELL
11793
11794 # Whether or not to build shared libraries.
11795 build_libtool_libs=$enable_shared
11796
11797 # Whether or not to build static libraries.
11798 build_old_libs=$enable_static
11799
11800 # Whether or not to add -lc for building shared libraries.
11801 build_libtool_need_lc=$archive_cmds_need_lc
11802
11803 # Whether or not to disallow shared libs when runtime libs are static
11804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11805
11806 # Whether or not to optimize for fast installation.
11807 fast_install=$enable_fast_install
11808
11809 # The host system.
11810 host_alias=$host_alias
11811 host=$host
11812 host_os=$host_os
11813
11814 # The build system.
11815 build_alias=$build_alias
11816 build=$build
11817 build_os=$build_os
11818
11819 # An echo program that does not interpret backslashes.
11820 echo=$lt_echo
11821
11822 # The archiver.
11823 AR=$lt_AR
11824 AR_FLAGS=$lt_AR_FLAGS
11825
11826 # A C compiler.
11827 LTCC=$lt_LTCC
11828
11829 # LTCC compiler flags.
11830 LTCFLAGS=$lt_LTCFLAGS
11831
11832 # A language-specific compiler.
11833 CC=$lt_compiler
11834
11835 # Is the compiler the GNU C compiler?
11836 with_gcc=$GCC
11837
11838 # An ERE matcher.
11839 EGREP=$lt_EGREP
11840
11841 # The linker used to build libraries.
11842 LD=$lt_LD
11843
11844 # Whether we need hard or soft links.
11845 LN_S=$lt_LN_S
11846
11847 # A BSD-compatible nm program.
11848 NM=$lt_NM
11849
11850 # A symbol stripping program
11851 STRIP=$lt_STRIP
11852
11853 # Used to examine libraries when file_magic_cmd begins "file"
11854 MAGIC_CMD=$MAGIC_CMD
11855
11856 # Used on cygwin: DLL creation program.
11857 DLLTOOL="$DLLTOOL"
11858
11859 # Used on cygwin: object dumper.
11860 OBJDUMP="$OBJDUMP"
11861
11862 # Used on cygwin: assembler.
11863 AS="$AS"
11864
11865 # The name of the directory that contains temporary libtool files.
11866 objdir=$objdir
11867
11868 # How to create reloadable object files.
11869 reload_flag=$lt_reload_flag
11870 reload_cmds=$lt_reload_cmds
11871
11872 # How to pass a linker flag through the compiler.
11873 wl=$lt_lt_prog_compiler_wl
11874
11875 # Object file suffix (normally "o").
11876 objext="$ac_objext"
11877
11878 # Old archive suffix (normally "a").
11879 libext="$libext"
11880
11881 # Shared library suffix (normally ".so").
11882 shrext_cmds='$shrext_cmds'
11883
11884 # Executable file suffix (normally "").
11885 exeext="$exeext"
11886
11887 # Additional compiler flags for building library objects.
11888 pic_flag=$lt_lt_prog_compiler_pic
11889 pic_mode=$pic_mode
11890
11891 # What is the maximum length of a command?
11892 max_cmd_len=$lt_cv_sys_max_cmd_len
11893
11894 # Does compiler simultaneously support -c and -o options?
11895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11896
11897 # Must we lock files when doing compilation?
11898 need_locks=$lt_need_locks
11899
11900 # Do we need the lib prefix for modules?
11901 need_lib_prefix=$need_lib_prefix
11902
11903 # Do we need a version for libraries?
11904 need_version=$need_version
11905
11906 # Whether dlopen is supported.
11907 dlopen_support=$enable_dlopen
11908
11909 # Whether dlopen of programs is supported.
11910 dlopen_self=$enable_dlopen_self
11911
11912 # Whether dlopen of statically linked programs is supported.
11913 dlopen_self_static=$enable_dlopen_self_static
11914
11915 # Compiler flag to prevent dynamic linking.
11916 link_static_flag=$lt_lt_prog_compiler_static
11917
11918 # Compiler flag to turn off builtin functions.
11919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11920
11921 # Compiler flag to allow reflexive dlopens.
11922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11923
11924 # Compiler flag to generate shared objects directly from archives.
11925 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11926
11927 # Compiler flag to generate thread-safe objects.
11928 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11929
11930 # Library versioning type.
11931 version_type=$version_type
11932
11933 # Format of library name prefix.
11934 libname_spec=$lt_libname_spec
11935
11936 # List of archive names.  First name is the real one, the rest are links.
11937 # The last name is the one that the linker finds with -lNAME.
11938 library_names_spec=$lt_library_names_spec
11939
11940 # The coded name of the library, if different from the real name.
11941 soname_spec=$lt_soname_spec
11942
11943 # Commands used to build and install an old-style archive.
11944 RANLIB=$lt_RANLIB
11945 old_archive_cmds=$lt_old_archive_cmds
11946 old_postinstall_cmds=$lt_old_postinstall_cmds
11947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11948
11949 # Create an old-style archive from a shared archive.
11950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11951
11952 # Create a temporary old-style archive to link instead of a shared archive.
11953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11954
11955 # Commands used to build and install a shared archive.
11956 archive_cmds=$lt_archive_cmds
11957 archive_expsym_cmds=$lt_archive_expsym_cmds
11958 postinstall_cmds=$lt_postinstall_cmds
11959 postuninstall_cmds=$lt_postuninstall_cmds
11960
11961 # Commands used to build a loadable module (assumed same as above if empty)
11962 module_cmds=$lt_module_cmds
11963 module_expsym_cmds=$lt_module_expsym_cmds
11964
11965 # Commands to strip libraries.
11966 old_striplib=$lt_old_striplib
11967 striplib=$lt_striplib
11968
11969 # Dependencies to place before the objects being linked to create a
11970 # shared library.
11971 predep_objects=$lt_predep_objects
11972
11973 # Dependencies to place after the objects being linked to create a
11974 # shared library.
11975 postdep_objects=$lt_postdep_objects
11976
11977 # Dependencies to place before the objects being linked to create a
11978 # shared library.
11979 predeps=$lt_predeps
11980
11981 # Dependencies to place after the objects being linked to create a
11982 # shared library.
11983 postdeps=$lt_postdeps
11984
11985 # The library search path used internally by the compiler when linking
11986 # a shared library.
11987 compiler_lib_search_path=$lt_compiler_lib_search_path
11988
11989 # Method to check whether dependent libraries are shared objects.
11990 deplibs_check_method=$lt_deplibs_check_method
11991
11992 # Command to use when deplibs_check_method == file_magic.
11993 file_magic_cmd=$lt_file_magic_cmd
11994
11995 # Flag that allows shared libraries with undefined symbols to be built.
11996 allow_undefined_flag=$lt_allow_undefined_flag
11997
11998 # Flag that forces no undefined symbols.
11999 no_undefined_flag=$lt_no_undefined_flag
12000
12001 # Commands used to finish a libtool library installation in a directory.
12002 finish_cmds=$lt_finish_cmds
12003
12004 # Same as above, but a single script fragment to be evaled but not shown.
12005 finish_eval=$lt_finish_eval
12006
12007 # Take the output of nm and produce a listing of raw symbols and C names.
12008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12009
12010 # Transform the output of nm in a proper C declaration
12011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12012
12013 # Transform the output of nm in a C name address pair
12014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12015
12016 # This is the shared library runtime path variable.
12017 runpath_var=$runpath_var
12018
12019 # This is the shared library path variable.
12020 shlibpath_var=$shlibpath_var
12021
12022 # Is shlibpath searched before the hard-coded library search path?
12023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12024
12025 # How to hardcode a shared library path into an executable.
12026 hardcode_action=$hardcode_action
12027
12028 # Whether we should hardcode library paths into libraries.
12029 hardcode_into_libs=$hardcode_into_libs
12030
12031 # Flag to hardcode \$libdir into a binary during linking.
12032 # This must work even if \$libdir does not exist.
12033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12034
12035 # If ld is used when linking, flag to hardcode \$libdir into
12036 # a binary during linking. This must work even if \$libdir does
12037 # not exist.
12038 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12039
12040 # Whether we need a single -rpath flag with a separated argument.
12041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12042
12043 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12044 # resulting binary.
12045 hardcode_direct=$hardcode_direct
12046
12047 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12048 # resulting binary.
12049 hardcode_minus_L=$hardcode_minus_L
12050
12051 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12052 # the resulting binary.
12053 hardcode_shlibpath_var=$hardcode_shlibpath_var
12054
12055 # Set to yes if building a shared library automatically hardcodes DIR into the library
12056 # and all subsequent libraries and executables linked against it.
12057 hardcode_automatic=$hardcode_automatic
12058
12059 # Variables whose values should be saved in libtool wrapper scripts and
12060 # restored at relink time.
12061 variables_saved_for_relink="$variables_saved_for_relink"
12062
12063 # Whether libtool must link a program against all its dependency libraries.
12064 link_all_deplibs=$link_all_deplibs
12065
12066 # Compile-time system search path for libraries
12067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12068
12069 # Run-time system search path for libraries
12070 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12071
12072 # Fix the shell variable \$srcfile for the compiler.
12073 fix_srcfile_path="$fix_srcfile_path"
12074
12075 # Set to yes if exported symbols are required.
12076 always_export_symbols=$always_export_symbols
12077
12078 # The commands to list exported symbols.
12079 export_symbols_cmds=$lt_export_symbols_cmds
12080
12081 # The commands to extract the exported symbol list from a shared archive.
12082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12083
12084 # Symbols that should not be listed in the preloaded symbols.
12085 exclude_expsyms=$lt_exclude_expsyms
12086
12087 # Symbols that must always be exported.
12088 include_expsyms=$lt_include_expsyms
12089
12090 # ### END LIBTOOL CONFIG
12091
12092 __EOF__
12093
12094
12095   case $host_os in
12096   aix3*)
12097     cat <<\EOF >> "$cfgfile"
12098
12099 # AIX sometimes has problems with the GCC collect2 program.  For some
12100 # reason, if we set the COLLECT_NAMES environment variable, the problems
12101 # vanish in a puff of smoke.
12102 if test "X${COLLECT_NAMES+set}" != Xset; then
12103   COLLECT_NAMES=
12104   export COLLECT_NAMES
12105 fi
12106 EOF
12107     ;;
12108   esac
12109
12110   # We use sed instead of cat because bash on DJGPP gets confused if
12111   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12112   # text mode, it properly converts lines to CR/LF.  This bash problem
12113   # is reportedly fixed, but why not run on old versions too?
12114   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12115
12116   mv -f "$cfgfile" "$ofile" || \
12117     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12118   chmod +x "$ofile"
12119
12120 else
12121   # If there is no Makefile yet, we rely on a make rule to execute
12122   # `config.status --recheck' to rerun these tests and create the
12123   # libtool script then.
12124   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12125   if test -f "$ltmain_in"; then
12126     test -f Makefile && make "$ltmain"
12127   fi
12128 fi
12129
12130
12131 ac_ext=c
12132 ac_cpp='$CPP $CPPFLAGS'
12133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136
12137 CC="$lt_save_CC"
12138
12139
12140 # Check whether --with-tags was given.
12141 if test "${with_tags+set}" = set; then
12142   withval=$with_tags; tagnames="$withval"
12143 fi
12144
12145
12146 if test -f "$ltmain" && test -n "$tagnames"; then
12147   if test ! -f "${ofile}"; then
12148     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12149 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12150   fi
12151
12152   if test -z "$LTCC"; then
12153     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12154     if test -z "$LTCC"; then
12155       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12156 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12157     else
12158       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12159 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12160     fi
12161   fi
12162   if test -z "$LTCFLAGS"; then
12163     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12164   fi
12165
12166   # Extract list of available tagged configurations in $ofile.
12167   # Note that this assumes the entire list is on one line.
12168   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12169
12170   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171   for tagname in $tagnames; do
12172     IFS="$lt_save_ifs"
12173     # Check whether tagname contains only valid characters
12174     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12175     "") ;;
12176     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12177 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12178    { (exit 1); exit 1; }; }
12179         ;;
12180     esac
12181
12182     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12183     then
12184       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12185 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12186    { (exit 1); exit 1; }; }
12187     fi
12188
12189     # Update the list of available tags.
12190     if test -n "$tagname"; then
12191       echo appending configuration tag \"$tagname\" to $ofile
12192
12193       case $tagname in
12194       CXX)
12195         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12196             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12197             (test "X$CXX" != "Xg++"))) ; then
12198           ac_ext=cpp
12199 ac_cpp='$CXXCPP $CPPFLAGS'
12200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12203
12204
12205
12206
12207 archive_cmds_need_lc_CXX=no
12208 allow_undefined_flag_CXX=
12209 always_export_symbols_CXX=no
12210 archive_expsym_cmds_CXX=
12211 export_dynamic_flag_spec_CXX=
12212 hardcode_direct_CXX=no
12213 hardcode_libdir_flag_spec_CXX=
12214 hardcode_libdir_flag_spec_ld_CXX=
12215 hardcode_libdir_separator_CXX=
12216 hardcode_minus_L_CXX=no
12217 hardcode_shlibpath_var_CXX=unsupported
12218 hardcode_automatic_CXX=no
12219 module_cmds_CXX=
12220 module_expsym_cmds_CXX=
12221 link_all_deplibs_CXX=unknown
12222 old_archive_cmds_CXX=$old_archive_cmds
12223 no_undefined_flag_CXX=
12224 whole_archive_flag_spec_CXX=
12225 enable_shared_with_static_runtimes_CXX=no
12226
12227 # Dependencies to place before and after the object being linked:
12228 predep_objects_CXX=
12229 postdep_objects_CXX=
12230 predeps_CXX=
12231 postdeps_CXX=
12232 compiler_lib_search_path_CXX=
12233
12234 # Source file extension for C++ test sources.
12235 ac_ext=cpp
12236
12237 # Object file extension for compiled C++ test sources.
12238 objext=o
12239 objext_CXX=$objext
12240
12241 # Code to be used in simple compile tests
12242 lt_simple_compile_test_code="int some_variable = 0;\n"
12243
12244 # Code to be used in simple link tests
12245 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12246
12247 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12248
12249 # If no C compiler was specified, use CC.
12250 LTCC=${LTCC-"$CC"}
12251
12252 # If no C compiler flags were specified, use CFLAGS.
12253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12254
12255 # Allow CC to be a program name with arguments.
12256 compiler=$CC
12257
12258
12259 # save warnings/boilerplate of simple test code
12260 ac_outfile=conftest.$ac_objext
12261 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12262 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12263 _lt_compiler_boilerplate=`cat conftest.err`
12264 $rm conftest*
12265
12266 ac_outfile=conftest.$ac_objext
12267 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12268 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12269 _lt_linker_boilerplate=`cat conftest.err`
12270 $rm conftest*
12271
12272
12273 # Allow CC to be a program name with arguments.
12274 lt_save_CC=$CC
12275 lt_save_LD=$LD
12276 lt_save_GCC=$GCC
12277 GCC=$GXX
12278 lt_save_with_gnu_ld=$with_gnu_ld
12279 lt_save_path_LD=$lt_cv_path_LD
12280 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12281   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12282 else
12283   $as_unset lt_cv_prog_gnu_ld
12284 fi
12285 if test -n "${lt_cv_path_LDCXX+set}"; then
12286   lt_cv_path_LD=$lt_cv_path_LDCXX
12287 else
12288   $as_unset lt_cv_path_LD
12289 fi
12290 test -z "${LDCXX+set}" || LD=$LDCXX
12291 CC=${CXX-"c++"}
12292 compiler=$CC
12293 compiler_CXX=$CC
12294 for cc_temp in $compiler""; do
12295   case $cc_temp in
12296     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12297     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12298     \-*) ;;
12299     *) break;;
12300   esac
12301 done
12302 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12303
12304
12305 # We don't want -fno-exception wen compiling C++ code, so set the
12306 # no_builtin_flag separately
12307 if test "$GXX" = yes; then
12308   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12309 else
12310   lt_prog_compiler_no_builtin_flag_CXX=
12311 fi
12312
12313 if test "$GXX" = yes; then
12314   # Set up default GNU C++ configuration
12315
12316
12317 # Check whether --with-gnu-ld was given.
12318 if test "${with_gnu_ld+set}" = set; then
12319   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12320 else
12321   with_gnu_ld=no
12322 fi
12323
12324 ac_prog=ld
12325 if test "$GCC" = yes; then
12326   # Check if gcc -print-prog-name=ld gives a path.
12327   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12328 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12329   case $host in
12330   *-*-mingw*)
12331     # gcc leaves a trailing carriage return which upsets mingw
12332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12333   *)
12334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12335   esac
12336   case $ac_prog in
12337     # Accept absolute paths.
12338     [\\/]* | ?:[\\/]*)
12339       re_direlt='/[^/][^/]*/\.\./'
12340       # Canonicalize the pathname of ld
12341       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12342       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12343         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12344       done
12345       test -z "$LD" && LD="$ac_prog"
12346       ;;
12347   "")
12348     # If it fails, then pretend we aren't using GCC.
12349     ac_prog=ld
12350     ;;
12351   *)
12352     # If it is relative, then search for the first ld in PATH.
12353     with_gnu_ld=unknown
12354     ;;
12355   esac
12356 elif test "$with_gnu_ld" = yes; then
12357   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12359 else
12360   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12362 fi
12363 if test "${lt_cv_path_LD+set}" = set; then
12364   echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366   if test -z "$LD"; then
12367   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12368   for ac_dir in $PATH; do
12369     IFS="$lt_save_ifs"
12370     test -z "$ac_dir" && ac_dir=.
12371     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12372       lt_cv_path_LD="$ac_dir/$ac_prog"
12373       # Check to see if the program is GNU ld.  I'd rather use --version,
12374       # but apparently some variants of GNU ld only accept -v.
12375       # Break only if it was the GNU/non-GNU ld that we prefer.
12376       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12377       *GNU* | *'with BFD'*)
12378         test "$with_gnu_ld" != no && break
12379         ;;
12380       *)
12381         test "$with_gnu_ld" != yes && break
12382         ;;
12383       esac
12384     fi
12385   done
12386   IFS="$lt_save_ifs"
12387 else
12388   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12389 fi
12390 fi
12391
12392 LD="$lt_cv_path_LD"
12393 if test -n "$LD"; then
12394   { echo "$as_me:$LINENO: result: $LD" >&5
12395 echo "${ECHO_T}$LD" >&6; }
12396 else
12397   { echo "$as_me:$LINENO: result: no" >&5
12398 echo "${ECHO_T}no" >&6; }
12399 fi
12400 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12401 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12402    { (exit 1); exit 1; }; }
12403 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12404 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12405 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12406   echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12409 case `$LD -v 2>&1 </dev/null` in
12410 *GNU* | *'with BFD'*)
12411   lt_cv_prog_gnu_ld=yes
12412   ;;
12413 *)
12414   lt_cv_prog_gnu_ld=no
12415   ;;
12416 esac
12417 fi
12418 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12419 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12420 with_gnu_ld=$lt_cv_prog_gnu_ld
12421
12422
12423
12424   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425   # archiving commands below assume that GNU ld is being used.
12426   if test "$with_gnu_ld" = yes; then
12427     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428     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'
12429
12430     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12431     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12432
12433     # If archive_cmds runs LD, not CC, wlarc should be empty
12434     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435     #     investigate it a little bit more. (MM)
12436     wlarc='${wl}'
12437
12438     # ancient GNU ld didn't support --whole-archive et. al.
12439     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12440         grep 'no-whole-archive' > /dev/null; then
12441       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12442     else
12443       whole_archive_flag_spec_CXX=
12444     fi
12445   else
12446     with_gnu_ld=no
12447     wlarc=
12448
12449     # A generic and very simple default shared library creation
12450     # command for GNU C++ for the case where it uses the native
12451     # linker, instead of GNU ld.  If possible, this setting should
12452     # overridden to take advantage of the native linker features on
12453     # the platform it is being used on.
12454     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12455   fi
12456
12457   # Commands to make compiler produce verbose output that lists
12458   # what "hidden" libraries, object files and flags are used when
12459   # linking a shared library.
12460   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12461
12462 else
12463   GXX=no
12464   with_gnu_ld=no
12465   wlarc=
12466 fi
12467
12468 # PORTME: fill in a description of your system's C++ link characteristics
12469 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12471 ld_shlibs_CXX=yes
12472 case $host_os in
12473   aix3*)
12474     # FIXME: insert proper C++ library support
12475     ld_shlibs_CXX=no
12476     ;;
12477   aix4* | aix5*)
12478     if test "$host_cpu" = ia64; then
12479       # On IA64, the linker does run time linking by default, so we don't
12480       # have to do anything special.
12481       aix_use_runtimelinking=no
12482       exp_sym_flag='-Bexport'
12483       no_entry_flag=""
12484     else
12485       aix_use_runtimelinking=no
12486
12487       # Test if we are trying to use run time linking or normal
12488       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489       # need to do runtime linking.
12490       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12491         for ld_flag in $LDFLAGS; do
12492           case $ld_flag in
12493           *-brtl*)
12494             aix_use_runtimelinking=yes
12495             break
12496             ;;
12497           esac
12498         done
12499         ;;
12500       esac
12501
12502       exp_sym_flag='-bexport'
12503       no_entry_flag='-bnoentry'
12504     fi
12505
12506     # When large executables or shared objects are built, AIX ld can
12507     # have problems creating the table of contents.  If linking a library
12508     # or program results in "error TOC overflow" add -mminimal-toc to
12509     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12510     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512     archive_cmds_CXX=''
12513     hardcode_direct_CXX=yes
12514     hardcode_libdir_separator_CXX=':'
12515     link_all_deplibs_CXX=yes
12516
12517     if test "$GXX" = yes; then
12518       case $host_os in aix4.[012]|aix4.[012].*)
12519       # We only want to do this on AIX 4.2 and lower, the check
12520       # below for broken collect2 doesn't work under 4.3+
12521         collect2name=`${CC} -print-prog-name=collect2`
12522         if test -f "$collect2name" && \
12523            strings "$collect2name" | grep resolve_lib_name >/dev/null
12524         then
12525           # We have reworked collect2
12526           hardcode_direct_CXX=yes
12527         else
12528           # We have old collect2
12529           hardcode_direct_CXX=unsupported
12530           # It fails to find uninstalled libraries when the uninstalled
12531           # path is not listed in the libpath.  Setting hardcode_minus_L
12532           # to unsupported forces relinking
12533           hardcode_minus_L_CXX=yes
12534           hardcode_libdir_flag_spec_CXX='-L$libdir'
12535           hardcode_libdir_separator_CXX=
12536         fi
12537         ;;
12538       esac
12539       shared_flag='-shared'
12540       if test "$aix_use_runtimelinking" = yes; then
12541         shared_flag="$shared_flag "'${wl}-G'
12542       fi
12543     else
12544       # not using gcc
12545       if test "$host_cpu" = ia64; then
12546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12547         # chokes on -Wl,-G. The following line is correct:
12548         shared_flag='-G'
12549       else
12550         if test "$aix_use_runtimelinking" = yes; then
12551           shared_flag='${wl}-G'
12552         else
12553           shared_flag='${wl}-bM:SRE'
12554         fi
12555       fi
12556     fi
12557
12558     # It seems that -bexpall does not export symbols beginning with
12559     # underscore (_), so it is better to generate a list of symbols to export.
12560     always_export_symbols_CXX=yes
12561     if test "$aix_use_runtimelinking" = yes; then
12562       # Warning - without using the other runtime loading flags (-brtl),
12563       # -berok will link without error, but may produce a broken library.
12564       allow_undefined_flag_CXX='-berok'
12565       # Determine the default libpath from the value encoded in an empty executable.
12566       cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572
12573 int
12574 main ()
12575 {
12576
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585   *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588   (eval "$ac_link") 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } && {
12595          test -z "$ac_cxx_werror_flag" ||
12596          test ! -s conftest.err
12597        } && test -s conftest$ac_exeext &&
12598        $as_test_x conftest$ac_exeext; then
12599
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12601 }'`
12602 # Check for a 64-bit object if we didn't find anything.
12603 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12604 }'`; fi
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609
12610 fi
12611
12612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12613       conftest$ac_exeext conftest.$ac_ext
12614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12615
12616       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12617
12618       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"
12619      else
12620       if test "$host_cpu" = ia64; then
12621         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12622         allow_undefined_flag_CXX="-z nodefs"
12623         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"
12624       else
12625         # Determine the default libpath from the value encoded in an empty executable.
12626         cat >conftest.$ac_ext <<_ACEOF
12627 /* confdefs.h.  */
12628 _ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h.  */
12632
12633 int
12634 main ()
12635 {
12636
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_link") 2>conftest.er1
12649   ac_status=$?
12650   grep -v '^ *+' conftest.er1 >conftest.err
12651   rm -f conftest.er1
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } && {
12655          test -z "$ac_cxx_werror_flag" ||
12656          test ! -s conftest.err
12657        } && test -s conftest$ac_exeext &&
12658        $as_test_x conftest$ac_exeext; then
12659
12660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12661 }'`
12662 # Check for a 64-bit object if we didn't find anything.
12663 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12664 }'`; fi
12665 else
12666   echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669
12670 fi
12671
12672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12673       conftest$ac_exeext conftest.$ac_ext
12674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12675
12676         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12677         # Warning - without using the other run time loading flags,
12678         # -berok will link without error, but may produce a broken library.
12679         no_undefined_flag_CXX=' ${wl}-bernotok'
12680         allow_undefined_flag_CXX=' ${wl}-berok'
12681         # Exported symbols can be pulled into shared objects from archives
12682         whole_archive_flag_spec_CXX='$convenience'
12683         archive_cmds_need_lc_CXX=yes
12684         # This is similar to how AIX traditionally builds its shared libraries.
12685         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'
12686       fi
12687     fi
12688     ;;
12689
12690   beos*)
12691     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12692       allow_undefined_flag_CXX=unsupported
12693       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12694       # support --undefined.  This deserves some investigation.  FIXME
12695       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12696     else
12697       ld_shlibs_CXX=no
12698     fi
12699     ;;
12700
12701   chorus*)
12702     case $cc_basename in
12703       *)
12704         # FIXME: insert proper C++ library support
12705         ld_shlibs_CXX=no
12706         ;;
12707     esac
12708     ;;
12709
12710   cygwin* | mingw* | pw32*)
12711     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12712     # as there is no search path for DLLs.
12713     hardcode_libdir_flag_spec_CXX='-L$libdir'
12714     allow_undefined_flag_CXX=unsupported
12715     always_export_symbols_CXX=no
12716     enable_shared_with_static_runtimes_CXX=yes
12717
12718     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12719       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'
12720       # If the export-symbols file already is a .def file (1st line
12721       # is EXPORTS), use it as is; otherwise, prepend...
12722       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12723         cp $export_symbols $output_objdir/$soname.def;
12724       else
12725         echo EXPORTS > $output_objdir/$soname.def;
12726         cat $export_symbols >> $output_objdir/$soname.def;
12727       fi~
12728       $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'
12729     else
12730       ld_shlibs_CXX=no
12731     fi
12732   ;;
12733       darwin* | rhapsody*)
12734         case $host_os in
12735         rhapsody* | darwin1.[012])
12736          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12737          ;;
12738        *) # Darwin 1.3 on
12739          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12740            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12741          else
12742            case ${MACOSX_DEPLOYMENT_TARGET} in
12743              10.[012])
12744                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12745                ;;
12746              10.*)
12747                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12748                ;;
12749            esac
12750          fi
12751          ;;
12752         esac
12753       archive_cmds_need_lc_CXX=no
12754       hardcode_direct_CXX=no
12755       hardcode_automatic_CXX=yes
12756       hardcode_shlibpath_var_CXX=unsupported
12757       whole_archive_flag_spec_CXX=''
12758       link_all_deplibs_CXX=yes
12759
12760     if test "$GXX" = yes ; then
12761       lt_int_apple_cc_single_mod=no
12762       output_verbose_link_cmd='echo'
12763       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12764        lt_int_apple_cc_single_mod=yes
12765       fi
12766       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12767        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12768       else
12769           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'
12770         fi
12771         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12772         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12773           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12774             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}'
12775           else
12776             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}'
12777           fi
12778             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}'
12779       else
12780       case $cc_basename in
12781         xlc*)
12782          output_verbose_link_cmd='echo'
12783           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12784           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12785           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12786           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12787           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}'
12788           ;;
12789        *)
12790          ld_shlibs_CXX=no
12791           ;;
12792       esac
12793       fi
12794         ;;
12795
12796   dgux*)
12797     case $cc_basename in
12798       ec++*)
12799         # FIXME: insert proper C++ library support
12800         ld_shlibs_CXX=no
12801         ;;
12802       ghcx*)
12803         # Green Hills C++ Compiler
12804         # FIXME: insert proper C++ library support
12805         ld_shlibs_CXX=no
12806         ;;
12807       *)
12808         # FIXME: insert proper C++ library support
12809         ld_shlibs_CXX=no
12810         ;;
12811     esac
12812     ;;
12813   freebsd[12]*)
12814     # C++ shared libraries reported to be fairly broken before switch to ELF
12815     ld_shlibs_CXX=no
12816     ;;
12817   freebsd-elf*)
12818     archive_cmds_need_lc_CXX=no
12819     ;;
12820   freebsd* | dragonfly*)
12821     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12822     # conventions
12823     ld_shlibs_CXX=yes
12824     ;;
12825   gnu*)
12826     ;;
12827   hpux9*)
12828     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12829     hardcode_libdir_separator_CXX=:
12830     export_dynamic_flag_spec_CXX='${wl}-E'
12831     hardcode_direct_CXX=yes
12832     hardcode_minus_L_CXX=yes # Not in the search PATH,
12833                                 # but as the default
12834                                 # location of the library.
12835
12836     case $cc_basename in
12837     CC*)
12838       # FIXME: insert proper C++ library support
12839       ld_shlibs_CXX=no
12840       ;;
12841     aCC*)
12842       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'
12843       # Commands to make compiler produce verbose output that lists
12844       # what "hidden" libraries, object files and flags are used when
12845       # linking a shared library.
12846       #
12847       # There doesn't appear to be a way to prevent this compiler from
12848       # explicitly linking system object files so we need to strip them
12849       # from the output so that they don't get included in the library
12850       # dependencies.
12851       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'
12852       ;;
12853     *)
12854       if test "$GXX" = yes; then
12855         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'
12856       else
12857         # FIXME: insert proper C++ library support
12858         ld_shlibs_CXX=no
12859       fi
12860       ;;
12861     esac
12862     ;;
12863   hpux10*|hpux11*)
12864     if test $with_gnu_ld = no; then
12865       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12866       hardcode_libdir_separator_CXX=:
12867
12868       case $host_cpu in
12869       hppa*64*|ia64*)
12870         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12871         ;;
12872       *)
12873         export_dynamic_flag_spec_CXX='${wl}-E'
12874         ;;
12875       esac
12876     fi
12877     case $host_cpu in
12878     hppa*64*|ia64*)
12879       hardcode_direct_CXX=no
12880       hardcode_shlibpath_var_CXX=no
12881       ;;
12882     *)
12883       hardcode_direct_CXX=yes
12884       hardcode_minus_L_CXX=yes # Not in the search PATH,
12885                                               # but as the default
12886                                               # location of the library.
12887       ;;
12888     esac
12889
12890     case $cc_basename in
12891       CC*)
12892         # FIXME: insert proper C++ library support
12893         ld_shlibs_CXX=no
12894         ;;
12895       aCC*)
12896         case $host_cpu in
12897         hppa*64*)
12898           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12899           ;;
12900         ia64*)
12901           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902           ;;
12903         *)
12904           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905           ;;
12906         esac
12907         # Commands to make compiler produce verbose output that lists
12908         # what "hidden" libraries, object files and flags are used when
12909         # linking a shared library.
12910         #
12911         # There doesn't appear to be a way to prevent this compiler from
12912         # explicitly linking system object files so we need to strip them
12913         # from the output so that they don't get included in the library
12914         # dependencies.
12915         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'
12916         ;;
12917       *)
12918         if test "$GXX" = yes; then
12919           if test $with_gnu_ld = no; then
12920             case $host_cpu in
12921             hppa*64*)
12922               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923               ;;
12924             ia64*)
12925               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926               ;;
12927             *)
12928               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'
12929               ;;
12930             esac
12931           fi
12932         else
12933           # FIXME: insert proper C++ library support
12934           ld_shlibs_CXX=no
12935         fi
12936         ;;
12937     esac
12938     ;;
12939   interix3*)
12940     hardcode_direct_CXX=no
12941     hardcode_shlibpath_var_CXX=no
12942     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12943     export_dynamic_flag_spec_CXX='${wl}-E'
12944     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12945     # Instead, shared libraries are loaded at an image base (0x10000000 by
12946     # default) and relocated if they conflict, which is a slow very memory
12947     # consuming and fragmenting process.  To avoid this, we pick a random,
12948     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12949     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12950     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'
12951     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'
12952     ;;
12953   irix5* | irix6*)
12954     case $cc_basename in
12955       CC*)
12956         # SGI C++
12957         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'
12958
12959         # Archives containing C++ object files must be created using
12960         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12961         # necessary to make sure instantiated templates are included
12962         # in the archive.
12963         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12964         ;;
12965       *)
12966         if test "$GXX" = yes; then
12967           if test "$with_gnu_ld" = no; then
12968             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'
12969           else
12970             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'
12971           fi
12972         fi
12973         link_all_deplibs_CXX=yes
12974         ;;
12975     esac
12976     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12977     hardcode_libdir_separator_CXX=:
12978     ;;
12979   linux* | k*bsd*-gnu)
12980     case $cc_basename in
12981       KCC*)
12982         # Kuck and Associates, Inc. (KAI) C++ Compiler
12983
12984         # KCC will only create a shared library if the output file
12985         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12986         # to its proper name (with version) after linking.
12987         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'
12988         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'
12989         # Commands to make compiler produce verbose output that lists
12990         # what "hidden" libraries, object files and flags are used when
12991         # linking a shared library.
12992         #
12993         # There doesn't appear to be a way to prevent this compiler from
12994         # explicitly linking system object files so we need to strip them
12995         # from the output so that they don't get included in the library
12996         # dependencies.
12997         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'
12998
12999         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13000         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13001
13002         # Archives containing C++ object files must be created using
13003         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13004         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13005         ;;
13006       icpc*)
13007         # Intel C++
13008         with_gnu_ld=yes
13009         # version 8.0 and above of icpc choke on multiply defined symbols
13010         # if we add $predep_objects and $postdep_objects, however 7.1 and
13011         # earlier do not add the objects themselves.
13012         case `$CC -V 2>&1` in
13013         *"Version 7."*)
13014           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015           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'
13016           ;;
13017         *)  # Version 8.0 or newer
13018           tmp_idyn=
13019           case $host_cpu in
13020             ia64*) tmp_idyn=' -i_dynamic';;
13021           esac
13022           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023           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'
13024           ;;
13025         esac
13026         archive_cmds_need_lc_CXX=no
13027         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13028         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13029         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13030         ;;
13031       pgCC*)
13032         # Portland Group C++ compiler
13033         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13034         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'
13035
13036         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13037         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038         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'
13039         ;;
13040       cxx*)
13041         # Compaq C++
13042         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043         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'
13044
13045         runpath_var=LD_RUN_PATH
13046         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13047         hardcode_libdir_separator_CXX=:
13048
13049         # Commands to make compiler produce verbose output that lists
13050         # what "hidden" libraries, object files and flags are used when
13051         # linking a shared library.
13052         #
13053         # There doesn't appear to be a way to prevent this compiler from
13054         # explicitly linking system object files so we need to strip them
13055         # from the output so that they don't get included in the library
13056         # dependencies.
13057         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'
13058         ;;
13059     esac
13060     ;;
13061   lynxos*)
13062     # FIXME: insert proper C++ library support
13063     ld_shlibs_CXX=no
13064     ;;
13065   m88k*)
13066     # FIXME: insert proper C++ library support
13067     ld_shlibs_CXX=no
13068     ;;
13069   mvs*)
13070     case $cc_basename in
13071       cxx*)
13072         # FIXME: insert proper C++ library support
13073         ld_shlibs_CXX=no
13074         ;;
13075       *)
13076         # FIXME: insert proper C++ library support
13077         ld_shlibs_CXX=no
13078         ;;
13079     esac
13080     ;;
13081   netbsd* | netbsdelf*-gnu)
13082     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13083       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13084       wlarc=
13085       hardcode_libdir_flag_spec_CXX='-R$libdir'
13086       hardcode_direct_CXX=yes
13087       hardcode_shlibpath_var_CXX=no
13088     fi
13089     # Workaround some broken pre-1.5 toolchains
13090     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13091     ;;
13092   openbsd2*)
13093     # C++ shared libraries are fairly broken
13094     ld_shlibs_CXX=no
13095     ;;
13096   openbsd*)
13097     hardcode_direct_CXX=yes
13098     hardcode_shlibpath_var_CXX=no
13099     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13100     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13101     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13102       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13103       export_dynamic_flag_spec_CXX='${wl}-E'
13104       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13105     fi
13106     output_verbose_link_cmd='echo'
13107     ;;
13108   osf3*)
13109     case $cc_basename in
13110       KCC*)
13111         # Kuck and Associates, Inc. (KAI) C++ Compiler
13112
13113         # KCC will only create a shared library if the output file
13114         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13115         # to its proper name (with version) after linking.
13116         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'
13117
13118         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13119         hardcode_libdir_separator_CXX=:
13120
13121         # Archives containing C++ object files must be created using
13122         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13123         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13124
13125         ;;
13126       RCC*)
13127         # Rational C++ 2.4.1
13128         # FIXME: insert proper C++ library support
13129         ld_shlibs_CXX=no
13130         ;;
13131       cxx*)
13132         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13133         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'
13134
13135         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13136         hardcode_libdir_separator_CXX=:
13137
13138         # Commands to make compiler produce verbose output that lists
13139         # what "hidden" libraries, object files and flags are used when
13140         # linking a shared library.
13141         #
13142         # There doesn't appear to be a way to prevent this compiler from
13143         # explicitly linking system object files so we need to strip them
13144         # from the output so that they don't get included in the library
13145         # dependencies.
13146         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'
13147         ;;
13148       *)
13149         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13150           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13151           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'
13152
13153           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154           hardcode_libdir_separator_CXX=:
13155
13156           # Commands to make compiler produce verbose output that lists
13157           # what "hidden" libraries, object files and flags are used when
13158           # linking a shared library.
13159           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13160
13161         else
13162           # FIXME: insert proper C++ library support
13163           ld_shlibs_CXX=no
13164         fi
13165         ;;
13166     esac
13167     ;;
13168   osf4* | osf5*)
13169     case $cc_basename in
13170       KCC*)
13171         # Kuck and Associates, Inc. (KAI) C++ Compiler
13172
13173         # KCC will only create a shared library if the output file
13174         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13175         # to its proper name (with version) after linking.
13176         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'
13177
13178         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13179         hardcode_libdir_separator_CXX=:
13180
13181         # Archives containing C++ object files must be created using
13182         # the KAI C++ compiler.
13183         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13184         ;;
13185       RCC*)
13186         # Rational C++ 2.4.1
13187         # FIXME: insert proper C++ library support
13188         ld_shlibs_CXX=no
13189         ;;
13190       cxx*)
13191         allow_undefined_flag_CXX=' -expect_unresolved \*'
13192         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'
13193         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13194           echo "-hidden">> $lib.exp~
13195           $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~
13196           $rm $lib.exp'
13197
13198         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13199         hardcode_libdir_separator_CXX=:
13200
13201         # Commands to make compiler produce verbose output that lists
13202         # what "hidden" libraries, object files and flags are used when
13203         # linking a shared library.
13204         #
13205         # There doesn't appear to be a way to prevent this compiler from
13206         # explicitly linking system object files so we need to strip them
13207         # from the output so that they don't get included in the library
13208         # dependencies.
13209         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'
13210         ;;
13211       *)
13212         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13213           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13214          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'
13215
13216           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13217           hardcode_libdir_separator_CXX=:
13218
13219           # Commands to make compiler produce verbose output that lists
13220           # what "hidden" libraries, object files and flags are used when
13221           # linking a shared library.
13222           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13223
13224         else
13225           # FIXME: insert proper C++ library support
13226           ld_shlibs_CXX=no
13227         fi
13228         ;;
13229     esac
13230     ;;
13231   psos*)
13232     # FIXME: insert proper C++ library support
13233     ld_shlibs_CXX=no
13234     ;;
13235   sunos4*)
13236     case $cc_basename in
13237       CC*)
13238         # Sun C++ 4.x
13239         # FIXME: insert proper C++ library support
13240         ld_shlibs_CXX=no
13241         ;;
13242       lcc*)
13243         # Lucid
13244         # FIXME: insert proper C++ library support
13245         ld_shlibs_CXX=no
13246         ;;
13247       *)
13248         # FIXME: insert proper C++ library support
13249         ld_shlibs_CXX=no
13250         ;;
13251     esac
13252     ;;
13253   solaris*)
13254     case $cc_basename in
13255       CC*)
13256         # Sun C++ 4.2, 5.x and Centerline C++
13257         archive_cmds_need_lc_CXX=yes
13258         no_undefined_flag_CXX=' -zdefs'
13259         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13261         $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'
13262
13263         hardcode_libdir_flag_spec_CXX='-R$libdir'
13264         hardcode_shlibpath_var_CXX=no
13265         case $host_os in
13266           solaris2.[0-5] | solaris2.[0-5].*) ;;
13267           *)
13268             # The C++ compiler is used as linker so we must use $wl
13269             # flag to pass the commands to the underlying system
13270             # linker. We must also pass each convience library through
13271             # to the system linker between allextract/defaultextract.
13272             # The C++ compiler will combine linker options so we
13273             # cannot just pass the convience library names through
13274             # without $wl.
13275             # Supported since Solaris 2.6 (maybe 2.5.1?)
13276             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13277             ;;
13278         esac
13279         link_all_deplibs_CXX=yes
13280
13281         output_verbose_link_cmd='echo'
13282
13283         # Archives containing C++ object files must be created using
13284         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13285         # necessary to make sure instantiated templates are included
13286         # in the archive.
13287         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13288         ;;
13289       gcx*)
13290         # Green Hills C++ Compiler
13291         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13292
13293         # The C++ compiler must be used to create the archive.
13294         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13295         ;;
13296       *)
13297         # GNU C++ compiler with Solaris linker
13298         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13299           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13300           if $CC --version | grep -v '^2\.7' > /dev/null; then
13301             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13302             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13303                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13304
13305             # Commands to make compiler produce verbose output that lists
13306             # what "hidden" libraries, object files and flags are used when
13307             # linking a shared library.
13308             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13309           else
13310             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13311             # platform.
13312             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13313             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13314                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13315
13316             # Commands to make compiler produce verbose output that lists
13317             # what "hidden" libraries, object files and flags are used when
13318             # linking a shared library.
13319             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13320           fi
13321
13322           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13323         fi
13324         ;;
13325     esac
13326     ;;
13327   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13328     no_undefined_flag_CXX='${wl}-z,text'
13329     archive_cmds_need_lc_CXX=no
13330     hardcode_shlibpath_var_CXX=no
13331     runpath_var='LD_RUN_PATH'
13332
13333     case $cc_basename in
13334       CC*)
13335         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337         ;;
13338       *)
13339         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13340         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13341         ;;
13342     esac
13343     ;;
13344   sysv5* | sco3.2v5* | sco5v6*)
13345     # Note: We can NOT use -z defs as we might desire, because we do not
13346     # link with -lc, and that would cause any symbols used from libc to
13347     # always be unresolved, which means just about no library would
13348     # ever link correctly.  If we're not using GNU ld we use -z text
13349     # though, which does catch some bad symbols but isn't as heavy-handed
13350     # as -z defs.
13351     # For security reasons, it is highly recommended that you always
13352     # use absolute paths for naming shared libraries, and exclude the
13353     # DT_RUNPATH tag from executables and libraries.  But doing so
13354     # requires that you compile everything twice, which is a pain.
13355     # So that behaviour is only enabled if SCOABSPATH is set to a
13356     # non-empty value in the environment.  Most likely only useful for
13357     # creating official distributions of packages.
13358     # This is a hack until libtool officially supports absolute path
13359     # names for shared libraries.
13360     no_undefined_flag_CXX='${wl}-z,text'
13361     allow_undefined_flag_CXX='${wl}-z,nodefs'
13362     archive_cmds_need_lc_CXX=no
13363     hardcode_shlibpath_var_CXX=no
13364     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13365     hardcode_libdir_separator_CXX=':'
13366     link_all_deplibs_CXX=yes
13367     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13368     runpath_var='LD_RUN_PATH'
13369
13370     case $cc_basename in
13371       CC*)
13372         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13373         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13374         ;;
13375       *)
13376         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13377         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13378         ;;
13379     esac
13380     ;;
13381   tandem*)
13382     case $cc_basename in
13383       NCC*)
13384         # NonStop-UX NCC 3.20
13385         # FIXME: insert proper C++ library support
13386         ld_shlibs_CXX=no
13387         ;;
13388       *)
13389         # FIXME: insert proper C++ library support
13390         ld_shlibs_CXX=no
13391         ;;
13392     esac
13393     ;;
13394   vxworks*)
13395     # FIXME: insert proper C++ library support
13396     ld_shlibs_CXX=no
13397     ;;
13398   *)
13399     # FIXME: insert proper C++ library support
13400     ld_shlibs_CXX=no
13401     ;;
13402 esac
13403 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13404 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13405 test "$ld_shlibs_CXX" = no && can_build_shared=no
13406
13407 GCC_CXX="$GXX"
13408 LD_CXX="$LD"
13409
13410
13411 cat > conftest.$ac_ext <<EOF
13412 class Foo
13413 {
13414 public:
13415   Foo (void) { a = 0; }
13416 private:
13417   int a;
13418 };
13419 EOF
13420
13421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422   (eval $ac_compile) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; then
13426   # Parse the compiler output and extract the necessary
13427   # objects, libraries and library flags.
13428
13429   # Sentinel used to keep track of whether or not we are before
13430   # the conftest object file.
13431   pre_test_object_deps_done=no
13432
13433   # The `*' in the case matches for architectures that use `case' in
13434   # $output_verbose_cmd can trigger glob expansion during the loop
13435   # eval without this substitution.
13436   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13437
13438   for p in `eval $output_verbose_link_cmd`; do
13439     case $p in
13440
13441     -L* | -R* | -l*)
13442        # Some compilers place space between "-{L,R}" and the path.
13443        # Remove the space.
13444        if test $p = "-L" \
13445           || test $p = "-R"; then
13446          prev=$p
13447          continue
13448        else
13449          prev=
13450        fi
13451
13452        if test "$pre_test_object_deps_done" = no; then
13453          case $p in
13454          -L* | -R*)
13455            # Internal compiler library paths should come after those
13456            # provided the user.  The postdeps already come after the
13457            # user supplied libs so there is no need to process them.
13458            if test -z "$compiler_lib_search_path_CXX"; then
13459              compiler_lib_search_path_CXX="${prev}${p}"
13460            else
13461              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13462            fi
13463            ;;
13464          # The "-l" case would never come before the object being
13465          # linked, so don't bother handling this case.
13466          esac
13467        else
13468          if test -z "$postdeps_CXX"; then
13469            postdeps_CXX="${prev}${p}"
13470          else
13471            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13472          fi
13473        fi
13474        ;;
13475
13476     *.$objext)
13477        # This assumes that the test object file only shows up
13478        # once in the compiler output.
13479        if test "$p" = "conftest.$objext"; then
13480          pre_test_object_deps_done=yes
13481          continue
13482        fi
13483
13484        if test "$pre_test_object_deps_done" = no; then
13485          if test -z "$predep_objects_CXX"; then
13486            predep_objects_CXX="$p"
13487          else
13488            predep_objects_CXX="$predep_objects_CXX $p"
13489          fi
13490        else
13491          if test -z "$postdep_objects_CXX"; then
13492            postdep_objects_CXX="$p"
13493          else
13494            postdep_objects_CXX="$postdep_objects_CXX $p"
13495          fi
13496        fi
13497        ;;
13498
13499     *) ;; # Ignore the rest.
13500
13501     esac
13502   done
13503
13504   # Clean up.
13505   rm -f a.out a.exe
13506 else
13507   echo "libtool.m4: error: problem compiling CXX test program"
13508 fi
13509
13510 $rm -f confest.$objext
13511
13512 # PORTME: override above test on systems where it is broken
13513 case $host_os in
13514 interix3*)
13515   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516   # hack all around it, let's just trust "g++" to DTRT.
13517   predep_objects_CXX=
13518   postdep_objects_CXX=
13519   postdeps_CXX=
13520   ;;
13521
13522 solaris*)
13523   case $cc_basename in
13524   CC*)
13525     # Adding this requires a known-good setup of shared libraries for
13526     # Sun compiler versions before 5.6, else PIC objects from an old
13527     # archive will be linked into the output, leading to subtle bugs.
13528     postdeps_CXX='-lCstd -lCrun'
13529     ;;
13530   esac
13531   ;;
13532 esac
13533
13534
13535 case " $postdeps_CXX " in
13536 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13537 esac
13538
13539 lt_prog_compiler_wl_CXX=
13540 lt_prog_compiler_pic_CXX=
13541 lt_prog_compiler_static_CXX=
13542
13543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13545
13546   # C++ specific cases for pic, static, wl, etc.
13547   if test "$GXX" = yes; then
13548     lt_prog_compiler_wl_CXX='-Wl,'
13549     lt_prog_compiler_static_CXX='-static'
13550
13551     case $host_os in
13552     aix*)
13553       # All AIX code is PIC.
13554       if test "$host_cpu" = ia64; then
13555         # AIX 5 now supports IA64 processor
13556         lt_prog_compiler_static_CXX='-Bstatic'
13557       fi
13558       ;;
13559     amigaos*)
13560       # FIXME: we need at least 68020 code to build shared libraries, but
13561       # adding the `-m68020' flag to GCC prevents building anything better,
13562       # like `-m68040'.
13563       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13564       ;;
13565     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13566       # PIC is the default for these OSes.
13567       ;;
13568     mingw* | os2* | pw32*)
13569       # This hack is so that the source file can tell whether it is being
13570       # built for inclusion in a dll (and should export symbols for example).
13571       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13572       ;;
13573     darwin* | rhapsody*)
13574       # PIC is the default on this platform
13575       # Common symbols not allowed in MH_DYLIB files
13576       lt_prog_compiler_pic_CXX='-fno-common'
13577       ;;
13578     *djgpp*)
13579       # DJGPP does not support shared libraries at all
13580       lt_prog_compiler_pic_CXX=
13581       ;;
13582     interix3*)
13583       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13584       # Instead, we relocate shared libraries at runtime.
13585       ;;
13586     sysv4*MP*)
13587       if test -d /usr/nec; then
13588         lt_prog_compiler_pic_CXX=-Kconform_pic
13589       fi
13590       ;;
13591     hpux*)
13592       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13593       # not for PA HP-UX.
13594       case $host_cpu in
13595       hppa*64*|ia64*)
13596         ;;
13597       *)
13598         lt_prog_compiler_pic_CXX='-fPIC'
13599         ;;
13600       esac
13601       ;;
13602     *)
13603       lt_prog_compiler_pic_CXX='-fPIC'
13604       ;;
13605     esac
13606   else
13607     case $host_os in
13608       aix4* | aix5*)
13609         # All AIX code is PIC.
13610         if test "$host_cpu" = ia64; then
13611           # AIX 5 now supports IA64 processor
13612           lt_prog_compiler_static_CXX='-Bstatic'
13613         else
13614           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13615         fi
13616         ;;
13617       chorus*)
13618         case $cc_basename in
13619         cxch68*)
13620           # Green Hills C++ Compiler
13621           # _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"
13622           ;;
13623         esac
13624         ;;
13625        darwin*)
13626          # PIC is the default on this platform
13627          # Common symbols not allowed in MH_DYLIB files
13628          case $cc_basename in
13629            xlc*)
13630            lt_prog_compiler_pic_CXX='-qnocommon'
13631            lt_prog_compiler_wl_CXX='-Wl,'
13632            ;;
13633          esac
13634        ;;
13635       dgux*)
13636         case $cc_basename in
13637           ec++*)
13638             lt_prog_compiler_pic_CXX='-KPIC'
13639             ;;
13640           ghcx*)
13641             # Green Hills C++ Compiler
13642             lt_prog_compiler_pic_CXX='-pic'
13643             ;;
13644           *)
13645             ;;
13646         esac
13647         ;;
13648       freebsd* | dragonfly*)
13649         # FreeBSD uses GNU C++
13650         ;;
13651       hpux9* | hpux10* | hpux11*)
13652         case $cc_basename in
13653           CC*)
13654             lt_prog_compiler_wl_CXX='-Wl,'
13655             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13656             if test "$host_cpu" != ia64; then
13657               lt_prog_compiler_pic_CXX='+Z'
13658             fi
13659             ;;
13660           aCC*)
13661             lt_prog_compiler_wl_CXX='-Wl,'
13662             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13663             case $host_cpu in
13664             hppa*64*|ia64*)
13665               # +Z the default
13666               ;;
13667             *)
13668               lt_prog_compiler_pic_CXX='+Z'
13669               ;;
13670             esac
13671             ;;
13672           *)
13673             ;;
13674         esac
13675         ;;
13676       interix*)
13677         # This is c89, which is MS Visual C++ (no shared libs)
13678         # Anyone wants to do a port?
13679         ;;
13680       irix5* | irix6* | nonstopux*)
13681         case $cc_basename in
13682           CC*)
13683             lt_prog_compiler_wl_CXX='-Wl,'
13684             lt_prog_compiler_static_CXX='-non_shared'
13685             # CC pic flag -KPIC is the default.
13686             ;;
13687           *)
13688             ;;
13689         esac
13690         ;;
13691       linux* | k*bsd*-gnu)
13692         case $cc_basename in
13693           KCC*)
13694             # KAI C++ Compiler
13695             lt_prog_compiler_wl_CXX='--backend -Wl,'
13696             lt_prog_compiler_pic_CXX='-fPIC'
13697             ;;
13698           icpc* | ecpc*)
13699             # Intel C++
13700             lt_prog_compiler_wl_CXX='-Wl,'
13701             lt_prog_compiler_pic_CXX='-KPIC'
13702             lt_prog_compiler_static_CXX='-static'
13703             ;;
13704           pgCC*)
13705             # Portland Group C++ compiler.
13706             lt_prog_compiler_wl_CXX='-Wl,'
13707             lt_prog_compiler_pic_CXX='-fpic'
13708             lt_prog_compiler_static_CXX='-Bstatic'
13709             ;;
13710           cxx*)
13711             # Compaq C++
13712             # Make sure the PIC flag is empty.  It appears that all Alpha
13713             # Linux and Compaq Tru64 Unix objects are PIC.
13714             lt_prog_compiler_pic_CXX=
13715             lt_prog_compiler_static_CXX='-non_shared'
13716             ;;
13717           *)
13718             ;;
13719         esac
13720         ;;
13721       lynxos*)
13722         ;;
13723       m88k*)
13724         ;;
13725       mvs*)
13726         case $cc_basename in
13727           cxx*)
13728             lt_prog_compiler_pic_CXX='-W c,exportall'
13729             ;;
13730           *)
13731             ;;
13732         esac
13733         ;;
13734       netbsd* | netbsdelf*-gnu)
13735         ;;
13736       osf3* | osf4* | osf5*)
13737         case $cc_basename in
13738           KCC*)
13739             lt_prog_compiler_wl_CXX='--backend -Wl,'
13740             ;;
13741           RCC*)
13742             # Rational C++ 2.4.1
13743             lt_prog_compiler_pic_CXX='-pic'
13744             ;;
13745           cxx*)
13746             # Digital/Compaq C++
13747             lt_prog_compiler_wl_CXX='-Wl,'
13748             # Make sure the PIC flag is empty.  It appears that all Alpha
13749             # Linux and Compaq Tru64 Unix objects are PIC.
13750             lt_prog_compiler_pic_CXX=
13751             lt_prog_compiler_static_CXX='-non_shared'
13752             ;;
13753           *)
13754             ;;
13755         esac
13756         ;;
13757       psos*)
13758         ;;
13759       solaris*)
13760         case $cc_basename in
13761           CC*)
13762             # Sun C++ 4.2, 5.x and Centerline C++
13763             lt_prog_compiler_pic_CXX='-KPIC'
13764             lt_prog_compiler_static_CXX='-Bstatic'
13765             lt_prog_compiler_wl_CXX='-Qoption ld '
13766             ;;
13767           gcx*)
13768             # Green Hills C++ Compiler
13769             lt_prog_compiler_pic_CXX='-PIC'
13770             ;;
13771           *)
13772             ;;
13773         esac
13774         ;;
13775       sunos4*)
13776         case $cc_basename in
13777           CC*)
13778             # Sun C++ 4.x
13779             lt_prog_compiler_pic_CXX='-pic'
13780             lt_prog_compiler_static_CXX='-Bstatic'
13781             ;;
13782           lcc*)
13783             # Lucid
13784             lt_prog_compiler_pic_CXX='-pic'
13785             ;;
13786           *)
13787             ;;
13788         esac
13789         ;;
13790       tandem*)
13791         case $cc_basename in
13792           NCC*)
13793             # NonStop-UX NCC 3.20
13794             lt_prog_compiler_pic_CXX='-KPIC'
13795             ;;
13796           *)
13797             ;;
13798         esac
13799         ;;
13800       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13801         case $cc_basename in
13802           CC*)
13803             lt_prog_compiler_wl_CXX='-Wl,'
13804             lt_prog_compiler_pic_CXX='-KPIC'
13805             lt_prog_compiler_static_CXX='-Bstatic'
13806             ;;
13807         esac
13808         ;;
13809       vxworks*)
13810         ;;
13811       *)
13812         lt_prog_compiler_can_build_shared_CXX=no
13813         ;;
13814     esac
13815   fi
13816
13817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13818 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13819
13820 #
13821 # Check to make sure the PIC flag actually works.
13822 #
13823 if test -n "$lt_prog_compiler_pic_CXX"; then
13824
13825 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13826 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13827 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   lt_prog_compiler_pic_works_CXX=no
13831   ac_outfile=conftest.$ac_objext
13832    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13833    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13834    # Insert the option either (1) after the last *FLAGS variable, or
13835    # (2) before a word containing "conftest.", or (3) at the end.
13836    # Note that $ac_compile itself does not contain backslashes and begins
13837    # with a dollar sign (not a hyphen), so the echo should work correctly.
13838    # The option is referenced via a variable to avoid confusing sed.
13839    lt_compile=`echo "$ac_compile" | $SED \
13840    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842    -e 's:$: $lt_compiler_flag:'`
13843    (eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
13844    (eval "$lt_compile" 2>conftest.err)
13845    ac_status=$?
13846    cat conftest.err >&5
13847    echo "$as_me:13847: \$? = $ac_status" >&5
13848    if (exit $ac_status) && test -s "$ac_outfile"; then
13849      # The compiler can only warn and ignore the option if not recognized
13850      # So say no if there are warnings other than the usual output.
13851      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13852      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13853      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13854        lt_prog_compiler_pic_works_CXX=yes
13855      fi
13856    fi
13857    $rm conftest*
13858
13859 fi
13860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13861 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13862
13863 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13864     case $lt_prog_compiler_pic_CXX in
13865      "" | " "*) ;;
13866      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13867      esac
13868 else
13869     lt_prog_compiler_pic_CXX=
13870      lt_prog_compiler_can_build_shared_CXX=no
13871 fi
13872
13873 fi
13874 case $host_os in
13875   # For platforms which do not support PIC, -DPIC is meaningless:
13876   *djgpp*)
13877     lt_prog_compiler_pic_CXX=
13878     ;;
13879   *)
13880     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13881     ;;
13882 esac
13883
13884 #
13885 # Check to make sure the static flag actually works.
13886 #
13887 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13888 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13889 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13890 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893   lt_prog_compiler_static_works_CXX=no
13894    save_LDFLAGS="$LDFLAGS"
13895    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13896    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13897    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13898      # The linker can only warn and ignore the option if not recognized
13899      # So say no if there are warnings
13900      if test -s conftest.err; then
13901        # Append any errors to the config.log.
13902        cat conftest.err 1>&5
13903        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13904        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905        if diff conftest.exp conftest.er2 >/dev/null; then
13906          lt_prog_compiler_static_works_CXX=yes
13907        fi
13908      else
13909        lt_prog_compiler_static_works_CXX=yes
13910      fi
13911    fi
13912    $rm conftest*
13913    LDFLAGS="$save_LDFLAGS"
13914
13915 fi
13916 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13917 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13918
13919 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13920     :
13921 else
13922     lt_prog_compiler_static_CXX=
13923 fi
13924
13925
13926 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13927 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13928 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931   lt_cv_prog_compiler_c_o_CXX=no
13932    $rm -r conftest 2>/dev/null
13933    mkdir conftest
13934    cd conftest
13935    mkdir out
13936    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13937
13938    lt_compiler_flag="-o out/conftest2.$ac_objext"
13939    # Insert the option either (1) after the last *FLAGS variable, or
13940    # (2) before a word containing "conftest.", or (3) at the end.
13941    # Note that $ac_compile itself does not contain backslashes and begins
13942    # with a dollar sign (not a hyphen), so the echo should work correctly.
13943    lt_compile=`echo "$ac_compile" | $SED \
13944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13946    -e 's:$: $lt_compiler_flag:'`
13947    (eval echo "\"\$as_me:13947: $lt_compile\"" >&5)
13948    (eval "$lt_compile" 2>out/conftest.err)
13949    ac_status=$?
13950    cat out/conftest.err >&5
13951    echo "$as_me:13951: \$? = $ac_status" >&5
13952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13953    then
13954      # The compiler can only warn and ignore the option if not recognized
13955      # So say no if there are warnings
13956      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13959        lt_cv_prog_compiler_c_o_CXX=yes
13960      fi
13961    fi
13962    chmod u+w . 2>&5
13963    $rm conftest*
13964    # SGI C++ compiler will create directory out/ii_files/ for
13965    # template instantiation
13966    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13967    $rm out/* && rmdir out
13968    cd ..
13969    rmdir conftest
13970    $rm conftest*
13971
13972 fi
13973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13974 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13975
13976
13977 hard_links="nottested"
13978 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13979   # do not overwrite the value of need_locks provided by the user
13980   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13982   hard_links=yes
13983   $rm conftest*
13984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13985   touch conftest.a
13986   ln conftest.a conftest.b 2>&5 || hard_links=no
13987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13988   { echo "$as_me:$LINENO: result: $hard_links" >&5
13989 echo "${ECHO_T}$hard_links" >&6; }
13990   if test "$hard_links" = no; then
13991     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13993     need_locks=warn
13994   fi
13995 else
13996   need_locks=no
13997 fi
13998
13999 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14000 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14001
14002   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14003   case $host_os in
14004   aix4* | aix5*)
14005     # If we're using GNU nm, then we don't want the "-C" option.
14006     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14007     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14008       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'
14009     else
14010       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'
14011     fi
14012     ;;
14013   pw32*)
14014     export_symbols_cmds_CXX="$ltdll_cmds"
14015   ;;
14016   cygwin* | mingw*)
14017     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'
14018   ;;
14019   linux* | k*bsd*-gnu)
14020     link_all_deplibs_CXX=no
14021   ;;
14022   *)
14023     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14024   ;;
14025   esac
14026
14027 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14028 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14029 test "$ld_shlibs_CXX" = no && can_build_shared=no
14030
14031 #
14032 # Do we need to explicitly link libc?
14033 #
14034 case "x$archive_cmds_need_lc_CXX" in
14035 x|xyes)
14036   # Assume -lc should be added
14037   archive_cmds_need_lc_CXX=yes
14038
14039   if test "$enable_shared" = yes && test "$GCC" = yes; then
14040     case $archive_cmds_CXX in
14041     *'~'*)
14042       # FIXME: we may have to deal with multi-command sequences.
14043       ;;
14044     '$CC '*)
14045       # Test whether the compiler implicitly links with -lc since on some
14046       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14047       # to ld, don't add -lc before -lgcc.
14048       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14050       $rm conftest*
14051       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14052
14053       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054   (eval $ac_compile) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } 2>conftest.err; then
14058         soname=conftest
14059         lib=conftest
14060         libobjs=conftest.$ac_objext
14061         deplibs=
14062         wl=$lt_prog_compiler_wl_CXX
14063         pic_flag=$lt_prog_compiler_pic_CXX
14064         compiler_flags=-v
14065         linker_flags=-v
14066         verstring=
14067         output_objdir=.
14068         libname=conftest
14069         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14070         allow_undefined_flag_CXX=
14071         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14072   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }
14076         then
14077           archive_cmds_need_lc_CXX=no
14078         else
14079           archive_cmds_need_lc_CXX=yes
14080         fi
14081         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14082       else
14083         cat conftest.err 1>&5
14084       fi
14085       $rm conftest*
14086       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14087 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14088       ;;
14089     esac
14090   fi
14091   ;;
14092 esac
14093
14094 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14095 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14096 library_names_spec=
14097 libname_spec='lib$name'
14098 soname_spec=
14099 shrext_cmds=".so"
14100 postinstall_cmds=
14101 postuninstall_cmds=
14102 finish_cmds=
14103 finish_eval=
14104 shlibpath_var=
14105 shlibpath_overrides_runpath=unknown
14106 version_type=none
14107 dynamic_linker="$host_os ld.so"
14108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14109 if test "$GCC" = yes; then
14110   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14111   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14112     # if the path contains ";" then we assume it to be the separator
14113     # otherwise default to the standard path separator (i.e. ":") - it is
14114     # assumed that no part of a normal pathname contains ";" but that should
14115     # okay in the real world where ";" in dirpaths is itself problematic.
14116     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14117   else
14118     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14119   fi
14120 else
14121   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14122 fi
14123 need_lib_prefix=unknown
14124 hardcode_into_libs=no
14125
14126 # when you set need_version to no, make sure it does not cause -set_version
14127 # flags to be left without arguments
14128 need_version=unknown
14129
14130 case $host_os in
14131 aix3*)
14132   version_type=linux
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14134   shlibpath_var=LIBPATH
14135
14136   # AIX 3 has no versioning support, so we append a major version to the name.
14137   soname_spec='${libname}${release}${shared_ext}$major'
14138   ;;
14139
14140 aix4* | aix5*)
14141   version_type=linux
14142   need_lib_prefix=no
14143   need_version=no
14144   hardcode_into_libs=yes
14145   if test "$host_cpu" = ia64; then
14146     # AIX 5 supports IA64
14147     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14148     shlibpath_var=LD_LIBRARY_PATH
14149   else
14150     # With GCC up to 2.95.x, collect2 would create an import file
14151     # for dependence libraries.  The import file would start with
14152     # the line `#! .'.  This would cause the generated library to
14153     # depend on `.', always an invalid library.  This was fixed in
14154     # development snapshots of GCC prior to 3.0.
14155     case $host_os in
14156       aix4 | aix4.[01] | aix4.[01].*)
14157       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14158            echo ' yes '
14159            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14160         :
14161       else
14162         can_build_shared=no
14163       fi
14164       ;;
14165     esac
14166     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14167     # soname into executable. Probably we can add versioning support to
14168     # collect2, so additional links can be useful in future.
14169     if test "$aix_use_runtimelinking" = yes; then
14170       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14171       # instead of lib<name>.a to let people know that these are not
14172       # typical AIX shared libraries.
14173       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174     else
14175       # We preserve .a as extension for shared libraries through AIX4.2
14176       # and later when we are not doing run time linking.
14177       library_names_spec='${libname}${release}.a $libname.a'
14178       soname_spec='${libname}${release}${shared_ext}$major'
14179     fi
14180     shlibpath_var=LIBPATH
14181   fi
14182   ;;
14183
14184 amigaos*)
14185   library_names_spec='$libname.ixlibrary $libname.a'
14186   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14187   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'
14188   ;;
14189
14190 beos*)
14191   library_names_spec='${libname}${shared_ext}'
14192   dynamic_linker="$host_os ld.so"
14193   shlibpath_var=LIBRARY_PATH
14194   ;;
14195
14196 bsdi[45]*)
14197   version_type=linux
14198   need_version=no
14199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200   soname_spec='${libname}${release}${shared_ext}$major'
14201   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14202   shlibpath_var=LD_LIBRARY_PATH
14203   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14204   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14205   # the default ld.so.conf also contains /usr/contrib/lib and
14206   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14207   # libtool to hard-code these into programs
14208   ;;
14209
14210 cygwin* | mingw* | pw32*)
14211   version_type=windows
14212   shrext_cmds=".dll"
14213   need_version=no
14214   need_lib_prefix=no
14215
14216   case $GCC,$host_os in
14217   yes,cygwin* | yes,mingw* | yes,pw32*)
14218     library_names_spec='$libname.dll.a'
14219     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14220     postinstall_cmds='base_file=`basename \${file}`~
14221       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14222       dldir=$destdir/`dirname \$dlpath`~
14223       test -d \$dldir || mkdir -p \$dldir~
14224       $install_prog $dir/$dlname \$dldir/$dlname~
14225       chmod a+x \$dldir/$dlname'
14226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14227       dlpath=$dir/\$dldll~
14228        $rm \$dlpath'
14229     shlibpath_overrides_runpath=yes
14230
14231     case $host_os in
14232     cygwin*)
14233       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14234       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14236       ;;
14237     mingw*)
14238       # MinGW DLLs use traditional 'lib' prefix
14239       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14241       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14242         # It is most probably a Windows format PATH printed by
14243         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14244         # path with ; separators, and with drive letters. We can handle the
14245         # drive letters (cygwin fileutils understands them), so leave them,
14246         # especially as we might pass files found there to a mingw objdump,
14247         # which wouldn't understand a cygwinified path. Ahh.
14248         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14249       else
14250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14251       fi
14252       ;;
14253     pw32*)
14254       # pw32 DLLs use 'pw' prefix rather than 'lib'
14255       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14256       ;;
14257     esac
14258     ;;
14259
14260   *)
14261     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14262     ;;
14263   esac
14264   dynamic_linker='Win32 ld.exe'
14265   # FIXME: first we should search . and the directory the executable is in
14266   shlibpath_var=PATH
14267   ;;
14268
14269 darwin* | rhapsody*)
14270   dynamic_linker="$host_os dyld"
14271   version_type=darwin
14272   need_lib_prefix=no
14273   need_version=no
14274   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14275   soname_spec='${libname}${release}${major}$shared_ext'
14276   shlibpath_overrides_runpath=yes
14277   shlibpath_var=DYLD_LIBRARY_PATH
14278   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14279   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14280   if test "$GCC" = yes; then
14281     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14282   else
14283     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14284   fi
14285   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14286   ;;
14287
14288 dgux*)
14289   version_type=linux
14290   need_lib_prefix=no
14291   need_version=no
14292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14293   soname_spec='${libname}${release}${shared_ext}$major'
14294   shlibpath_var=LD_LIBRARY_PATH
14295   ;;
14296
14297 freebsd1*)
14298   dynamic_linker=no
14299   ;;
14300
14301 freebsd* | dragonfly*)
14302   # DragonFly does not have aout.  When/if they implement a new
14303   # versioning mechanism, adjust this.
14304   if test -x /usr/bin/objformat; then
14305     objformat=`/usr/bin/objformat`
14306   else
14307     case $host_os in
14308     freebsd[123]*) objformat=aout ;;
14309     *) objformat=elf ;;
14310     esac
14311   fi
14312   version_type=freebsd-$objformat
14313   case $version_type in
14314     freebsd-elf*)
14315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14316       need_version=no
14317       need_lib_prefix=no
14318       ;;
14319     freebsd-*)
14320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14321       need_version=yes
14322       ;;
14323   esac
14324   shlibpath_var=LD_LIBRARY_PATH
14325   case $host_os in
14326   freebsd2*)
14327     shlibpath_overrides_runpath=yes
14328     ;;
14329   freebsd3.[01]* | freebsdelf3.[01]*)
14330     shlibpath_overrides_runpath=yes
14331     hardcode_into_libs=yes
14332     ;;
14333   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14334   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14335     shlibpath_overrides_runpath=no
14336     hardcode_into_libs=yes
14337     ;;
14338   freebsd*) # from 4.6 on
14339     shlibpath_overrides_runpath=yes
14340     hardcode_into_libs=yes
14341     ;;
14342   esac
14343   ;;
14344
14345 gnu*)
14346   version_type=linux
14347   need_lib_prefix=no
14348   need_version=no
14349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14350   soname_spec='${libname}${release}${shared_ext}$major'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   hardcode_into_libs=yes
14353   ;;
14354
14355 hpux9* | hpux10* | hpux11*)
14356   # Give a soname corresponding to the major version so that dld.sl refuses to
14357   # link against other versions.
14358   version_type=sunos
14359   need_lib_prefix=no
14360   need_version=no
14361   case $host_cpu in
14362   ia64*)
14363     shrext_cmds='.so'
14364     hardcode_into_libs=yes
14365     dynamic_linker="$host_os dld.so"
14366     shlibpath_var=LD_LIBRARY_PATH
14367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369     soname_spec='${libname}${release}${shared_ext}$major'
14370     if test "X$HPUX_IA64_MODE" = X32; then
14371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14372     else
14373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14374     fi
14375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14376     ;;
14377    hppa*64*)
14378      shrext_cmds='.sl'
14379      hardcode_into_libs=yes
14380      dynamic_linker="$host_os dld.sl"
14381      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14382      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384      soname_spec='${libname}${release}${shared_ext}$major'
14385      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14386      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14387      ;;
14388    *)
14389     shrext_cmds='.sl'
14390     dynamic_linker="$host_os dld.sl"
14391     shlibpath_var=SHLIB_PATH
14392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394     soname_spec='${libname}${release}${shared_ext}$major'
14395     ;;
14396   esac
14397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14398   postinstall_cmds='chmod 555 $lib'
14399   ;;
14400
14401 interix3*)
14402   version_type=linux
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14408   shlibpath_var=LD_LIBRARY_PATH
14409   shlibpath_overrides_runpath=no
14410   hardcode_into_libs=yes
14411   ;;
14412
14413 irix5* | irix6* | nonstopux*)
14414   case $host_os in
14415     nonstopux*) version_type=nonstopux ;;
14416     *)
14417         if test "$lt_cv_prog_gnu_ld" = yes; then
14418                 version_type=linux
14419         else
14420                 version_type=irix
14421         fi ;;
14422   esac
14423   need_lib_prefix=no
14424   need_version=no
14425   soname_spec='${libname}${release}${shared_ext}$major'
14426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14427   case $host_os in
14428   irix5* | nonstopux*)
14429     libsuff= shlibsuff=
14430     ;;
14431   *)
14432     case $LD in # libtool.m4 will add one of these switches to LD
14433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14434       libsuff= shlibsuff= libmagic=32-bit;;
14435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14436       libsuff=32 shlibsuff=N32 libmagic=N32;;
14437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14439     *) libsuff= shlibsuff= libmagic=never-match;;
14440     esac
14441     ;;
14442   esac
14443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14444   shlibpath_overrides_runpath=no
14445   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14446   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14447   hardcode_into_libs=yes
14448   ;;
14449
14450 # No shared lib support for Linux oldld, aout, or coff.
14451 linux*oldld* | linux*aout* | linux*coff*)
14452   dynamic_linker=no
14453   ;;
14454
14455 # This must be Linux ELF.
14456 linux* | k*bsd*-gnu)
14457   version_type=linux
14458   need_lib_prefix=no
14459   need_version=no
14460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461   soname_spec='${libname}${release}${shared_ext}$major'
14462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14463   shlibpath_var=LD_LIBRARY_PATH
14464   shlibpath_overrides_runpath=no
14465   # This implies no fast_install, which is unacceptable.
14466   # Some rework will be needed to allow for fast_install
14467   # before this can be enabled.
14468   hardcode_into_libs=yes
14469
14470   # Append ld.so.conf contents to the search path
14471   if test -f /etc/ld.so.conf; then
14472     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14473     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14474   fi
14475
14476   # We used to test for /lib/ld.so.1 and disable shared libraries on
14477   # powerpc, because MkLinux only supported shared libraries with the
14478   # GNU dynamic linker.  Since this was broken with cross compilers,
14479   # most powerpc-linux boxes support dynamic linking these days and
14480   # people can always --disable-shared, the test was removed, and we
14481   # assume the GNU/Linux dynamic linker is in use.
14482   dynamic_linker='GNU/Linux ld.so'
14483   ;;
14484
14485 netbsdelf*-gnu)
14486   version_type=linux
14487   need_lib_prefix=no
14488   need_version=no
14489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14490   soname_spec='${libname}${release}${shared_ext}$major'
14491   shlibpath_var=LD_LIBRARY_PATH
14492   shlibpath_overrides_runpath=no
14493   hardcode_into_libs=yes
14494   dynamic_linker='NetBSD ld.elf_so'
14495   ;;
14496
14497 netbsd*)
14498   version_type=sunos
14499   need_lib_prefix=no
14500   need_version=no
14501   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14503     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14504     dynamic_linker='NetBSD (a.out) ld.so'
14505   else
14506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14507     soname_spec='${libname}${release}${shared_ext}$major'
14508     dynamic_linker='NetBSD ld.elf_so'
14509   fi
14510   shlibpath_var=LD_LIBRARY_PATH
14511   shlibpath_overrides_runpath=yes
14512   hardcode_into_libs=yes
14513   ;;
14514
14515 newsos6)
14516   version_type=linux
14517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518   shlibpath_var=LD_LIBRARY_PATH
14519   shlibpath_overrides_runpath=yes
14520   ;;
14521
14522 nto-qnx*)
14523   version_type=linux
14524   need_lib_prefix=no
14525   need_version=no
14526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527   soname_spec='${libname}${release}${shared_ext}$major'
14528   shlibpath_var=LD_LIBRARY_PATH
14529   shlibpath_overrides_runpath=yes
14530   ;;
14531
14532 openbsd*)
14533   version_type=sunos
14534   sys_lib_dlsearch_path_spec="/usr/lib"
14535   need_lib_prefix=no
14536   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14537   case $host_os in
14538     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14539     *)                         need_version=no  ;;
14540   esac
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14545     case $host_os in
14546       openbsd2.[89] | openbsd2.[89].*)
14547         shlibpath_overrides_runpath=no
14548         ;;
14549       *)
14550         shlibpath_overrides_runpath=yes
14551         ;;
14552       esac
14553   else
14554     shlibpath_overrides_runpath=yes
14555   fi
14556   ;;
14557
14558 os2*)
14559   libname_spec='$name'
14560   shrext_cmds=".dll"
14561   need_lib_prefix=no
14562   library_names_spec='$libname${shared_ext} $libname.a'
14563   dynamic_linker='OS/2 ld.exe'
14564   shlibpath_var=LIBPATH
14565   ;;
14566
14567 osf3* | osf4* | osf5*)
14568   version_type=osf
14569   need_lib_prefix=no
14570   need_version=no
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14575   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14576   ;;
14577
14578 solaris*)
14579   version_type=linux
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   shlibpath_overrides_runpath=yes
14586   hardcode_into_libs=yes
14587   # ldd complains unless libraries are executable
14588   postinstall_cmds='chmod +x $lib'
14589   ;;
14590
14591 sunos4*)
14592   version_type=sunos
14593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14595   shlibpath_var=LD_LIBRARY_PATH
14596   shlibpath_overrides_runpath=yes
14597   if test "$with_gnu_ld" = yes; then
14598     need_lib_prefix=no
14599   fi
14600   need_version=yes
14601   ;;
14602
14603 sysv4 | sysv4.3*)
14604   version_type=linux
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   case $host_vendor in
14609     sni)
14610       shlibpath_overrides_runpath=no
14611       need_lib_prefix=no
14612       export_dynamic_flag_spec='${wl}-Blargedynsym'
14613       runpath_var=LD_RUN_PATH
14614       ;;
14615     siemens)
14616       need_lib_prefix=no
14617       ;;
14618     motorola)
14619       need_lib_prefix=no
14620       need_version=no
14621       shlibpath_overrides_runpath=no
14622       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14623       ;;
14624   esac
14625   ;;
14626
14627 sysv4*MP*)
14628   if test -d /usr/nec ;then
14629     version_type=linux
14630     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14631     soname_spec='$libname${shared_ext}.$major'
14632     shlibpath_var=LD_LIBRARY_PATH
14633   fi
14634   ;;
14635
14636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14637   version_type=freebsd-elf
14638   need_lib_prefix=no
14639   need_version=no
14640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14641   soname_spec='${libname}${release}${shared_ext}$major'
14642   shlibpath_var=LD_LIBRARY_PATH
14643   hardcode_into_libs=yes
14644   if test "$with_gnu_ld" = yes; then
14645     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14646     shlibpath_overrides_runpath=no
14647   else
14648     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14649     shlibpath_overrides_runpath=yes
14650     case $host_os in
14651       sco3.2v5*)
14652         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14653         ;;
14654     esac
14655   fi
14656   sys_lib_dlsearch_path_spec='/usr/lib'
14657   ;;
14658
14659 uts4*)
14660   version_type=linux
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662   soname_spec='${libname}${release}${shared_ext}$major'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   ;;
14665
14666 *)
14667   dynamic_linker=no
14668   ;;
14669 esac
14670 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14671 echo "${ECHO_T}$dynamic_linker" >&6; }
14672 test "$dynamic_linker" = no && can_build_shared=no
14673
14674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14675 if test "$GCC" = yes; then
14676   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14677 fi
14678
14679 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14680 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14681 hardcode_action_CXX=
14682 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14683    test -n "$runpath_var_CXX" || \
14684    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14685
14686   # We can hardcode non-existant directories.
14687   if test "$hardcode_direct_CXX" != no &&
14688      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14689      # have to relink, otherwise we might link with an installed library
14690      # when we should be linking with a yet-to-be-installed one
14691      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14692      test "$hardcode_minus_L_CXX" != no; then
14693     # Linking always hardcodes the temporary library directory.
14694     hardcode_action_CXX=relink
14695   else
14696     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14697     hardcode_action_CXX=immediate
14698   fi
14699 else
14700   # We cannot hardcode anything, or else we can only hardcode existing
14701   # directories.
14702   hardcode_action_CXX=unsupported
14703 fi
14704 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14705 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14706
14707 if test "$hardcode_action_CXX" = relink; then
14708   # Fast installation is not supported
14709   enable_fast_install=no
14710 elif test "$shlibpath_overrides_runpath" = yes ||
14711      test "$enable_shared" = no; then
14712   # Fast installation is not necessary
14713   enable_fast_install=needless
14714 fi
14715
14716
14717 # The else clause should only fire when bootstrapping the
14718 # libtool distribution, otherwise you forgot to ship ltmain.sh
14719 # with your package, and you will get complaints that there are
14720 # no rules to generate ltmain.sh.
14721 if test -f "$ltmain"; then
14722   # See if we are running on zsh, and set the options which allow our commands through
14723   # without removal of \ escapes.
14724   if test -n "${ZSH_VERSION+set}" ; then
14725     setopt NO_GLOB_SUBST
14726   fi
14727   # Now quote all the things that may contain metacharacters while being
14728   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14729   # variables and quote the copies for generation of the libtool script.
14730   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14731     SED SHELL STRIP \
14732     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14733     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14734     deplibs_check_method reload_flag reload_cmds need_locks \
14735     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14736     lt_cv_sys_global_symbol_to_c_name_address \
14737     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14738     old_postinstall_cmds old_postuninstall_cmds \
14739     compiler_CXX \
14740     CC_CXX \
14741     LD_CXX \
14742     lt_prog_compiler_wl_CXX \
14743     lt_prog_compiler_pic_CXX \
14744     lt_prog_compiler_static_CXX \
14745     lt_prog_compiler_no_builtin_flag_CXX \
14746     export_dynamic_flag_spec_CXX \
14747     thread_safe_flag_spec_CXX \
14748     whole_archive_flag_spec_CXX \
14749     enable_shared_with_static_runtimes_CXX \
14750     old_archive_cmds_CXX \
14751     old_archive_from_new_cmds_CXX \
14752     predep_objects_CXX \
14753     postdep_objects_CXX \
14754     predeps_CXX \
14755     postdeps_CXX \
14756     compiler_lib_search_path_CXX \
14757     archive_cmds_CXX \
14758     archive_expsym_cmds_CXX \
14759     postinstall_cmds_CXX \
14760     postuninstall_cmds_CXX \
14761     old_archive_from_expsyms_cmds_CXX \
14762     allow_undefined_flag_CXX \
14763     no_undefined_flag_CXX \
14764     export_symbols_cmds_CXX \
14765     hardcode_libdir_flag_spec_CXX \
14766     hardcode_libdir_flag_spec_ld_CXX \
14767     hardcode_libdir_separator_CXX \
14768     hardcode_automatic_CXX \
14769     module_cmds_CXX \
14770     module_expsym_cmds_CXX \
14771     lt_cv_prog_compiler_c_o_CXX \
14772     exclude_expsyms_CXX \
14773     include_expsyms_CXX; do
14774
14775     case $var in
14776     old_archive_cmds_CXX | \
14777     old_archive_from_new_cmds_CXX | \
14778     archive_cmds_CXX | \
14779     archive_expsym_cmds_CXX | \
14780     module_cmds_CXX | \
14781     module_expsym_cmds_CXX | \
14782     old_archive_from_expsyms_cmds_CXX | \
14783     export_symbols_cmds_CXX | \
14784     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14785     postinstall_cmds | postuninstall_cmds | \
14786     old_postinstall_cmds | old_postuninstall_cmds | \
14787     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14788       # Double-quote double-evaled strings.
14789       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14790       ;;
14791     *)
14792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14793       ;;
14794     esac
14795   done
14796
14797   case $lt_echo in
14798   *'\$0 --fallback-echo"')
14799     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14800     ;;
14801   esac
14802
14803 cfgfile="$ofile"
14804
14805   cat <<__EOF__ >> "$cfgfile"
14806 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14807
14808 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14809
14810 # Shell to use when invoking shell scripts.
14811 SHELL=$lt_SHELL
14812
14813 # Whether or not to build shared libraries.
14814 build_libtool_libs=$enable_shared
14815
14816 # Whether or not to build static libraries.
14817 build_old_libs=$enable_static
14818
14819 # Whether or not to add -lc for building shared libraries.
14820 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14821
14822 # Whether or not to disallow shared libs when runtime libs are static
14823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14824
14825 # Whether or not to optimize for fast installation.
14826 fast_install=$enable_fast_install
14827
14828 # The host system.
14829 host_alias=$host_alias
14830 host=$host
14831 host_os=$host_os
14832
14833 # The build system.
14834 build_alias=$build_alias
14835 build=$build
14836 build_os=$build_os
14837
14838 # An echo program that does not interpret backslashes.
14839 echo=$lt_echo
14840
14841 # The archiver.
14842 AR=$lt_AR
14843 AR_FLAGS=$lt_AR_FLAGS
14844
14845 # A C compiler.
14846 LTCC=$lt_LTCC
14847
14848 # LTCC compiler flags.
14849 LTCFLAGS=$lt_LTCFLAGS
14850
14851 # A language-specific compiler.
14852 CC=$lt_compiler_CXX
14853
14854 # Is the compiler the GNU C compiler?
14855 with_gcc=$GCC_CXX
14856
14857 # An ERE matcher.
14858 EGREP=$lt_EGREP
14859
14860 # The linker used to build libraries.
14861 LD=$lt_LD_CXX
14862
14863 # Whether we need hard or soft links.
14864 LN_S=$lt_LN_S
14865
14866 # A BSD-compatible nm program.
14867 NM=$lt_NM
14868
14869 # A symbol stripping program
14870 STRIP=$lt_STRIP
14871
14872 # Used to examine libraries when file_magic_cmd begins "file"
14873 MAGIC_CMD=$MAGIC_CMD
14874
14875 # Used on cygwin: DLL creation program.
14876 DLLTOOL="$DLLTOOL"
14877
14878 # Used on cygwin: object dumper.
14879 OBJDUMP="$OBJDUMP"
14880
14881 # Used on cygwin: assembler.
14882 AS="$AS"
14883
14884 # The name of the directory that contains temporary libtool files.
14885 objdir=$objdir
14886
14887 # How to create reloadable object files.
14888 reload_flag=$lt_reload_flag
14889 reload_cmds=$lt_reload_cmds
14890
14891 # How to pass a linker flag through the compiler.
14892 wl=$lt_lt_prog_compiler_wl_CXX
14893
14894 # Object file suffix (normally "o").
14895 objext="$ac_objext"
14896
14897 # Old archive suffix (normally "a").
14898 libext="$libext"
14899
14900 # Shared library suffix (normally ".so").
14901 shrext_cmds='$shrext_cmds'
14902
14903 # Executable file suffix (normally "").
14904 exeext="$exeext"
14905
14906 # Additional compiler flags for building library objects.
14907 pic_flag=$lt_lt_prog_compiler_pic_CXX
14908 pic_mode=$pic_mode
14909
14910 # What is the maximum length of a command?
14911 max_cmd_len=$lt_cv_sys_max_cmd_len
14912
14913 # Does compiler simultaneously support -c and -o options?
14914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14915
14916 # Must we lock files when doing compilation?
14917 need_locks=$lt_need_locks
14918
14919 # Do we need the lib prefix for modules?
14920 need_lib_prefix=$need_lib_prefix
14921
14922 # Do we need a version for libraries?
14923 need_version=$need_version
14924
14925 # Whether dlopen is supported.
14926 dlopen_support=$enable_dlopen
14927
14928 # Whether dlopen of programs is supported.
14929 dlopen_self=$enable_dlopen_self
14930
14931 # Whether dlopen of statically linked programs is supported.
14932 dlopen_self_static=$enable_dlopen_self_static
14933
14934 # Compiler flag to prevent dynamic linking.
14935 link_static_flag=$lt_lt_prog_compiler_static_CXX
14936
14937 # Compiler flag to turn off builtin functions.
14938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14939
14940 # Compiler flag to allow reflexive dlopens.
14941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14942
14943 # Compiler flag to generate shared objects directly from archives.
14944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14945
14946 # Compiler flag to generate thread-safe objects.
14947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14948
14949 # Library versioning type.
14950 version_type=$version_type
14951
14952 # Format of library name prefix.
14953 libname_spec=$lt_libname_spec
14954
14955 # List of archive names.  First name is the real one, the rest are links.
14956 # The last name is the one that the linker finds with -lNAME.
14957 library_names_spec=$lt_library_names_spec
14958
14959 # The coded name of the library, if different from the real name.
14960 soname_spec=$lt_soname_spec
14961
14962 # Commands used to build and install an old-style archive.
14963 RANLIB=$lt_RANLIB
14964 old_archive_cmds=$lt_old_archive_cmds_CXX
14965 old_postinstall_cmds=$lt_old_postinstall_cmds
14966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14967
14968 # Create an old-style archive from a shared archive.
14969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14970
14971 # Create a temporary old-style archive to link instead of a shared archive.
14972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14973
14974 # Commands used to build and install a shared archive.
14975 archive_cmds=$lt_archive_cmds_CXX
14976 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14977 postinstall_cmds=$lt_postinstall_cmds
14978 postuninstall_cmds=$lt_postuninstall_cmds
14979
14980 # Commands used to build a loadable module (assumed same as above if empty)
14981 module_cmds=$lt_module_cmds_CXX
14982 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14983
14984 # Commands to strip libraries.
14985 old_striplib=$lt_old_striplib
14986 striplib=$lt_striplib
14987
14988 # Dependencies to place before the objects being linked to create a
14989 # shared library.
14990 predep_objects=$lt_predep_objects_CXX
14991
14992 # Dependencies to place after the objects being linked to create a
14993 # shared library.
14994 postdep_objects=$lt_postdep_objects_CXX
14995
14996 # Dependencies to place before the objects being linked to create a
14997 # shared library.
14998 predeps=$lt_predeps_CXX
14999
15000 # Dependencies to place after the objects being linked to create a
15001 # shared library.
15002 postdeps=$lt_postdeps_CXX
15003
15004 # The library search path used internally by the compiler when linking
15005 # a shared library.
15006 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15007
15008 # Method to check whether dependent libraries are shared objects.
15009 deplibs_check_method=$lt_deplibs_check_method
15010
15011 # Command to use when deplibs_check_method == file_magic.
15012 file_magic_cmd=$lt_file_magic_cmd
15013
15014 # Flag that allows shared libraries with undefined symbols to be built.
15015 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15016
15017 # Flag that forces no undefined symbols.
15018 no_undefined_flag=$lt_no_undefined_flag_CXX
15019
15020 # Commands used to finish a libtool library installation in a directory.
15021 finish_cmds=$lt_finish_cmds
15022
15023 # Same as above, but a single script fragment to be evaled but not shown.
15024 finish_eval=$lt_finish_eval
15025
15026 # Take the output of nm and produce a listing of raw symbols and C names.
15027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15028
15029 # Transform the output of nm in a proper C declaration
15030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15031
15032 # Transform the output of nm in a C name address pair
15033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15034
15035 # This is the shared library runtime path variable.
15036 runpath_var=$runpath_var
15037
15038 # This is the shared library path variable.
15039 shlibpath_var=$shlibpath_var
15040
15041 # Is shlibpath searched before the hard-coded library search path?
15042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15043
15044 # How to hardcode a shared library path into an executable.
15045 hardcode_action=$hardcode_action_CXX
15046
15047 # Whether we should hardcode library paths into libraries.
15048 hardcode_into_libs=$hardcode_into_libs
15049
15050 # Flag to hardcode \$libdir into a binary during linking.
15051 # This must work even if \$libdir does not exist.
15052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15053
15054 # If ld is used when linking, flag to hardcode \$libdir into
15055 # a binary during linking. This must work even if \$libdir does
15056 # not exist.
15057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15058
15059 # Whether we need a single -rpath flag with a separated argument.
15060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15061
15062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15063 # resulting binary.
15064 hardcode_direct=$hardcode_direct_CXX
15065
15066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15067 # resulting binary.
15068 hardcode_minus_L=$hardcode_minus_L_CXX
15069
15070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15071 # the resulting binary.
15072 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15073
15074 # Set to yes if building a shared library automatically hardcodes DIR into the library
15075 # and all subsequent libraries and executables linked against it.
15076 hardcode_automatic=$hardcode_automatic_CXX
15077
15078 # Variables whose values should be saved in libtool wrapper scripts and
15079 # restored at relink time.
15080 variables_saved_for_relink="$variables_saved_for_relink"
15081
15082 # Whether libtool must link a program against all its dependency libraries.
15083 link_all_deplibs=$link_all_deplibs_CXX
15084
15085 # Compile-time system search path for libraries
15086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15087
15088 # Run-time system search path for libraries
15089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15090
15091 # Fix the shell variable \$srcfile for the compiler.
15092 fix_srcfile_path="$fix_srcfile_path_CXX"
15093
15094 # Set to yes if exported symbols are required.
15095 always_export_symbols=$always_export_symbols_CXX
15096
15097 # The commands to list exported symbols.
15098 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15099
15100 # The commands to extract the exported symbol list from a shared archive.
15101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15102
15103 # Symbols that should not be listed in the preloaded symbols.
15104 exclude_expsyms=$lt_exclude_expsyms_CXX
15105
15106 # Symbols that must always be exported.
15107 include_expsyms=$lt_include_expsyms_CXX
15108
15109 # ### END LIBTOOL TAG CONFIG: $tagname
15110
15111 __EOF__
15112
15113
15114 else
15115   # If there is no Makefile yet, we rely on a make rule to execute
15116   # `config.status --recheck' to rerun these tests and create the
15117   # libtool script then.
15118   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15119   if test -f "$ltmain_in"; then
15120     test -f Makefile && make "$ltmain"
15121   fi
15122 fi
15123
15124
15125 ac_ext=c
15126 ac_cpp='$CPP $CPPFLAGS'
15127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15130
15131 CC=$lt_save_CC
15132 LDCXX=$LD
15133 LD=$lt_save_LD
15134 GCC=$lt_save_GCC
15135 with_gnu_ldcxx=$with_gnu_ld
15136 with_gnu_ld=$lt_save_with_gnu_ld
15137 lt_cv_path_LDCXX=$lt_cv_path_LD
15138 lt_cv_path_LD=$lt_save_path_LD
15139 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15140 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15141
15142         else
15143           tagname=""
15144         fi
15145         ;;
15146
15147       F77)
15148         if test -n "$F77" && test "X$F77" != "Xno"; then
15149
15150 ac_ext=f
15151 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15152 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15153 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15154
15155
15156 archive_cmds_need_lc_F77=no
15157 allow_undefined_flag_F77=
15158 always_export_symbols_F77=no
15159 archive_expsym_cmds_F77=
15160 export_dynamic_flag_spec_F77=
15161 hardcode_direct_F77=no
15162 hardcode_libdir_flag_spec_F77=
15163 hardcode_libdir_flag_spec_ld_F77=
15164 hardcode_libdir_separator_F77=
15165 hardcode_minus_L_F77=no
15166 hardcode_automatic_F77=no
15167 module_cmds_F77=
15168 module_expsym_cmds_F77=
15169 link_all_deplibs_F77=unknown
15170 old_archive_cmds_F77=$old_archive_cmds
15171 no_undefined_flag_F77=
15172 whole_archive_flag_spec_F77=
15173 enable_shared_with_static_runtimes_F77=no
15174
15175 # Source file extension for f77 test sources.
15176 ac_ext=f
15177
15178 # Object file extension for compiled f77 test sources.
15179 objext=o
15180 objext_F77=$objext
15181
15182 # Code to be used in simple compile tests
15183 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15184
15185 # Code to be used in simple link tests
15186 lt_simple_link_test_code="      program t\n      end\n"
15187
15188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15189
15190 # If no C compiler was specified, use CC.
15191 LTCC=${LTCC-"$CC"}
15192
15193 # If no C compiler flags were specified, use CFLAGS.
15194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15195
15196 # Allow CC to be a program name with arguments.
15197 compiler=$CC
15198
15199
15200 # save warnings/boilerplate of simple test code
15201 ac_outfile=conftest.$ac_objext
15202 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15204 _lt_compiler_boilerplate=`cat conftest.err`
15205 $rm conftest*
15206
15207 ac_outfile=conftest.$ac_objext
15208 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15210 _lt_linker_boilerplate=`cat conftest.err`
15211 $rm conftest*
15212
15213
15214 # Allow CC to be a program name with arguments.
15215 lt_save_CC="$CC"
15216 CC=${F77-"f77"}
15217 compiler=$CC
15218 compiler_F77=$CC
15219 for cc_temp in $compiler""; do
15220   case $cc_temp in
15221     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15222     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15223     \-*) ;;
15224     *) break;;
15225   esac
15226 done
15227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15228
15229
15230 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15231 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15232 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15233 echo "${ECHO_T}$can_build_shared" >&6; }
15234
15235 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15236 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15237 test "$can_build_shared" = "no" && enable_shared=no
15238
15239 # On AIX, shared libraries and static libraries use the same namespace, and
15240 # are all built from PIC.
15241 case $host_os in
15242 aix3*)
15243   test "$enable_shared" = yes && enable_static=no
15244   if test -n "$RANLIB"; then
15245     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15246     postinstall_cmds='$RANLIB $lib'
15247   fi
15248   ;;
15249 aix4* | aix5*)
15250   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15251     test "$enable_shared" = yes && enable_static=no
15252   fi
15253   ;;
15254 esac
15255 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15256 echo "${ECHO_T}$enable_shared" >&6; }
15257
15258 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15259 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15260 # Make sure either enable_shared or enable_static is yes.
15261 test "$enable_shared" = yes || enable_static=yes
15262 { echo "$as_me:$LINENO: result: $enable_static" >&5
15263 echo "${ECHO_T}$enable_static" >&6; }
15264
15265 GCC_F77="$G77"
15266 LD_F77="$LD"
15267
15268 lt_prog_compiler_wl_F77=
15269 lt_prog_compiler_pic_F77=
15270 lt_prog_compiler_static_F77=
15271
15272 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15274
15275   if test "$GCC" = yes; then
15276     lt_prog_compiler_wl_F77='-Wl,'
15277     lt_prog_compiler_static_F77='-static'
15278
15279     case $host_os in
15280       aix*)
15281       # All AIX code is PIC.
15282       if test "$host_cpu" = ia64; then
15283         # AIX 5 now supports IA64 processor
15284         lt_prog_compiler_static_F77='-Bstatic'
15285       fi
15286       ;;
15287
15288     amigaos*)
15289       # FIXME: we need at least 68020 code to build shared libraries, but
15290       # adding the `-m68020' flag to GCC prevents building anything better,
15291       # like `-m68040'.
15292       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15293       ;;
15294
15295     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15296       # PIC is the default for these OSes.
15297       ;;
15298
15299     mingw* | pw32* | os2*)
15300       # This hack is so that the source file can tell whether it is being
15301       # built for inclusion in a dll (and should export symbols for example).
15302       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15303       ;;
15304
15305     darwin* | rhapsody*)
15306       # PIC is the default on this platform
15307       # Common symbols not allowed in MH_DYLIB files
15308       lt_prog_compiler_pic_F77='-fno-common'
15309       ;;
15310
15311     interix3*)
15312       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15313       # Instead, we relocate shared libraries at runtime.
15314       ;;
15315
15316     msdosdjgpp*)
15317       # Just because we use GCC doesn't mean we suddenly get shared libraries
15318       # on systems that don't support them.
15319       lt_prog_compiler_can_build_shared_F77=no
15320       enable_shared=no
15321       ;;
15322
15323     sysv4*MP*)
15324       if test -d /usr/nec; then
15325         lt_prog_compiler_pic_F77=-Kconform_pic
15326       fi
15327       ;;
15328
15329     hpux*)
15330       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15331       # not for PA HP-UX.
15332       case $host_cpu in
15333       hppa*64*|ia64*)
15334         # +Z the default
15335         ;;
15336       *)
15337         lt_prog_compiler_pic_F77='-fPIC'
15338         ;;
15339       esac
15340       ;;
15341
15342     *)
15343       lt_prog_compiler_pic_F77='-fPIC'
15344       ;;
15345     esac
15346   else
15347     # PORTME Check for flag to pass linker flags through the system compiler.
15348     case $host_os in
15349     aix*)
15350       lt_prog_compiler_wl_F77='-Wl,'
15351       if test "$host_cpu" = ia64; then
15352         # AIX 5 now supports IA64 processor
15353         lt_prog_compiler_static_F77='-Bstatic'
15354       else
15355         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15356       fi
15357       ;;
15358       darwin*)
15359         # PIC is the default on this platform
15360         # Common symbols not allowed in MH_DYLIB files
15361        case $cc_basename in
15362          xlc*)
15363          lt_prog_compiler_pic_F77='-qnocommon'
15364          lt_prog_compiler_wl_F77='-Wl,'
15365          ;;
15366        esac
15367        ;;
15368
15369     mingw* | pw32* | os2*)
15370       # This hack is so that the source file can tell whether it is being
15371       # built for inclusion in a dll (and should export symbols for example).
15372       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15373       ;;
15374
15375     hpux9* | hpux10* | hpux11*)
15376       lt_prog_compiler_wl_F77='-Wl,'
15377       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378       # not for PA HP-UX.
15379       case $host_cpu in
15380       hppa*64*|ia64*)
15381         # +Z the default
15382         ;;
15383       *)
15384         lt_prog_compiler_pic_F77='+Z'
15385         ;;
15386       esac
15387       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15388       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15389       ;;
15390
15391     irix5* | irix6* | nonstopux*)
15392       lt_prog_compiler_wl_F77='-Wl,'
15393       # PIC (with -KPIC) is the default.
15394       lt_prog_compiler_static_F77='-non_shared'
15395       ;;
15396
15397     newsos6)
15398       lt_prog_compiler_pic_F77='-KPIC'
15399       lt_prog_compiler_static_F77='-Bstatic'
15400       ;;
15401
15402     linux* | k*bsd*-gnu)
15403       case $cc_basename in
15404       icc* | ecc*)
15405         lt_prog_compiler_wl_F77='-Wl,'
15406         lt_prog_compiler_pic_F77='-KPIC'
15407         lt_prog_compiler_static_F77='-static'
15408         ;;
15409       pgcc* | pgf77* | pgf90* | pgf95*)
15410         # Portland Group compilers (*not* the Pentium gcc compiler,
15411         # which looks to be a dead project)
15412         lt_prog_compiler_wl_F77='-Wl,'
15413         lt_prog_compiler_pic_F77='-fpic'
15414         lt_prog_compiler_static_F77='-Bstatic'
15415         ;;
15416       ccc*)
15417         lt_prog_compiler_wl_F77='-Wl,'
15418         # All Alpha code is PIC.
15419         lt_prog_compiler_static_F77='-non_shared'
15420         ;;
15421       esac
15422       ;;
15423
15424     osf3* | osf4* | osf5*)
15425       lt_prog_compiler_wl_F77='-Wl,'
15426       # All OSF/1 code is PIC.
15427       lt_prog_compiler_static_F77='-non_shared'
15428       ;;
15429
15430     solaris*)
15431       lt_prog_compiler_pic_F77='-KPIC'
15432       lt_prog_compiler_static_F77='-Bstatic'
15433       case $cc_basename in
15434       f77* | f90* | f95*)
15435         lt_prog_compiler_wl_F77='-Qoption ld ';;
15436       *)
15437         lt_prog_compiler_wl_F77='-Wl,';;
15438       esac
15439       ;;
15440
15441     sunos4*)
15442       lt_prog_compiler_wl_F77='-Qoption ld '
15443       lt_prog_compiler_pic_F77='-PIC'
15444       lt_prog_compiler_static_F77='-Bstatic'
15445       ;;
15446
15447     sysv4 | sysv4.2uw2* | sysv4.3*)
15448       lt_prog_compiler_wl_F77='-Wl,'
15449       lt_prog_compiler_pic_F77='-KPIC'
15450       lt_prog_compiler_static_F77='-Bstatic'
15451       ;;
15452
15453     sysv4*MP*)
15454       if test -d /usr/nec ;then
15455         lt_prog_compiler_pic_F77='-Kconform_pic'
15456         lt_prog_compiler_static_F77='-Bstatic'
15457       fi
15458       ;;
15459
15460     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15461       lt_prog_compiler_wl_F77='-Wl,'
15462       lt_prog_compiler_pic_F77='-KPIC'
15463       lt_prog_compiler_static_F77='-Bstatic'
15464       ;;
15465
15466     unicos*)
15467       lt_prog_compiler_wl_F77='-Wl,'
15468       lt_prog_compiler_can_build_shared_F77=no
15469       ;;
15470
15471     uts4*)
15472       lt_prog_compiler_pic_F77='-pic'
15473       lt_prog_compiler_static_F77='-Bstatic'
15474       ;;
15475
15476     *)
15477       lt_prog_compiler_can_build_shared_F77=no
15478       ;;
15479     esac
15480   fi
15481
15482 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15483 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15484
15485 #
15486 # Check to make sure the PIC flag actually works.
15487 #
15488 if test -n "$lt_prog_compiler_pic_F77"; then
15489
15490 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15491 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15492 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   lt_prog_compiler_pic_works_F77=no
15496   ac_outfile=conftest.$ac_objext
15497    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15498    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15499    # Insert the option either (1) after the last *FLAGS variable, or
15500    # (2) before a word containing "conftest.", or (3) at the end.
15501    # Note that $ac_compile itself does not contain backslashes and begins
15502    # with a dollar sign (not a hyphen), so the echo should work correctly.
15503    # The option is referenced via a variable to avoid confusing sed.
15504    lt_compile=`echo "$ac_compile" | $SED \
15505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15507    -e 's:$: $lt_compiler_flag:'`
15508    (eval echo "\"\$as_me:15508: $lt_compile\"" >&5)
15509    (eval "$lt_compile" 2>conftest.err)
15510    ac_status=$?
15511    cat conftest.err >&5
15512    echo "$as_me:15512: \$? = $ac_status" >&5
15513    if (exit $ac_status) && test -s "$ac_outfile"; then
15514      # The compiler can only warn and ignore the option if not recognized
15515      # So say no if there are warnings other than the usual output.
15516      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15517      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15518      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15519        lt_prog_compiler_pic_works_F77=yes
15520      fi
15521    fi
15522    $rm conftest*
15523
15524 fi
15525 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15526 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15527
15528 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15529     case $lt_prog_compiler_pic_F77 in
15530      "" | " "*) ;;
15531      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15532      esac
15533 else
15534     lt_prog_compiler_pic_F77=
15535      lt_prog_compiler_can_build_shared_F77=no
15536 fi
15537
15538 fi
15539 case $host_os in
15540   # For platforms which do not support PIC, -DPIC is meaningless:
15541   *djgpp*)
15542     lt_prog_compiler_pic_F77=
15543     ;;
15544   *)
15545     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15546     ;;
15547 esac
15548
15549 #
15550 # Check to make sure the static flag actually works.
15551 #
15552 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15553 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15554 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15555 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558   lt_prog_compiler_static_works_F77=no
15559    save_LDFLAGS="$LDFLAGS"
15560    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15561    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15562    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15563      # The linker can only warn and ignore the option if not recognized
15564      # So say no if there are warnings
15565      if test -s conftest.err; then
15566        # Append any errors to the config.log.
15567        cat conftest.err 1>&5
15568        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15569        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15570        if diff conftest.exp conftest.er2 >/dev/null; then
15571          lt_prog_compiler_static_works_F77=yes
15572        fi
15573      else
15574        lt_prog_compiler_static_works_F77=yes
15575      fi
15576    fi
15577    $rm conftest*
15578    LDFLAGS="$save_LDFLAGS"
15579
15580 fi
15581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15582 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15583
15584 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15585     :
15586 else
15587     lt_prog_compiler_static_F77=
15588 fi
15589
15590
15591 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15592 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15593 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15594   echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596   lt_cv_prog_compiler_c_o_F77=no
15597    $rm -r conftest 2>/dev/null
15598    mkdir conftest
15599    cd conftest
15600    mkdir out
15601    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15602
15603    lt_compiler_flag="-o out/conftest2.$ac_objext"
15604    # Insert the option either (1) after the last *FLAGS variable, or
15605    # (2) before a word containing "conftest.", or (3) at the end.
15606    # Note that $ac_compile itself does not contain backslashes and begins
15607    # with a dollar sign (not a hyphen), so the echo should work correctly.
15608    lt_compile=`echo "$ac_compile" | $SED \
15609    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15610    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15611    -e 's:$: $lt_compiler_flag:'`
15612    (eval echo "\"\$as_me:15612: $lt_compile\"" >&5)
15613    (eval "$lt_compile" 2>out/conftest.err)
15614    ac_status=$?
15615    cat out/conftest.err >&5
15616    echo "$as_me:15616: \$? = $ac_status" >&5
15617    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15618    then
15619      # The compiler can only warn and ignore the option if not recognized
15620      # So say no if there are warnings
15621      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15622      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15623      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15624        lt_cv_prog_compiler_c_o_F77=yes
15625      fi
15626    fi
15627    chmod u+w . 2>&5
15628    $rm conftest*
15629    # SGI C++ compiler will create directory out/ii_files/ for
15630    # template instantiation
15631    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15632    $rm out/* && rmdir out
15633    cd ..
15634    rmdir conftest
15635    $rm conftest*
15636
15637 fi
15638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15639 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15640
15641
15642 hard_links="nottested"
15643 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15644   # do not overwrite the value of need_locks provided by the user
15645   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15646 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15647   hard_links=yes
15648   $rm conftest*
15649   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15650   touch conftest.a
15651   ln conftest.a conftest.b 2>&5 || hard_links=no
15652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15653   { echo "$as_me:$LINENO: result: $hard_links" >&5
15654 echo "${ECHO_T}$hard_links" >&6; }
15655   if test "$hard_links" = no; then
15656     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15657 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15658     need_locks=warn
15659   fi
15660 else
15661   need_locks=no
15662 fi
15663
15664 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15665 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15666
15667   runpath_var=
15668   allow_undefined_flag_F77=
15669   enable_shared_with_static_runtimes_F77=no
15670   archive_cmds_F77=
15671   archive_expsym_cmds_F77=
15672   old_archive_From_new_cmds_F77=
15673   old_archive_from_expsyms_cmds_F77=
15674   export_dynamic_flag_spec_F77=
15675   whole_archive_flag_spec_F77=
15676   thread_safe_flag_spec_F77=
15677   hardcode_libdir_flag_spec_F77=
15678   hardcode_libdir_flag_spec_ld_F77=
15679   hardcode_libdir_separator_F77=
15680   hardcode_direct_F77=no
15681   hardcode_minus_L_F77=no
15682   hardcode_shlibpath_var_F77=unsupported
15683   link_all_deplibs_F77=unknown
15684   hardcode_automatic_F77=no
15685   module_cmds_F77=
15686   module_expsym_cmds_F77=
15687   always_export_symbols_F77=no
15688   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15689   # include_expsyms should be a list of space-separated symbols to be *always*
15690   # included in the symbol list
15691   include_expsyms_F77=
15692   # exclude_expsyms can be an extended regexp of symbols to exclude
15693   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15694   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15695   # as well as any symbol that contains `d'.
15696   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15697   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15698   # platforms (ab)use it in PIC code, but their linkers get confused if
15699   # the symbol is explicitly referenced.  Since portable code cannot
15700   # rely on this symbol name, it's probably fine to never include it in
15701   # preloaded symbol tables.
15702   extract_expsyms_cmds=
15703   # Just being paranoid about ensuring that cc_basename is set.
15704   for cc_temp in $compiler""; do
15705   case $cc_temp in
15706     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15707     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15708     \-*) ;;
15709     *) break;;
15710   esac
15711 done
15712 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15713
15714   case $host_os in
15715   cygwin* | mingw* | pw32*)
15716     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15717     # When not using gcc, we currently assume that we are using
15718     # Microsoft Visual C++.
15719     if test "$GCC" != yes; then
15720       with_gnu_ld=no
15721     fi
15722     ;;
15723   interix*)
15724     # we just hope/assume this is gcc and not c89 (= MSVC++)
15725     with_gnu_ld=yes
15726     ;;
15727   openbsd*)
15728     with_gnu_ld=no
15729     ;;
15730   esac
15731
15732   ld_shlibs_F77=yes
15733   if test "$with_gnu_ld" = yes; then
15734     # If archive_cmds runs LD, not CC, wlarc should be empty
15735     wlarc='${wl}'
15736
15737     # Set some defaults for GNU ld with shared library support. These
15738     # are reset later if shared libraries are not supported. Putting them
15739     # here allows them to be overridden if necessary.
15740     runpath_var=LD_RUN_PATH
15741     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15742     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15743     # ancient GNU ld didn't support --whole-archive et. al.
15744     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15745         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15746       else
15747         whole_archive_flag_spec_F77=
15748     fi
15749     supports_anon_versioning=no
15750     case `$LD -v 2>/dev/null` in
15751       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15752       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15753       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15754       *\ 2.11.*) ;; # other 2.11 versions
15755       *) supports_anon_versioning=yes ;;
15756     esac
15757
15758     # See if GNU ld supports shared libraries.
15759     case $host_os in
15760     aix3* | aix4* | aix5*)
15761       # On AIX/PPC, the GNU linker is very broken
15762       if test "$host_cpu" != ia64; then
15763         ld_shlibs_F77=no
15764         cat <<EOF 1>&2
15765
15766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15767 *** to be unable to reliably create shared libraries on AIX.
15768 *** Therefore, libtool is disabling shared libraries support.  If you
15769 *** really care for shared libraries, you may want to modify your PATH
15770 *** so that a non-GNU linker is found, and then restart.
15771
15772 EOF
15773       fi
15774       ;;
15775
15776     amigaos*)
15777       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)'
15778       hardcode_libdir_flag_spec_F77='-L$libdir'
15779       hardcode_minus_L_F77=yes
15780
15781       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15782       # that the semantics of dynamic libraries on AmigaOS, at least up
15783       # to version 4, is to share data among multiple programs linked
15784       # with the same dynamic library.  Since this doesn't match the
15785       # behavior of shared libraries on other platforms, we can't use
15786       # them.
15787       ld_shlibs_F77=no
15788       ;;
15789
15790     beos*)
15791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15792         allow_undefined_flag_F77=unsupported
15793         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15794         # support --undefined.  This deserves some investigation.  FIXME
15795         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796       else
15797         ld_shlibs_F77=no
15798       fi
15799       ;;
15800
15801     cygwin* | mingw* | pw32*)
15802       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15803       # as there is no search path for DLLs.
15804       hardcode_libdir_flag_spec_F77='-L$libdir'
15805       allow_undefined_flag_F77=unsupported
15806       always_export_symbols_F77=no
15807       enable_shared_with_static_runtimes_F77=yes
15808       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15809
15810       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15811         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15812         # If the export-symbols file already is a .def file (1st line
15813         # is EXPORTS), use it as is; otherwise, prepend...
15814         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15815           cp $export_symbols $output_objdir/$soname.def;
15816         else
15817           echo EXPORTS > $output_objdir/$soname.def;
15818           cat $export_symbols >> $output_objdir/$soname.def;
15819         fi~
15820         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15821       else
15822         ld_shlibs_F77=no
15823       fi
15824       ;;
15825
15826     interix3*)
15827       hardcode_direct_F77=no
15828       hardcode_shlibpath_var_F77=no
15829       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15830       export_dynamic_flag_spec_F77='${wl}-E'
15831       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832       # Instead, shared libraries are loaded at an image base (0x10000000 by
15833       # default) and relocated if they conflict, which is a slow very memory
15834       # consuming and fragmenting process.  To avoid this, we pick a random,
15835       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15837       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'
15838       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'
15839       ;;
15840
15841     linux* | k*bsd*-gnu)
15842       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15843         tmp_addflag=
15844         case $cc_basename,$host_cpu in
15845         pgcc*)                          # Portland Group C compiler
15846           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'
15847           tmp_addflag=' $pic_flag'
15848           ;;
15849         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15850           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'
15851           tmp_addflag=' $pic_flag -Mnomain' ;;
15852         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15853           tmp_addflag=' -i_dynamic' ;;
15854         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15855           tmp_addflag=' -i_dynamic -nofor_main' ;;
15856         ifc* | ifort*)                  # Intel Fortran compiler
15857           tmp_addflag=' -nofor_main' ;;
15858         esac
15859         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15860
15861         if test $supports_anon_versioning = yes; then
15862           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15863   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15864   $echo "local: *; };" >> $output_objdir/$libname.ver~
15865           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15866         fi
15867         link_all_deplibs_F77=no
15868       else
15869         ld_shlibs_F77=no
15870       fi
15871       ;;
15872
15873     netbsd* | netbsdelf*-gnu)
15874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15875         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15876         wlarc=
15877       else
15878         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15879         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15880       fi
15881       ;;
15882
15883     solaris*)
15884       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15885         ld_shlibs_F77=no
15886         cat <<EOF 1>&2
15887
15888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15889 *** create shared libraries on Solaris systems.  Therefore, libtool
15890 *** is disabling shared libraries support.  We urge you to upgrade GNU
15891 *** binutils to release 2.9.1 or newer.  Another option is to modify
15892 *** your PATH or compiler configuration so that the native linker is
15893 *** used, and then restart.
15894
15895 EOF
15896       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899       else
15900         ld_shlibs_F77=no
15901       fi
15902       ;;
15903
15904     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15905       case `$LD -v 2>&1` in
15906         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15907         ld_shlibs_F77=no
15908         cat <<_LT_EOF 1>&2
15909
15910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15911 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15912 *** is disabling shared libraries support.  We urge you to upgrade GNU
15913 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15914 *** your PATH or compiler configuration so that the native linker is
15915 *** used, and then restart.
15916
15917 _LT_EOF
15918         ;;
15919         *)
15920           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15921             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15922             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15923             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15924           else
15925             ld_shlibs_F77=no
15926           fi
15927         ;;
15928       esac
15929       ;;
15930
15931     sunos4*)
15932       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15933       wlarc=
15934       hardcode_direct_F77=yes
15935       hardcode_shlibpath_var_F77=no
15936       ;;
15937
15938     *)
15939       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15940         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15942       else
15943         ld_shlibs_F77=no
15944       fi
15945       ;;
15946     esac
15947
15948     if test "$ld_shlibs_F77" = no; then
15949       runpath_var=
15950       hardcode_libdir_flag_spec_F77=
15951       export_dynamic_flag_spec_F77=
15952       whole_archive_flag_spec_F77=
15953     fi
15954   else
15955     # PORTME fill in a description of your system's linker (not GNU ld)
15956     case $host_os in
15957     aix3*)
15958       allow_undefined_flag_F77=unsupported
15959       always_export_symbols_F77=yes
15960       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'
15961       # Note: this linker hardcodes the directories in LIBPATH if there
15962       # are no directories specified by -L.
15963       hardcode_minus_L_F77=yes
15964       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15965         # Neither direct hardcoding nor static linking is supported with a
15966         # broken collect2.
15967         hardcode_direct_F77=unsupported
15968       fi
15969       ;;
15970
15971     aix4* | aix5*)
15972       if test "$host_cpu" = ia64; then
15973         # On IA64, the linker does run time linking by default, so we don't
15974         # have to do anything special.
15975         aix_use_runtimelinking=no
15976         exp_sym_flag='-Bexport'
15977         no_entry_flag=""
15978       else
15979         # If we're using GNU nm, then we don't want the "-C" option.
15980         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15981         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15982           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'
15983         else
15984           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'
15985         fi
15986         aix_use_runtimelinking=no
15987
15988         # Test if we are trying to use run time linking or normal
15989         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15990         # need to do runtime linking.
15991         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15992           for ld_flag in $LDFLAGS; do
15993           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15994             aix_use_runtimelinking=yes
15995             break
15996           fi
15997           done
15998           ;;
15999         esac
16000
16001         exp_sym_flag='-bexport'
16002         no_entry_flag='-bnoentry'
16003       fi
16004
16005       # When large executables or shared objects are built, AIX ld can
16006       # have problems creating the table of contents.  If linking a library
16007       # or program results in "error TOC overflow" add -mminimal-toc to
16008       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16009       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16010
16011       archive_cmds_F77=''
16012       hardcode_direct_F77=yes
16013       hardcode_libdir_separator_F77=':'
16014       link_all_deplibs_F77=yes
16015
16016       if test "$GCC" = yes; then
16017         case $host_os in aix4.[012]|aix4.[012].*)
16018         # We only want to do this on AIX 4.2 and lower, the check
16019         # below for broken collect2 doesn't work under 4.3+
16020           collect2name=`${CC} -print-prog-name=collect2`
16021           if test -f "$collect2name" && \
16022            strings "$collect2name" | grep resolve_lib_name >/dev/null
16023           then
16024           # We have reworked collect2
16025           hardcode_direct_F77=yes
16026           else
16027           # We have old collect2
16028           hardcode_direct_F77=unsupported
16029           # It fails to find uninstalled libraries when the uninstalled
16030           # path is not listed in the libpath.  Setting hardcode_minus_L
16031           # to unsupported forces relinking
16032           hardcode_minus_L_F77=yes
16033           hardcode_libdir_flag_spec_F77='-L$libdir'
16034           hardcode_libdir_separator_F77=
16035           fi
16036           ;;
16037         esac
16038         shared_flag='-shared'
16039         if test "$aix_use_runtimelinking" = yes; then
16040           shared_flag="$shared_flag "'${wl}-G'
16041         fi
16042       else
16043         # not using gcc
16044         if test "$host_cpu" = ia64; then
16045         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16046         # chokes on -Wl,-G. The following line is correct:
16047           shared_flag='-G'
16048         else
16049           if test "$aix_use_runtimelinking" = yes; then
16050             shared_flag='${wl}-G'
16051           else
16052             shared_flag='${wl}-bM:SRE'
16053           fi
16054         fi
16055       fi
16056
16057       # It seems that -bexpall does not export symbols beginning with
16058       # underscore (_), so it is better to generate a list of symbols to export.
16059       always_export_symbols_F77=yes
16060       if test "$aix_use_runtimelinking" = yes; then
16061         # Warning - without using the other runtime loading flags (-brtl),
16062         # -berok will link without error, but may produce a broken library.
16063         allow_undefined_flag_F77='-berok'
16064        # Determine the default libpath from the value encoded in an empty executable.
16065        cat >conftest.$ac_ext <<_ACEOF
16066       program main
16067
16068       end
16069 _ACEOF
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077   (eval "$ac_link") 2>conftest.er1
16078   ac_status=$?
16079   grep -v '^ *+' conftest.er1 >conftest.err
16080   rm -f conftest.er1
16081   cat conftest.err >&5
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); } && {
16084          test -z "$ac_f77_werror_flag" ||
16085          test ! -s conftest.err
16086        } && test -s conftest$ac_exeext &&
16087        $as_test_x conftest$ac_exeext; then
16088
16089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16090 }'`
16091 # Check for a 64-bit object if we didn't find anything.
16092 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16093 }'`; fi
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098
16099 fi
16100
16101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16102       conftest$ac_exeext conftest.$ac_ext
16103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16104
16105        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16106         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"
16107        else
16108         if test "$host_cpu" = ia64; then
16109           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16110           allow_undefined_flag_F77="-z nodefs"
16111           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"
16112         else
16113          # Determine the default libpath from the value encoded in an empty executable.
16114          cat >conftest.$ac_ext <<_ACEOF
16115       program main
16116
16117       end
16118 _ACEOF
16119 rm -f conftest.$ac_objext conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123   *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126   (eval "$ac_link") 2>conftest.er1
16127   ac_status=$?
16128   grep -v '^ *+' conftest.er1 >conftest.err
16129   rm -f conftest.er1
16130   cat conftest.err >&5
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); } && {
16133          test -z "$ac_f77_werror_flag" ||
16134          test ! -s conftest.err
16135        } && test -s conftest$ac_exeext &&
16136        $as_test_x conftest$ac_exeext; then
16137
16138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16139 }'`
16140 # Check for a 64-bit object if we didn't find anything.
16141 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16142 }'`; fi
16143 else
16144   echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147
16148 fi
16149
16150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151       conftest$ac_exeext conftest.$ac_ext
16152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16153
16154          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16155           # Warning - without using the other run time loading flags,
16156           # -berok will link without error, but may produce a broken library.
16157           no_undefined_flag_F77=' ${wl}-bernotok'
16158           allow_undefined_flag_F77=' ${wl}-berok'
16159           # Exported symbols can be pulled into shared objects from archives
16160           whole_archive_flag_spec_F77='$convenience'
16161           archive_cmds_need_lc_F77=yes
16162           # This is similar to how AIX traditionally builds its shared libraries.
16163           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'
16164         fi
16165       fi
16166       ;;
16167
16168     amigaos*)
16169       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)'
16170       hardcode_libdir_flag_spec_F77='-L$libdir'
16171       hardcode_minus_L_F77=yes
16172       # see comment about different semantics on the GNU ld section
16173       ld_shlibs_F77=no
16174       ;;
16175
16176     bsdi[45]*)
16177       export_dynamic_flag_spec_F77=-rdynamic
16178       ;;
16179
16180     cygwin* | mingw* | pw32*)
16181       # When not using gcc, we currently assume that we are using
16182       # Microsoft Visual C++.
16183       # hardcode_libdir_flag_spec is actually meaningless, as there is
16184       # no search path for DLLs.
16185       hardcode_libdir_flag_spec_F77=' '
16186       allow_undefined_flag_F77=unsupported
16187       # Tell ltmain to make .lib files, not .a files.
16188       libext=lib
16189       # Tell ltmain to make .dll files, not .so files.
16190       shrext_cmds=".dll"
16191       # FIXME: Setting linknames here is a bad hack.
16192       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16193       # The linker will automatically build a .lib file if we build a DLL.
16194       old_archive_From_new_cmds_F77='true'
16195       # FIXME: Should let the user specify the lib program.
16196       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16197       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16198       enable_shared_with_static_runtimes_F77=yes
16199       ;;
16200
16201     darwin* | rhapsody*)
16202       case $host_os in
16203         rhapsody* | darwin1.[012])
16204          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16205          ;;
16206        *) # Darwin 1.3 on
16207          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16208            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16209          else
16210            case ${MACOSX_DEPLOYMENT_TARGET} in
16211              10.[012])
16212                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16213                ;;
16214              10.*)
16215                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16216                ;;
16217            esac
16218          fi
16219          ;;
16220       esac
16221       archive_cmds_need_lc_F77=no
16222       hardcode_direct_F77=no
16223       hardcode_automatic_F77=yes
16224       hardcode_shlibpath_var_F77=unsupported
16225       whole_archive_flag_spec_F77=''
16226       link_all_deplibs_F77=yes
16227     if test "$GCC" = yes ; then
16228         output_verbose_link_cmd='echo'
16229         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16230       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16231       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16232       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}'
16233       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}'
16234     else
16235       case $cc_basename in
16236         xlc*)
16237          output_verbose_link_cmd='echo'
16238          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16239          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16240           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16241          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16242           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}'
16243           ;;
16244        *)
16245          ld_shlibs_F77=no
16246           ;;
16247       esac
16248     fi
16249       ;;
16250
16251     dgux*)
16252       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253       hardcode_libdir_flag_spec_F77='-L$libdir'
16254       hardcode_shlibpath_var_F77=no
16255       ;;
16256
16257     freebsd1*)
16258       ld_shlibs_F77=no
16259       ;;
16260
16261     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16262     # support.  Future versions do this automatically, but an explicit c++rt0.o
16263     # does not break anything, and helps significantly (at the cost of a little
16264     # extra space).
16265     freebsd2.2*)
16266       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16267       hardcode_libdir_flag_spec_F77='-R$libdir'
16268       hardcode_direct_F77=yes
16269       hardcode_shlibpath_var_F77=no
16270       ;;
16271
16272     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16273     freebsd2*)
16274       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16275       hardcode_direct_F77=yes
16276       hardcode_minus_L_F77=yes
16277       hardcode_shlibpath_var_F77=no
16278       ;;
16279
16280     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16281     freebsd* | dragonfly*)
16282       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16283       hardcode_libdir_flag_spec_F77='-R$libdir'
16284       hardcode_direct_F77=yes
16285       hardcode_shlibpath_var_F77=no
16286       ;;
16287
16288     hpux9*)
16289       if test "$GCC" = yes; then
16290         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'
16291       else
16292         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'
16293       fi
16294       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16295       hardcode_libdir_separator_F77=:
16296       hardcode_direct_F77=yes
16297
16298       # hardcode_minus_L: Not really in the search PATH,
16299       # but as the default location of the library.
16300       hardcode_minus_L_F77=yes
16301       export_dynamic_flag_spec_F77='${wl}-E'
16302       ;;
16303
16304     hpux10*)
16305       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16306         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16307       else
16308         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16309       fi
16310       if test "$with_gnu_ld" = no; then
16311         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16312         hardcode_libdir_separator_F77=:
16313
16314         hardcode_direct_F77=yes
16315         export_dynamic_flag_spec_F77='${wl}-E'
16316
16317         # hardcode_minus_L: Not really in the search PATH,
16318         # but as the default location of the library.
16319         hardcode_minus_L_F77=yes
16320       fi
16321       ;;
16322
16323     hpux11*)
16324       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16325         case $host_cpu in
16326         hppa*64*)
16327           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16328           ;;
16329         ia64*)
16330           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16331           ;;
16332         *)
16333           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16334           ;;
16335         esac
16336       else
16337         case $host_cpu in
16338         hppa*64*)
16339           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16340           ;;
16341         ia64*)
16342           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16343           ;;
16344         *)
16345           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16346           ;;
16347         esac
16348       fi
16349       if test "$with_gnu_ld" = no; then
16350         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16351         hardcode_libdir_separator_F77=:
16352
16353         case $host_cpu in
16354         hppa*64*|ia64*)
16355           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16356           hardcode_direct_F77=no
16357           hardcode_shlibpath_var_F77=no
16358           ;;
16359         *)
16360           hardcode_direct_F77=yes
16361           export_dynamic_flag_spec_F77='${wl}-E'
16362
16363           # hardcode_minus_L: Not really in the search PATH,
16364           # but as the default location of the library.
16365           hardcode_minus_L_F77=yes
16366           ;;
16367         esac
16368       fi
16369       ;;
16370
16371     irix5* | irix6* | nonstopux*)
16372       if test "$GCC" = yes; then
16373         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'
16374       else
16375         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'
16376         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16377       fi
16378       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16379       hardcode_libdir_separator_F77=:
16380       link_all_deplibs_F77=yes
16381       ;;
16382
16383     netbsd* | netbsdelf*-gnu)
16384       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16385         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16386       else
16387         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16388       fi
16389       hardcode_libdir_flag_spec_F77='-R$libdir'
16390       hardcode_direct_F77=yes
16391       hardcode_shlibpath_var_F77=no
16392       ;;
16393
16394     newsos6)
16395       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396       hardcode_direct_F77=yes
16397       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16398       hardcode_libdir_separator_F77=:
16399       hardcode_shlibpath_var_F77=no
16400       ;;
16401
16402     openbsd*)
16403       hardcode_direct_F77=yes
16404       hardcode_shlibpath_var_F77=no
16405       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16408         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16409         export_dynamic_flag_spec_F77='${wl}-E'
16410       else
16411        case $host_os in
16412          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16413            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16414            hardcode_libdir_flag_spec_F77='-R$libdir'
16415            ;;
16416          *)
16417            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16418            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16419            ;;
16420        esac
16421       fi
16422       ;;
16423
16424     os2*)
16425       hardcode_libdir_flag_spec_F77='-L$libdir'
16426       hardcode_minus_L_F77=yes
16427       allow_undefined_flag_F77=unsupported
16428       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'
16429       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16430       ;;
16431
16432     osf3*)
16433       if test "$GCC" = yes; then
16434         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16435         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'
16436       else
16437         allow_undefined_flag_F77=' -expect_unresolved \*'
16438         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'
16439       fi
16440       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16441       hardcode_libdir_separator_F77=:
16442       ;;
16443
16444     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16445       if test "$GCC" = yes; then
16446         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16447         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'
16448         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16449       else
16450         allow_undefined_flag_F77=' -expect_unresolved \*'
16451         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'
16452         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~
16453         $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'
16454
16455         # Both c and cxx compiler support -rpath directly
16456         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16457       fi
16458       hardcode_libdir_separator_F77=:
16459       ;;
16460
16461     solaris*)
16462       no_undefined_flag_F77=' -z text'
16463       if test "$GCC" = yes; then
16464         wlarc='${wl}'
16465         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16466         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16467           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16468       else
16469         wlarc=''
16470         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16472         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16473       fi
16474       hardcode_libdir_flag_spec_F77='-R$libdir'
16475       hardcode_shlibpath_var_F77=no
16476       case $host_os in
16477       solaris2.[0-5] | solaris2.[0-5].*) ;;
16478       *)
16479         # The compiler driver will combine linker options so we
16480         # cannot just pass the convience library names through
16481         # without $wl, iff we do not link with $LD.
16482         # Luckily, gcc supports the same syntax we need for Sun Studio.
16483         # Supported since Solaris 2.6 (maybe 2.5.1?)
16484         case $wlarc in
16485         '')
16486           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16487         *)
16488           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16489         esac ;;
16490       esac
16491       link_all_deplibs_F77=yes
16492       ;;
16493
16494     sunos4*)
16495       if test "x$host_vendor" = xsequent; then
16496         # Use $CC to link under sequent, because it throws in some extra .o
16497         # files that make .init and .fini sections work.
16498         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16499       else
16500         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16501       fi
16502       hardcode_libdir_flag_spec_F77='-L$libdir'
16503       hardcode_direct_F77=yes
16504       hardcode_minus_L_F77=yes
16505       hardcode_shlibpath_var_F77=no
16506       ;;
16507
16508     sysv4)
16509       case $host_vendor in
16510         sni)
16511           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512           hardcode_direct_F77=yes # is this really true???
16513         ;;
16514         siemens)
16515           ## LD is ld it makes a PLAMLIB
16516           ## CC just makes a GrossModule.
16517           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16518           reload_cmds_F77='$CC -r -o $output$reload_objs'
16519           hardcode_direct_F77=no
16520         ;;
16521         motorola)
16522           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16524         ;;
16525       esac
16526       runpath_var='LD_RUN_PATH'
16527       hardcode_shlibpath_var_F77=no
16528       ;;
16529
16530     sysv4.3*)
16531       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532       hardcode_shlibpath_var_F77=no
16533       export_dynamic_flag_spec_F77='-Bexport'
16534       ;;
16535
16536     sysv4*MP*)
16537       if test -d /usr/nec; then
16538         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539         hardcode_shlibpath_var_F77=no
16540         runpath_var=LD_RUN_PATH
16541         hardcode_runpath_var=yes
16542         ld_shlibs_F77=yes
16543       fi
16544       ;;
16545
16546     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16547       no_undefined_flag_F77='${wl}-z,text'
16548       archive_cmds_need_lc_F77=no
16549       hardcode_shlibpath_var_F77=no
16550       runpath_var='LD_RUN_PATH'
16551
16552       if test "$GCC" = yes; then
16553         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16554         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555       else
16556         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16557         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16558       fi
16559       ;;
16560
16561     sysv5* | sco3.2v5* | sco5v6*)
16562       # Note: We can NOT use -z defs as we might desire, because we do not
16563       # link with -lc, and that would cause any symbols used from libc to
16564       # always be unresolved, which means just about no library would
16565       # ever link correctly.  If we're not using GNU ld we use -z text
16566       # though, which does catch some bad symbols but isn't as heavy-handed
16567       # as -z defs.
16568       no_undefined_flag_F77='${wl}-z,text'
16569       allow_undefined_flag_F77='${wl}-z,nodefs'
16570       archive_cmds_need_lc_F77=no
16571       hardcode_shlibpath_var_F77=no
16572       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16573       hardcode_libdir_separator_F77=':'
16574       link_all_deplibs_F77=yes
16575       export_dynamic_flag_spec_F77='${wl}-Bexport'
16576       runpath_var='LD_RUN_PATH'
16577
16578       if test "$GCC" = yes; then
16579         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16580         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16581       else
16582         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16583         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584       fi
16585       ;;
16586
16587     uts4*)
16588       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16589       hardcode_libdir_flag_spec_F77='-L$libdir'
16590       hardcode_shlibpath_var_F77=no
16591       ;;
16592
16593     *)
16594       ld_shlibs_F77=no
16595       ;;
16596     esac
16597   fi
16598
16599 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16600 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16601 test "$ld_shlibs_F77" = no && can_build_shared=no
16602
16603 #
16604 # Do we need to explicitly link libc?
16605 #
16606 case "x$archive_cmds_need_lc_F77" in
16607 x|xyes)
16608   # Assume -lc should be added
16609   archive_cmds_need_lc_F77=yes
16610
16611   if test "$enable_shared" = yes && test "$GCC" = yes; then
16612     case $archive_cmds_F77 in
16613     *'~'*)
16614       # FIXME: we may have to deal with multi-command sequences.
16615       ;;
16616     '$CC '*)
16617       # Test whether the compiler implicitly links with -lc since on some
16618       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16619       # to ld, don't add -lc before -lgcc.
16620       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16621 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16622       $rm conftest*
16623       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16624
16625       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626   (eval $ac_compile) 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); } 2>conftest.err; then
16630         soname=conftest
16631         lib=conftest
16632         libobjs=conftest.$ac_objext
16633         deplibs=
16634         wl=$lt_prog_compiler_wl_F77
16635         pic_flag=$lt_prog_compiler_pic_F77
16636         compiler_flags=-v
16637         linker_flags=-v
16638         verstring=
16639         output_objdir=.
16640         libname=conftest
16641         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16642         allow_undefined_flag_F77=
16643         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16644   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }
16648         then
16649           archive_cmds_need_lc_F77=no
16650         else
16651           archive_cmds_need_lc_F77=yes
16652         fi
16653         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16654       else
16655         cat conftest.err 1>&5
16656       fi
16657       $rm conftest*
16658       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16659 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16660       ;;
16661     esac
16662   fi
16663   ;;
16664 esac
16665
16666 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16667 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16668 library_names_spec=
16669 libname_spec='lib$name'
16670 soname_spec=
16671 shrext_cmds=".so"
16672 postinstall_cmds=
16673 postuninstall_cmds=
16674 finish_cmds=
16675 finish_eval=
16676 shlibpath_var=
16677 shlibpath_overrides_runpath=unknown
16678 version_type=none
16679 dynamic_linker="$host_os ld.so"
16680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16681 if test "$GCC" = yes; then
16682   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16683   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16684     # if the path contains ";" then we assume it to be the separator
16685     # otherwise default to the standard path separator (i.e. ":") - it is
16686     # assumed that no part of a normal pathname contains ";" but that should
16687     # okay in the real world where ";" in dirpaths is itself problematic.
16688     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16689   else
16690     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16691   fi
16692 else
16693   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16694 fi
16695 need_lib_prefix=unknown
16696 hardcode_into_libs=no
16697
16698 # when you set need_version to no, make sure it does not cause -set_version
16699 # flags to be left without arguments
16700 need_version=unknown
16701
16702 case $host_os in
16703 aix3*)
16704   version_type=linux
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16706   shlibpath_var=LIBPATH
16707
16708   # AIX 3 has no versioning support, so we append a major version to the name.
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   ;;
16711
16712 aix4* | aix5*)
16713   version_type=linux
16714   need_lib_prefix=no
16715   need_version=no
16716   hardcode_into_libs=yes
16717   if test "$host_cpu" = ia64; then
16718     # AIX 5 supports IA64
16719     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16720     shlibpath_var=LD_LIBRARY_PATH
16721   else
16722     # With GCC up to 2.95.x, collect2 would create an import file
16723     # for dependence libraries.  The import file would start with
16724     # the line `#! .'.  This would cause the generated library to
16725     # depend on `.', always an invalid library.  This was fixed in
16726     # development snapshots of GCC prior to 3.0.
16727     case $host_os in
16728       aix4 | aix4.[01] | aix4.[01].*)
16729       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16730            echo ' yes '
16731            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16732         :
16733       else
16734         can_build_shared=no
16735       fi
16736       ;;
16737     esac
16738     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16739     # soname into executable. Probably we can add versioning support to
16740     # collect2, so additional links can be useful in future.
16741     if test "$aix_use_runtimelinking" = yes; then
16742       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16743       # instead of lib<name>.a to let people know that these are not
16744       # typical AIX shared libraries.
16745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746     else
16747       # We preserve .a as extension for shared libraries through AIX4.2
16748       # and later when we are not doing run time linking.
16749       library_names_spec='${libname}${release}.a $libname.a'
16750       soname_spec='${libname}${release}${shared_ext}$major'
16751     fi
16752     shlibpath_var=LIBPATH
16753   fi
16754   ;;
16755
16756 amigaos*)
16757   library_names_spec='$libname.ixlibrary $libname.a'
16758   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16759   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'
16760   ;;
16761
16762 beos*)
16763   library_names_spec='${libname}${shared_ext}'
16764   dynamic_linker="$host_os ld.so"
16765   shlibpath_var=LIBRARY_PATH
16766   ;;
16767
16768 bsdi[45]*)
16769   version_type=linux
16770   need_version=no
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772   soname_spec='${libname}${release}${shared_ext}$major'
16773   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16774   shlibpath_var=LD_LIBRARY_PATH
16775   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16776   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16777   # the default ld.so.conf also contains /usr/contrib/lib and
16778   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16779   # libtool to hard-code these into programs
16780   ;;
16781
16782 cygwin* | mingw* | pw32*)
16783   version_type=windows
16784   shrext_cmds=".dll"
16785   need_version=no
16786   need_lib_prefix=no
16787
16788   case $GCC,$host_os in
16789   yes,cygwin* | yes,mingw* | yes,pw32*)
16790     library_names_spec='$libname.dll.a'
16791     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16792     postinstall_cmds='base_file=`basename \${file}`~
16793       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16794       dldir=$destdir/`dirname \$dlpath`~
16795       test -d \$dldir || mkdir -p \$dldir~
16796       $install_prog $dir/$dlname \$dldir/$dlname~
16797       chmod a+x \$dldir/$dlname'
16798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16799       dlpath=$dir/\$dldll~
16800        $rm \$dlpath'
16801     shlibpath_overrides_runpath=yes
16802
16803     case $host_os in
16804     cygwin*)
16805       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16806       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16807       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16808       ;;
16809     mingw*)
16810       # MinGW DLLs use traditional 'lib' prefix
16811       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16812       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16813       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16814         # It is most probably a Windows format PATH printed by
16815         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16816         # path with ; separators, and with drive letters. We can handle the
16817         # drive letters (cygwin fileutils understands them), so leave them,
16818         # especially as we might pass files found there to a mingw objdump,
16819         # which wouldn't understand a cygwinified path. Ahh.
16820         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16821       else
16822         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16823       fi
16824       ;;
16825     pw32*)
16826       # pw32 DLLs use 'pw' prefix rather than 'lib'
16827       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16828       ;;
16829     esac
16830     ;;
16831
16832   *)
16833     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16834     ;;
16835   esac
16836   dynamic_linker='Win32 ld.exe'
16837   # FIXME: first we should search . and the directory the executable is in
16838   shlibpath_var=PATH
16839   ;;
16840
16841 darwin* | rhapsody*)
16842   dynamic_linker="$host_os dyld"
16843   version_type=darwin
16844   need_lib_prefix=no
16845   need_version=no
16846   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16847   soname_spec='${libname}${release}${major}$shared_ext'
16848   shlibpath_overrides_runpath=yes
16849   shlibpath_var=DYLD_LIBRARY_PATH
16850   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16851   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16852   if test "$GCC" = yes; then
16853     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16854   else
16855     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16856   fi
16857   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16858   ;;
16859
16860 dgux*)
16861   version_type=linux
16862   need_lib_prefix=no
16863   need_version=no
16864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16865   soname_spec='${libname}${release}${shared_ext}$major'
16866   shlibpath_var=LD_LIBRARY_PATH
16867   ;;
16868
16869 freebsd1*)
16870   dynamic_linker=no
16871   ;;
16872
16873 freebsd* | dragonfly*)
16874   # DragonFly does not have aout.  When/if they implement a new
16875   # versioning mechanism, adjust this.
16876   if test -x /usr/bin/objformat; then
16877     objformat=`/usr/bin/objformat`
16878   else
16879     case $host_os in
16880     freebsd[123]*) objformat=aout ;;
16881     *) objformat=elf ;;
16882     esac
16883   fi
16884   version_type=freebsd-$objformat
16885   case $version_type in
16886     freebsd-elf*)
16887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16888       need_version=no
16889       need_lib_prefix=no
16890       ;;
16891     freebsd-*)
16892       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16893       need_version=yes
16894       ;;
16895   esac
16896   shlibpath_var=LD_LIBRARY_PATH
16897   case $host_os in
16898   freebsd2*)
16899     shlibpath_overrides_runpath=yes
16900     ;;
16901   freebsd3.[01]* | freebsdelf3.[01]*)
16902     shlibpath_overrides_runpath=yes
16903     hardcode_into_libs=yes
16904     ;;
16905   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16906   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16907     shlibpath_overrides_runpath=no
16908     hardcode_into_libs=yes
16909     ;;
16910   freebsd*) # from 4.6 on
16911     shlibpath_overrides_runpath=yes
16912     hardcode_into_libs=yes
16913     ;;
16914   esac
16915   ;;
16916
16917 gnu*)
16918   version_type=linux
16919   need_lib_prefix=no
16920   need_version=no
16921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16922   soname_spec='${libname}${release}${shared_ext}$major'
16923   shlibpath_var=LD_LIBRARY_PATH
16924   hardcode_into_libs=yes
16925   ;;
16926
16927 hpux9* | hpux10* | hpux11*)
16928   # Give a soname corresponding to the major version so that dld.sl refuses to
16929   # link against other versions.
16930   version_type=sunos
16931   need_lib_prefix=no
16932   need_version=no
16933   case $host_cpu in
16934   ia64*)
16935     shrext_cmds='.so'
16936     hardcode_into_libs=yes
16937     dynamic_linker="$host_os dld.so"
16938     shlibpath_var=LD_LIBRARY_PATH
16939     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941     soname_spec='${libname}${release}${shared_ext}$major'
16942     if test "X$HPUX_IA64_MODE" = X32; then
16943       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16944     else
16945       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16946     fi
16947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16948     ;;
16949    hppa*64*)
16950      shrext_cmds='.sl'
16951      hardcode_into_libs=yes
16952      dynamic_linker="$host_os dld.sl"
16953      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16954      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16955      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956      soname_spec='${libname}${release}${shared_ext}$major'
16957      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16958      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16959      ;;
16960    *)
16961     shrext_cmds='.sl'
16962     dynamic_linker="$host_os dld.sl"
16963     shlibpath_var=SHLIB_PATH
16964     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16966     soname_spec='${libname}${release}${shared_ext}$major'
16967     ;;
16968   esac
16969   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16970   postinstall_cmds='chmod 555 $lib'
16971   ;;
16972
16973 interix3*)
16974   version_type=linux
16975   need_lib_prefix=no
16976   need_version=no
16977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16978   soname_spec='${libname}${release}${shared_ext}$major'
16979   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16980   shlibpath_var=LD_LIBRARY_PATH
16981   shlibpath_overrides_runpath=no
16982   hardcode_into_libs=yes
16983   ;;
16984
16985 irix5* | irix6* | nonstopux*)
16986   case $host_os in
16987     nonstopux*) version_type=nonstopux ;;
16988     *)
16989         if test "$lt_cv_prog_gnu_ld" = yes; then
16990                 version_type=linux
16991         else
16992                 version_type=irix
16993         fi ;;
16994   esac
16995   need_lib_prefix=no
16996   need_version=no
16997   soname_spec='${libname}${release}${shared_ext}$major'
16998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16999   case $host_os in
17000   irix5* | nonstopux*)
17001     libsuff= shlibsuff=
17002     ;;
17003   *)
17004     case $LD in # libtool.m4 will add one of these switches to LD
17005     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17006       libsuff= shlibsuff= libmagic=32-bit;;
17007     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17008       libsuff=32 shlibsuff=N32 libmagic=N32;;
17009     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17010       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17011     *) libsuff= shlibsuff= libmagic=never-match;;
17012     esac
17013     ;;
17014   esac
17015   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17016   shlibpath_overrides_runpath=no
17017   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17018   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17019   hardcode_into_libs=yes
17020   ;;
17021
17022 # No shared lib support for Linux oldld, aout, or coff.
17023 linux*oldld* | linux*aout* | linux*coff*)
17024   dynamic_linker=no
17025   ;;
17026
17027 # This must be Linux ELF.
17028 linux* | k*bsd*-gnu)
17029   version_type=linux
17030   need_lib_prefix=no
17031   need_version=no
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17035   shlibpath_var=LD_LIBRARY_PATH
17036   shlibpath_overrides_runpath=no
17037   # This implies no fast_install, which is unacceptable.
17038   # Some rework will be needed to allow for fast_install
17039   # before this can be enabled.
17040   hardcode_into_libs=yes
17041
17042   # Append ld.so.conf contents to the search path
17043   if test -f /etc/ld.so.conf; then
17044     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17046   fi
17047
17048   # We used to test for /lib/ld.so.1 and disable shared libraries on
17049   # powerpc, because MkLinux only supported shared libraries with the
17050   # GNU dynamic linker.  Since this was broken with cross compilers,
17051   # most powerpc-linux boxes support dynamic linking these days and
17052   # people can always --disable-shared, the test was removed, and we
17053   # assume the GNU/Linux dynamic linker is in use.
17054   dynamic_linker='GNU/Linux ld.so'
17055   ;;
17056
17057 netbsdelf*-gnu)
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   shlibpath_overrides_runpath=no
17065   hardcode_into_libs=yes
17066   dynamic_linker='NetBSD ld.elf_so'
17067   ;;
17068
17069 netbsd*)
17070   version_type=sunos
17071   need_lib_prefix=no
17072   need_version=no
17073   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17075     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17076     dynamic_linker='NetBSD (a.out) ld.so'
17077   else
17078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17079     soname_spec='${libname}${release}${shared_ext}$major'
17080     dynamic_linker='NetBSD ld.elf_so'
17081   fi
17082   shlibpath_var=LD_LIBRARY_PATH
17083   shlibpath_overrides_runpath=yes
17084   hardcode_into_libs=yes
17085   ;;
17086
17087 newsos6)
17088   version_type=linux
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   shlibpath_overrides_runpath=yes
17092   ;;
17093
17094 nto-qnx*)
17095   version_type=linux
17096   need_lib_prefix=no
17097   need_version=no
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   soname_spec='${libname}${release}${shared_ext}$major'
17100   shlibpath_var=LD_LIBRARY_PATH
17101   shlibpath_overrides_runpath=yes
17102   ;;
17103
17104 openbsd*)
17105   version_type=sunos
17106   sys_lib_dlsearch_path_spec="/usr/lib"
17107   need_lib_prefix=no
17108   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17109   case $host_os in
17110     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17111     *)                         need_version=no  ;;
17112   esac
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17115   shlibpath_var=LD_LIBRARY_PATH
17116   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17117     case $host_os in
17118       openbsd2.[89] | openbsd2.[89].*)
17119         shlibpath_overrides_runpath=no
17120         ;;
17121       *)
17122         shlibpath_overrides_runpath=yes
17123         ;;
17124       esac
17125   else
17126     shlibpath_overrides_runpath=yes
17127   fi
17128   ;;
17129
17130 os2*)
17131   libname_spec='$name'
17132   shrext_cmds=".dll"
17133   need_lib_prefix=no
17134   library_names_spec='$libname${shared_ext} $libname.a'
17135   dynamic_linker='OS/2 ld.exe'
17136   shlibpath_var=LIBPATH
17137   ;;
17138
17139 osf3* | osf4* | osf5*)
17140   version_type=osf
17141   need_lib_prefix=no
17142   need_version=no
17143   soname_spec='${libname}${release}${shared_ext}$major'
17144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17147   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17148   ;;
17149
17150 solaris*)
17151   version_type=linux
17152   need_lib_prefix=no
17153   need_version=no
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155   soname_spec='${libname}${release}${shared_ext}$major'
17156   shlibpath_var=LD_LIBRARY_PATH
17157   shlibpath_overrides_runpath=yes
17158   hardcode_into_libs=yes
17159   # ldd complains unless libraries are executable
17160   postinstall_cmds='chmod +x $lib'
17161   ;;
17162
17163 sunos4*)
17164   version_type=sunos
17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=yes
17169   if test "$with_gnu_ld" = yes; then
17170     need_lib_prefix=no
17171   fi
17172   need_version=yes
17173   ;;
17174
17175 sysv4 | sysv4.3*)
17176   version_type=linux
17177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   shlibpath_var=LD_LIBRARY_PATH
17180   case $host_vendor in
17181     sni)
17182       shlibpath_overrides_runpath=no
17183       need_lib_prefix=no
17184       export_dynamic_flag_spec='${wl}-Blargedynsym'
17185       runpath_var=LD_RUN_PATH
17186       ;;
17187     siemens)
17188       need_lib_prefix=no
17189       ;;
17190     motorola)
17191       need_lib_prefix=no
17192       need_version=no
17193       shlibpath_overrides_runpath=no
17194       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17195       ;;
17196   esac
17197   ;;
17198
17199 sysv4*MP*)
17200   if test -d /usr/nec ;then
17201     version_type=linux
17202     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17203     soname_spec='$libname${shared_ext}.$major'
17204     shlibpath_var=LD_LIBRARY_PATH
17205   fi
17206   ;;
17207
17208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17209   version_type=freebsd-elf
17210   need_lib_prefix=no
17211   need_version=no
17212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   shlibpath_var=LD_LIBRARY_PATH
17215   hardcode_into_libs=yes
17216   if test "$with_gnu_ld" = yes; then
17217     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17218     shlibpath_overrides_runpath=no
17219   else
17220     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17221     shlibpath_overrides_runpath=yes
17222     case $host_os in
17223       sco3.2v5*)
17224         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17225         ;;
17226     esac
17227   fi
17228   sys_lib_dlsearch_path_spec='/usr/lib'
17229   ;;
17230
17231 uts4*)
17232   version_type=linux
17233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17234   soname_spec='${libname}${release}${shared_ext}$major'
17235   shlibpath_var=LD_LIBRARY_PATH
17236   ;;
17237
17238 *)
17239   dynamic_linker=no
17240   ;;
17241 esac
17242 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17243 echo "${ECHO_T}$dynamic_linker" >&6; }
17244 test "$dynamic_linker" = no && can_build_shared=no
17245
17246 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17247 if test "$GCC" = yes; then
17248   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17249 fi
17250
17251 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17252 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17253 hardcode_action_F77=
17254 if test -n "$hardcode_libdir_flag_spec_F77" || \
17255    test -n "$runpath_var_F77" || \
17256    test "X$hardcode_automatic_F77" = "Xyes" ; then
17257
17258   # We can hardcode non-existant directories.
17259   if test "$hardcode_direct_F77" != no &&
17260      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17261      # have to relink, otherwise we might link with an installed library
17262      # when we should be linking with a yet-to-be-installed one
17263      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17264      test "$hardcode_minus_L_F77" != no; then
17265     # Linking always hardcodes the temporary library directory.
17266     hardcode_action_F77=relink
17267   else
17268     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17269     hardcode_action_F77=immediate
17270   fi
17271 else
17272   # We cannot hardcode anything, or else we can only hardcode existing
17273   # directories.
17274   hardcode_action_F77=unsupported
17275 fi
17276 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17277 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17278
17279 if test "$hardcode_action_F77" = relink; then
17280   # Fast installation is not supported
17281   enable_fast_install=no
17282 elif test "$shlibpath_overrides_runpath" = yes ||
17283      test "$enable_shared" = no; then
17284   # Fast installation is not necessary
17285   enable_fast_install=needless
17286 fi
17287
17288
17289 # The else clause should only fire when bootstrapping the
17290 # libtool distribution, otherwise you forgot to ship ltmain.sh
17291 # with your package, and you will get complaints that there are
17292 # no rules to generate ltmain.sh.
17293 if test -f "$ltmain"; then
17294   # See if we are running on zsh, and set the options which allow our commands through
17295   # without removal of \ escapes.
17296   if test -n "${ZSH_VERSION+set}" ; then
17297     setopt NO_GLOB_SUBST
17298   fi
17299   # Now quote all the things that may contain metacharacters while being
17300   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17301   # variables and quote the copies for generation of the libtool script.
17302   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17303     SED SHELL STRIP \
17304     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17305     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17306     deplibs_check_method reload_flag reload_cmds need_locks \
17307     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17308     lt_cv_sys_global_symbol_to_c_name_address \
17309     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17310     old_postinstall_cmds old_postuninstall_cmds \
17311     compiler_F77 \
17312     CC_F77 \
17313     LD_F77 \
17314     lt_prog_compiler_wl_F77 \
17315     lt_prog_compiler_pic_F77 \
17316     lt_prog_compiler_static_F77 \
17317     lt_prog_compiler_no_builtin_flag_F77 \
17318     export_dynamic_flag_spec_F77 \
17319     thread_safe_flag_spec_F77 \
17320     whole_archive_flag_spec_F77 \
17321     enable_shared_with_static_runtimes_F77 \
17322     old_archive_cmds_F77 \
17323     old_archive_from_new_cmds_F77 \
17324     predep_objects_F77 \
17325     postdep_objects_F77 \
17326     predeps_F77 \
17327     postdeps_F77 \
17328     compiler_lib_search_path_F77 \
17329     archive_cmds_F77 \
17330     archive_expsym_cmds_F77 \
17331     postinstall_cmds_F77 \
17332     postuninstall_cmds_F77 \
17333     old_archive_from_expsyms_cmds_F77 \
17334     allow_undefined_flag_F77 \
17335     no_undefined_flag_F77 \
17336     export_symbols_cmds_F77 \
17337     hardcode_libdir_flag_spec_F77 \
17338     hardcode_libdir_flag_spec_ld_F77 \
17339     hardcode_libdir_separator_F77 \
17340     hardcode_automatic_F77 \
17341     module_cmds_F77 \
17342     module_expsym_cmds_F77 \
17343     lt_cv_prog_compiler_c_o_F77 \
17344     exclude_expsyms_F77 \
17345     include_expsyms_F77; do
17346
17347     case $var in
17348     old_archive_cmds_F77 | \
17349     old_archive_from_new_cmds_F77 | \
17350     archive_cmds_F77 | \
17351     archive_expsym_cmds_F77 | \
17352     module_cmds_F77 | \
17353     module_expsym_cmds_F77 | \
17354     old_archive_from_expsyms_cmds_F77 | \
17355     export_symbols_cmds_F77 | \
17356     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17357     postinstall_cmds | postuninstall_cmds | \
17358     old_postinstall_cmds | old_postuninstall_cmds | \
17359     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17360       # Double-quote double-evaled strings.
17361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17362       ;;
17363     *)
17364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17365       ;;
17366     esac
17367   done
17368
17369   case $lt_echo in
17370   *'\$0 --fallback-echo"')
17371     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17372     ;;
17373   esac
17374
17375 cfgfile="$ofile"
17376
17377   cat <<__EOF__ >> "$cfgfile"
17378 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17379
17380 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17381
17382 # Shell to use when invoking shell scripts.
17383 SHELL=$lt_SHELL
17384
17385 # Whether or not to build shared libraries.
17386 build_libtool_libs=$enable_shared
17387
17388 # Whether or not to build static libraries.
17389 build_old_libs=$enable_static
17390
17391 # Whether or not to add -lc for building shared libraries.
17392 build_libtool_need_lc=$archive_cmds_need_lc_F77
17393
17394 # Whether or not to disallow shared libs when runtime libs are static
17395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17396
17397 # Whether or not to optimize for fast installation.
17398 fast_install=$enable_fast_install
17399
17400 # The host system.
17401 host_alias=$host_alias
17402 host=$host
17403 host_os=$host_os
17404
17405 # The build system.
17406 build_alias=$build_alias
17407 build=$build
17408 build_os=$build_os
17409
17410 # An echo program that does not interpret backslashes.
17411 echo=$lt_echo
17412
17413 # The archiver.
17414 AR=$lt_AR
17415 AR_FLAGS=$lt_AR_FLAGS
17416
17417 # A C compiler.
17418 LTCC=$lt_LTCC
17419
17420 # LTCC compiler flags.
17421 LTCFLAGS=$lt_LTCFLAGS
17422
17423 # A language-specific compiler.
17424 CC=$lt_compiler_F77
17425
17426 # Is the compiler the GNU C compiler?
17427 with_gcc=$GCC_F77
17428
17429 # An ERE matcher.
17430 EGREP=$lt_EGREP
17431
17432 # The linker used to build libraries.
17433 LD=$lt_LD_F77
17434
17435 # Whether we need hard or soft links.
17436 LN_S=$lt_LN_S
17437
17438 # A BSD-compatible nm program.
17439 NM=$lt_NM
17440
17441 # A symbol stripping program
17442 STRIP=$lt_STRIP
17443
17444 # Used to examine libraries when file_magic_cmd begins "file"
17445 MAGIC_CMD=$MAGIC_CMD
17446
17447 # Used on cygwin: DLL creation program.
17448 DLLTOOL="$DLLTOOL"
17449
17450 # Used on cygwin: object dumper.
17451 OBJDUMP="$OBJDUMP"
17452
17453 # Used on cygwin: assembler.
17454 AS="$AS"
17455
17456 # The name of the directory that contains temporary libtool files.
17457 objdir=$objdir
17458
17459 # How to create reloadable object files.
17460 reload_flag=$lt_reload_flag
17461 reload_cmds=$lt_reload_cmds
17462
17463 # How to pass a linker flag through the compiler.
17464 wl=$lt_lt_prog_compiler_wl_F77
17465
17466 # Object file suffix (normally "o").
17467 objext="$ac_objext"
17468
17469 # Old archive suffix (normally "a").
17470 libext="$libext"
17471
17472 # Shared library suffix (normally ".so").
17473 shrext_cmds='$shrext_cmds'
17474
17475 # Executable file suffix (normally "").
17476 exeext="$exeext"
17477
17478 # Additional compiler flags for building library objects.
17479 pic_flag=$lt_lt_prog_compiler_pic_F77
17480 pic_mode=$pic_mode
17481
17482 # What is the maximum length of a command?
17483 max_cmd_len=$lt_cv_sys_max_cmd_len
17484
17485 # Does compiler simultaneously support -c and -o options?
17486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17487
17488 # Must we lock files when doing compilation?
17489 need_locks=$lt_need_locks
17490
17491 # Do we need the lib prefix for modules?
17492 need_lib_prefix=$need_lib_prefix
17493
17494 # Do we need a version for libraries?
17495 need_version=$need_version
17496
17497 # Whether dlopen is supported.
17498 dlopen_support=$enable_dlopen
17499
17500 # Whether dlopen of programs is supported.
17501 dlopen_self=$enable_dlopen_self
17502
17503 # Whether dlopen of statically linked programs is supported.
17504 dlopen_self_static=$enable_dlopen_self_static
17505
17506 # Compiler flag to prevent dynamic linking.
17507 link_static_flag=$lt_lt_prog_compiler_static_F77
17508
17509 # Compiler flag to turn off builtin functions.
17510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17511
17512 # Compiler flag to allow reflexive dlopens.
17513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17514
17515 # Compiler flag to generate shared objects directly from archives.
17516 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17517
17518 # Compiler flag to generate thread-safe objects.
17519 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17520
17521 # Library versioning type.
17522 version_type=$version_type
17523
17524 # Format of library name prefix.
17525 libname_spec=$lt_libname_spec
17526
17527 # List of archive names.  First name is the real one, the rest are links.
17528 # The last name is the one that the linker finds with -lNAME.
17529 library_names_spec=$lt_library_names_spec
17530
17531 # The coded name of the library, if different from the real name.
17532 soname_spec=$lt_soname_spec
17533
17534 # Commands used to build and install an old-style archive.
17535 RANLIB=$lt_RANLIB
17536 old_archive_cmds=$lt_old_archive_cmds_F77
17537 old_postinstall_cmds=$lt_old_postinstall_cmds
17538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17539
17540 # Create an old-style archive from a shared archive.
17541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17542
17543 # Create a temporary old-style archive to link instead of a shared archive.
17544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17545
17546 # Commands used to build and install a shared archive.
17547 archive_cmds=$lt_archive_cmds_F77
17548 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17549 postinstall_cmds=$lt_postinstall_cmds
17550 postuninstall_cmds=$lt_postuninstall_cmds
17551
17552 # Commands used to build a loadable module (assumed same as above if empty)
17553 module_cmds=$lt_module_cmds_F77
17554 module_expsym_cmds=$lt_module_expsym_cmds_F77
17555
17556 # Commands to strip libraries.
17557 old_striplib=$lt_old_striplib
17558 striplib=$lt_striplib
17559
17560 # Dependencies to place before the objects being linked to create a
17561 # shared library.
17562 predep_objects=$lt_predep_objects_F77
17563
17564 # Dependencies to place after the objects being linked to create a
17565 # shared library.
17566 postdep_objects=$lt_postdep_objects_F77
17567
17568 # Dependencies to place before the objects being linked to create a
17569 # shared library.
17570 predeps=$lt_predeps_F77
17571
17572 # Dependencies to place after the objects being linked to create a
17573 # shared library.
17574 postdeps=$lt_postdeps_F77
17575
17576 # The library search path used internally by the compiler when linking
17577 # a shared library.
17578 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17579
17580 # Method to check whether dependent libraries are shared objects.
17581 deplibs_check_method=$lt_deplibs_check_method
17582
17583 # Command to use when deplibs_check_method == file_magic.
17584 file_magic_cmd=$lt_file_magic_cmd
17585
17586 # Flag that allows shared libraries with undefined symbols to be built.
17587 allow_undefined_flag=$lt_allow_undefined_flag_F77
17588
17589 # Flag that forces no undefined symbols.
17590 no_undefined_flag=$lt_no_undefined_flag_F77
17591
17592 # Commands used to finish a libtool library installation in a directory.
17593 finish_cmds=$lt_finish_cmds
17594
17595 # Same as above, but a single script fragment to be evaled but not shown.
17596 finish_eval=$lt_finish_eval
17597
17598 # Take the output of nm and produce a listing of raw symbols and C names.
17599 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17600
17601 # Transform the output of nm in a proper C declaration
17602 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17603
17604 # Transform the output of nm in a C name address pair
17605 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17606
17607 # This is the shared library runtime path variable.
17608 runpath_var=$runpath_var
17609
17610 # This is the shared library path variable.
17611 shlibpath_var=$shlibpath_var
17612
17613 # Is shlibpath searched before the hard-coded library search path?
17614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17615
17616 # How to hardcode a shared library path into an executable.
17617 hardcode_action=$hardcode_action_F77
17618
17619 # Whether we should hardcode library paths into libraries.
17620 hardcode_into_libs=$hardcode_into_libs
17621
17622 # Flag to hardcode \$libdir into a binary during linking.
17623 # This must work even if \$libdir does not exist.
17624 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17625
17626 # If ld is used when linking, flag to hardcode \$libdir into
17627 # a binary during linking. This must work even if \$libdir does
17628 # not exist.
17629 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17630
17631 # Whether we need a single -rpath flag with a separated argument.
17632 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17633
17634 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17635 # resulting binary.
17636 hardcode_direct=$hardcode_direct_F77
17637
17638 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17639 # resulting binary.
17640 hardcode_minus_L=$hardcode_minus_L_F77
17641
17642 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17643 # the resulting binary.
17644 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17645
17646 # Set to yes if building a shared library automatically hardcodes DIR into the library
17647 # and all subsequent libraries and executables linked against it.
17648 hardcode_automatic=$hardcode_automatic_F77
17649
17650 # Variables whose values should be saved in libtool wrapper scripts and
17651 # restored at relink time.
17652 variables_saved_for_relink="$variables_saved_for_relink"
17653
17654 # Whether libtool must link a program against all its dependency libraries.
17655 link_all_deplibs=$link_all_deplibs_F77
17656
17657 # Compile-time system search path for libraries
17658 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17659
17660 # Run-time system search path for libraries
17661 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17662
17663 # Fix the shell variable \$srcfile for the compiler.
17664 fix_srcfile_path="$fix_srcfile_path_F77"
17665
17666 # Set to yes if exported symbols are required.
17667 always_export_symbols=$always_export_symbols_F77
17668
17669 # The commands to list exported symbols.
17670 export_symbols_cmds=$lt_export_symbols_cmds_F77
17671
17672 # The commands to extract the exported symbol list from a shared archive.
17673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17674
17675 # Symbols that should not be listed in the preloaded symbols.
17676 exclude_expsyms=$lt_exclude_expsyms_F77
17677
17678 # Symbols that must always be exported.
17679 include_expsyms=$lt_include_expsyms_F77
17680
17681 # ### END LIBTOOL TAG CONFIG: $tagname
17682
17683 __EOF__
17684
17685
17686 else
17687   # If there is no Makefile yet, we rely on a make rule to execute
17688   # `config.status --recheck' to rerun these tests and create the
17689   # libtool script then.
17690   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17691   if test -f "$ltmain_in"; then
17692     test -f Makefile && make "$ltmain"
17693   fi
17694 fi
17695
17696
17697 ac_ext=c
17698 ac_cpp='$CPP $CPPFLAGS'
17699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17702
17703 CC="$lt_save_CC"
17704
17705         else
17706           tagname=""
17707         fi
17708         ;;
17709
17710       GCJ)
17711         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17712
17713
17714 # Source file extension for Java test sources.
17715 ac_ext=java
17716
17717 # Object file extension for compiled Java test sources.
17718 objext=o
17719 objext_GCJ=$objext
17720
17721 # Code to be used in simple compile tests
17722 lt_simple_compile_test_code="class foo {}\n"
17723
17724 # Code to be used in simple link tests
17725 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17726
17727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17728
17729 # If no C compiler was specified, use CC.
17730 LTCC=${LTCC-"$CC"}
17731
17732 # If no C compiler flags were specified, use CFLAGS.
17733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17734
17735 # Allow CC to be a program name with arguments.
17736 compiler=$CC
17737
17738
17739 # save warnings/boilerplate of simple test code
17740 ac_outfile=conftest.$ac_objext
17741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17743 _lt_compiler_boilerplate=`cat conftest.err`
17744 $rm conftest*
17745
17746 ac_outfile=conftest.$ac_objext
17747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17749 _lt_linker_boilerplate=`cat conftest.err`
17750 $rm conftest*
17751
17752
17753 # Allow CC to be a program name with arguments.
17754 lt_save_CC="$CC"
17755 CC=${GCJ-"gcj"}
17756 compiler=$CC
17757 compiler_GCJ=$CC
17758 for cc_temp in $compiler""; do
17759   case $cc_temp in
17760     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17761     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17762     \-*) ;;
17763     *) break;;
17764   esac
17765 done
17766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17767
17768
17769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17770 archive_cmds_need_lc_GCJ=no
17771
17772 old_archive_cmds_GCJ=$old_archive_cmds
17773
17774
17775 lt_prog_compiler_no_builtin_flag_GCJ=
17776
17777 if test "$GCC" = yes; then
17778   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17779
17780
17781 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17782 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17783 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   lt_cv_prog_compiler_rtti_exceptions=no
17787   ac_outfile=conftest.$ac_objext
17788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17789    lt_compiler_flag="-fno-rtti -fno-exceptions"
17790    # Insert the option either (1) after the last *FLAGS variable, or
17791    # (2) before a word containing "conftest.", or (3) at the end.
17792    # Note that $ac_compile itself does not contain backslashes and begins
17793    # with a dollar sign (not a hyphen), so the echo should work correctly.
17794    # The option is referenced via a variable to avoid confusing sed.
17795    lt_compile=`echo "$ac_compile" | $SED \
17796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17798    -e 's:$: $lt_compiler_flag:'`
17799    (eval echo "\"\$as_me:17799: $lt_compile\"" >&5)
17800    (eval "$lt_compile" 2>conftest.err)
17801    ac_status=$?
17802    cat conftest.err >&5
17803    echo "$as_me:17803: \$? = $ac_status" >&5
17804    if (exit $ac_status) && test -s "$ac_outfile"; then
17805      # The compiler can only warn and ignore the option if not recognized
17806      # So say no if there are warnings other than the usual output.
17807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17808      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17809      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17810        lt_cv_prog_compiler_rtti_exceptions=yes
17811      fi
17812    fi
17813    $rm conftest*
17814
17815 fi
17816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17817 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17818
17819 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17820     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17821 else
17822     :
17823 fi
17824
17825 fi
17826
17827 lt_prog_compiler_wl_GCJ=
17828 lt_prog_compiler_pic_GCJ=
17829 lt_prog_compiler_static_GCJ=
17830
17831 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17832 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17833
17834   if test "$GCC" = yes; then
17835     lt_prog_compiler_wl_GCJ='-Wl,'
17836     lt_prog_compiler_static_GCJ='-static'
17837
17838     case $host_os in
17839       aix*)
17840       # All AIX code is PIC.
17841       if test "$host_cpu" = ia64; then
17842         # AIX 5 now supports IA64 processor
17843         lt_prog_compiler_static_GCJ='-Bstatic'
17844       fi
17845       ;;
17846
17847     amigaos*)
17848       # FIXME: we need at least 68020 code to build shared libraries, but
17849       # adding the `-m68020' flag to GCC prevents building anything better,
17850       # like `-m68040'.
17851       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17852       ;;
17853
17854     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17855       # PIC is the default for these OSes.
17856       ;;
17857
17858     mingw* | pw32* | os2*)
17859       # This hack is so that the source file can tell whether it is being
17860       # built for inclusion in a dll (and should export symbols for example).
17861       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17862       ;;
17863
17864     darwin* | rhapsody*)
17865       # PIC is the default on this platform
17866       # Common symbols not allowed in MH_DYLIB files
17867       lt_prog_compiler_pic_GCJ='-fno-common'
17868       ;;
17869
17870     interix3*)
17871       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17872       # Instead, we relocate shared libraries at runtime.
17873       ;;
17874
17875     msdosdjgpp*)
17876       # Just because we use GCC doesn't mean we suddenly get shared libraries
17877       # on systems that don't support them.
17878       lt_prog_compiler_can_build_shared_GCJ=no
17879       enable_shared=no
17880       ;;
17881
17882     sysv4*MP*)
17883       if test -d /usr/nec; then
17884         lt_prog_compiler_pic_GCJ=-Kconform_pic
17885       fi
17886       ;;
17887
17888     hpux*)
17889       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17890       # not for PA HP-UX.
17891       case $host_cpu in
17892       hppa*64*|ia64*)
17893         # +Z the default
17894         ;;
17895       *)
17896         lt_prog_compiler_pic_GCJ='-fPIC'
17897         ;;
17898       esac
17899       ;;
17900
17901     *)
17902       lt_prog_compiler_pic_GCJ='-fPIC'
17903       ;;
17904     esac
17905   else
17906     # PORTME Check for flag to pass linker flags through the system compiler.
17907     case $host_os in
17908     aix*)
17909       lt_prog_compiler_wl_GCJ='-Wl,'
17910       if test "$host_cpu" = ia64; then
17911         # AIX 5 now supports IA64 processor
17912         lt_prog_compiler_static_GCJ='-Bstatic'
17913       else
17914         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17915       fi
17916       ;;
17917       darwin*)
17918         # PIC is the default on this platform
17919         # Common symbols not allowed in MH_DYLIB files
17920        case $cc_basename in
17921          xlc*)
17922          lt_prog_compiler_pic_GCJ='-qnocommon'
17923          lt_prog_compiler_wl_GCJ='-Wl,'
17924          ;;
17925        esac
17926        ;;
17927
17928     mingw* | pw32* | os2*)
17929       # This hack is so that the source file can tell whether it is being
17930       # built for inclusion in a dll (and should export symbols for example).
17931       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17932       ;;
17933
17934     hpux9* | hpux10* | hpux11*)
17935       lt_prog_compiler_wl_GCJ='-Wl,'
17936       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17937       # not for PA HP-UX.
17938       case $host_cpu in
17939       hppa*64*|ia64*)
17940         # +Z the default
17941         ;;
17942       *)
17943         lt_prog_compiler_pic_GCJ='+Z'
17944         ;;
17945       esac
17946       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17947       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17948       ;;
17949
17950     irix5* | irix6* | nonstopux*)
17951       lt_prog_compiler_wl_GCJ='-Wl,'
17952       # PIC (with -KPIC) is the default.
17953       lt_prog_compiler_static_GCJ='-non_shared'
17954       ;;
17955
17956     newsos6)
17957       lt_prog_compiler_pic_GCJ='-KPIC'
17958       lt_prog_compiler_static_GCJ='-Bstatic'
17959       ;;
17960
17961     linux* | k*bsd*-gnu)
17962       case $cc_basename in
17963       icc* | ecc*)
17964         lt_prog_compiler_wl_GCJ='-Wl,'
17965         lt_prog_compiler_pic_GCJ='-KPIC'
17966         lt_prog_compiler_static_GCJ='-static'
17967         ;;
17968       pgcc* | pgf77* | pgf90* | pgf95*)
17969         # Portland Group compilers (*not* the Pentium gcc compiler,
17970         # which looks to be a dead project)
17971         lt_prog_compiler_wl_GCJ='-Wl,'
17972         lt_prog_compiler_pic_GCJ='-fpic'
17973         lt_prog_compiler_static_GCJ='-Bstatic'
17974         ;;
17975       ccc*)
17976         lt_prog_compiler_wl_GCJ='-Wl,'
17977         # All Alpha code is PIC.
17978         lt_prog_compiler_static_GCJ='-non_shared'
17979         ;;
17980       esac
17981       ;;
17982
17983     osf3* | osf4* | osf5*)
17984       lt_prog_compiler_wl_GCJ='-Wl,'
17985       # All OSF/1 code is PIC.
17986       lt_prog_compiler_static_GCJ='-non_shared'
17987       ;;
17988
17989     solaris*)
17990       lt_prog_compiler_pic_GCJ='-KPIC'
17991       lt_prog_compiler_static_GCJ='-Bstatic'
17992       case $cc_basename in
17993       f77* | f90* | f95*)
17994         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17995       *)
17996         lt_prog_compiler_wl_GCJ='-Wl,';;
17997       esac
17998       ;;
17999
18000     sunos4*)
18001       lt_prog_compiler_wl_GCJ='-Qoption ld '
18002       lt_prog_compiler_pic_GCJ='-PIC'
18003       lt_prog_compiler_static_GCJ='-Bstatic'
18004       ;;
18005
18006     sysv4 | sysv4.2uw2* | sysv4.3*)
18007       lt_prog_compiler_wl_GCJ='-Wl,'
18008       lt_prog_compiler_pic_GCJ='-KPIC'
18009       lt_prog_compiler_static_GCJ='-Bstatic'
18010       ;;
18011
18012     sysv4*MP*)
18013       if test -d /usr/nec ;then
18014         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18015         lt_prog_compiler_static_GCJ='-Bstatic'
18016       fi
18017       ;;
18018
18019     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18020       lt_prog_compiler_wl_GCJ='-Wl,'
18021       lt_prog_compiler_pic_GCJ='-KPIC'
18022       lt_prog_compiler_static_GCJ='-Bstatic'
18023       ;;
18024
18025     unicos*)
18026       lt_prog_compiler_wl_GCJ='-Wl,'
18027       lt_prog_compiler_can_build_shared_GCJ=no
18028       ;;
18029
18030     uts4*)
18031       lt_prog_compiler_pic_GCJ='-pic'
18032       lt_prog_compiler_static_GCJ='-Bstatic'
18033       ;;
18034
18035     *)
18036       lt_prog_compiler_can_build_shared_GCJ=no
18037       ;;
18038     esac
18039   fi
18040
18041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18042 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18043
18044 #
18045 # Check to make sure the PIC flag actually works.
18046 #
18047 if test -n "$lt_prog_compiler_pic_GCJ"; then
18048
18049 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18050 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18051 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   lt_prog_compiler_pic_works_GCJ=no
18055   ac_outfile=conftest.$ac_objext
18056    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18057    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18058    # Insert the option either (1) after the last *FLAGS variable, or
18059    # (2) before a word containing "conftest.", or (3) at the end.
18060    # Note that $ac_compile itself does not contain backslashes and begins
18061    # with a dollar sign (not a hyphen), so the echo should work correctly.
18062    # The option is referenced via a variable to avoid confusing sed.
18063    lt_compile=`echo "$ac_compile" | $SED \
18064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18066    -e 's:$: $lt_compiler_flag:'`
18067    (eval echo "\"\$as_me:18067: $lt_compile\"" >&5)
18068    (eval "$lt_compile" 2>conftest.err)
18069    ac_status=$?
18070    cat conftest.err >&5
18071    echo "$as_me:18071: \$? = $ac_status" >&5
18072    if (exit $ac_status) && test -s "$ac_outfile"; then
18073      # The compiler can only warn and ignore the option if not recognized
18074      # So say no if there are warnings other than the usual output.
18075      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18076      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18077      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18078        lt_prog_compiler_pic_works_GCJ=yes
18079      fi
18080    fi
18081    $rm conftest*
18082
18083 fi
18084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18085 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18086
18087 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18088     case $lt_prog_compiler_pic_GCJ in
18089      "" | " "*) ;;
18090      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18091      esac
18092 else
18093     lt_prog_compiler_pic_GCJ=
18094      lt_prog_compiler_can_build_shared_GCJ=no
18095 fi
18096
18097 fi
18098 case $host_os in
18099   # For platforms which do not support PIC, -DPIC is meaningless:
18100   *djgpp*)
18101     lt_prog_compiler_pic_GCJ=
18102     ;;
18103   *)
18104     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18105     ;;
18106 esac
18107
18108 #
18109 # Check to make sure the static flag actually works.
18110 #
18111 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18112 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18113 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18114 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   lt_prog_compiler_static_works_GCJ=no
18118    save_LDFLAGS="$LDFLAGS"
18119    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18120    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18121    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18122      # The linker can only warn and ignore the option if not recognized
18123      # So say no if there are warnings
18124      if test -s conftest.err; then
18125        # Append any errors to the config.log.
18126        cat conftest.err 1>&5
18127        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18128        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18129        if diff conftest.exp conftest.er2 >/dev/null; then
18130          lt_prog_compiler_static_works_GCJ=yes
18131        fi
18132      else
18133        lt_prog_compiler_static_works_GCJ=yes
18134      fi
18135    fi
18136    $rm conftest*
18137    LDFLAGS="$save_LDFLAGS"
18138
18139 fi
18140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18141 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18142
18143 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18144     :
18145 else
18146     lt_prog_compiler_static_GCJ=
18147 fi
18148
18149
18150 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18151 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18152 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18153   echo $ECHO_N "(cached) $ECHO_C" >&6
18154 else
18155   lt_cv_prog_compiler_c_o_GCJ=no
18156    $rm -r conftest 2>/dev/null
18157    mkdir conftest
18158    cd conftest
18159    mkdir out
18160    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18161
18162    lt_compiler_flag="-o out/conftest2.$ac_objext"
18163    # Insert the option either (1) after the last *FLAGS variable, or
18164    # (2) before a word containing "conftest.", or (3) at the end.
18165    # Note that $ac_compile itself does not contain backslashes and begins
18166    # with a dollar sign (not a hyphen), so the echo should work correctly.
18167    lt_compile=`echo "$ac_compile" | $SED \
18168    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18169    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18170    -e 's:$: $lt_compiler_flag:'`
18171    (eval echo "\"\$as_me:18171: $lt_compile\"" >&5)
18172    (eval "$lt_compile" 2>out/conftest.err)
18173    ac_status=$?
18174    cat out/conftest.err >&5
18175    echo "$as_me:18175: \$? = $ac_status" >&5
18176    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18177    then
18178      # The compiler can only warn and ignore the option if not recognized
18179      # So say no if there are warnings
18180      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18181      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18182      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18183        lt_cv_prog_compiler_c_o_GCJ=yes
18184      fi
18185    fi
18186    chmod u+w . 2>&5
18187    $rm conftest*
18188    # SGI C++ compiler will create directory out/ii_files/ for
18189    # template instantiation
18190    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18191    $rm out/* && rmdir out
18192    cd ..
18193    rmdir conftest
18194    $rm conftest*
18195
18196 fi
18197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18199
18200
18201 hard_links="nottested"
18202 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18203   # do not overwrite the value of need_locks provided by the user
18204   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18206   hard_links=yes
18207   $rm conftest*
18208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18209   touch conftest.a
18210   ln conftest.a conftest.b 2>&5 || hard_links=no
18211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18212   { echo "$as_me:$LINENO: result: $hard_links" >&5
18213 echo "${ECHO_T}$hard_links" >&6; }
18214   if test "$hard_links" = no; then
18215     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18217     need_locks=warn
18218   fi
18219 else
18220   need_locks=no
18221 fi
18222
18223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18225
18226   runpath_var=
18227   allow_undefined_flag_GCJ=
18228   enable_shared_with_static_runtimes_GCJ=no
18229   archive_cmds_GCJ=
18230   archive_expsym_cmds_GCJ=
18231   old_archive_From_new_cmds_GCJ=
18232   old_archive_from_expsyms_cmds_GCJ=
18233   export_dynamic_flag_spec_GCJ=
18234   whole_archive_flag_spec_GCJ=
18235   thread_safe_flag_spec_GCJ=
18236   hardcode_libdir_flag_spec_GCJ=
18237   hardcode_libdir_flag_spec_ld_GCJ=
18238   hardcode_libdir_separator_GCJ=
18239   hardcode_direct_GCJ=no
18240   hardcode_minus_L_GCJ=no
18241   hardcode_shlibpath_var_GCJ=unsupported
18242   link_all_deplibs_GCJ=unknown
18243   hardcode_automatic_GCJ=no
18244   module_cmds_GCJ=
18245   module_expsym_cmds_GCJ=
18246   always_export_symbols_GCJ=no
18247   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18248   # include_expsyms should be a list of space-separated symbols to be *always*
18249   # included in the symbol list
18250   include_expsyms_GCJ=
18251   # exclude_expsyms can be an extended regexp of symbols to exclude
18252   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18253   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18254   # as well as any symbol that contains `d'.
18255   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18256   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18257   # platforms (ab)use it in PIC code, but their linkers get confused if
18258   # the symbol is explicitly referenced.  Since portable code cannot
18259   # rely on this symbol name, it's probably fine to never include it in
18260   # preloaded symbol tables.
18261   extract_expsyms_cmds=
18262   # Just being paranoid about ensuring that cc_basename is set.
18263   for cc_temp in $compiler""; do
18264   case $cc_temp in
18265     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18266     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18267     \-*) ;;
18268     *) break;;
18269   esac
18270 done
18271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18272
18273   case $host_os in
18274   cygwin* | mingw* | pw32*)
18275     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18276     # When not using gcc, we currently assume that we are using
18277     # Microsoft Visual C++.
18278     if test "$GCC" != yes; then
18279       with_gnu_ld=no
18280     fi
18281     ;;
18282   interix*)
18283     # we just hope/assume this is gcc and not c89 (= MSVC++)
18284     with_gnu_ld=yes
18285     ;;
18286   openbsd*)
18287     with_gnu_ld=no
18288     ;;
18289   esac
18290
18291   ld_shlibs_GCJ=yes
18292   if test "$with_gnu_ld" = yes; then
18293     # If archive_cmds runs LD, not CC, wlarc should be empty
18294     wlarc='${wl}'
18295
18296     # Set some defaults for GNU ld with shared library support. These
18297     # are reset later if shared libraries are not supported. Putting them
18298     # here allows them to be overridden if necessary.
18299     runpath_var=LD_RUN_PATH
18300     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18301     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18302     # ancient GNU ld didn't support --whole-archive et. al.
18303     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18304         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18305       else
18306         whole_archive_flag_spec_GCJ=
18307     fi
18308     supports_anon_versioning=no
18309     case `$LD -v 2>/dev/null` in
18310       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18311       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18312       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18313       *\ 2.11.*) ;; # other 2.11 versions
18314       *) supports_anon_versioning=yes ;;
18315     esac
18316
18317     # See if GNU ld supports shared libraries.
18318     case $host_os in
18319     aix3* | aix4* | aix5*)
18320       # On AIX/PPC, the GNU linker is very broken
18321       if test "$host_cpu" != ia64; then
18322         ld_shlibs_GCJ=no
18323         cat <<EOF 1>&2
18324
18325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18326 *** to be unable to reliably create shared libraries on AIX.
18327 *** Therefore, libtool is disabling shared libraries support.  If you
18328 *** really care for shared libraries, you may want to modify your PATH
18329 *** so that a non-GNU linker is found, and then restart.
18330
18331 EOF
18332       fi
18333       ;;
18334
18335     amigaos*)
18336       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)'
18337       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18338       hardcode_minus_L_GCJ=yes
18339
18340       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18341       # that the semantics of dynamic libraries on AmigaOS, at least up
18342       # to version 4, is to share data among multiple programs linked
18343       # with the same dynamic library.  Since this doesn't match the
18344       # behavior of shared libraries on other platforms, we can't use
18345       # them.
18346       ld_shlibs_GCJ=no
18347       ;;
18348
18349     beos*)
18350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18351         allow_undefined_flag_GCJ=unsupported
18352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18353         # support --undefined.  This deserves some investigation.  FIXME
18354         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18355       else
18356         ld_shlibs_GCJ=no
18357       fi
18358       ;;
18359
18360     cygwin* | mingw* | pw32*)
18361       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18362       # as there is no search path for DLLs.
18363       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18364       allow_undefined_flag_GCJ=unsupported
18365       always_export_symbols_GCJ=no
18366       enable_shared_with_static_runtimes_GCJ=yes
18367       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18368
18369       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18370         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18371         # If the export-symbols file already is a .def file (1st line
18372         # is EXPORTS), use it as is; otherwise, prepend...
18373         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18374           cp $export_symbols $output_objdir/$soname.def;
18375         else
18376           echo EXPORTS > $output_objdir/$soname.def;
18377           cat $export_symbols >> $output_objdir/$soname.def;
18378         fi~
18379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18380       else
18381         ld_shlibs_GCJ=no
18382       fi
18383       ;;
18384
18385     interix3*)
18386       hardcode_direct_GCJ=no
18387       hardcode_shlibpath_var_GCJ=no
18388       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18389       export_dynamic_flag_spec_GCJ='${wl}-E'
18390       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18391       # Instead, shared libraries are loaded at an image base (0x10000000 by
18392       # default) and relocated if they conflict, which is a slow very memory
18393       # consuming and fragmenting process.  To avoid this, we pick a random,
18394       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18395       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18396       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'
18397       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'
18398       ;;
18399
18400     linux* | k*bsd*-gnu)
18401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18402         tmp_addflag=
18403         case $cc_basename,$host_cpu in
18404         pgcc*)                          # Portland Group C compiler
18405           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'
18406           tmp_addflag=' $pic_flag'
18407           ;;
18408         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18409           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'
18410           tmp_addflag=' $pic_flag -Mnomain' ;;
18411         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18412           tmp_addflag=' -i_dynamic' ;;
18413         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18414           tmp_addflag=' -i_dynamic -nofor_main' ;;
18415         ifc* | ifort*)                  # Intel Fortran compiler
18416           tmp_addflag=' -nofor_main' ;;
18417         esac
18418         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18419
18420         if test $supports_anon_versioning = yes; then
18421           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18422   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18423   $echo "local: *; };" >> $output_objdir/$libname.ver~
18424           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18425         fi
18426         link_all_deplibs_GCJ=no
18427       else
18428         ld_shlibs_GCJ=no
18429       fi
18430       ;;
18431
18432     netbsd* | netbsdelf*-gnu)
18433       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18434         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18435         wlarc=
18436       else
18437         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18438         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18439       fi
18440       ;;
18441
18442     solaris*)
18443       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18444         ld_shlibs_GCJ=no
18445         cat <<EOF 1>&2
18446
18447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18448 *** create shared libraries on Solaris systems.  Therefore, libtool
18449 *** is disabling shared libraries support.  We urge you to upgrade GNU
18450 *** binutils to release 2.9.1 or newer.  Another option is to modify
18451 *** your PATH or compiler configuration so that the native linker is
18452 *** used, and then restart.
18453
18454 EOF
18455       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18456         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18457         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18458       else
18459         ld_shlibs_GCJ=no
18460       fi
18461       ;;
18462
18463     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18464       case `$LD -v 2>&1` in
18465         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18466         ld_shlibs_GCJ=no
18467         cat <<_LT_EOF 1>&2
18468
18469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18470 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18471 *** is disabling shared libraries support.  We urge you to upgrade GNU
18472 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18473 *** your PATH or compiler configuration so that the native linker is
18474 *** used, and then restart.
18475
18476 _LT_EOF
18477         ;;
18478         *)
18479           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18480             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18481             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18482             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18483           else
18484             ld_shlibs_GCJ=no
18485           fi
18486         ;;
18487       esac
18488       ;;
18489
18490     sunos4*)
18491       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18492       wlarc=
18493       hardcode_direct_GCJ=yes
18494       hardcode_shlibpath_var_GCJ=no
18495       ;;
18496
18497     *)
18498       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18499         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18500         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18501       else
18502         ld_shlibs_GCJ=no
18503       fi
18504       ;;
18505     esac
18506
18507     if test "$ld_shlibs_GCJ" = no; then
18508       runpath_var=
18509       hardcode_libdir_flag_spec_GCJ=
18510       export_dynamic_flag_spec_GCJ=
18511       whole_archive_flag_spec_GCJ=
18512     fi
18513   else
18514     # PORTME fill in a description of your system's linker (not GNU ld)
18515     case $host_os in
18516     aix3*)
18517       allow_undefined_flag_GCJ=unsupported
18518       always_export_symbols_GCJ=yes
18519       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'
18520       # Note: this linker hardcodes the directories in LIBPATH if there
18521       # are no directories specified by -L.
18522       hardcode_minus_L_GCJ=yes
18523       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18524         # Neither direct hardcoding nor static linking is supported with a
18525         # broken collect2.
18526         hardcode_direct_GCJ=unsupported
18527       fi
18528       ;;
18529
18530     aix4* | aix5*)
18531       if test "$host_cpu" = ia64; then
18532         # On IA64, the linker does run time linking by default, so we don't
18533         # have to do anything special.
18534         aix_use_runtimelinking=no
18535         exp_sym_flag='-Bexport'
18536         no_entry_flag=""
18537       else
18538         # If we're using GNU nm, then we don't want the "-C" option.
18539         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18540         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18541           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'
18542         else
18543           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'
18544         fi
18545         aix_use_runtimelinking=no
18546
18547         # Test if we are trying to use run time linking or normal
18548         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18549         # need to do runtime linking.
18550         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18551           for ld_flag in $LDFLAGS; do
18552           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18553             aix_use_runtimelinking=yes
18554             break
18555           fi
18556           done
18557           ;;
18558         esac
18559
18560         exp_sym_flag='-bexport'
18561         no_entry_flag='-bnoentry'
18562       fi
18563
18564       # When large executables or shared objects are built, AIX ld can
18565       # have problems creating the table of contents.  If linking a library
18566       # or program results in "error TOC overflow" add -mminimal-toc to
18567       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18568       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18569
18570       archive_cmds_GCJ=''
18571       hardcode_direct_GCJ=yes
18572       hardcode_libdir_separator_GCJ=':'
18573       link_all_deplibs_GCJ=yes
18574
18575       if test "$GCC" = yes; then
18576         case $host_os in aix4.[012]|aix4.[012].*)
18577         # We only want to do this on AIX 4.2 and lower, the check
18578         # below for broken collect2 doesn't work under 4.3+
18579           collect2name=`${CC} -print-prog-name=collect2`
18580           if test -f "$collect2name" && \
18581            strings "$collect2name" | grep resolve_lib_name >/dev/null
18582           then
18583           # We have reworked collect2
18584           hardcode_direct_GCJ=yes
18585           else
18586           # We have old collect2
18587           hardcode_direct_GCJ=unsupported
18588           # It fails to find uninstalled libraries when the uninstalled
18589           # path is not listed in the libpath.  Setting hardcode_minus_L
18590           # to unsupported forces relinking
18591           hardcode_minus_L_GCJ=yes
18592           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18593           hardcode_libdir_separator_GCJ=
18594           fi
18595           ;;
18596         esac
18597         shared_flag='-shared'
18598         if test "$aix_use_runtimelinking" = yes; then
18599           shared_flag="$shared_flag "'${wl}-G'
18600         fi
18601       else
18602         # not using gcc
18603         if test "$host_cpu" = ia64; then
18604         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18605         # chokes on -Wl,-G. The following line is correct:
18606           shared_flag='-G'
18607         else
18608           if test "$aix_use_runtimelinking" = yes; then
18609             shared_flag='${wl}-G'
18610           else
18611             shared_flag='${wl}-bM:SRE'
18612           fi
18613         fi
18614       fi
18615
18616       # It seems that -bexpall does not export symbols beginning with
18617       # underscore (_), so it is better to generate a list of symbols to export.
18618       always_export_symbols_GCJ=yes
18619       if test "$aix_use_runtimelinking" = yes; then
18620         # Warning - without using the other runtime loading flags (-brtl),
18621         # -berok will link without error, but may produce a broken library.
18622         allow_undefined_flag_GCJ='-berok'
18623        # Determine the default libpath from the value encoded in an empty executable.
18624        cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630
18631 int
18632 main ()
18633 {
18634
18635   ;
18636   return 0;
18637 }
18638 _ACEOF
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (ac_try="$ac_link"
18641 case "(($ac_try" in
18642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643   *) ac_try_echo=$ac_try;;
18644 esac
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646   (eval "$ac_link") 2>conftest.er1
18647   ac_status=$?
18648   grep -v '^ *+' conftest.er1 >conftest.err
18649   rm -f conftest.er1
18650   cat conftest.err >&5
18651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652   (exit $ac_status); } && {
18653          test -z "$ac_c_werror_flag" ||
18654          test ! -s conftest.err
18655        } && test -s conftest$ac_exeext &&
18656        $as_test_x conftest$ac_exeext; then
18657
18658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18659 }'`
18660 # Check for a 64-bit object if we didn't find anything.
18661 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18662 }'`; fi
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667
18668 fi
18669
18670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18671       conftest$ac_exeext conftest.$ac_ext
18672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18673
18674        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18675         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"
18676        else
18677         if test "$host_cpu" = ia64; then
18678           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18679           allow_undefined_flag_GCJ="-z nodefs"
18680           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"
18681         else
18682          # Determine the default libpath from the value encoded in an empty executable.
18683          cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h.  */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h.  */
18689
18690 int
18691 main ()
18692 {
18693
18694   ;
18695   return 0;
18696 }
18697 _ACEOF
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (ac_try="$ac_link"
18700 case "(($ac_try" in
18701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702   *) ac_try_echo=$ac_try;;
18703 esac
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705   (eval "$ac_link") 2>conftest.er1
18706   ac_status=$?
18707   grep -v '^ *+' conftest.er1 >conftest.err
18708   rm -f conftest.er1
18709   cat conftest.err >&5
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } && {
18712          test -z "$ac_c_werror_flag" ||
18713          test ! -s conftest.err
18714        } && test -s conftest$ac_exeext &&
18715        $as_test_x conftest$ac_exeext; then
18716
18717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18718 }'`
18719 # Check for a 64-bit object if we didn't find anything.
18720 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18721 }'`; fi
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726
18727 fi
18728
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730       conftest$ac_exeext conftest.$ac_ext
18731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18732
18733          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18734           # Warning - without using the other run time loading flags,
18735           # -berok will link without error, but may produce a broken library.
18736           no_undefined_flag_GCJ=' ${wl}-bernotok'
18737           allow_undefined_flag_GCJ=' ${wl}-berok'
18738           # Exported symbols can be pulled into shared objects from archives
18739           whole_archive_flag_spec_GCJ='$convenience'
18740           archive_cmds_need_lc_GCJ=yes
18741           # This is similar to how AIX traditionally builds its shared libraries.
18742           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'
18743         fi
18744       fi
18745       ;;
18746
18747     amigaos*)
18748       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)'
18749       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18750       hardcode_minus_L_GCJ=yes
18751       # see comment about different semantics on the GNU ld section
18752       ld_shlibs_GCJ=no
18753       ;;
18754
18755     bsdi[45]*)
18756       export_dynamic_flag_spec_GCJ=-rdynamic
18757       ;;
18758
18759     cygwin* | mingw* | pw32*)
18760       # When not using gcc, we currently assume that we are using
18761       # Microsoft Visual C++.
18762       # hardcode_libdir_flag_spec is actually meaningless, as there is
18763       # no search path for DLLs.
18764       hardcode_libdir_flag_spec_GCJ=' '
18765       allow_undefined_flag_GCJ=unsupported
18766       # Tell ltmain to make .lib files, not .a files.
18767       libext=lib
18768       # Tell ltmain to make .dll files, not .so files.
18769       shrext_cmds=".dll"
18770       # FIXME: Setting linknames here is a bad hack.
18771       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18772       # The linker will automatically build a .lib file if we build a DLL.
18773       old_archive_From_new_cmds_GCJ='true'
18774       # FIXME: Should let the user specify the lib program.
18775       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18776       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18777       enable_shared_with_static_runtimes_GCJ=yes
18778       ;;
18779
18780     darwin* | rhapsody*)
18781       case $host_os in
18782         rhapsody* | darwin1.[012])
18783          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18784          ;;
18785        *) # Darwin 1.3 on
18786          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18787            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18788          else
18789            case ${MACOSX_DEPLOYMENT_TARGET} in
18790              10.[012])
18791                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18792                ;;
18793              10.*)
18794                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18795                ;;
18796            esac
18797          fi
18798          ;;
18799       esac
18800       archive_cmds_need_lc_GCJ=no
18801       hardcode_direct_GCJ=no
18802       hardcode_automatic_GCJ=yes
18803       hardcode_shlibpath_var_GCJ=unsupported
18804       whole_archive_flag_spec_GCJ=''
18805       link_all_deplibs_GCJ=yes
18806     if test "$GCC" = yes ; then
18807         output_verbose_link_cmd='echo'
18808         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18809       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18810       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18811       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}'
18812       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}'
18813     else
18814       case $cc_basename in
18815         xlc*)
18816          output_verbose_link_cmd='echo'
18817          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18818          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18819           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18820          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18821           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}'
18822           ;;
18823        *)
18824          ld_shlibs_GCJ=no
18825           ;;
18826       esac
18827     fi
18828       ;;
18829
18830     dgux*)
18831       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18832       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18833       hardcode_shlibpath_var_GCJ=no
18834       ;;
18835
18836     freebsd1*)
18837       ld_shlibs_GCJ=no
18838       ;;
18839
18840     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18841     # support.  Future versions do this automatically, but an explicit c++rt0.o
18842     # does not break anything, and helps significantly (at the cost of a little
18843     # extra space).
18844     freebsd2.2*)
18845       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18846       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18847       hardcode_direct_GCJ=yes
18848       hardcode_shlibpath_var_GCJ=no
18849       ;;
18850
18851     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18852     freebsd2*)
18853       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18854       hardcode_direct_GCJ=yes
18855       hardcode_minus_L_GCJ=yes
18856       hardcode_shlibpath_var_GCJ=no
18857       ;;
18858
18859     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18860     freebsd* | dragonfly*)
18861       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18862       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18863       hardcode_direct_GCJ=yes
18864       hardcode_shlibpath_var_GCJ=no
18865       ;;
18866
18867     hpux9*)
18868       if test "$GCC" = yes; then
18869         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'
18870       else
18871         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'
18872       fi
18873       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18874       hardcode_libdir_separator_GCJ=:
18875       hardcode_direct_GCJ=yes
18876
18877       # hardcode_minus_L: Not really in the search PATH,
18878       # but as the default location of the library.
18879       hardcode_minus_L_GCJ=yes
18880       export_dynamic_flag_spec_GCJ='${wl}-E'
18881       ;;
18882
18883     hpux10*)
18884       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18885         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18886       else
18887         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18888       fi
18889       if test "$with_gnu_ld" = no; then
18890         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18891         hardcode_libdir_separator_GCJ=:
18892
18893         hardcode_direct_GCJ=yes
18894         export_dynamic_flag_spec_GCJ='${wl}-E'
18895
18896         # hardcode_minus_L: Not really in the search PATH,
18897         # but as the default location of the library.
18898         hardcode_minus_L_GCJ=yes
18899       fi
18900       ;;
18901
18902     hpux11*)
18903       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18904         case $host_cpu in
18905         hppa*64*)
18906           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18907           ;;
18908         ia64*)
18909           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18910           ;;
18911         *)
18912           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18913           ;;
18914         esac
18915       else
18916         case $host_cpu in
18917         hppa*64*)
18918           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18919           ;;
18920         ia64*)
18921           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18922           ;;
18923         *)
18924           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18925           ;;
18926         esac
18927       fi
18928       if test "$with_gnu_ld" = no; then
18929         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18930         hardcode_libdir_separator_GCJ=:
18931
18932         case $host_cpu in
18933         hppa*64*|ia64*)
18934           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18935           hardcode_direct_GCJ=no
18936           hardcode_shlibpath_var_GCJ=no
18937           ;;
18938         *)
18939           hardcode_direct_GCJ=yes
18940           export_dynamic_flag_spec_GCJ='${wl}-E'
18941
18942           # hardcode_minus_L: Not really in the search PATH,
18943           # but as the default location of the library.
18944           hardcode_minus_L_GCJ=yes
18945           ;;
18946         esac
18947       fi
18948       ;;
18949
18950     irix5* | irix6* | nonstopux*)
18951       if test "$GCC" = yes; then
18952         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'
18953       else
18954         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'
18955         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18956       fi
18957       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18958       hardcode_libdir_separator_GCJ=:
18959       link_all_deplibs_GCJ=yes
18960       ;;
18961
18962     netbsd* | netbsdelf*-gnu)
18963       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18964         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18965       else
18966         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18967       fi
18968       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18969       hardcode_direct_GCJ=yes
18970       hardcode_shlibpath_var_GCJ=no
18971       ;;
18972
18973     newsos6)
18974       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18975       hardcode_direct_GCJ=yes
18976       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18977       hardcode_libdir_separator_GCJ=:
18978       hardcode_shlibpath_var_GCJ=no
18979       ;;
18980
18981     openbsd*)
18982       hardcode_direct_GCJ=yes
18983       hardcode_shlibpath_var_GCJ=no
18984       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18985         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18986         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18987         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18988         export_dynamic_flag_spec_GCJ='${wl}-E'
18989       else
18990        case $host_os in
18991          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18992            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18993            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18994            ;;
18995          *)
18996            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18997            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18998            ;;
18999        esac
19000       fi
19001       ;;
19002
19003     os2*)
19004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19005       hardcode_minus_L_GCJ=yes
19006       allow_undefined_flag_GCJ=unsupported
19007       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'
19008       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19009       ;;
19010
19011     osf3*)
19012       if test "$GCC" = yes; then
19013         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19014         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'
19015       else
19016         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19017         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'
19018       fi
19019       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19020       hardcode_libdir_separator_GCJ=:
19021       ;;
19022
19023     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19024       if test "$GCC" = yes; then
19025         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19026         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'
19027         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19028       else
19029         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19030         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'
19031         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~
19032         $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'
19033
19034         # Both c and cxx compiler support -rpath directly
19035         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19036       fi
19037       hardcode_libdir_separator_GCJ=:
19038       ;;
19039
19040     solaris*)
19041       no_undefined_flag_GCJ=' -z text'
19042       if test "$GCC" = yes; then
19043         wlarc='${wl}'
19044         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19045         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19046           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19047       else
19048         wlarc=''
19049         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19050         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19051         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19052       fi
19053       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19054       hardcode_shlibpath_var_GCJ=no
19055       case $host_os in
19056       solaris2.[0-5] | solaris2.[0-5].*) ;;
19057       *)
19058         # The compiler driver will combine linker options so we
19059         # cannot just pass the convience library names through
19060         # without $wl, iff we do not link with $LD.
19061         # Luckily, gcc supports the same syntax we need for Sun Studio.
19062         # Supported since Solaris 2.6 (maybe 2.5.1?)
19063         case $wlarc in
19064         '')
19065           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19066         *)
19067           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19068         esac ;;
19069       esac
19070       link_all_deplibs_GCJ=yes
19071       ;;
19072
19073     sunos4*)
19074       if test "x$host_vendor" = xsequent; then
19075         # Use $CC to link under sequent, because it throws in some extra .o
19076         # files that make .init and .fini sections work.
19077         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19078       else
19079         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19080       fi
19081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082       hardcode_direct_GCJ=yes
19083       hardcode_minus_L_GCJ=yes
19084       hardcode_shlibpath_var_GCJ=no
19085       ;;
19086
19087     sysv4)
19088       case $host_vendor in
19089         sni)
19090           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19091           hardcode_direct_GCJ=yes # is this really true???
19092         ;;
19093         siemens)
19094           ## LD is ld it makes a PLAMLIB
19095           ## CC just makes a GrossModule.
19096           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19097           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19098           hardcode_direct_GCJ=no
19099         ;;
19100         motorola)
19101           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19102           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19103         ;;
19104       esac
19105       runpath_var='LD_RUN_PATH'
19106       hardcode_shlibpath_var_GCJ=no
19107       ;;
19108
19109     sysv4.3*)
19110       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19111       hardcode_shlibpath_var_GCJ=no
19112       export_dynamic_flag_spec_GCJ='-Bexport'
19113       ;;
19114
19115     sysv4*MP*)
19116       if test -d /usr/nec; then
19117         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19118         hardcode_shlibpath_var_GCJ=no
19119         runpath_var=LD_RUN_PATH
19120         hardcode_runpath_var=yes
19121         ld_shlibs_GCJ=yes
19122       fi
19123       ;;
19124
19125     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19126       no_undefined_flag_GCJ='${wl}-z,text'
19127       archive_cmds_need_lc_GCJ=no
19128       hardcode_shlibpath_var_GCJ=no
19129       runpath_var='LD_RUN_PATH'
19130
19131       if test "$GCC" = yes; then
19132         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19133         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19134       else
19135         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19136         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19137       fi
19138       ;;
19139
19140     sysv5* | sco3.2v5* | sco5v6*)
19141       # Note: We can NOT use -z defs as we might desire, because we do not
19142       # link with -lc, and that would cause any symbols used from libc to
19143       # always be unresolved, which means just about no library would
19144       # ever link correctly.  If we're not using GNU ld we use -z text
19145       # though, which does catch some bad symbols but isn't as heavy-handed
19146       # as -z defs.
19147       no_undefined_flag_GCJ='${wl}-z,text'
19148       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19149       archive_cmds_need_lc_GCJ=no
19150       hardcode_shlibpath_var_GCJ=no
19151       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19152       hardcode_libdir_separator_GCJ=':'
19153       link_all_deplibs_GCJ=yes
19154       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19155       runpath_var='LD_RUN_PATH'
19156
19157       if test "$GCC" = yes; then
19158         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19159         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19160       else
19161         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19162         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19163       fi
19164       ;;
19165
19166     uts4*)
19167       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19168       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19169       hardcode_shlibpath_var_GCJ=no
19170       ;;
19171
19172     *)
19173       ld_shlibs_GCJ=no
19174       ;;
19175     esac
19176   fi
19177
19178 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19179 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19180 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19181
19182 #
19183 # Do we need to explicitly link libc?
19184 #
19185 case "x$archive_cmds_need_lc_GCJ" in
19186 x|xyes)
19187   # Assume -lc should be added
19188   archive_cmds_need_lc_GCJ=yes
19189
19190   if test "$enable_shared" = yes && test "$GCC" = yes; then
19191     case $archive_cmds_GCJ in
19192     *'~'*)
19193       # FIXME: we may have to deal with multi-command sequences.
19194       ;;
19195     '$CC '*)
19196       # Test whether the compiler implicitly links with -lc since on some
19197       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19198       # to ld, don't add -lc before -lgcc.
19199       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19201       $rm conftest*
19202       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19203
19204       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19205   (eval $ac_compile) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } 2>conftest.err; then
19209         soname=conftest
19210         lib=conftest
19211         libobjs=conftest.$ac_objext
19212         deplibs=
19213         wl=$lt_prog_compiler_wl_GCJ
19214         pic_flag=$lt_prog_compiler_pic_GCJ
19215         compiler_flags=-v
19216         linker_flags=-v
19217         verstring=
19218         output_objdir=.
19219         libname=conftest
19220         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19221         allow_undefined_flag_GCJ=
19222         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19223   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19224   ac_status=$?
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); }
19227         then
19228           archive_cmds_need_lc_GCJ=no
19229         else
19230           archive_cmds_need_lc_GCJ=yes
19231         fi
19232         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19233       else
19234         cat conftest.err 1>&5
19235       fi
19236       $rm conftest*
19237       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19238 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19239       ;;
19240     esac
19241   fi
19242   ;;
19243 esac
19244
19245 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19247 library_names_spec=
19248 libname_spec='lib$name'
19249 soname_spec=
19250 shrext_cmds=".so"
19251 postinstall_cmds=
19252 postuninstall_cmds=
19253 finish_cmds=
19254 finish_eval=
19255 shlibpath_var=
19256 shlibpath_overrides_runpath=unknown
19257 version_type=none
19258 dynamic_linker="$host_os ld.so"
19259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19260 if test "$GCC" = yes; then
19261   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19262   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19263     # if the path contains ";" then we assume it to be the separator
19264     # otherwise default to the standard path separator (i.e. ":") - it is
19265     # assumed that no part of a normal pathname contains ";" but that should
19266     # okay in the real world where ";" in dirpaths is itself problematic.
19267     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19268   else
19269     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19270   fi
19271 else
19272   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19273 fi
19274 need_lib_prefix=unknown
19275 hardcode_into_libs=no
19276
19277 # when you set need_version to no, make sure it does not cause -set_version
19278 # flags to be left without arguments
19279 need_version=unknown
19280
19281 case $host_os in
19282 aix3*)
19283   version_type=linux
19284   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19285   shlibpath_var=LIBPATH
19286
19287   # AIX 3 has no versioning support, so we append a major version to the name.
19288   soname_spec='${libname}${release}${shared_ext}$major'
19289   ;;
19290
19291 aix4* | aix5*)
19292   version_type=linux
19293   need_lib_prefix=no
19294   need_version=no
19295   hardcode_into_libs=yes
19296   if test "$host_cpu" = ia64; then
19297     # AIX 5 supports IA64
19298     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19299     shlibpath_var=LD_LIBRARY_PATH
19300   else
19301     # With GCC up to 2.95.x, collect2 would create an import file
19302     # for dependence libraries.  The import file would start with
19303     # the line `#! .'.  This would cause the generated library to
19304     # depend on `.', always an invalid library.  This was fixed in
19305     # development snapshots of GCC prior to 3.0.
19306     case $host_os in
19307       aix4 | aix4.[01] | aix4.[01].*)
19308       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19309            echo ' yes '
19310            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19311         :
19312       else
19313         can_build_shared=no
19314       fi
19315       ;;
19316     esac
19317     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19318     # soname into executable. Probably we can add versioning support to
19319     # collect2, so additional links can be useful in future.
19320     if test "$aix_use_runtimelinking" = yes; then
19321       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19322       # instead of lib<name>.a to let people know that these are not
19323       # typical AIX shared libraries.
19324       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19325     else
19326       # We preserve .a as extension for shared libraries through AIX4.2
19327       # and later when we are not doing run time linking.
19328       library_names_spec='${libname}${release}.a $libname.a'
19329       soname_spec='${libname}${release}${shared_ext}$major'
19330     fi
19331     shlibpath_var=LIBPATH
19332   fi
19333   ;;
19334
19335 amigaos*)
19336   library_names_spec='$libname.ixlibrary $libname.a'
19337   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19338   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'
19339   ;;
19340
19341 beos*)
19342   library_names_spec='${libname}${shared_ext}'
19343   dynamic_linker="$host_os ld.so"
19344   shlibpath_var=LIBRARY_PATH
19345   ;;
19346
19347 bsdi[45]*)
19348   version_type=linux
19349   need_version=no
19350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19351   soname_spec='${libname}${release}${shared_ext}$major'
19352   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19353   shlibpath_var=LD_LIBRARY_PATH
19354   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19355   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19356   # the default ld.so.conf also contains /usr/contrib/lib and
19357   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19358   # libtool to hard-code these into programs
19359   ;;
19360
19361 cygwin* | mingw* | pw32*)
19362   version_type=windows
19363   shrext_cmds=".dll"
19364   need_version=no
19365   need_lib_prefix=no
19366
19367   case $GCC,$host_os in
19368   yes,cygwin* | yes,mingw* | yes,pw32*)
19369     library_names_spec='$libname.dll.a'
19370     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19371     postinstall_cmds='base_file=`basename \${file}`~
19372       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19373       dldir=$destdir/`dirname \$dlpath`~
19374       test -d \$dldir || mkdir -p \$dldir~
19375       $install_prog $dir/$dlname \$dldir/$dlname~
19376       chmod a+x \$dldir/$dlname'
19377     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19378       dlpath=$dir/\$dldll~
19379        $rm \$dlpath'
19380     shlibpath_overrides_runpath=yes
19381
19382     case $host_os in
19383     cygwin*)
19384       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19385       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19386       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19387       ;;
19388     mingw*)
19389       # MinGW DLLs use traditional 'lib' prefix
19390       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19391       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19392       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19393         # It is most probably a Windows format PATH printed by
19394         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19395         # path with ; separators, and with drive letters. We can handle the
19396         # drive letters (cygwin fileutils understands them), so leave them,
19397         # especially as we might pass files found there to a mingw objdump,
19398         # which wouldn't understand a cygwinified path. Ahh.
19399         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19400       else
19401         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19402       fi
19403       ;;
19404     pw32*)
19405       # pw32 DLLs use 'pw' prefix rather than 'lib'
19406       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19407       ;;
19408     esac
19409     ;;
19410
19411   *)
19412     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19413     ;;
19414   esac
19415   dynamic_linker='Win32 ld.exe'
19416   # FIXME: first we should search . and the directory the executable is in
19417   shlibpath_var=PATH
19418   ;;
19419
19420 darwin* | rhapsody*)
19421   dynamic_linker="$host_os dyld"
19422   version_type=darwin
19423   need_lib_prefix=no
19424   need_version=no
19425   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19426   soname_spec='${libname}${release}${major}$shared_ext'
19427   shlibpath_overrides_runpath=yes
19428   shlibpath_var=DYLD_LIBRARY_PATH
19429   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19430   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19431   if test "$GCC" = yes; then
19432     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19433   else
19434     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19435   fi
19436   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19437   ;;
19438
19439 dgux*)
19440   version_type=linux
19441   need_lib_prefix=no
19442   need_version=no
19443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19444   soname_spec='${libname}${release}${shared_ext}$major'
19445   shlibpath_var=LD_LIBRARY_PATH
19446   ;;
19447
19448 freebsd1*)
19449   dynamic_linker=no
19450   ;;
19451
19452 freebsd* | dragonfly*)
19453   # DragonFly does not have aout.  When/if they implement a new
19454   # versioning mechanism, adjust this.
19455   if test -x /usr/bin/objformat; then
19456     objformat=`/usr/bin/objformat`
19457   else
19458     case $host_os in
19459     freebsd[123]*) objformat=aout ;;
19460     *) objformat=elf ;;
19461     esac
19462   fi
19463   version_type=freebsd-$objformat
19464   case $version_type in
19465     freebsd-elf*)
19466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19467       need_version=no
19468       need_lib_prefix=no
19469       ;;
19470     freebsd-*)
19471       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19472       need_version=yes
19473       ;;
19474   esac
19475   shlibpath_var=LD_LIBRARY_PATH
19476   case $host_os in
19477   freebsd2*)
19478     shlibpath_overrides_runpath=yes
19479     ;;
19480   freebsd3.[01]* | freebsdelf3.[01]*)
19481     shlibpath_overrides_runpath=yes
19482     hardcode_into_libs=yes
19483     ;;
19484   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19485   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19486     shlibpath_overrides_runpath=no
19487     hardcode_into_libs=yes
19488     ;;
19489   freebsd*) # from 4.6 on
19490     shlibpath_overrides_runpath=yes
19491     hardcode_into_libs=yes
19492     ;;
19493   esac
19494   ;;
19495
19496 gnu*)
19497   version_type=linux
19498   need_lib_prefix=no
19499   need_version=no
19500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19501   soname_spec='${libname}${release}${shared_ext}$major'
19502   shlibpath_var=LD_LIBRARY_PATH
19503   hardcode_into_libs=yes
19504   ;;
19505
19506 hpux9* | hpux10* | hpux11*)
19507   # Give a soname corresponding to the major version so that dld.sl refuses to
19508   # link against other versions.
19509   version_type=sunos
19510   need_lib_prefix=no
19511   need_version=no
19512   case $host_cpu in
19513   ia64*)
19514     shrext_cmds='.so'
19515     hardcode_into_libs=yes
19516     dynamic_linker="$host_os dld.so"
19517     shlibpath_var=LD_LIBRARY_PATH
19518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19520     soname_spec='${libname}${release}${shared_ext}$major'
19521     if test "X$HPUX_IA64_MODE" = X32; then
19522       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19523     else
19524       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19525     fi
19526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19527     ;;
19528    hppa*64*)
19529      shrext_cmds='.sl'
19530      hardcode_into_libs=yes
19531      dynamic_linker="$host_os dld.sl"
19532      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19533      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535      soname_spec='${libname}${release}${shared_ext}$major'
19536      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19537      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19538      ;;
19539    *)
19540     shrext_cmds='.sl'
19541     dynamic_linker="$host_os dld.sl"
19542     shlibpath_var=SHLIB_PATH
19543     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545     soname_spec='${libname}${release}${shared_ext}$major'
19546     ;;
19547   esac
19548   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19549   postinstall_cmds='chmod 555 $lib'
19550   ;;
19551
19552 interix3*)
19553   version_type=linux
19554   need_lib_prefix=no
19555   need_version=no
19556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19557   soname_spec='${libname}${release}${shared_ext}$major'
19558   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19559   shlibpath_var=LD_LIBRARY_PATH
19560   shlibpath_overrides_runpath=no
19561   hardcode_into_libs=yes
19562   ;;
19563
19564 irix5* | irix6* | nonstopux*)
19565   case $host_os in
19566     nonstopux*) version_type=nonstopux ;;
19567     *)
19568         if test "$lt_cv_prog_gnu_ld" = yes; then
19569                 version_type=linux
19570         else
19571                 version_type=irix
19572         fi ;;
19573   esac
19574   need_lib_prefix=no
19575   need_version=no
19576   soname_spec='${libname}${release}${shared_ext}$major'
19577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19578   case $host_os in
19579   irix5* | nonstopux*)
19580     libsuff= shlibsuff=
19581     ;;
19582   *)
19583     case $LD in # libtool.m4 will add one of these switches to LD
19584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19585       libsuff= shlibsuff= libmagic=32-bit;;
19586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19587       libsuff=32 shlibsuff=N32 libmagic=N32;;
19588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19590     *) libsuff= shlibsuff= libmagic=never-match;;
19591     esac
19592     ;;
19593   esac
19594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19595   shlibpath_overrides_runpath=no
19596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19598   hardcode_into_libs=yes
19599   ;;
19600
19601 # No shared lib support for Linux oldld, aout, or coff.
19602 linux*oldld* | linux*aout* | linux*coff*)
19603   dynamic_linker=no
19604   ;;
19605
19606 # This must be Linux ELF.
19607 linux* | k*bsd*-gnu)
19608   version_type=linux
19609   need_lib_prefix=no
19610   need_version=no
19611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19612   soname_spec='${libname}${release}${shared_ext}$major'
19613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19614   shlibpath_var=LD_LIBRARY_PATH
19615   shlibpath_overrides_runpath=no
19616   # This implies no fast_install, which is unacceptable.
19617   # Some rework will be needed to allow for fast_install
19618   # before this can be enabled.
19619   hardcode_into_libs=yes
19620
19621   # Append ld.so.conf contents to the search path
19622   if test -f /etc/ld.so.conf; then
19623     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19624     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19625   fi
19626
19627   # We used to test for /lib/ld.so.1 and disable shared libraries on
19628   # powerpc, because MkLinux only supported shared libraries with the
19629   # GNU dynamic linker.  Since this was broken with cross compilers,
19630   # most powerpc-linux boxes support dynamic linking these days and
19631   # people can always --disable-shared, the test was removed, and we
19632   # assume the GNU/Linux dynamic linker is in use.
19633   dynamic_linker='GNU/Linux ld.so'
19634   ;;
19635
19636 netbsdelf*-gnu)
19637   version_type=linux
19638   need_lib_prefix=no
19639   need_version=no
19640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19641   soname_spec='${libname}${release}${shared_ext}$major'
19642   shlibpath_var=LD_LIBRARY_PATH
19643   shlibpath_overrides_runpath=no
19644   hardcode_into_libs=yes
19645   dynamic_linker='NetBSD ld.elf_so'
19646   ;;
19647
19648 netbsd*)
19649   version_type=sunos
19650   need_lib_prefix=no
19651   need_version=no
19652   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19654     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19655     dynamic_linker='NetBSD (a.out) ld.so'
19656   else
19657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19658     soname_spec='${libname}${release}${shared_ext}$major'
19659     dynamic_linker='NetBSD ld.elf_so'
19660   fi
19661   shlibpath_var=LD_LIBRARY_PATH
19662   shlibpath_overrides_runpath=yes
19663   hardcode_into_libs=yes
19664   ;;
19665
19666 newsos6)
19667   version_type=linux
19668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19669   shlibpath_var=LD_LIBRARY_PATH
19670   shlibpath_overrides_runpath=yes
19671   ;;
19672
19673 nto-qnx*)
19674   version_type=linux
19675   need_lib_prefix=no
19676   need_version=no
19677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19678   soname_spec='${libname}${release}${shared_ext}$major'
19679   shlibpath_var=LD_LIBRARY_PATH
19680   shlibpath_overrides_runpath=yes
19681   ;;
19682
19683 openbsd*)
19684   version_type=sunos
19685   sys_lib_dlsearch_path_spec="/usr/lib"
19686   need_lib_prefix=no
19687   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19688   case $host_os in
19689     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19690     *)                         need_version=no  ;;
19691   esac
19692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19694   shlibpath_var=LD_LIBRARY_PATH
19695   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19696     case $host_os in
19697       openbsd2.[89] | openbsd2.[89].*)
19698         shlibpath_overrides_runpath=no
19699         ;;
19700       *)
19701         shlibpath_overrides_runpath=yes
19702         ;;
19703       esac
19704   else
19705     shlibpath_overrides_runpath=yes
19706   fi
19707   ;;
19708
19709 os2*)
19710   libname_spec='$name'
19711   shrext_cmds=".dll"
19712   need_lib_prefix=no
19713   library_names_spec='$libname${shared_ext} $libname.a'
19714   dynamic_linker='OS/2 ld.exe'
19715   shlibpath_var=LIBPATH
19716   ;;
19717
19718 osf3* | osf4* | osf5*)
19719   version_type=osf
19720   need_lib_prefix=no
19721   need_version=no
19722   soname_spec='${libname}${release}${shared_ext}$major'
19723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724   shlibpath_var=LD_LIBRARY_PATH
19725   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19726   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19727   ;;
19728
19729 solaris*)
19730   version_type=linux
19731   need_lib_prefix=no
19732   need_version=no
19733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734   soname_spec='${libname}${release}${shared_ext}$major'
19735   shlibpath_var=LD_LIBRARY_PATH
19736   shlibpath_overrides_runpath=yes
19737   hardcode_into_libs=yes
19738   # ldd complains unless libraries are executable
19739   postinstall_cmds='chmod +x $lib'
19740   ;;
19741
19742 sunos4*)
19743   version_type=sunos
19744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19745   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19746   shlibpath_var=LD_LIBRARY_PATH
19747   shlibpath_overrides_runpath=yes
19748   if test "$with_gnu_ld" = yes; then
19749     need_lib_prefix=no
19750   fi
19751   need_version=yes
19752   ;;
19753
19754 sysv4 | sysv4.3*)
19755   version_type=linux
19756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757   soname_spec='${libname}${release}${shared_ext}$major'
19758   shlibpath_var=LD_LIBRARY_PATH
19759   case $host_vendor in
19760     sni)
19761       shlibpath_overrides_runpath=no
19762       need_lib_prefix=no
19763       export_dynamic_flag_spec='${wl}-Blargedynsym'
19764       runpath_var=LD_RUN_PATH
19765       ;;
19766     siemens)
19767       need_lib_prefix=no
19768       ;;
19769     motorola)
19770       need_lib_prefix=no
19771       need_version=no
19772       shlibpath_overrides_runpath=no
19773       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19774       ;;
19775   esac
19776   ;;
19777
19778 sysv4*MP*)
19779   if test -d /usr/nec ;then
19780     version_type=linux
19781     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19782     soname_spec='$libname${shared_ext}.$major'
19783     shlibpath_var=LD_LIBRARY_PATH
19784   fi
19785   ;;
19786
19787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19788   version_type=freebsd-elf
19789   need_lib_prefix=no
19790   need_version=no
19791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19792   soname_spec='${libname}${release}${shared_ext}$major'
19793   shlibpath_var=LD_LIBRARY_PATH
19794   hardcode_into_libs=yes
19795   if test "$with_gnu_ld" = yes; then
19796     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19797     shlibpath_overrides_runpath=no
19798   else
19799     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19800     shlibpath_overrides_runpath=yes
19801     case $host_os in
19802       sco3.2v5*)
19803         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19804         ;;
19805     esac
19806   fi
19807   sys_lib_dlsearch_path_spec='/usr/lib'
19808   ;;
19809
19810 uts4*)
19811   version_type=linux
19812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19813   soname_spec='${libname}${release}${shared_ext}$major'
19814   shlibpath_var=LD_LIBRARY_PATH
19815   ;;
19816
19817 *)
19818   dynamic_linker=no
19819   ;;
19820 esac
19821 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19822 echo "${ECHO_T}$dynamic_linker" >&6; }
19823 test "$dynamic_linker" = no && can_build_shared=no
19824
19825 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19826 if test "$GCC" = yes; then
19827   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19828 fi
19829
19830 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19831 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19832 hardcode_action_GCJ=
19833 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19834    test -n "$runpath_var_GCJ" || \
19835    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19836
19837   # We can hardcode non-existant directories.
19838   if test "$hardcode_direct_GCJ" != no &&
19839      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19840      # have to relink, otherwise we might link with an installed library
19841      # when we should be linking with a yet-to-be-installed one
19842      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19843      test "$hardcode_minus_L_GCJ" != no; then
19844     # Linking always hardcodes the temporary library directory.
19845     hardcode_action_GCJ=relink
19846   else
19847     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19848     hardcode_action_GCJ=immediate
19849   fi
19850 else
19851   # We cannot hardcode anything, or else we can only hardcode existing
19852   # directories.
19853   hardcode_action_GCJ=unsupported
19854 fi
19855 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19856 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19857
19858 if test "$hardcode_action_GCJ" = relink; then
19859   # Fast installation is not supported
19860   enable_fast_install=no
19861 elif test "$shlibpath_overrides_runpath" = yes ||
19862      test "$enable_shared" = no; then
19863   # Fast installation is not necessary
19864   enable_fast_install=needless
19865 fi
19866
19867
19868 # The else clause should only fire when bootstrapping the
19869 # libtool distribution, otherwise you forgot to ship ltmain.sh
19870 # with your package, and you will get complaints that there are
19871 # no rules to generate ltmain.sh.
19872 if test -f "$ltmain"; then
19873   # See if we are running on zsh, and set the options which allow our commands through
19874   # without removal of \ escapes.
19875   if test -n "${ZSH_VERSION+set}" ; then
19876     setopt NO_GLOB_SUBST
19877   fi
19878   # Now quote all the things that may contain metacharacters while being
19879   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19880   # variables and quote the copies for generation of the libtool script.
19881   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19882     SED SHELL STRIP \
19883     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19884     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19885     deplibs_check_method reload_flag reload_cmds need_locks \
19886     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19887     lt_cv_sys_global_symbol_to_c_name_address \
19888     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19889     old_postinstall_cmds old_postuninstall_cmds \
19890     compiler_GCJ \
19891     CC_GCJ \
19892     LD_GCJ \
19893     lt_prog_compiler_wl_GCJ \
19894     lt_prog_compiler_pic_GCJ \
19895     lt_prog_compiler_static_GCJ \
19896     lt_prog_compiler_no_builtin_flag_GCJ \
19897     export_dynamic_flag_spec_GCJ \
19898     thread_safe_flag_spec_GCJ \
19899     whole_archive_flag_spec_GCJ \
19900     enable_shared_with_static_runtimes_GCJ \
19901     old_archive_cmds_GCJ \
19902     old_archive_from_new_cmds_GCJ \
19903     predep_objects_GCJ \
19904     postdep_objects_GCJ \
19905     predeps_GCJ \
19906     postdeps_GCJ \
19907     compiler_lib_search_path_GCJ \
19908     archive_cmds_GCJ \
19909     archive_expsym_cmds_GCJ \
19910     postinstall_cmds_GCJ \
19911     postuninstall_cmds_GCJ \
19912     old_archive_from_expsyms_cmds_GCJ \
19913     allow_undefined_flag_GCJ \
19914     no_undefined_flag_GCJ \
19915     export_symbols_cmds_GCJ \
19916     hardcode_libdir_flag_spec_GCJ \
19917     hardcode_libdir_flag_spec_ld_GCJ \
19918     hardcode_libdir_separator_GCJ \
19919     hardcode_automatic_GCJ \
19920     module_cmds_GCJ \
19921     module_expsym_cmds_GCJ \
19922     lt_cv_prog_compiler_c_o_GCJ \
19923     exclude_expsyms_GCJ \
19924     include_expsyms_GCJ; do
19925
19926     case $var in
19927     old_archive_cmds_GCJ | \
19928     old_archive_from_new_cmds_GCJ | \
19929     archive_cmds_GCJ | \
19930     archive_expsym_cmds_GCJ | \
19931     module_cmds_GCJ | \
19932     module_expsym_cmds_GCJ | \
19933     old_archive_from_expsyms_cmds_GCJ | \
19934     export_symbols_cmds_GCJ | \
19935     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19936     postinstall_cmds | postuninstall_cmds | \
19937     old_postinstall_cmds | old_postuninstall_cmds | \
19938     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19939       # Double-quote double-evaled strings.
19940       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19941       ;;
19942     *)
19943       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19944       ;;
19945     esac
19946   done
19947
19948   case $lt_echo in
19949   *'\$0 --fallback-echo"')
19950     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19951     ;;
19952   esac
19953
19954 cfgfile="$ofile"
19955
19956   cat <<__EOF__ >> "$cfgfile"
19957 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19958
19959 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19960
19961 # Shell to use when invoking shell scripts.
19962 SHELL=$lt_SHELL
19963
19964 # Whether or not to build shared libraries.
19965 build_libtool_libs=$enable_shared
19966
19967 # Whether or not to build static libraries.
19968 build_old_libs=$enable_static
19969
19970 # Whether or not to add -lc for building shared libraries.
19971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19972
19973 # Whether or not to disallow shared libs when runtime libs are static
19974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19975
19976 # Whether or not to optimize for fast installation.
19977 fast_install=$enable_fast_install
19978
19979 # The host system.
19980 host_alias=$host_alias
19981 host=$host
19982 host_os=$host_os
19983
19984 # The build system.
19985 build_alias=$build_alias
19986 build=$build
19987 build_os=$build_os
19988
19989 # An echo program that does not interpret backslashes.
19990 echo=$lt_echo
19991
19992 # The archiver.
19993 AR=$lt_AR
19994 AR_FLAGS=$lt_AR_FLAGS
19995
19996 # A C compiler.
19997 LTCC=$lt_LTCC
19998
19999 # LTCC compiler flags.
20000 LTCFLAGS=$lt_LTCFLAGS
20001
20002 # A language-specific compiler.
20003 CC=$lt_compiler_GCJ
20004
20005 # Is the compiler the GNU C compiler?
20006 with_gcc=$GCC_GCJ
20007
20008 # An ERE matcher.
20009 EGREP=$lt_EGREP
20010
20011 # The linker used to build libraries.
20012 LD=$lt_LD_GCJ
20013
20014 # Whether we need hard or soft links.
20015 LN_S=$lt_LN_S
20016
20017 # A BSD-compatible nm program.
20018 NM=$lt_NM
20019
20020 # A symbol stripping program
20021 STRIP=$lt_STRIP
20022
20023 # Used to examine libraries when file_magic_cmd begins "file"
20024 MAGIC_CMD=$MAGIC_CMD
20025
20026 # Used on cygwin: DLL creation program.
20027 DLLTOOL="$DLLTOOL"
20028
20029 # Used on cygwin: object dumper.
20030 OBJDUMP="$OBJDUMP"
20031
20032 # Used on cygwin: assembler.
20033 AS="$AS"
20034
20035 # The name of the directory that contains temporary libtool files.
20036 objdir=$objdir
20037
20038 # How to create reloadable object files.
20039 reload_flag=$lt_reload_flag
20040 reload_cmds=$lt_reload_cmds
20041
20042 # How to pass a linker flag through the compiler.
20043 wl=$lt_lt_prog_compiler_wl_GCJ
20044
20045 # Object file suffix (normally "o").
20046 objext="$ac_objext"
20047
20048 # Old archive suffix (normally "a").
20049 libext="$libext"
20050
20051 # Shared library suffix (normally ".so").
20052 shrext_cmds='$shrext_cmds'
20053
20054 # Executable file suffix (normally "").
20055 exeext="$exeext"
20056
20057 # Additional compiler flags for building library objects.
20058 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20059 pic_mode=$pic_mode
20060
20061 # What is the maximum length of a command?
20062 max_cmd_len=$lt_cv_sys_max_cmd_len
20063
20064 # Does compiler simultaneously support -c and -o options?
20065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20066
20067 # Must we lock files when doing compilation?
20068 need_locks=$lt_need_locks
20069
20070 # Do we need the lib prefix for modules?
20071 need_lib_prefix=$need_lib_prefix
20072
20073 # Do we need a version for libraries?
20074 need_version=$need_version
20075
20076 # Whether dlopen is supported.
20077 dlopen_support=$enable_dlopen
20078
20079 # Whether dlopen of programs is supported.
20080 dlopen_self=$enable_dlopen_self
20081
20082 # Whether dlopen of statically linked programs is supported.
20083 dlopen_self_static=$enable_dlopen_self_static
20084
20085 # Compiler flag to prevent dynamic linking.
20086 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20087
20088 # Compiler flag to turn off builtin functions.
20089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20090
20091 # Compiler flag to allow reflexive dlopens.
20092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20093
20094 # Compiler flag to generate shared objects directly from archives.
20095 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20096
20097 # Compiler flag to generate thread-safe objects.
20098 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20099
20100 # Library versioning type.
20101 version_type=$version_type
20102
20103 # Format of library name prefix.
20104 libname_spec=$lt_libname_spec
20105
20106 # List of archive names.  First name is the real one, the rest are links.
20107 # The last name is the one that the linker finds with -lNAME.
20108 library_names_spec=$lt_library_names_spec
20109
20110 # The coded name of the library, if different from the real name.
20111 soname_spec=$lt_soname_spec
20112
20113 # Commands used to build and install an old-style archive.
20114 RANLIB=$lt_RANLIB
20115 old_archive_cmds=$lt_old_archive_cmds_GCJ
20116 old_postinstall_cmds=$lt_old_postinstall_cmds
20117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20118
20119 # Create an old-style archive from a shared archive.
20120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20121
20122 # Create a temporary old-style archive to link instead of a shared archive.
20123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20124
20125 # Commands used to build and install a shared archive.
20126 archive_cmds=$lt_archive_cmds_GCJ
20127 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20128 postinstall_cmds=$lt_postinstall_cmds
20129 postuninstall_cmds=$lt_postuninstall_cmds
20130
20131 # Commands used to build a loadable module (assumed same as above if empty)
20132 module_cmds=$lt_module_cmds_GCJ
20133 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20134
20135 # Commands to strip libraries.
20136 old_striplib=$lt_old_striplib
20137 striplib=$lt_striplib
20138
20139 # Dependencies to place before the objects being linked to create a
20140 # shared library.
20141 predep_objects=$lt_predep_objects_GCJ
20142
20143 # Dependencies to place after the objects being linked to create a
20144 # shared library.
20145 postdep_objects=$lt_postdep_objects_GCJ
20146
20147 # Dependencies to place before the objects being linked to create a
20148 # shared library.
20149 predeps=$lt_predeps_GCJ
20150
20151 # Dependencies to place after the objects being linked to create a
20152 # shared library.
20153 postdeps=$lt_postdeps_GCJ
20154
20155 # The library search path used internally by the compiler when linking
20156 # a shared library.
20157 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20158
20159 # Method to check whether dependent libraries are shared objects.
20160 deplibs_check_method=$lt_deplibs_check_method
20161
20162 # Command to use when deplibs_check_method == file_magic.
20163 file_magic_cmd=$lt_file_magic_cmd
20164
20165 # Flag that allows shared libraries with undefined symbols to be built.
20166 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20167
20168 # Flag that forces no undefined symbols.
20169 no_undefined_flag=$lt_no_undefined_flag_GCJ
20170
20171 # Commands used to finish a libtool library installation in a directory.
20172 finish_cmds=$lt_finish_cmds
20173
20174 # Same as above, but a single script fragment to be evaled but not shown.
20175 finish_eval=$lt_finish_eval
20176
20177 # Take the output of nm and produce a listing of raw symbols and C names.
20178 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20179
20180 # Transform the output of nm in a proper C declaration
20181 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20182
20183 # Transform the output of nm in a C name address pair
20184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20185
20186 # This is the shared library runtime path variable.
20187 runpath_var=$runpath_var
20188
20189 # This is the shared library path variable.
20190 shlibpath_var=$shlibpath_var
20191
20192 # Is shlibpath searched before the hard-coded library search path?
20193 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20194
20195 # How to hardcode a shared library path into an executable.
20196 hardcode_action=$hardcode_action_GCJ
20197
20198 # Whether we should hardcode library paths into libraries.
20199 hardcode_into_libs=$hardcode_into_libs
20200
20201 # Flag to hardcode \$libdir into a binary during linking.
20202 # This must work even if \$libdir does not exist.
20203 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20204
20205 # If ld is used when linking, flag to hardcode \$libdir into
20206 # a binary during linking. This must work even if \$libdir does
20207 # not exist.
20208 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20209
20210 # Whether we need a single -rpath flag with a separated argument.
20211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20212
20213 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20214 # resulting binary.
20215 hardcode_direct=$hardcode_direct_GCJ
20216
20217 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20218 # resulting binary.
20219 hardcode_minus_L=$hardcode_minus_L_GCJ
20220
20221 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20222 # the resulting binary.
20223 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20224
20225 # Set to yes if building a shared library automatically hardcodes DIR into the library
20226 # and all subsequent libraries and executables linked against it.
20227 hardcode_automatic=$hardcode_automatic_GCJ
20228
20229 # Variables whose values should be saved in libtool wrapper scripts and
20230 # restored at relink time.
20231 variables_saved_for_relink="$variables_saved_for_relink"
20232
20233 # Whether libtool must link a program against all its dependency libraries.
20234 link_all_deplibs=$link_all_deplibs_GCJ
20235
20236 # Compile-time system search path for libraries
20237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20238
20239 # Run-time system search path for libraries
20240 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20241
20242 # Fix the shell variable \$srcfile for the compiler.
20243 fix_srcfile_path="$fix_srcfile_path_GCJ"
20244
20245 # Set to yes if exported symbols are required.
20246 always_export_symbols=$always_export_symbols_GCJ
20247
20248 # The commands to list exported symbols.
20249 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20250
20251 # The commands to extract the exported symbol list from a shared archive.
20252 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20253
20254 # Symbols that should not be listed in the preloaded symbols.
20255 exclude_expsyms=$lt_exclude_expsyms_GCJ
20256
20257 # Symbols that must always be exported.
20258 include_expsyms=$lt_include_expsyms_GCJ
20259
20260 # ### END LIBTOOL TAG CONFIG: $tagname
20261
20262 __EOF__
20263
20264
20265 else
20266   # If there is no Makefile yet, we rely on a make rule to execute
20267   # `config.status --recheck' to rerun these tests and create the
20268   # libtool script then.
20269   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20270   if test -f "$ltmain_in"; then
20271     test -f Makefile && make "$ltmain"
20272   fi
20273 fi
20274
20275
20276 ac_ext=c
20277 ac_cpp='$CPP $CPPFLAGS'
20278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20281
20282 CC="$lt_save_CC"
20283
20284         else
20285           tagname=""
20286         fi
20287         ;;
20288
20289       RC)
20290
20291
20292 # Source file extension for RC test sources.
20293 ac_ext=rc
20294
20295 # Object file extension for compiled RC test sources.
20296 objext=o
20297 objext_RC=$objext
20298
20299 # Code to be used in simple compile tests
20300 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20301
20302 # Code to be used in simple link tests
20303 lt_simple_link_test_code="$lt_simple_compile_test_code"
20304
20305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20306
20307 # If no C compiler was specified, use CC.
20308 LTCC=${LTCC-"$CC"}
20309
20310 # If no C compiler flags were specified, use CFLAGS.
20311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20312
20313 # Allow CC to be a program name with arguments.
20314 compiler=$CC
20315
20316
20317 # save warnings/boilerplate of simple test code
20318 ac_outfile=conftest.$ac_objext
20319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20321 _lt_compiler_boilerplate=`cat conftest.err`
20322 $rm conftest*
20323
20324 ac_outfile=conftest.$ac_objext
20325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20327 _lt_linker_boilerplate=`cat conftest.err`
20328 $rm conftest*
20329
20330
20331 # Allow CC to be a program name with arguments.
20332 lt_save_CC="$CC"
20333 CC=${RC-"windres"}
20334 compiler=$CC
20335 compiler_RC=$CC
20336 for cc_temp in $compiler""; do
20337   case $cc_temp in
20338     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20339     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20340     \-*) ;;
20341     *) break;;
20342   esac
20343 done
20344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20345
20346 lt_cv_prog_compiler_c_o_RC=yes
20347
20348 # The else clause should only fire when bootstrapping the
20349 # libtool distribution, otherwise you forgot to ship ltmain.sh
20350 # with your package, and you will get complaints that there are
20351 # no rules to generate ltmain.sh.
20352 if test -f "$ltmain"; then
20353   # See if we are running on zsh, and set the options which allow our commands through
20354   # without removal of \ escapes.
20355   if test -n "${ZSH_VERSION+set}" ; then
20356     setopt NO_GLOB_SUBST
20357   fi
20358   # Now quote all the things that may contain metacharacters while being
20359   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20360   # variables and quote the copies for generation of the libtool script.
20361   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20362     SED SHELL STRIP \
20363     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20364     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20365     deplibs_check_method reload_flag reload_cmds need_locks \
20366     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20367     lt_cv_sys_global_symbol_to_c_name_address \
20368     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20369     old_postinstall_cmds old_postuninstall_cmds \
20370     compiler_RC \
20371     CC_RC \
20372     LD_RC \
20373     lt_prog_compiler_wl_RC \
20374     lt_prog_compiler_pic_RC \
20375     lt_prog_compiler_static_RC \
20376     lt_prog_compiler_no_builtin_flag_RC \
20377     export_dynamic_flag_spec_RC \
20378     thread_safe_flag_spec_RC \
20379     whole_archive_flag_spec_RC \
20380     enable_shared_with_static_runtimes_RC \
20381     old_archive_cmds_RC \
20382     old_archive_from_new_cmds_RC \
20383     predep_objects_RC \
20384     postdep_objects_RC \
20385     predeps_RC \
20386     postdeps_RC \
20387     compiler_lib_search_path_RC \
20388     archive_cmds_RC \
20389     archive_expsym_cmds_RC \
20390     postinstall_cmds_RC \
20391     postuninstall_cmds_RC \
20392     old_archive_from_expsyms_cmds_RC \
20393     allow_undefined_flag_RC \
20394     no_undefined_flag_RC \
20395     export_symbols_cmds_RC \
20396     hardcode_libdir_flag_spec_RC \
20397     hardcode_libdir_flag_spec_ld_RC \
20398     hardcode_libdir_separator_RC \
20399     hardcode_automatic_RC \
20400     module_cmds_RC \
20401     module_expsym_cmds_RC \
20402     lt_cv_prog_compiler_c_o_RC \
20403     exclude_expsyms_RC \
20404     include_expsyms_RC; do
20405
20406     case $var in
20407     old_archive_cmds_RC | \
20408     old_archive_from_new_cmds_RC | \
20409     archive_cmds_RC | \
20410     archive_expsym_cmds_RC | \
20411     module_cmds_RC | \
20412     module_expsym_cmds_RC | \
20413     old_archive_from_expsyms_cmds_RC | \
20414     export_symbols_cmds_RC | \
20415     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20416     postinstall_cmds | postuninstall_cmds | \
20417     old_postinstall_cmds | old_postuninstall_cmds | \
20418     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20419       # Double-quote double-evaled strings.
20420       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20421       ;;
20422     *)
20423       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20424       ;;
20425     esac
20426   done
20427
20428   case $lt_echo in
20429   *'\$0 --fallback-echo"')
20430     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20431     ;;
20432   esac
20433
20434 cfgfile="$ofile"
20435
20436   cat <<__EOF__ >> "$cfgfile"
20437 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20438
20439 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20440
20441 # Shell to use when invoking shell scripts.
20442 SHELL=$lt_SHELL
20443
20444 # Whether or not to build shared libraries.
20445 build_libtool_libs=$enable_shared
20446
20447 # Whether or not to build static libraries.
20448 build_old_libs=$enable_static
20449
20450 # Whether or not to add -lc for building shared libraries.
20451 build_libtool_need_lc=$archive_cmds_need_lc_RC
20452
20453 # Whether or not to disallow shared libs when runtime libs are static
20454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20455
20456 # Whether or not to optimize for fast installation.
20457 fast_install=$enable_fast_install
20458
20459 # The host system.
20460 host_alias=$host_alias
20461 host=$host
20462 host_os=$host_os
20463
20464 # The build system.
20465 build_alias=$build_alias
20466 build=$build
20467 build_os=$build_os
20468
20469 # An echo program that does not interpret backslashes.
20470 echo=$lt_echo
20471
20472 # The archiver.
20473 AR=$lt_AR
20474 AR_FLAGS=$lt_AR_FLAGS
20475
20476 # A C compiler.
20477 LTCC=$lt_LTCC
20478
20479 # LTCC compiler flags.
20480 LTCFLAGS=$lt_LTCFLAGS
20481
20482 # A language-specific compiler.
20483 CC=$lt_compiler_RC
20484
20485 # Is the compiler the GNU C compiler?
20486 with_gcc=$GCC_RC
20487
20488 # An ERE matcher.
20489 EGREP=$lt_EGREP
20490
20491 # The linker used to build libraries.
20492 LD=$lt_LD_RC
20493
20494 # Whether we need hard or soft links.
20495 LN_S=$lt_LN_S
20496
20497 # A BSD-compatible nm program.
20498 NM=$lt_NM
20499
20500 # A symbol stripping program
20501 STRIP=$lt_STRIP
20502
20503 # Used to examine libraries when file_magic_cmd begins "file"
20504 MAGIC_CMD=$MAGIC_CMD
20505
20506 # Used on cygwin: DLL creation program.
20507 DLLTOOL="$DLLTOOL"
20508
20509 # Used on cygwin: object dumper.
20510 OBJDUMP="$OBJDUMP"
20511
20512 # Used on cygwin: assembler.
20513 AS="$AS"
20514
20515 # The name of the directory that contains temporary libtool files.
20516 objdir=$objdir
20517
20518 # How to create reloadable object files.
20519 reload_flag=$lt_reload_flag
20520 reload_cmds=$lt_reload_cmds
20521
20522 # How to pass a linker flag through the compiler.
20523 wl=$lt_lt_prog_compiler_wl_RC
20524
20525 # Object file suffix (normally "o").
20526 objext="$ac_objext"
20527
20528 # Old archive suffix (normally "a").
20529 libext="$libext"
20530
20531 # Shared library suffix (normally ".so").
20532 shrext_cmds='$shrext_cmds'
20533
20534 # Executable file suffix (normally "").
20535 exeext="$exeext"
20536
20537 # Additional compiler flags for building library objects.
20538 pic_flag=$lt_lt_prog_compiler_pic_RC
20539 pic_mode=$pic_mode
20540
20541 # What is the maximum length of a command?
20542 max_cmd_len=$lt_cv_sys_max_cmd_len
20543
20544 # Does compiler simultaneously support -c and -o options?
20545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20546
20547 # Must we lock files when doing compilation?
20548 need_locks=$lt_need_locks
20549
20550 # Do we need the lib prefix for modules?
20551 need_lib_prefix=$need_lib_prefix
20552
20553 # Do we need a version for libraries?
20554 need_version=$need_version
20555
20556 # Whether dlopen is supported.
20557 dlopen_support=$enable_dlopen
20558
20559 # Whether dlopen of programs is supported.
20560 dlopen_self=$enable_dlopen_self
20561
20562 # Whether dlopen of statically linked programs is supported.
20563 dlopen_self_static=$enable_dlopen_self_static
20564
20565 # Compiler flag to prevent dynamic linking.
20566 link_static_flag=$lt_lt_prog_compiler_static_RC
20567
20568 # Compiler flag to turn off builtin functions.
20569 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20570
20571 # Compiler flag to allow reflexive dlopens.
20572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20573
20574 # Compiler flag to generate shared objects directly from archives.
20575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20576
20577 # Compiler flag to generate thread-safe objects.
20578 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20579
20580 # Library versioning type.
20581 version_type=$version_type
20582
20583 # Format of library name prefix.
20584 libname_spec=$lt_libname_spec
20585
20586 # List of archive names.  First name is the real one, the rest are links.
20587 # The last name is the one that the linker finds with -lNAME.
20588 library_names_spec=$lt_library_names_spec
20589
20590 # The coded name of the library, if different from the real name.
20591 soname_spec=$lt_soname_spec
20592
20593 # Commands used to build and install an old-style archive.
20594 RANLIB=$lt_RANLIB
20595 old_archive_cmds=$lt_old_archive_cmds_RC
20596 old_postinstall_cmds=$lt_old_postinstall_cmds
20597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20598
20599 # Create an old-style archive from a shared archive.
20600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20601
20602 # Create a temporary old-style archive to link instead of a shared archive.
20603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20604
20605 # Commands used to build and install a shared archive.
20606 archive_cmds=$lt_archive_cmds_RC
20607 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20608 postinstall_cmds=$lt_postinstall_cmds
20609 postuninstall_cmds=$lt_postuninstall_cmds
20610
20611 # Commands used to build a loadable module (assumed same as above if empty)
20612 module_cmds=$lt_module_cmds_RC
20613 module_expsym_cmds=$lt_module_expsym_cmds_RC
20614
20615 # Commands to strip libraries.
20616 old_striplib=$lt_old_striplib
20617 striplib=$lt_striplib
20618
20619 # Dependencies to place before the objects being linked to create a
20620 # shared library.
20621 predep_objects=$lt_predep_objects_RC
20622
20623 # Dependencies to place after the objects being linked to create a
20624 # shared library.
20625 postdep_objects=$lt_postdep_objects_RC
20626
20627 # Dependencies to place before the objects being linked to create a
20628 # shared library.
20629 predeps=$lt_predeps_RC
20630
20631 # Dependencies to place after the objects being linked to create a
20632 # shared library.
20633 postdeps=$lt_postdeps_RC
20634
20635 # The library search path used internally by the compiler when linking
20636 # a shared library.
20637 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20638
20639 # Method to check whether dependent libraries are shared objects.
20640 deplibs_check_method=$lt_deplibs_check_method
20641
20642 # Command to use when deplibs_check_method == file_magic.
20643 file_magic_cmd=$lt_file_magic_cmd
20644
20645 # Flag that allows shared libraries with undefined symbols to be built.
20646 allow_undefined_flag=$lt_allow_undefined_flag_RC
20647
20648 # Flag that forces no undefined symbols.
20649 no_undefined_flag=$lt_no_undefined_flag_RC
20650
20651 # Commands used to finish a libtool library installation in a directory.
20652 finish_cmds=$lt_finish_cmds
20653
20654 # Same as above, but a single script fragment to be evaled but not shown.
20655 finish_eval=$lt_finish_eval
20656
20657 # Take the output of nm and produce a listing of raw symbols and C names.
20658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20659
20660 # Transform the output of nm in a proper C declaration
20661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20662
20663 # Transform the output of nm in a C name address pair
20664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20665
20666 # This is the shared library runtime path variable.
20667 runpath_var=$runpath_var
20668
20669 # This is the shared library path variable.
20670 shlibpath_var=$shlibpath_var
20671
20672 # Is shlibpath searched before the hard-coded library search path?
20673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20674
20675 # How to hardcode a shared library path into an executable.
20676 hardcode_action=$hardcode_action_RC
20677
20678 # Whether we should hardcode library paths into libraries.
20679 hardcode_into_libs=$hardcode_into_libs
20680
20681 # Flag to hardcode \$libdir into a binary during linking.
20682 # This must work even if \$libdir does not exist.
20683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20684
20685 # If ld is used when linking, flag to hardcode \$libdir into
20686 # a binary during linking. This must work even if \$libdir does
20687 # not exist.
20688 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20689
20690 # Whether we need a single -rpath flag with a separated argument.
20691 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20692
20693 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20694 # resulting binary.
20695 hardcode_direct=$hardcode_direct_RC
20696
20697 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20698 # resulting binary.
20699 hardcode_minus_L=$hardcode_minus_L_RC
20700
20701 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20702 # the resulting binary.
20703 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20704
20705 # Set to yes if building a shared library automatically hardcodes DIR into the library
20706 # and all subsequent libraries and executables linked against it.
20707 hardcode_automatic=$hardcode_automatic_RC
20708
20709 # Variables whose values should be saved in libtool wrapper scripts and
20710 # restored at relink time.
20711 variables_saved_for_relink="$variables_saved_for_relink"
20712
20713 # Whether libtool must link a program against all its dependency libraries.
20714 link_all_deplibs=$link_all_deplibs_RC
20715
20716 # Compile-time system search path for libraries
20717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20718
20719 # Run-time system search path for libraries
20720 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20721
20722 # Fix the shell variable \$srcfile for the compiler.
20723 fix_srcfile_path="$fix_srcfile_path_RC"
20724
20725 # Set to yes if exported symbols are required.
20726 always_export_symbols=$always_export_symbols_RC
20727
20728 # The commands to list exported symbols.
20729 export_symbols_cmds=$lt_export_symbols_cmds_RC
20730
20731 # The commands to extract the exported symbol list from a shared archive.
20732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20733
20734 # Symbols that should not be listed in the preloaded symbols.
20735 exclude_expsyms=$lt_exclude_expsyms_RC
20736
20737 # Symbols that must always be exported.
20738 include_expsyms=$lt_include_expsyms_RC
20739
20740 # ### END LIBTOOL TAG CONFIG: $tagname
20741
20742 __EOF__
20743
20744
20745 else
20746   # If there is no Makefile yet, we rely on a make rule to execute
20747   # `config.status --recheck' to rerun these tests and create the
20748   # libtool script then.
20749   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20750   if test -f "$ltmain_in"; then
20751     test -f Makefile && make "$ltmain"
20752   fi
20753 fi
20754
20755
20756 ac_ext=c
20757 ac_cpp='$CPP $CPPFLAGS'
20758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20761
20762 CC="$lt_save_CC"
20763
20764         ;;
20765
20766       *)
20767         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20768 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20769    { (exit 1); exit 1; }; }
20770         ;;
20771       esac
20772
20773       # Append the new tag name to the list of available tags.
20774       if test -n "$tagname" ; then
20775       available_tags="$available_tags $tagname"
20776     fi
20777     fi
20778   done
20779   IFS="$lt_save_ifs"
20780
20781   # Now substitute the updated list of available tags.
20782   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20783     mv "${ofile}T" "$ofile"
20784     chmod +x "$ofile"
20785   else
20786     rm -f "${ofile}T"
20787     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20788 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20789    { (exit 1); exit 1; }; }
20790   fi
20791 fi
20792
20793
20794
20795 # This can be used to rebuild libtool when needed
20796 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20797
20798 # Always use our own libtool.
20799 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20800
20801 # Prevent multiple expansion
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822 if test "x$CC" != xcc; then
20823   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20824 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20825 else
20826   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20827 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20828 fi
20829 set dummy $CC; ac_cc=`echo $2 |
20830                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20831 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834   cat >conftest.$ac_ext <<_ACEOF
20835 /* confdefs.h.  */
20836 _ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h.  */
20840
20841 int
20842 main ()
20843 {
20844
20845   ;
20846   return 0;
20847 }
20848 _ACEOF
20849 # Make sure it works both with $CC and with simple cc.
20850 # We do the test twice because some compilers refuse to overwrite an
20851 # existing .o file with -o, though they will create one.
20852 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20853 rm -f conftest2.*
20854 if { (case "(($ac_try" in
20855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856   *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859   (eval "$ac_try") 2>&5
20860   ac_status=$?
20861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); } &&
20863    test -f conftest2.$ac_objext && { (case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_try") 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); };
20872 then
20873   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20874   if test "x$CC" != xcc; then
20875     # Test first that cc exists at all.
20876     if { ac_try='cc -c conftest.$ac_ext >&5'
20877   { (case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_try") 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; }; then
20886       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20887       rm -f conftest2.*
20888       if { (case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893   (eval "$ac_try") 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          test -f conftest2.$ac_objext && { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); };
20906       then
20907         # cc works too.
20908         :
20909       else
20910         # cc exists but doesn't like -o.
20911         eval ac_cv_prog_cc_${ac_cc}_c_o=no
20912       fi
20913     fi
20914   fi
20915 else
20916   eval ac_cv_prog_cc_${ac_cc}_c_o=no
20917 fi
20918 rm -f core conftest*
20919
20920 fi
20921 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20922   { echo "$as_me:$LINENO: result: yes" >&5
20923 echo "${ECHO_T}yes" >&6; }
20924 else
20925   { echo "$as_me:$LINENO: result: no" >&5
20926 echo "${ECHO_T}no" >&6; }
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define NO_MINUS_C_MINUS_O 1
20930 _ACEOF
20931
20932 fi
20933
20934 # FIXME: we rely on the cache variable name because
20935 # there is no other way.
20936 set dummy $CC
20937 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20938 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20939    # Losing compiler, so override with the script.
20940    # FIXME: It is wrong to rewrite CC.
20941    # But if we don't then we get into trouble of one sort or another.
20942    # A longer-term fix would be to have automake use am__CC in this case,
20943    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20944    CC="$am_aux_dir/compile $CC"
20945 fi
20946
20947
20948
20949 if test "x$cross_compiling" = "xno"; then
20950         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20951 else
20952         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20953 fi
20954
20955
20956
20957 if test -n "$ac_tool_prefix"; then
20958   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20959 set dummy ${ac_tool_prefix}ar; ac_word=$2
20960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20962 if test "${ac_cv_prog_AR+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   if test -n "$AR"; then
20966   ac_cv_prog_AR="$AR" # Let the user override the test.
20967 else
20968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969 for as_dir in $PATH
20970 do
20971   IFS=$as_save_IFS
20972   test -z "$as_dir" && as_dir=.
20973   for ac_exec_ext in '' $ac_executable_extensions; do
20974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20975     ac_cv_prog_AR="${ac_tool_prefix}ar"
20976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20977     break 2
20978   fi
20979 done
20980 done
20981 IFS=$as_save_IFS
20982
20983 fi
20984 fi
20985 AR=$ac_cv_prog_AR
20986 if test -n "$AR"; then
20987   { echo "$as_me:$LINENO: result: $AR" >&5
20988 echo "${ECHO_T}$AR" >&6; }
20989 else
20990   { echo "$as_me:$LINENO: result: no" >&5
20991 echo "${ECHO_T}no" >&6; }
20992 fi
20993
20994
20995 fi
20996 if test -z "$ac_cv_prog_AR"; then
20997   ac_ct_AR=$AR
20998   # Extract the first word of "ar", so it can be a program name with args.
20999 set dummy ar; ac_word=$2
21000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21002 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005   if test -n "$ac_ct_AR"; then
21006   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21007 else
21008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21009 for as_dir in $PATH
21010 do
21011   IFS=$as_save_IFS
21012   test -z "$as_dir" && as_dir=.
21013   for ac_exec_ext in '' $ac_executable_extensions; do
21014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21015     ac_cv_prog_ac_ct_AR="ar"
21016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21017     break 2
21018   fi
21019 done
21020 done
21021 IFS=$as_save_IFS
21022
21023 fi
21024 fi
21025 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21026 if test -n "$ac_ct_AR"; then
21027   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21028 echo "${ECHO_T}$ac_ct_AR" >&6; }
21029 else
21030   { echo "$as_me:$LINENO: result: no" >&5
21031 echo "${ECHO_T}no" >&6; }
21032 fi
21033
21034   if test "x$ac_ct_AR" = x; then
21035     AR=""
21036   else
21037     case $cross_compiling:$ac_tool_warned in
21038 yes:)
21039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21040 whose name does not start with the host triplet.  If you think this
21041 configuration is useful to you, please write to autoconf@gnu.org." >&5
21042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21043 whose name does not start with the host triplet.  If you think this
21044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21045 ac_tool_warned=yes ;;
21046 esac
21047     AR=$ac_ct_AR
21048   fi
21049 else
21050   AR="$ac_cv_prog_AR"
21051 fi
21052
21053 if test -n "$ac_tool_prefix"; then
21054   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21055 set dummy ${ac_tool_prefix}ld; ac_word=$2
21056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21058 if test "${ac_cv_prog_LD+set}" = set; then
21059   echo $ECHO_N "(cached) $ECHO_C" >&6
21060 else
21061   if test -n "$LD"; then
21062   ac_cv_prog_LD="$LD" # Let the user override the test.
21063 else
21064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21065 for as_dir in $PATH
21066 do
21067   IFS=$as_save_IFS
21068   test -z "$as_dir" && as_dir=.
21069   for ac_exec_ext in '' $ac_executable_extensions; do
21070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21071     ac_cv_prog_LD="${ac_tool_prefix}ld"
21072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21073     break 2
21074   fi
21075 done
21076 done
21077 IFS=$as_save_IFS
21078
21079 fi
21080 fi
21081 LD=$ac_cv_prog_LD
21082 if test -n "$LD"; then
21083   { echo "$as_me:$LINENO: result: $LD" >&5
21084 echo "${ECHO_T}$LD" >&6; }
21085 else
21086   { echo "$as_me:$LINENO: result: no" >&5
21087 echo "${ECHO_T}no" >&6; }
21088 fi
21089
21090
21091 fi
21092 if test -z "$ac_cv_prog_LD"; then
21093   ac_ct_LD=$LD
21094   # Extract the first word of "ld", so it can be a program name with args.
21095 set dummy ld; ac_word=$2
21096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21098 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21099   echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101   if test -n "$ac_ct_LD"; then
21102   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21103 else
21104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21105 for as_dir in $PATH
21106 do
21107   IFS=$as_save_IFS
21108   test -z "$as_dir" && as_dir=.
21109   for ac_exec_ext in '' $ac_executable_extensions; do
21110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21111     ac_cv_prog_ac_ct_LD="ld"
21112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21113     break 2
21114   fi
21115 done
21116 done
21117 IFS=$as_save_IFS
21118
21119 fi
21120 fi
21121 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21122 if test -n "$ac_ct_LD"; then
21123   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21124 echo "${ECHO_T}$ac_ct_LD" >&6; }
21125 else
21126   { echo "$as_me:$LINENO: result: no" >&5
21127 echo "${ECHO_T}no" >&6; }
21128 fi
21129
21130   if test "x$ac_ct_LD" = x; then
21131     LD=""
21132   else
21133     case $cross_compiling:$ac_tool_warned in
21134 yes:)
21135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21136 whose name does not start with the host triplet.  If you think this
21137 configuration is useful to you, please write to autoconf@gnu.org." >&5
21138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21139 whose name does not start with the host triplet.  If you think this
21140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21141 ac_tool_warned=yes ;;
21142 esac
21143     LD=$ac_ct_LD
21144   fi
21145 else
21146   LD="$ac_cv_prog_LD"
21147 fi
21148
21149
21150 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21152 if test "${ac_cv_header_stdc+set}" = set; then
21153   echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 #include <stdlib.h>
21162 #include <stdarg.h>
21163 #include <string.h>
21164 #include <float.h>
21165
21166 int
21167 main ()
21168 {
21169
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_compile") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest.$ac_objext; then
21191   ac_cv_header_stdc=yes
21192 else
21193   echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196         ac_cv_header_stdc=no
21197 fi
21198
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200
21201 if test $ac_cv_header_stdc = yes; then
21202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 #include <string.h>
21210
21211 _ACEOF
21212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21213   $EGREP "memchr" >/dev/null 2>&1; then
21214   :
21215 else
21216   ac_cv_header_stdc=no
21217 fi
21218 rm -f conftest*
21219
21220 fi
21221
21222 if test $ac_cv_header_stdc = yes; then
21223   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21224   cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h.  */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h.  */
21230 #include <stdlib.h>
21231
21232 _ACEOF
21233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21234   $EGREP "free" >/dev/null 2>&1; then
21235   :
21236 else
21237   ac_cv_header_stdc=no
21238 fi
21239 rm -f conftest*
21240
21241 fi
21242
21243 if test $ac_cv_header_stdc = yes; then
21244   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21245   if test "$cross_compiling" = yes; then
21246   :
21247 else
21248   cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 #include <ctype.h>
21255 #include <stdlib.h>
21256 #if ((' ' & 0x0FF) == 0x020)
21257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21259 #else
21260 # define ISLOWER(c) \
21261                    (('a' <= (c) && (c) <= 'i') \
21262                      || ('j' <= (c) && (c) <= 'r') \
21263                      || ('s' <= (c) && (c) <= 'z'))
21264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21265 #endif
21266
21267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21268 int
21269 main ()
21270 {
21271   int i;
21272   for (i = 0; i < 256; i++)
21273     if (XOR (islower (i), ISLOWER (i))
21274         || toupper (i) != TOUPPER (i))
21275       return 2;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest$ac_exeext
21280 if { (ac_try="$ac_link"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286   (eval "$ac_link") 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21290   { (case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295   (eval "$ac_try") 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; }; then
21299   :
21300 else
21301   echo "$as_me: program exited with status $ac_status" >&5
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 ( exit $ac_status )
21306 ac_cv_header_stdc=no
21307 fi
21308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21309 fi
21310
21311
21312 fi
21313 fi
21314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21315 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21316 if test $ac_cv_header_stdc = yes; then
21317
21318 cat >>confdefs.h <<\_ACEOF
21319 #define STDC_HEADERS 1
21320 _ACEOF
21321
21322 fi
21323
21324
21325   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21326 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21327   if test "${knfsd_cv_glibc2+set}" = set; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336
21337       #include <features.h>
21338       #if !defined(__GLIBC__)
21339       # error Nope
21340       #endif
21341
21342 _ACEOF
21343 if { (ac_try="$ac_cpp conftest.$ac_ext"
21344 case "(($ac_try" in
21345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346   *) ac_try_echo=$ac_try;;
21347 esac
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } >/dev/null && {
21356          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21357          test ! -s conftest.err
21358        }; then
21359   knfsd_cv_glibc2=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364   knfsd_cv_glibc2=no
21365 fi
21366
21367 rm -f conftest.err conftest.$ac_ext
21368 fi
21369
21370   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21371 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21372   if test $knfsd_cv_glibc2 = yes; then
21373     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21374     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21375   fi
21376
21377
21378   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21379 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21380   if test "${knfsd_cv_bsd_signals+set}" = set; then
21381   echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383   if test "$cross_compiling" = yes; then
21384
21385       case "$host_os" in
21386         *linux*) knfsd_cv_bsd_signals=no;;
21387         *bsd*)   knfsd_cv_bsd_signals=yes;;
21388         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21389 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21390    { (exit 1); exit 1; }; };;
21391       esac
21392
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400
21401         #include <signal.h>
21402         #include <unistd.h>
21403         #include <sys/wait.h>
21404
21405         static int counter = 0;
21406         static RETSIGTYPE handler(int num) { counter++; }
21407
21408         int main()
21409         {
21410                 int     s;
21411                 if ((s = fork()) < 0) return 1;
21412                 if (s != 0) {
21413                         if (wait(&s) < 0) return 1;
21414                         return WIFSIGNALED(s)? 1 : 0;
21415                 }
21416
21417                 signal(SIGHUP, handler);
21418                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21419                 return (counter == 2)? 0 : 1;
21420         }
21421
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430   (eval "$ac_link") 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443   knfsd_cv_bsd_signals=yes
21444 else
21445   echo "$as_me: program exited with status $ac_status" >&5
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449 ( exit $ac_status )
21450 knfsd_cv_bsd_signals=no
21451 fi
21452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21453 fi
21454
21455
21456 fi
21457      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21458 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21459     test $knfsd_cv_bsd_signals = yes &&
21460 cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_BSD_SIGNALS 1
21462 _ACEOF
21463
21464
21465
21466 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21467 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21468 if test "${ac_cv_func_gethostbyname+set}" = set; then
21469   echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21479 #define gethostbyname innocuous_gethostbyname
21480
21481 /* System header to define __stub macros and hopefully few prototypes,
21482     which can conflict with char gethostbyname (); below.
21483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21484     <limits.h> exists even on freestanding compilers.  */
21485
21486 #ifdef __STDC__
21487 # include <limits.h>
21488 #else
21489 # include <assert.h>
21490 #endif
21491
21492 #undef gethostbyname
21493
21494 /* Override any GCC internal prototype to avoid an error.
21495    Use char because int might match the return type of a GCC
21496    builtin and then its argument prototype would still apply.  */
21497 #ifdef __cplusplus
21498 extern "C"
21499 #endif
21500 char gethostbyname ();
21501 /* The GNU C library defines this for functions which it implements
21502     to always fail with ENOSYS.  Some functions are actually named
21503     something starting with __ and the normal name is an alias.  */
21504 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21505 choke me
21506 #endif
21507
21508 int
21509 main ()
21510 {
21511 return gethostbyname ();
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_link") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest$ac_exeext &&
21533        $as_test_x conftest$ac_exeext; then
21534   ac_cv_func_gethostbyname=yes
21535 else
21536   echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539         ac_cv_func_gethostbyname=no
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21543       conftest$ac_exeext conftest.$ac_ext
21544 fi
21545 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21546 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21547 if test $ac_cv_func_gethostbyname = yes; then
21548   :
21549 else
21550   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21551 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21552 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lnsl  $LIBS"
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563
21564 /* Override any GCC internal prototype to avoid an error.
21565    Use char because int might match the return type of a GCC
21566    builtin and then its argument prototype would still apply.  */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char gethostbyname ();
21571 int
21572 main ()
21573 {
21574 return gethostbyname ();
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583   *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586   (eval "$ac_link") 2>conftest.er1
21587   ac_status=$?
21588   grep -v '^ *+' conftest.er1 >conftest.err
21589   rm -f conftest.er1
21590   cat conftest.err >&5
21591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592   (exit $ac_status); } && {
21593          test -z "$ac_c_werror_flag" ||
21594          test ! -s conftest.err
21595        } && test -s conftest$ac_exeext &&
21596        $as_test_x conftest$ac_exeext; then
21597   ac_cv_lib_nsl_gethostbyname=yes
21598 else
21599   echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602         ac_cv_lib_nsl_gethostbyname=no
21603 fi
21604
21605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21606       conftest$ac_exeext conftest.$ac_ext
21607 LIBS=$ac_check_lib_save_LIBS
21608 fi
21609 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21610 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21611 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21612   LIBNSL="-lnsl"
21613 fi
21614
21615 fi
21616
21617
21618
21619 { echo "$as_me:$LINENO: checking for connect" >&5
21620 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21621 if test "${ac_cv_func_connect+set}" = set; then
21622   echo $ECHO_N "(cached) $ECHO_C" >&6
21623 else
21624   cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h.  */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h.  */
21630 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21632 #define connect innocuous_connect
21633
21634 /* System header to define __stub macros and hopefully few prototypes,
21635     which can conflict with char connect (); below.
21636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21637     <limits.h> exists even on freestanding compilers.  */
21638
21639 #ifdef __STDC__
21640 # include <limits.h>
21641 #else
21642 # include <assert.h>
21643 #endif
21644
21645 #undef connect
21646
21647 /* Override any GCC internal prototype to avoid an error.
21648    Use char because int might match the return type of a GCC
21649    builtin and then its argument prototype would still apply.  */
21650 #ifdef __cplusplus
21651 extern "C"
21652 #endif
21653 char connect ();
21654 /* The GNU C library defines this for functions which it implements
21655     to always fail with ENOSYS.  Some functions are actually named
21656     something starting with __ and the normal name is an alias.  */
21657 #if defined __stub_connect || defined __stub___connect
21658 choke me
21659 #endif
21660
21661 int
21662 main ()
21663 {
21664 return connect ();
21665   ;
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest.$ac_objext conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_link") 2>conftest.er1
21677   ac_status=$?
21678   grep -v '^ *+' conftest.er1 >conftest.err
21679   rm -f conftest.er1
21680   cat conftest.err >&5
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); } && {
21683          test -z "$ac_c_werror_flag" ||
21684          test ! -s conftest.err
21685        } && test -s conftest$ac_exeext &&
21686        $as_test_x conftest$ac_exeext; then
21687   ac_cv_func_connect=yes
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692         ac_cv_func_connect=no
21693 fi
21694
21695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21696       conftest$ac_exeext conftest.$ac_ext
21697 fi
21698 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21699 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21700 if test $ac_cv_func_connect = yes; then
21701   :
21702 else
21703   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21704 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21705 if test "${ac_cv_lib_socket_connect+set}" = set; then
21706   echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708   ac_check_lib_save_LIBS=$LIBS
21709 LIBS="-lsocket $LIBNSL $LIBS"
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716
21717 /* Override any GCC internal prototype to avoid an error.
21718    Use char because int might match the return type of a GCC
21719    builtin and then its argument prototype would still apply.  */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char connect ();
21724 int
21725 main ()
21726 {
21727 return connect ();
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739   (eval "$ac_link") 2>conftest.er1
21740   ac_status=$?
21741   grep -v '^ *+' conftest.er1 >conftest.err
21742   rm -f conftest.er1
21743   cat conftest.err >&5
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); } && {
21746          test -z "$ac_c_werror_flag" ||
21747          test ! -s conftest.err
21748        } && test -s conftest$ac_exeext &&
21749        $as_test_x conftest$ac_exeext; then
21750   ac_cv_lib_socket_connect=yes
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755         ac_cv_lib_socket_connect=no
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759       conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21761 fi
21762 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21763 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21764 if test $ac_cv_lib_socket_connect = yes; then
21765   LIBSOCKET="-lsocket"
21766 else
21767   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21768 echo "$as_me: error: Function 'socket' not found." >&2;}
21769    { (exit 1); exit 1; }; }
21770 fi
21771
21772 fi
21773
21774
21775 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21776 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21777 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lcrypt  $LIBS"
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788
21789 /* Override any GCC internal prototype to avoid an error.
21790    Use char because int might match the return type of a GCC
21791    builtin and then its argument prototype would still apply.  */
21792 #ifdef __cplusplus
21793 extern "C"
21794 #endif
21795 char crypt ();
21796 int
21797 main ()
21798 {
21799 return crypt ();
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext conftest$ac_exeext
21805 if { (ac_try="$ac_link"
21806 case "(($ac_try" in
21807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808   *) ac_try_echo=$ac_try;;
21809 esac
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811   (eval "$ac_link") 2>conftest.er1
21812   ac_status=$?
21813   grep -v '^ *+' conftest.er1 >conftest.err
21814   rm -f conftest.er1
21815   cat conftest.err >&5
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); } && {
21818          test -z "$ac_c_werror_flag" ||
21819          test ! -s conftest.err
21820        } && test -s conftest$ac_exeext &&
21821        $as_test_x conftest$ac_exeext; then
21822   ac_cv_lib_crypt_crypt=yes
21823 else
21824   echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827         ac_cv_lib_crypt_crypt=no
21828 fi
21829
21830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21831       conftest$ac_exeext conftest.$ac_ext
21832 LIBS=$ac_check_lib_save_LIBS
21833 fi
21834 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21835 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21836 if test $ac_cv_lib_crypt_crypt = yes; then
21837   LIBCRYPT="-lcrypt"
21838 fi
21839
21840 if test "$enable_nfsv4" = yes; then
21841     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21842 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21843 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21844   echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846   ac_check_lib_save_LIBS=$LIBS
21847 LIBS="-levent  $LIBS"
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854
21855 /* Override any GCC internal prototype to avoid an error.
21856    Use char because int might match the return type of a GCC
21857    builtin and then its argument prototype would still apply.  */
21858 #ifdef __cplusplus
21859 extern "C"
21860 #endif
21861 char event_dispatch ();
21862 int
21863 main ()
21864 {
21865 return event_dispatch ();
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext conftest$ac_exeext
21871 if { (ac_try="$ac_link"
21872 case "(($ac_try" in
21873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874   *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877   (eval "$ac_link") 2>conftest.er1
21878   ac_status=$?
21879   grep -v '^ *+' conftest.er1 >conftest.err
21880   rm -f conftest.er1
21881   cat conftest.err >&5
21882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883   (exit $ac_status); } && {
21884          test -z "$ac_c_werror_flag" ||
21885          test ! -s conftest.err
21886        } && test -s conftest$ac_exeext &&
21887        $as_test_x conftest$ac_exeext; then
21888   ac_cv_lib_event_event_dispatch=yes
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893         ac_cv_lib_event_event_dispatch=no
21894 fi
21895
21896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897       conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21899 fi
21900 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21901 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21902 if test $ac_cv_lib_event_event_dispatch = yes; then
21903   libevent=1
21904 else
21905   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21906 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21907    { (exit 1); exit 1; }; }
21908 fi
21909
21910     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21911 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21912 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   ac_check_lib_save_LIBS=$LIBS
21916 LIBS="-lnfsidmap  $LIBS"
21917 cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923
21924 /* Override any GCC internal prototype to avoid an error.
21925    Use char because int might match the return type of a GCC
21926    builtin and then its argument prototype would still apply.  */
21927 #ifdef __cplusplus
21928 extern "C"
21929 #endif
21930 char nfs4_init_name_mapping ();
21931 int
21932 main ()
21933 {
21934 return nfs4_init_name_mapping ();
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946   (eval "$ac_link") 2>conftest.er1
21947   ac_status=$?
21948   grep -v '^ *+' conftest.er1 >conftest.err
21949   rm -f conftest.er1
21950   cat conftest.err >&5
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); } && {
21953          test -z "$ac_c_werror_flag" ||
21954          test ! -s conftest.err
21955        } && test -s conftest$ac_exeext &&
21956        $as_test_x conftest$ac_exeext; then
21957   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21958 else
21959   echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21966       conftest$ac_exeext conftest.$ac_ext
21967 LIBS=$ac_check_lib_save_LIBS
21968 fi
21969 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21970 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21971 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21972   libnfsidmap=1
21973 else
21974   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21975 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21976    { (exit 1); exit 1; }; }
21977 fi
21978
21979
21980 for ac_header in event.h
21981 do
21982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 fi
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990                { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21992 else
21993   # Is the header compilable?
21994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h.  */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h.  */
22002 $ac_includes_default
22003 #include <$ac_header>
22004 _ACEOF
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012   (eval "$ac_compile") 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } && {
22019          test -z "$ac_c_werror_flag" ||
22020          test ! -s conftest.err
22021        } && test -s conftest.$ac_objext; then
22022   ac_header_compiler=yes
22023 else
22024   echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027         ac_header_compiler=no
22028 fi
22029
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6; }
22033
22034 # Is the header present?
22035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #include <$ac_header>
22044 _ACEOF
22045 if { (ac_try="$ac_cpp conftest.$ac_ext"
22046 case "(($ac_try" in
22047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048   *) ac_try_echo=$ac_try;;
22049 esac
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22052   ac_status=$?
22053   grep -v '^ *+' conftest.er1 >conftest.err
22054   rm -f conftest.er1
22055   cat conftest.err >&5
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); } >/dev/null && {
22058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22059          test ! -s conftest.err
22060        }; then
22061   ac_header_preproc=yes
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066   ac_header_preproc=no
22067 fi
22068
22069 rm -f conftest.err conftest.$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22071 echo "${ECHO_T}$ac_header_preproc" >&6; }
22072
22073 # So?  What about this header?
22074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22075   yes:no: )
22076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22080     ac_header_preproc=yes
22081     ;;
22082   no:yes:* )
22083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22095     ( cat <<\_ASBOX
22096 ## ------------------------------- ##
22097 ## Report this to nfs@lists.sf.net ##
22098 ## ------------------------------- ##
22099 _ASBOX
22100      ) | sed "s/^/$as_me: WARNING:     /" >&2
22101     ;;
22102 esac
22103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22106   echo $ECHO_N "(cached) $ECHO_C" >&6
22107 else
22108   eval "$as_ac_Header=\$ac_header_preproc"
22109 fi
22110 ac_res=`eval echo '${'$as_ac_Header'}'`
22111                { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22113
22114 fi
22115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22116   cat >>confdefs.h <<_ACEOF
22117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22118 _ACEOF
22119
22120 else
22121   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22122 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22123    { (exit 1); exit 1; }; }
22124 fi
22125
22126 done
22127
22128
22129 for ac_header in nfsidmap.h
22130 do
22131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22133   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 fi
22138 ac_res=`eval echo '${'$as_ac_Header'}'`
22139                { echo "$as_me:$LINENO: result: $ac_res" >&5
22140 echo "${ECHO_T}$ac_res" >&6; }
22141 else
22142   # Is the header compilable?
22143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 $ac_includes_default
22152 #include <$ac_header>
22153 _ACEOF
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_compile") 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && {
22168          test -z "$ac_c_werror_flag" ||
22169          test ! -s conftest.err
22170        } && test -s conftest.$ac_objext; then
22171   ac_header_compiler=yes
22172 else
22173   echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176         ac_header_compiler=no
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22181 echo "${ECHO_T}$ac_header_compiler" >&6; }
22182
22183 # Is the header present?
22184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22186 cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h.  */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h.  */
22192 #include <$ac_header>
22193 _ACEOF
22194 if { (ac_try="$ac_cpp conftest.$ac_ext"
22195 case "(($ac_try" in
22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197   *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } >/dev/null && {
22207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22208          test ! -s conftest.err
22209        }; then
22210   ac_header_preproc=yes
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215   ac_header_preproc=no
22216 fi
22217
22218 rm -f conftest.err conftest.$ac_ext
22219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22220 echo "${ECHO_T}$ac_header_preproc" >&6; }
22221
22222 # So?  What about this header?
22223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22224   yes:no: )
22225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22229     ac_header_preproc=yes
22230     ;;
22231   no:yes:* )
22232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22244     ( cat <<\_ASBOX
22245 ## ------------------------------- ##
22246 ## Report this to nfs@lists.sf.net ##
22247 ## ------------------------------- ##
22248 _ASBOX
22249      ) | sed "s/^/$as_me: WARNING:     /" >&2
22250     ;;
22251 esac
22252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   eval "$as_ac_Header=\$ac_header_preproc"
22258 fi
22259 ac_res=`eval echo '${'$as_ac_Header'}'`
22260                { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22262
22263 fi
22264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22265   cat >>confdefs.h <<_ACEOF
22266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22267 _ACEOF
22268
22269 else
22270   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22271 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22272    { (exit 1); exit 1; }; }
22273 fi
22274
22275 done
22276
22277             if test "$enable_gss" = yes; then
22278
22279
22280 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22281         if test -n "$ac_tool_prefix"; then
22282   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22283 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22286 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   case $PKG_CONFIG in
22290   [\\/]* | ?:[\\/]*)
22291   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22292   ;;
22293   *)
22294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22295 for as_dir in $PATH
22296 do
22297   IFS=$as_save_IFS
22298   test -z "$as_dir" && as_dir=.
22299   for ac_exec_ext in '' $ac_executable_extensions; do
22300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22301     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22303     break 2
22304   fi
22305 done
22306 done
22307 IFS=$as_save_IFS
22308
22309   ;;
22310 esac
22311 fi
22312 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22313 if test -n "$PKG_CONFIG"; then
22314   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22315 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22316 else
22317   { echo "$as_me:$LINENO: result: no" >&5
22318 echo "${ECHO_T}no" >&6; }
22319 fi
22320
22321
22322 fi
22323 if test -z "$ac_cv_path_PKG_CONFIG"; then
22324   ac_pt_PKG_CONFIG=$PKG_CONFIG
22325   # Extract the first word of "pkg-config", so it can be a program name with args.
22326 set dummy pkg-config; ac_word=$2
22327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22329 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   case $ac_pt_PKG_CONFIG in
22333   [\\/]* | ?:[\\/]*)
22334   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22335   ;;
22336   *)
22337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22338 for as_dir in $PATH
22339 do
22340   IFS=$as_save_IFS
22341   test -z "$as_dir" && as_dir=.
22342   for ac_exec_ext in '' $ac_executable_extensions; do
22343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22344     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22346     break 2
22347   fi
22348 done
22349 done
22350 IFS=$as_save_IFS
22351
22352   ;;
22353 esac
22354 fi
22355 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22356 if test -n "$ac_pt_PKG_CONFIG"; then
22357   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22358 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22359 else
22360   { echo "$as_me:$LINENO: result: no" >&5
22361 echo "${ECHO_T}no" >&6; }
22362 fi
22363
22364   if test "x$ac_pt_PKG_CONFIG" = x; then
22365     PKG_CONFIG=""
22366   else
22367     case $cross_compiling:$ac_tool_warned in
22368 yes:)
22369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22370 whose name does not start with the host triplet.  If you think this
22371 configuration is useful to you, please write to autoconf@gnu.org." >&5
22372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22373 whose name does not start with the host triplet.  If you think this
22374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22375 ac_tool_warned=yes ;;
22376 esac
22377     PKG_CONFIG=$ac_pt_PKG_CONFIG
22378   fi
22379 else
22380   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22381 fi
22382
22383 fi
22384 if test -n "$PKG_CONFIG"; then
22385         _pkg_min_version=0.9.0
22386         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22387 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22388         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22389                 { echo "$as_me:$LINENO: result: yes" >&5
22390 echo "${ECHO_T}yes" >&6; }
22391         else
22392                 { echo "$as_me:$LINENO: result: no" >&5
22393 echo "${ECHO_T}no" >&6; }
22394                 PKG_CONFIG=""
22395         fi
22396
22397 fi
22398
22399 pkg_failed=no
22400 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22401 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22402
22403 if test -n "$PKG_CONFIG"; then
22404     if test -n "$RPCSECGSS_CFLAGS"; then
22405         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22406     else
22407         if test -n "$PKG_CONFIG" && \
22408     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22409   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }; then
22413   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22414 else
22415   pkg_failed=yes
22416 fi
22417     fi
22418 else
22419         pkg_failed=untried
22420 fi
22421 if test -n "$PKG_CONFIG"; then
22422     if test -n "$RPCSECGSS_LIBS"; then
22423         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22424     else
22425         if test -n "$PKG_CONFIG" && \
22426     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22427   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; then
22431   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22432 else
22433   pkg_failed=yes
22434 fi
22435     fi
22436 else
22437         pkg_failed=untried
22438 fi
22439
22440
22441
22442 if test $pkg_failed = yes; then
22443
22444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22445         _pkg_short_errors_supported=yes
22446 else
22447         _pkg_short_errors_supported=no
22448 fi
22449         if test $_pkg_short_errors_supported = yes; then
22450                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22451         else
22452                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22453         fi
22454         # Put the nasty error message in config.log where it belongs
22455         echo "$RPCSECGSS_PKG_ERRORS" >&5
22456
22457         { echo "$as_me:$LINENO: result: no" >&5
22458 echo "${ECHO_T}no" >&6; }
22459                 { { 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
22460 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;}
22461    { (exit 1); exit 1; }; }
22462
22463
22464 elif test $pkg_failed = untried; then
22465         { { 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
22466 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;}
22467    { (exit 1); exit 1; }; }
22468
22469
22470 else
22471         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22472         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22473         { echo "$as_me:$LINENO: result: yes" >&5
22474 echo "${ECHO_T}yes" >&6; }
22475         :
22476 fi
22477
22478 pkg_failed=no
22479 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22480 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22481
22482 if test -n "$PKG_CONFIG"; then
22483     if test -n "$GSSAPI_CFLAGS"; then
22484         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22485     else
22486         if test -n "$PKG_CONFIG" && \
22487     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22488   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; then
22492   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22493 else
22494   pkg_failed=yes
22495 fi
22496     fi
22497 else
22498         pkg_failed=untried
22499 fi
22500 if test -n "$PKG_CONFIG"; then
22501     if test -n "$GSSAPI_LIBS"; then
22502         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22503     else
22504         if test -n "$PKG_CONFIG" && \
22505     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22506   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; then
22510   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22511 else
22512   pkg_failed=yes
22513 fi
22514     fi
22515 else
22516         pkg_failed=untried
22517 fi
22518
22519
22520
22521 if test $pkg_failed = yes; then
22522
22523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22524         _pkg_short_errors_supported=yes
22525 else
22526         _pkg_short_errors_supported=no
22527 fi
22528         if test $_pkg_short_errors_supported = yes; then
22529                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22530         else
22531                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22532         fi
22533         # Put the nasty error message in config.log where it belongs
22534         echo "$GSSAPI_PKG_ERRORS" >&5
22535
22536         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22537
22538 $GSSAPI_PKG_ERRORS
22539
22540 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22541 installed software in a non-standard prefix.
22542
22543 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22544 and GSSAPI_LIBS to avoid the need to call pkg-config.
22545 See the pkg-config man page for more details.
22546 " >&5
22547 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22548
22549 $GSSAPI_PKG_ERRORS
22550
22551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22552 installed software in a non-standard prefix.
22553
22554 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22555 and GSSAPI_LIBS to avoid the need to call pkg-config.
22556 See the pkg-config man page for more details.
22557 " >&2;}
22558    { (exit 1); exit 1; }; }
22559 elif test $pkg_failed = untried; then
22560         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22561 is in your PATH or set the PKG_CONFIG environment variable to the full
22562 path to pkg-config.
22563
22564 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22565 and GSSAPI_LIBS to avoid the need to call pkg-config.
22566 See the pkg-config man page for more details.
22567
22568 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22569 See \`config.log' for more details." >&5
22570 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22571 is in your PATH or set the PKG_CONFIG environment variable to the full
22572 path to pkg-config.
22573
22574 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22575 and GSSAPI_LIBS to avoid the need to call pkg-config.
22576 See the pkg-config man page for more details.
22577
22578 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22579 See \`config.log' for more details." >&2;}
22580    { (exit 1); exit 1; }; }
22581 else
22582         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22583         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22584         { echo "$as_me:$LINENO: result: yes" >&5
22585 echo "${ECHO_T}yes" >&6; }
22586         :
22587 fi
22588     fi
22589
22590 fi
22591 if test "$knfsd_cv_glibc2" = no; then
22592     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22593 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22594 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   ac_check_lib_save_LIBS=$LIBS
22598 LIBS="-lbsd  $LIBS"
22599 cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605
22606 /* Override any GCC internal prototype to avoid an error.
22607    Use char because int might match the return type of a GCC
22608    builtin and then its argument prototype would still apply.  */
22609 #ifdef __cplusplus
22610 extern "C"
22611 #endif
22612 char daemon ();
22613 int
22614 main ()
22615 {
22616 return daemon ();
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625   *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628   (eval "$ac_link") 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } && {
22635          test -z "$ac_c_werror_flag" ||
22636          test ! -s conftest.err
22637        } && test -s conftest$ac_exeext &&
22638        $as_test_x conftest$ac_exeext; then
22639   ac_cv_lib_bsd_daemon=yes
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644         ac_cv_lib_bsd_daemon=no
22645 fi
22646
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648       conftest$ac_exeext conftest.$ac_ext
22649 LIBS=$ac_check_lib_save_LIBS
22650 fi
22651 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22652 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22653 if test $ac_cv_lib_bsd_daemon = yes; then
22654   LIBBSD="-lbsd"
22655 fi
22656
22657 fi
22658 if test "$use_blkid" = 1; then
22659    { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22660 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
22661 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22662   echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664   ac_check_lib_save_LIBS=$LIBS
22665 LIBS="-lblkid  $LIBS"
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h.  */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h.  */
22672
22673 /* Override any GCC internal prototype to avoid an error.
22674    Use char because int might match the return type of a GCC
22675    builtin and then its argument prototype would still apply.  */
22676 #ifdef __cplusplus
22677 extern "C"
22678 #endif
22679 char blkid_get_cache ();
22680 int
22681 main ()
22682 {
22683 return blkid_get_cache ();
22684   ;
22685   return 0;
22686 }
22687 _ACEOF
22688 rm -f conftest.$ac_objext conftest$ac_exeext
22689 if { (ac_try="$ac_link"
22690 case "(($ac_try" in
22691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692   *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695   (eval "$ac_link") 2>conftest.er1
22696   ac_status=$?
22697   grep -v '^ *+' conftest.er1 >conftest.err
22698   rm -f conftest.er1
22699   cat conftest.err >&5
22700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701   (exit $ac_status); } && {
22702          test -z "$ac_c_werror_flag" ||
22703          test ! -s conftest.err
22704        } && test -s conftest$ac_exeext &&
22705        $as_test_x conftest$ac_exeext; then
22706   ac_cv_lib_blkid_blkid_get_cache=yes
22707 else
22708   echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         ac_cv_lib_blkid_blkid_get_cache=no
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22715       conftest$ac_exeext conftest.$ac_ext
22716 LIBS=$ac_check_lib_save_LIBS
22717 fi
22718 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22719 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22720 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
22721   LIBBLKID="-lblkid"
22722 else
22723   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22724 echo "$as_me: error: libblkid needed" >&2;}
22725    { (exit 1); exit 1; }; }
22726 fi
22727
22728    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22729   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22730 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22731 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22732   echo $ECHO_N "(cached) $ECHO_C" >&6
22733 fi
22734 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22735 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22736 else
22737   # Is the header compilable?
22738 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22739 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 $ac_includes_default
22747 #include <blkid/blkid.h>
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_compile") 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } && {
22763          test -z "$ac_c_werror_flag" ||
22764          test ! -s conftest.err
22765        } && test -s conftest.$ac_objext; then
22766   ac_header_compiler=yes
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771         ac_header_compiler=no
22772 fi
22773
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22776 echo "${ECHO_T}$ac_header_compiler" >&6; }
22777
22778 # Is the header present?
22779 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22780 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787 #include <blkid/blkid.h>
22788 _ACEOF
22789 if { (ac_try="$ac_cpp conftest.$ac_ext"
22790 case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22796   ac_status=$?
22797   grep -v '^ *+' conftest.er1 >conftest.err
22798   rm -f conftest.er1
22799   cat conftest.err >&5
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } >/dev/null && {
22802          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22803          test ! -s conftest.err
22804        }; then
22805   ac_header_preproc=yes
22806 else
22807   echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810   ac_header_preproc=no
22811 fi
22812
22813 rm -f conftest.err conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22815 echo "${ECHO_T}$ac_header_preproc" >&6; }
22816
22817 # So?  What about this header?
22818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22819   yes:no: )
22820     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22821 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22822     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
22823 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
22824     ac_header_preproc=yes
22825     ;;
22826   no:yes:* )
22827     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
22828 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
22829     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
22830 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
22831     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
22832 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
22833     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
22834 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22835     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
22836 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
22837     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
22838 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
22839     ( cat <<\_ASBOX
22840 ## ------------------------------- ##
22841 ## Report this to nfs@lists.sf.net ##
22842 ## ------------------------------- ##
22843 _ASBOX
22844      ) | sed "s/^/$as_me: WARNING:     /" >&2
22845     ;;
22846 esac
22847 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22848 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22849 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   ac_cv_header_blkid_blkid_h=$ac_header_preproc
22853 fi
22854 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22855 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22856
22857 fi
22858 if test $ac_cv_header_blkid_blkid_h = yes; then
22859   :
22860 else
22861   { { echo "$as_me:$LINENO: error: Cannot file libblkid header file blkid/blkid.h" >&5
22862 echo "$as_me: error: Cannot file libblkid header file blkid/blkid.h" >&2;}
22863    { (exit 1); exit 1; }; }
22864 fi
22865
22866
22867 fi
22868
22869
22870
22871
22872
22873 if test "$enable_gss" = yes; then
22874
22875 for ac_header in nfsidmap.h
22876 do
22877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22879   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22882   echo $ECHO_N "(cached) $ECHO_C" >&6
22883 fi
22884 ac_res=`eval echo '${'$as_ac_Header'}'`
22885                { echo "$as_me:$LINENO: result: $ac_res" >&5
22886 echo "${ECHO_T}$ac_res" >&6; }
22887 else
22888   # Is the header compilable?
22889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
22898 #include <$ac_header>
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904   *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907   (eval "$ac_compile") 2>conftest.er1
22908   ac_status=$?
22909   grep -v '^ *+' conftest.er1 >conftest.err
22910   rm -f conftest.er1
22911   cat conftest.err >&5
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); } && {
22914          test -z "$ac_c_werror_flag" ||
22915          test ! -s conftest.err
22916        } && test -s conftest.$ac_objext; then
22917   ac_header_compiler=yes
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922         ac_header_compiler=no
22923 fi
22924
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22927 echo "${ECHO_T}$ac_header_compiler" >&6; }
22928
22929 # Is the header present?
22930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22932 cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h.  */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h.  */
22938 #include <$ac_header>
22939 _ACEOF
22940 if { (ac_try="$ac_cpp conftest.$ac_ext"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } >/dev/null && {
22953          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22954          test ! -s conftest.err
22955        }; then
22956   ac_header_preproc=yes
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961   ac_header_preproc=no
22962 fi
22963
22964 rm -f conftest.err conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22966 echo "${ECHO_T}$ac_header_preproc" >&6; }
22967
22968 # So?  What about this header?
22969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22970   yes:no: )
22971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22975     ac_header_preproc=yes
22976     ;;
22977   no:yes:* )
22978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22980     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22981 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22982     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22984     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22985 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22988     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22990     ( cat <<\_ASBOX
22991 ## ------------------------------- ##
22992 ## Report this to nfs@lists.sf.net ##
22993 ## ------------------------------- ##
22994 _ASBOX
22995      ) | sed "s/^/$as_me: WARNING:     /" >&2
22996     ;;
22997 esac
22998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003   eval "$as_ac_Header=\$ac_header_preproc"
23004 fi
23005 ac_res=`eval echo '${'$as_ac_Header'}'`
23006                { echo "$as_me:$LINENO: result: $ac_res" >&5
23007 echo "${ECHO_T}$ac_res" >&6; }
23008
23009 fi
23010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23011   cat >>confdefs.h <<_ACEOF
23012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23013 _ACEOF
23014
23015 else
23016   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23017 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23018    { (exit 1); exit 1; }; }
23019 fi
23020
23021 done
23022
23023
23024 for ac_header in spkm3.h
23025 do
23026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 fi
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034                { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23036 else
23037   # Is the header compilable?
23038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 $ac_includes_default
23047 #include <$ac_header>
23048 _ACEOF
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_compile") 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } && {
23063          test -z "$ac_c_werror_flag" ||
23064          test ! -s conftest.err
23065        } && test -s conftest.$ac_objext; then
23066   ac_header_compiler=yes
23067 else
23068   echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23070
23071         ac_header_compiler=no
23072 fi
23073
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6; }
23077
23078 # Is the header present?
23079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h.  */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h.  */
23087 #include <$ac_header>
23088 _ACEOF
23089 if { (ac_try="$ac_cpp conftest.$ac_ext"
23090 case "(($ac_try" in
23091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092   *) ac_try_echo=$ac_try;;
23093 esac
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } >/dev/null && {
23102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23103          test ! -s conftest.err
23104        }; then
23105   ac_header_preproc=yes
23106 else
23107   echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110   ac_header_preproc=no
23111 fi
23112
23113 rm -f conftest.err conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23115 echo "${ECHO_T}$ac_header_preproc" >&6; }
23116
23117 # So?  What about this header?
23118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23119   yes:no: )
23120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23124     ac_header_preproc=yes
23125     ;;
23126   no:yes:* )
23127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23139     ( cat <<\_ASBOX
23140 ## ------------------------------- ##
23141 ## Report this to nfs@lists.sf.net ##
23142 ## ------------------------------- ##
23143 _ASBOX
23144      ) | sed "s/^/$as_me: WARNING:     /" >&2
23145     ;;
23146 esac
23147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150   echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152   eval "$as_ac_Header=\$ac_header_preproc"
23153 fi
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155                { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157
23158 fi
23159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160   cat >>confdefs.h <<_ACEOF
23161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23162 _ACEOF
23163
23164 else
23165   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23166 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23167 fi
23168
23169 done
23170
23171     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23172 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23173 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23174   echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23176   ac_check_lib_save_LIBS=$LIBS
23177 LIBS="-lnfsidmap  $LIBS"
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184
23185 /* Override any GCC internal prototype to avoid an error.
23186    Use char because int might match the return type of a GCC
23187    builtin and then its argument prototype would still apply.  */
23188 #ifdef __cplusplus
23189 extern "C"
23190 #endif
23191 char nfs4_set_debug ();
23192 int
23193 main ()
23194 {
23195 return nfs4_set_debug ();
23196   ;
23197   return 0;
23198 }
23199 _ACEOF
23200 rm -f conftest.$ac_objext conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204   *) ac_try_echo=$ac_try;;
23205 esac
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207   (eval "$ac_link") 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } && {
23214          test -z "$ac_c_werror_flag" ||
23215          test ! -s conftest.err
23216        } && test -s conftest$ac_exeext &&
23217        $as_test_x conftest$ac_exeext; then
23218   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23227       conftest$ac_exeext conftest.$ac_ext
23228 LIBS=$ac_check_lib_save_LIBS
23229 fi
23230 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23231 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23232 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23233
23234 cat >>confdefs.h <<\_ACEOF
23235 #define HAVE_NFS4_SET_DEBUG 1
23236 _ACEOF
23237
23238 fi
23239
23240
23241
23242   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23243 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23244
23245 # Check whether --with-krb5 was given.
23246 if test "${with_krb5+set}" = set; then
23247   withval=$with_krb5;  case "$withval" in
23248     yes|no)
23249        krb5_with=""
23250        ;;
23251     *)
23252        krb5_with="$withval"
23253        ;;
23254     esac
23255
23256 fi
23257
23258
23259   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23260              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23261             K5CONFIG=""
23262     if test -f $dir/bin/krb5-config; then
23263       K5CONFIG=$dir/bin/krb5-config
23264     elif test -f "/usr/kerberos/bin/krb5-config"; then
23265       K5CONFIG="/usr/kerberos/bin/krb5-config"
23266     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23267       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23268     fi
23269     if test "$K5CONFIG" != ""; then
23270       KRBCFLAGS=`$K5CONFIG --cflags`
23271       KRBLIBS=`$K5CONFIG --libs gssapi`
23272       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define KRB5_VERSION $K5VERS
23276 _ACEOF
23277
23278       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23279                 \( -f $dir/lib/libgssapi_krb5.a -o \
23280                    -f $dir/lib64/libgssapi_krb5.a -o \
23281                    -f $dir/lib64/libgssapi_krb5.so -o \
23282                    -f $dir/lib/libgssapi_krb5.so \) ; then
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_KRB5 1
23286 _ACEOF
23287
23288          KRBDIR="$dir"
23289                      if test $K5VERS -le 131; then
23290
23291 cat >>confdefs.h <<\_ACEOF
23292 #define USE_GSS_KRB5_CCACHE_NAME 1
23293 _ACEOF
23294
23295          fi
23296          gssapi_lib=gssapi_krb5
23297          break
23298                   elif test \( -f $dir/include/heim_err.h -o\
23299                  -f $dir/include/heimdal/heim_err.h \) -a \
23300                 -f $dir/lib/libroken.a; then
23301
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_HEIMDAL 1
23304 _ACEOF
23305
23306          KRBDIR="$dir"
23307          gssapi_lib=gssapi
23308         break
23309       fi
23310     fi
23311   done
23312     if test "x$KRBDIR" = "x"; then
23313     if test "x$krb5_with" = "x"; then
23314       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23315 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23316    { (exit 1); exit 1; }; }
23317     else
23318       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23319 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23320    { (exit 1); exit 1; }; }
23321     fi
23322   fi
23323   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23324 echo "${ECHO_T}$KRBDIR" >&6; }
23325
23326     echo "The current KRBDIR is $KRBDIR"
23327   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23328        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23329     KRBLDFLAGS="";
23330   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23331     KRBLDFLAGS="";
23332   else
23333     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23334   fi
23335
23336     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23337 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23338 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23339 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23340   echo $ECHO_N "(cached) $ECHO_C" >&6
23341 else
23342   ac_check_lib_save_LIBS=$LIBS
23343 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23344 cat >conftest.$ac_ext <<_ACEOF
23345 /* confdefs.h.  */
23346 _ACEOF
23347 cat confdefs.h >>conftest.$ac_ext
23348 cat >>conftest.$ac_ext <<_ACEOF
23349 /* end confdefs.h.  */
23350
23351 /* Override any GCC internal prototype to avoid an error.
23352    Use char because int might match the return type of a GCC
23353    builtin and then its argument prototype would still apply.  */
23354 #ifdef __cplusplus
23355 extern "C"
23356 #endif
23357 char gss_krb5_export_lucid_sec_context ();
23358 int
23359 main ()
23360 {
23361 return gss_krb5_export_lucid_sec_context ();
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_link") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest$ac_exeext &&
23383        $as_test_x conftest$ac_exeext; then
23384   eval "$as_ac_Lib=yes"
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         eval "$as_ac_Lib=no"
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393       conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23395 fi
23396 ac_res=`eval echo '${'$as_ac_Lib'}'`
23397                { echo "$as_me:$LINENO: result: $ac_res" >&5
23398 echo "${ECHO_T}$ac_res" >&6; }
23399 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23400
23401 cat >>confdefs.h <<\_ACEOF
23402 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23403 _ACEOF
23404
23405 fi
23406
23407   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23408 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23409 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23410 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23411   echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413   ac_check_lib_save_LIBS=$LIBS
23414 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h.  */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h.  */
23421
23422 /* Override any GCC internal prototype to avoid an error.
23423    Use char because int might match the return type of a GCC
23424    builtin and then its argument prototype would still apply.  */
23425 #ifdef __cplusplus
23426 extern "C"
23427 #endif
23428 char gss_krb5_set_allowable_enctypes ();
23429 int
23430 main ()
23431 {
23432 return gss_krb5_set_allowable_enctypes ();
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_link") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } && {
23451          test -z "$ac_c_werror_flag" ||
23452          test ! -s conftest.err
23453        } && test -s conftest$ac_exeext &&
23454        $as_test_x conftest$ac_exeext; then
23455   eval "$as_ac_Lib=yes"
23456 else
23457   echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23459
23460         eval "$as_ac_Lib=no"
23461 fi
23462
23463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23464       conftest$ac_exeext conftest.$ac_ext
23465 LIBS=$ac_check_lib_save_LIBS
23466 fi
23467 ac_res=`eval echo '${'$as_ac_Lib'}'`
23468                { echo "$as_me:$LINENO: result: $ac_res" >&5
23469 echo "${ECHO_T}$ac_res" >&6; }
23470 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23471
23472 cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23474 _ACEOF
23475
23476 fi
23477
23478   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23479 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23480 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23481 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484   ac_check_lib_save_LIBS=$LIBS
23485 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23486 cat >conftest.$ac_ext <<_ACEOF
23487 /* confdefs.h.  */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h.  */
23492
23493 /* Override any GCC internal prototype to avoid an error.
23494    Use char because int might match the return type of a GCC
23495    builtin and then its argument prototype would still apply.  */
23496 #ifdef __cplusplus
23497 extern "C"
23498 #endif
23499 char gss_krb5_ccache_name ();
23500 int
23501 main ()
23502 {
23503 return gss_krb5_ccache_name ();
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (ac_try="$ac_link"
23510 case "(($ac_try" in
23511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512   *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515   (eval "$ac_link") 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && {
23522          test -z "$ac_c_werror_flag" ||
23523          test ! -s conftest.err
23524        } && test -s conftest$ac_exeext &&
23525        $as_test_x conftest$ac_exeext; then
23526   eval "$as_ac_Lib=yes"
23527 else
23528   echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531         eval "$as_ac_Lib=no"
23532 fi
23533
23534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23535       conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23537 fi
23538 ac_res=`eval echo '${'$as_ac_Lib'}'`
23539                { echo "$as_me:$LINENO: result: $ac_res" >&5
23540 echo "${ECHO_T}$ac_res" >&6; }
23541 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23542
23543 cat >>confdefs.h <<\_ACEOF
23544 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23545 _ACEOF
23546
23547 fi
23548
23549
23550     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23551     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23552 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23553   fi
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23564 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23565 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   ac_check_lib_save_LIBS=$LIBS
23569 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576
23577 /* Override any GCC internal prototype to avoid an error.
23578    Use char because int might match the return type of a GCC
23579    builtin and then its argument prototype would still apply.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 char authgss_create_default ();
23584 int
23585 main ()
23586 {
23587 return authgss_create_default ();
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (ac_try="$ac_link"
23594 case "(($ac_try" in
23595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596   *) ac_try_echo=$ac_try;;
23597 esac
23598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23599   (eval "$ac_link") 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } && {
23606          test -z "$ac_c_werror_flag" ||
23607          test ! -s conftest.err
23608        } && test -s conftest$ac_exeext &&
23609        $as_test_x conftest$ac_exeext; then
23610   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615         ac_cv_lib_rpcsecgss_authgss_create_default=no
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23619       conftest$ac_exeext conftest.$ac_ext
23620 LIBS=$ac_check_lib_save_LIBS
23621 fi
23622 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23623 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23624 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23625   librpcsecgss=1
23626 else
23627   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23628 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23629    { (exit 1); exit 1; }; }
23630 fi
23631
23632   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23633 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23634 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* Override any GCC internal prototype to avoid an error.
23647    Use char because int might match the return type of a GCC
23648    builtin and then its argument prototype would still apply.  */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 char authgss_set_debug_level ();
23653 int
23654 main ()
23655 {
23656 return authgss_set_debug_level ();
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665   *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668   (eval "$ac_link") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && {
23675          test -z "$ac_c_werror_flag" ||
23676          test ! -s conftest.err
23677        } && test -s conftest$ac_exeext &&
23678        $as_test_x conftest$ac_exeext; then
23679   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23680 else
23681   echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23685 fi
23686
23687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23688       conftest$ac_exeext conftest.$ac_ext
23689 LIBS=$ac_check_lib_save_LIBS
23690 fi
23691 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23692 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23693 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23694
23695 cat >>confdefs.h <<\_ACEOF
23696 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23697 _ACEOF
23698
23699 fi
23700
23701
23702 fi
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23728                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23729                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23730                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23731                  syslog.h unistd.h com_err.h et/com_err.h \
23732                  ifaddrs.h
23733 do
23734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23736   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 fi
23741 ac_res=`eval echo '${'$as_ac_Header'}'`
23742                { echo "$as_me:$LINENO: result: $ac_res" >&5
23743 echo "${ECHO_T}$ac_res" >&6; }
23744 else
23745   # Is the header compilable?
23746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23748 cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h.  */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h.  */
23754 $ac_includes_default
23755 #include <$ac_header>
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_compile") 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && {
23771          test -z "$ac_c_werror_flag" ||
23772          test ! -s conftest.err
23773        } && test -s conftest.$ac_objext; then
23774   ac_header_compiler=yes
23775 else
23776   echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779         ac_header_compiler=no
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23784 echo "${ECHO_T}$ac_header_compiler" >&6; }
23785
23786 # Is the header present?
23787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h.  */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h.  */
23795 #include <$ac_header>
23796 _ACEOF
23797 if { (ac_try="$ac_cpp conftest.$ac_ext"
23798 case "(($ac_try" in
23799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800   *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } >/dev/null && {
23810          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23811          test ! -s conftest.err
23812        }; then
23813   ac_header_preproc=yes
23814 else
23815   echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818   ac_header_preproc=no
23819 fi
23820
23821 rm -f conftest.err conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23823 echo "${ECHO_T}$ac_header_preproc" >&6; }
23824
23825 # So?  What about this header?
23826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23827   yes:no: )
23828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23832     ac_header_preproc=yes
23833     ;;
23834   no:yes:* )
23835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23847     ( cat <<\_ASBOX
23848 ## ------------------------------- ##
23849 ## Report this to nfs@lists.sf.net ##
23850 ## ------------------------------- ##
23851 _ASBOX
23852      ) | sed "s/^/$as_me: WARNING:     /" >&2
23853     ;;
23854 esac
23855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23858   echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860   eval "$as_ac_Header=\$ac_header_preproc"
23861 fi
23862 ac_res=`eval echo '${'$as_ac_Header'}'`
23863                { echo "$as_me:$LINENO: result: $ac_res" >&5
23864 echo "${ECHO_T}$ac_res" >&6; }
23865
23866 fi
23867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23868   cat >>confdefs.h <<_ACEOF
23869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23870 _ACEOF
23871
23872 fi
23873
23874 done
23875
23876
23877 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23878 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23879 if test "${ac_cv_c_const+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882   cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h.  */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h.  */
23888
23889 int
23890 main ()
23891 {
23892 /* FIXME: Include the comments suggested by Paul. */
23893 #ifndef __cplusplus
23894   /* Ultrix mips cc rejects this.  */
23895   typedef int charset[2];
23896   const charset cs;
23897   /* SunOS 4.1.1 cc rejects this.  */
23898   char const *const *pcpcc;
23899   char **ppc;
23900   /* NEC SVR4.0.2 mips cc rejects this.  */
23901   struct point {int x, y;};
23902   static struct point const zero = {0,0};
23903   /* AIX XL C 1.02.0.0 rejects this.
23904      It does not let you subtract one const X* pointer from another in
23905      an arm of an if-expression whose if-part is not a constant
23906      expression */
23907   const char *g = "string";
23908   pcpcc = &g + (g ? g-g : 0);
23909   /* HPUX 7.0 cc rejects these. */
23910   ++pcpcc;
23911   ppc = (char**) pcpcc;
23912   pcpcc = (char const *const *) ppc;
23913   { /* SCO 3.2v4 cc rejects this.  */
23914     char *t;
23915     char const *s = 0 ? (char *) 0 : (char const *) 0;
23916
23917     *t++ = 0;
23918     if (s) return 0;
23919   }
23920   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23921     int x[] = {25, 17};
23922     const int *foo = &x[0];
23923     ++foo;
23924   }
23925   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23926     typedef const int *iptr;
23927     iptr p = 0;
23928     ++p;
23929   }
23930   { /* AIX XL C 1.02.0.0 rejects this saying
23931        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23932     struct s { int j; const int *ap[3]; };
23933     struct s *b; b->j = 5;
23934   }
23935   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23936     const int foo = 10;
23937     if (!foo) return 0;
23938   }
23939   return !cs[0] && !zero.x;
23940 #endif
23941
23942   ;
23943   return 0;
23944 }
23945 _ACEOF
23946 rm -f conftest.$ac_objext
23947 if { (ac_try="$ac_compile"
23948 case "(($ac_try" in
23949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950   *) ac_try_echo=$ac_try;;
23951 esac
23952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23953   (eval "$ac_compile") 2>conftest.er1
23954   ac_status=$?
23955   grep -v '^ *+' conftest.er1 >conftest.err
23956   rm -f conftest.er1
23957   cat conftest.err >&5
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); } && {
23960          test -z "$ac_c_werror_flag" ||
23961          test ! -s conftest.err
23962        } && test -s conftest.$ac_objext; then
23963   ac_cv_c_const=yes
23964 else
23965   echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968         ac_cv_c_const=no
23969 fi
23970
23971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23972 fi
23973 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23974 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23975 if test $ac_cv_c_const = no; then
23976
23977 cat >>confdefs.h <<\_ACEOF
23978 #define const
23979 _ACEOF
23980
23981 fi
23982
23983 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23985 if test "${ac_cv_type_uid_t+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988   cat >conftest.$ac_ext <<_ACEOF
23989 /* confdefs.h.  */
23990 _ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h.  */
23994 #include <sys/types.h>
23995
23996 _ACEOF
23997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23998   $EGREP "uid_t" >/dev/null 2>&1; then
23999   ac_cv_type_uid_t=yes
24000 else
24001   ac_cv_type_uid_t=no
24002 fi
24003 rm -f conftest*
24004
24005 fi
24006 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24008 if test $ac_cv_type_uid_t = no; then
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define uid_t int
24012 _ACEOF
24013
24014
24015 cat >>confdefs.h <<\_ACEOF
24016 #define gid_t int
24017 _ACEOF
24018
24019 fi
24020
24021 { echo "$as_me:$LINENO: checking for inline" >&5
24022 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24023 if test "${ac_cv_c_inline+set}" = set; then
24024   echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026   ac_cv_c_inline=no
24027 for ac_kw in inline __inline__ __inline; do
24028   cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 #ifndef __cplusplus
24035 typedef int foo_t;
24036 static $ac_kw foo_t static_foo () {return 0; }
24037 $ac_kw foo_t foo () {return 0; }
24038 #endif
24039
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_c_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   ac_cv_c_inline=$ac_kw
24059 else
24060   echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063
24064 fi
24065
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067   test "$ac_cv_c_inline" != no && break
24068 done
24069
24070 fi
24071 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24072 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24073
24074
24075 case $ac_cv_c_inline in
24076   inline | yes) ;;
24077   *)
24078     case $ac_cv_c_inline in
24079       no) ac_val=;;
24080       *) ac_val=$ac_cv_c_inline;;
24081     esac
24082     cat >>confdefs.h <<_ACEOF
24083 #ifndef __cplusplus
24084 #define inline $ac_val
24085 #endif
24086 _ACEOF
24087     ;;
24088 esac
24089
24090 { echo "$as_me:$LINENO: checking for off_t" >&5
24091 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24092 if test "${ac_cv_type_off_t+set}" = set; then
24093   echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095   cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101 $ac_includes_default
24102 typedef off_t ac__type_new_;
24103 int
24104 main ()
24105 {
24106 if ((ac__type_new_ *) 0)
24107   return 0;
24108 if (sizeof (ac__type_new_))
24109   return 0;
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 rm -f conftest.$ac_objext
24115 if { (ac_try="$ac_compile"
24116 case "(($ac_try" in
24117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118   *) ac_try_echo=$ac_try;;
24119 esac
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121   (eval "$ac_compile") 2>conftest.er1
24122   ac_status=$?
24123   grep -v '^ *+' conftest.er1 >conftest.err
24124   rm -f conftest.er1
24125   cat conftest.err >&5
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } && {
24128          test -z "$ac_c_werror_flag" ||
24129          test ! -s conftest.err
24130        } && test -s conftest.$ac_objext; then
24131   ac_cv_type_off_t=yes
24132 else
24133   echo "$as_me: failed program was:" >&5
24134 sed 's/^/| /' conftest.$ac_ext >&5
24135
24136         ac_cv_type_off_t=no
24137 fi
24138
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 fi
24141 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24142 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24143 if test $ac_cv_type_off_t = yes; then
24144   :
24145 else
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define off_t long int
24149 _ACEOF
24150
24151 fi
24152
24153 { echo "$as_me:$LINENO: checking for pid_t" >&5
24154 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24155 if test "${ac_cv_type_pid_t+set}" = set; then
24156   echo $ECHO_N "(cached) $ECHO_C" >&6
24157 else
24158   cat >conftest.$ac_ext <<_ACEOF
24159 /* confdefs.h.  */
24160 _ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h.  */
24164 $ac_includes_default
24165 typedef pid_t ac__type_new_;
24166 int
24167 main ()
24168 {
24169 if ((ac__type_new_ *) 0)
24170   return 0;
24171 if (sizeof (ac__type_new_))
24172   return 0;
24173   ;
24174   return 0;
24175 }
24176 _ACEOF
24177 rm -f conftest.$ac_objext
24178 if { (ac_try="$ac_compile"
24179 case "(($ac_try" in
24180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181   *) ac_try_echo=$ac_try;;
24182 esac
24183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24184   (eval "$ac_compile") 2>conftest.er1
24185   ac_status=$?
24186   grep -v '^ *+' conftest.er1 >conftest.err
24187   rm -f conftest.er1
24188   cat conftest.err >&5
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } && {
24191          test -z "$ac_c_werror_flag" ||
24192          test ! -s conftest.err
24193        } && test -s conftest.$ac_objext; then
24194   ac_cv_type_pid_t=yes
24195 else
24196   echo "$as_me: failed program was:" >&5
24197 sed 's/^/| /' conftest.$ac_ext >&5
24198
24199         ac_cv_type_pid_t=no
24200 fi
24201
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 fi
24204 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24206 if test $ac_cv_type_pid_t = yes; then
24207   :
24208 else
24209
24210 cat >>confdefs.h <<_ACEOF
24211 #define pid_t int
24212 _ACEOF
24213
24214 fi
24215
24216 { echo "$as_me:$LINENO: checking for size_t" >&5
24217 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24218 if test "${ac_cv_type_size_t+set}" = set; then
24219   echo $ECHO_N "(cached) $ECHO_C" >&6
24220 else
24221   cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228 typedef size_t ac__type_new_;
24229 int
24230 main ()
24231 {
24232 if ((ac__type_new_ *) 0)
24233   return 0;
24234 if (sizeof (ac__type_new_))
24235   return 0;
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (ac_try="$ac_compile"
24242 case "(($ac_try" in
24243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244   *) ac_try_echo=$ac_try;;
24245 esac
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247   (eval "$ac_compile") 2>conftest.er1
24248   ac_status=$?
24249   grep -v '^ *+' conftest.er1 >conftest.err
24250   rm -f conftest.er1
24251   cat conftest.err >&5
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } && {
24254          test -z "$ac_c_werror_flag" ||
24255          test ! -s conftest.err
24256        } && test -s conftest.$ac_objext; then
24257   ac_cv_type_size_t=yes
24258 else
24259   echo "$as_me: failed program was:" >&5
24260 sed 's/^/| /' conftest.$ac_ext >&5
24261
24262         ac_cv_type_size_t=no
24263 fi
24264
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 fi
24267 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24268 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24269 if test $ac_cv_type_size_t = yes; then
24270   :
24271 else
24272
24273 cat >>confdefs.h <<_ACEOF
24274 #define size_t unsigned int
24275 _ACEOF
24276
24277 fi
24278
24279 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24280 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24281 if test "${ac_cv_header_time+set}" = set; then
24282   echo $ECHO_N "(cached) $ECHO_C" >&6
24283 else
24284   cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h.  */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h.  */
24290 #include <sys/types.h>
24291 #include <sys/time.h>
24292 #include <time.h>
24293
24294 int
24295 main ()
24296 {
24297 if ((struct tm *) 0)
24298 return 0;
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 rm -f conftest.$ac_objext
24304 if { (ac_try="$ac_compile"
24305 case "(($ac_try" in
24306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307   *) ac_try_echo=$ac_try;;
24308 esac
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310   (eval "$ac_compile") 2>conftest.er1
24311   ac_status=$?
24312   grep -v '^ *+' conftest.er1 >conftest.err
24313   rm -f conftest.er1
24314   cat conftest.err >&5
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); } && {
24317          test -z "$ac_c_werror_flag" ||
24318          test ! -s conftest.err
24319        } && test -s conftest.$ac_objext; then
24320   ac_cv_header_time=yes
24321 else
24322   echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24324
24325         ac_cv_header_time=no
24326 fi
24327
24328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24329 fi
24330 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24331 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24332 if test $ac_cv_header_time = yes; then
24333
24334 cat >>confdefs.h <<\_ACEOF
24335 #define TIME_WITH_SYS_TIME 1
24336 _ACEOF
24337
24338 fi
24339
24340 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24341 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24342 if test "${ac_cv_struct_tm+set}" = set; then
24343   echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345   cat >conftest.$ac_ext <<_ACEOF
24346 /* confdefs.h.  */
24347 _ACEOF
24348 cat confdefs.h >>conftest.$ac_ext
24349 cat >>conftest.$ac_ext <<_ACEOF
24350 /* end confdefs.h.  */
24351 #include <sys/types.h>
24352 #include <time.h>
24353
24354 int
24355 main ()
24356 {
24357 struct tm tm;
24358                                      int *p = &tm.tm_sec;
24359                                      return !p;
24360   ;
24361   return 0;
24362 }
24363 _ACEOF
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371   (eval "$ac_compile") 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } && {
24378          test -z "$ac_c_werror_flag" ||
24379          test ! -s conftest.err
24380        } && test -s conftest.$ac_objext; then
24381   ac_cv_struct_tm=time.h
24382 else
24383   echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386         ac_cv_struct_tm=sys/time.h
24387 fi
24388
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 fi
24391 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24392 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24393 if test $ac_cv_struct_tm = sys/time.h; then
24394
24395 cat >>confdefs.h <<\_ACEOF
24396 #define TM_IN_SYS_TIME 1
24397 _ACEOF
24398
24399 fi
24400
24401
24402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24403 # for constant arguments.  Useless!
24404 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24405 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24406 if test "${ac_cv_working_alloca_h+set}" = set; then
24407   echo $ECHO_N "(cached) $ECHO_C" >&6
24408 else
24409   cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h.  */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h.  */
24415 #include <alloca.h>
24416 int
24417 main ()
24418 {
24419 char *p = (char *) alloca (2 * sizeof (int));
24420                           if (p) return 0;
24421   ;
24422   return 0;
24423 }
24424 _ACEOF
24425 rm -f conftest.$ac_objext conftest$ac_exeext
24426 if { (ac_try="$ac_link"
24427 case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432   (eval "$ac_link") 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } && {
24439          test -z "$ac_c_werror_flag" ||
24440          test ! -s conftest.err
24441        } && test -s conftest$ac_exeext &&
24442        $as_test_x conftest$ac_exeext; then
24443   ac_cv_working_alloca_h=yes
24444 else
24445   echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24447
24448         ac_cv_working_alloca_h=no
24449 fi
24450
24451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24452       conftest$ac_exeext conftest.$ac_ext
24453 fi
24454 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24455 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24456 if test $ac_cv_working_alloca_h = yes; then
24457
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_ALLOCA_H 1
24460 _ACEOF
24461
24462 fi
24463
24464 { echo "$as_me:$LINENO: checking for alloca" >&5
24465 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24466 if test "${ac_cv_func_alloca_works+set}" = set; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469   cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h.  */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h.  */
24475 #ifdef __GNUC__
24476 # define alloca __builtin_alloca
24477 #else
24478 # ifdef _MSC_VER
24479 #  include <malloc.h>
24480 #  define alloca _alloca
24481 # else
24482 #  ifdef HAVE_ALLOCA_H
24483 #   include <alloca.h>
24484 #  else
24485 #   ifdef _AIX
24486  #pragma alloca
24487 #   else
24488 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24489 char *alloca ();
24490 #    endif
24491 #   endif
24492 #  endif
24493 # endif
24494 #endif
24495
24496 int
24497 main ()
24498 {
24499 char *p = (char *) alloca (1);
24500                                     if (p) return 0;
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 rm -f conftest.$ac_objext conftest$ac_exeext
24506 if { (ac_try="$ac_link"
24507 case "(($ac_try" in
24508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509   *) ac_try_echo=$ac_try;;
24510 esac
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512   (eval "$ac_link") 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } && {
24519          test -z "$ac_c_werror_flag" ||
24520          test ! -s conftest.err
24521        } && test -s conftest$ac_exeext &&
24522        $as_test_x conftest$ac_exeext; then
24523   ac_cv_func_alloca_works=yes
24524 else
24525   echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24527
24528         ac_cv_func_alloca_works=no
24529 fi
24530
24531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24532       conftest$ac_exeext conftest.$ac_ext
24533 fi
24534 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24535 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24536
24537 if test $ac_cv_func_alloca_works = yes; then
24538
24539 cat >>confdefs.h <<\_ACEOF
24540 #define HAVE_ALLOCA 1
24541 _ACEOF
24542
24543 else
24544   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24545 # that cause trouble.  Some versions do not even contain alloca or
24546 # contain a buggy version.  If you still want to use their alloca,
24547 # use ar to extract alloca.o from them instead of compiling alloca.c.
24548
24549 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24550
24551 cat >>confdefs.h <<\_ACEOF
24552 #define C_ALLOCA 1
24553 _ACEOF
24554
24555
24556 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24557 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24558 if test "${ac_cv_os_cray+set}" = set; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 #if defined CRAY && ! defined CRAY2
24568 webecray
24569 #else
24570 wenotbecray
24571 #endif
24572
24573 _ACEOF
24574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24575   $EGREP "webecray" >/dev/null 2>&1; then
24576   ac_cv_os_cray=yes
24577 else
24578   ac_cv_os_cray=no
24579 fi
24580 rm -f conftest*
24581
24582 fi
24583 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24584 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24585 if test $ac_cv_os_cray = yes; then
24586   for ac_func in _getb67 GETB67 getb67; do
24587     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24591   echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593   cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24601 #define $ac_func innocuous_$ac_func
24602
24603 /* System header to define __stub macros and hopefully few prototypes,
24604     which can conflict with char $ac_func (); below.
24605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24606     <limits.h> exists even on freestanding compilers.  */
24607
24608 #ifdef __STDC__
24609 # include <limits.h>
24610 #else
24611 # include <assert.h>
24612 #endif
24613
24614 #undef $ac_func
24615
24616 /* Override any GCC internal prototype to avoid an error.
24617    Use char because int might match the return type of a GCC
24618    builtin and then its argument prototype would still apply.  */
24619 #ifdef __cplusplus
24620 extern "C"
24621 #endif
24622 char $ac_func ();
24623 /* The GNU C library defines this for functions which it implements
24624     to always fail with ENOSYS.  Some functions are actually named
24625     something starting with __ and the normal name is an alias.  */
24626 #if defined __stub_$ac_func || defined __stub___$ac_func
24627 choke me
24628 #endif
24629
24630 int
24631 main ()
24632 {
24633 return $ac_func ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_link") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_c_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest$ac_exeext &&
24655        $as_test_x conftest$ac_exeext; then
24656   eval "$as_ac_var=yes"
24657 else
24658   echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661         eval "$as_ac_var=no"
24662 fi
24663
24664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24665       conftest$ac_exeext conftest.$ac_ext
24666 fi
24667 ac_res=`eval echo '${'$as_ac_var'}'`
24668                { echo "$as_me:$LINENO: result: $ac_res" >&5
24669 echo "${ECHO_T}$ac_res" >&6; }
24670 if test `eval echo '${'$as_ac_var'}'` = yes; then
24671
24672 cat >>confdefs.h <<_ACEOF
24673 #define CRAY_STACKSEG_END $ac_func
24674 _ACEOF
24675
24676     break
24677 fi
24678
24679   done
24680 fi
24681
24682 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24683 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24684 if test "${ac_cv_c_stack_direction+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687   if test "$cross_compiling" = yes; then
24688   ac_cv_c_stack_direction=0
24689 else
24690   cat >conftest.$ac_ext <<_ACEOF
24691 /* confdefs.h.  */
24692 _ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h.  */
24696 $ac_includes_default
24697 int
24698 find_stack_direction ()
24699 {
24700   static char *addr = 0;
24701   auto char dummy;
24702   if (addr == 0)
24703     {
24704       addr = &dummy;
24705       return find_stack_direction ();
24706     }
24707   else
24708     return (&dummy > addr) ? 1 : -1;
24709 }
24710
24711 int
24712 main ()
24713 {
24714   return find_stack_direction () < 0;
24715 }
24716 _ACEOF
24717 rm -f conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721   *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724   (eval "$ac_link") 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24728   { (case "(($ac_try" in
24729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730   *) ac_try_echo=$ac_try;;
24731 esac
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733   (eval "$ac_try") 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; }; then
24737   ac_cv_c_stack_direction=1
24738 else
24739   echo "$as_me: program exited with status $ac_status" >&5
24740 echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 ( exit $ac_status )
24744 ac_cv_c_stack_direction=-1
24745 fi
24746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24747 fi
24748
24749
24750 fi
24751 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24752 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24753
24754 cat >>confdefs.h <<_ACEOF
24755 #define STACK_DIRECTION $ac_cv_c_stack_direction
24756 _ACEOF
24757
24758
24759 fi
24760
24761
24762
24763
24764
24765
24766 ac_header_dirent=no
24767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24768   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24769 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24770 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24772   echo $ECHO_N "(cached) $ECHO_C" >&6
24773 else
24774   cat >conftest.$ac_ext <<_ACEOF
24775 /* confdefs.h.  */
24776 _ACEOF
24777 cat confdefs.h >>conftest.$ac_ext
24778 cat >>conftest.$ac_ext <<_ACEOF
24779 /* end confdefs.h.  */
24780 #include <sys/types.h>
24781 #include <$ac_hdr>
24782
24783 int
24784 main ()
24785 {
24786 if ((DIR *) 0)
24787 return 0;
24788   ;
24789   return 0;
24790 }
24791 _ACEOF
24792 rm -f conftest.$ac_objext
24793 if { (ac_try="$ac_compile"
24794 case "(($ac_try" in
24795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796   *) ac_try_echo=$ac_try;;
24797 esac
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799   (eval "$ac_compile") 2>conftest.er1
24800   ac_status=$?
24801   grep -v '^ *+' conftest.er1 >conftest.err
24802   rm -f conftest.er1
24803   cat conftest.err >&5
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); } && {
24806          test -z "$ac_c_werror_flag" ||
24807          test ! -s conftest.err
24808        } && test -s conftest.$ac_objext; then
24809   eval "$as_ac_Header=yes"
24810 else
24811   echo "$as_me: failed program was:" >&5
24812 sed 's/^/| /' conftest.$ac_ext >&5
24813
24814         eval "$as_ac_Header=no"
24815 fi
24816
24817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24818 fi
24819 ac_res=`eval echo '${'$as_ac_Header'}'`
24820                { echo "$as_me:$LINENO: result: $ac_res" >&5
24821 echo "${ECHO_T}$ac_res" >&6; }
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823   cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24825 _ACEOF
24826
24827 ac_header_dirent=$ac_hdr; break
24828 fi
24829
24830 done
24831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24832 if test $ac_header_dirent = dirent.h; then
24833   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24835 if test "${ac_cv_search_opendir+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_func_search_save_LIBS=$LIBS
24839 cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h.  */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h.  */
24845
24846 /* Override any GCC internal prototype to avoid an error.
24847    Use char because int might match the return type of a GCC
24848    builtin and then its argument prototype would still apply.  */
24849 #ifdef __cplusplus
24850 extern "C"
24851 #endif
24852 char opendir ();
24853 int
24854 main ()
24855 {
24856 return opendir ();
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 for ac_lib in '' dir; do
24862   if test -z "$ac_lib"; then
24863     ac_res="none required"
24864   else
24865     ac_res=-l$ac_lib
24866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24867   fi
24868   rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (ac_try="$ac_link"
24870 case "(($ac_try" in
24871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872   *) ac_try_echo=$ac_try;;
24873 esac
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875   (eval "$ac_link") 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } && {
24882          test -z "$ac_c_werror_flag" ||
24883          test ! -s conftest.err
24884        } && test -s conftest$ac_exeext &&
24885        $as_test_x conftest$ac_exeext; then
24886   ac_cv_search_opendir=$ac_res
24887 else
24888   echo "$as_me: failed program was:" >&5
24889 sed 's/^/| /' conftest.$ac_ext >&5
24890
24891
24892 fi
24893
24894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24895       conftest$ac_exeext
24896   if test "${ac_cv_search_opendir+set}" = set; then
24897   break
24898 fi
24899 done
24900 if test "${ac_cv_search_opendir+set}" = set; then
24901   :
24902 else
24903   ac_cv_search_opendir=no
24904 fi
24905 rm conftest.$ac_ext
24906 LIBS=$ac_func_search_save_LIBS
24907 fi
24908 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24909 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24910 ac_res=$ac_cv_search_opendir
24911 if test "$ac_res" != no; then
24912   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24913
24914 fi
24915
24916 else
24917   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24919 if test "${ac_cv_search_opendir+set}" = set; then
24920   echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922   ac_func_search_save_LIBS=$LIBS
24923 cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929
24930 /* Override any GCC internal prototype to avoid an error.
24931    Use char because int might match the return type of a GCC
24932    builtin and then its argument prototype would still apply.  */
24933 #ifdef __cplusplus
24934 extern "C"
24935 #endif
24936 char opendir ();
24937 int
24938 main ()
24939 {
24940 return opendir ();
24941   ;
24942   return 0;
24943 }
24944 _ACEOF
24945 for ac_lib in '' x; do
24946   if test -z "$ac_lib"; then
24947     ac_res="none required"
24948   else
24949     ac_res=-l$ac_lib
24950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24951   fi
24952   rm -f conftest.$ac_objext conftest$ac_exeext
24953 if { (ac_try="$ac_link"
24954 case "(($ac_try" in
24955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956   *) ac_try_echo=$ac_try;;
24957 esac
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959   (eval "$ac_link") 2>conftest.er1
24960   ac_status=$?
24961   grep -v '^ *+' conftest.er1 >conftest.err
24962   rm -f conftest.er1
24963   cat conftest.err >&5
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } && {
24966          test -z "$ac_c_werror_flag" ||
24967          test ! -s conftest.err
24968        } && test -s conftest$ac_exeext &&
24969        $as_test_x conftest$ac_exeext; then
24970   ac_cv_search_opendir=$ac_res
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_ipa8_conftest.oo \
24979       conftest$ac_exeext
24980   if test "${ac_cv_search_opendir+set}" = set; then
24981   break
24982 fi
24983 done
24984 if test "${ac_cv_search_opendir+set}" = set; then
24985   :
24986 else
24987   ac_cv_search_opendir=no
24988 fi
24989 rm conftest.$ac_ext
24990 LIBS=$ac_func_search_save_LIBS
24991 fi
24992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24994 ac_res=$ac_cv_search_opendir
24995 if test "$ac_res" != no; then
24996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24997
24998 fi
24999
25000 fi
25001
25002 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25003 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25004 if test "${ac_cv_func_closedir_void+set}" = set; then
25005   echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007   if test "$cross_compiling" = yes; then
25008   ac_cv_func_closedir_void=yes
25009 else
25010   cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h.  */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h.  */
25016 $ac_includes_default
25017 #include <$ac_header_dirent>
25018 #ifndef __cplusplus
25019 int closedir ();
25020 #endif
25021
25022 int
25023 main ()
25024 {
25025 return closedir (opendir (".")) != 0;
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037   (eval "$ac_link") 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25041   { (case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_try") 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; }; then
25050   ac_cv_func_closedir_void=no
25051 else
25052   echo "$as_me: program exited with status $ac_status" >&5
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056 ( exit $ac_status )
25057 ac_cv_func_closedir_void=yes
25058 fi
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25060 fi
25061
25062
25063 fi
25064 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25065 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25066 if test $ac_cv_func_closedir_void = yes; then
25067
25068 cat >>confdefs.h <<\_ACEOF
25069 #define CLOSEDIR_VOID 1
25070 _ACEOF
25071
25072 fi
25073
25074 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25075 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25076 if test "${ac_cv_lib_error_at_line+set}" = set; then
25077   echo $ECHO_N "(cached) $ECHO_C" >&6
25078 else
25079   cat >conftest.$ac_ext <<_ACEOF
25080 /* confdefs.h.  */
25081 _ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h.  */
25085 #include <error.h>
25086 int
25087 main ()
25088 {
25089 error_at_line (0, 0, "", 0, "an error occurred");
25090   ;
25091   return 0;
25092 }
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (ac_try="$ac_link"
25096 case "(($ac_try" in
25097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098   *) ac_try_echo=$ac_try;;
25099 esac
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101   (eval "$ac_link") 2>conftest.er1
25102   ac_status=$?
25103   grep -v '^ *+' conftest.er1 >conftest.err
25104   rm -f conftest.er1
25105   cat conftest.err >&5
25106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107   (exit $ac_status); } && {
25108          test -z "$ac_c_werror_flag" ||
25109          test ! -s conftest.err
25110        } && test -s conftest$ac_exeext &&
25111        $as_test_x conftest$ac_exeext; then
25112   ac_cv_lib_error_at_line=yes
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117         ac_cv_lib_error_at_line=no
25118 fi
25119
25120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25121       conftest$ac_exeext conftest.$ac_ext
25122 fi
25123 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25124 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25125 if test $ac_cv_lib_error_at_line = no; then
25126   case " $LIBOBJS " in
25127   *" error.$ac_objext "* ) ;;
25128   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25129  ;;
25130 esac
25131
25132 fi
25133
25134
25135 for ac_header in vfork.h
25136 do
25137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 fi
25144 ac_res=`eval echo '${'$as_ac_Header'}'`
25145                { echo "$as_me:$LINENO: result: $ac_res" >&5
25146 echo "${ECHO_T}$ac_res" >&6; }
25147 else
25148   # Is the header compilable?
25149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25151 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h.  */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h.  */
25157 $ac_includes_default
25158 #include <$ac_header>
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167   (eval "$ac_compile") 2>conftest.er1
25168   ac_status=$?
25169   grep -v '^ *+' conftest.er1 >conftest.err
25170   rm -f conftest.er1
25171   cat conftest.err >&5
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); } && {
25174          test -z "$ac_c_werror_flag" ||
25175          test ! -s conftest.err
25176        } && test -s conftest.$ac_objext; then
25177   ac_header_compiler=yes
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         ac_header_compiler=no
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25187 echo "${ECHO_T}$ac_header_compiler" >&6; }
25188
25189 # Is the header present?
25190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25192 cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198 #include <$ac_header>
25199 _ACEOF
25200 if { (ac_try="$ac_cpp conftest.$ac_ext"
25201 case "(($ac_try" in
25202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203   *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25207   ac_status=$?
25208   grep -v '^ *+' conftest.er1 >conftest.err
25209   rm -f conftest.er1
25210   cat conftest.err >&5
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); } >/dev/null && {
25213          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25214          test ! -s conftest.err
25215        }; then
25216   ac_header_preproc=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221   ac_header_preproc=no
25222 fi
25223
25224 rm -f conftest.err conftest.$ac_ext
25225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25226 echo "${ECHO_T}$ac_header_preproc" >&6; }
25227
25228 # So?  What about this header?
25229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25230   yes:no: )
25231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25235     ac_header_preproc=yes
25236     ;;
25237   no:yes:* )
25238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25240     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25241 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25242     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25244     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25245 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25248     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25250     ( cat <<\_ASBOX
25251 ## ------------------------------- ##
25252 ## Report this to nfs@lists.sf.net ##
25253 ## ------------------------------- ##
25254 _ASBOX
25255      ) | sed "s/^/$as_me: WARNING:     /" >&2
25256     ;;
25257 esac
25258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25261   echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263   eval "$as_ac_Header=\$ac_header_preproc"
25264 fi
25265 ac_res=`eval echo '${'$as_ac_Header'}'`
25266                { echo "$as_me:$LINENO: result: $ac_res" >&5
25267 echo "${ECHO_T}$ac_res" >&6; }
25268
25269 fi
25270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25271   cat >>confdefs.h <<_ACEOF
25272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25273 _ACEOF
25274
25275 fi
25276
25277 done
25278
25279
25280
25281 for ac_func in fork vfork
25282 do
25283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289   cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25297 #define $ac_func innocuous_$ac_func
25298
25299 /* System header to define __stub macros and hopefully few prototypes,
25300     which can conflict with char $ac_func (); below.
25301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25302     <limits.h> exists even on freestanding compilers.  */
25303
25304 #ifdef __STDC__
25305 # include <limits.h>
25306 #else
25307 # include <assert.h>
25308 #endif
25309
25310 #undef $ac_func
25311
25312 /* Override any GCC internal prototype to avoid an error.
25313    Use char because int might match the return type of a GCC
25314    builtin and then its argument prototype would still apply.  */
25315 #ifdef __cplusplus
25316 extern "C"
25317 #endif
25318 char $ac_func ();
25319 /* The GNU C library defines this for functions which it implements
25320     to always fail with ENOSYS.  Some functions are actually named
25321     something starting with __ and the normal name is an alias.  */
25322 #if defined __stub_$ac_func || defined __stub___$ac_func
25323 choke me
25324 #endif
25325
25326 int
25327 main ()
25328 {
25329 return $ac_func ();
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 rm -f conftest.$ac_objext conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_link") 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } && {
25348          test -z "$ac_c_werror_flag" ||
25349          test ! -s conftest.err
25350        } && test -s conftest$ac_exeext &&
25351        $as_test_x conftest$ac_exeext; then
25352   eval "$as_ac_var=yes"
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357         eval "$as_ac_var=no"
25358 fi
25359
25360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25361       conftest$ac_exeext conftest.$ac_ext
25362 fi
25363 ac_res=`eval echo '${'$as_ac_var'}'`
25364                { echo "$as_me:$LINENO: result: $ac_res" >&5
25365 echo "${ECHO_T}$ac_res" >&6; }
25366 if test `eval echo '${'$as_ac_var'}'` = yes; then
25367   cat >>confdefs.h <<_ACEOF
25368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25369 _ACEOF
25370
25371 fi
25372 done
25373
25374 if test "x$ac_cv_func_fork" = xyes; then
25375   { echo "$as_me:$LINENO: checking for working fork" >&5
25376 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25377 if test "${ac_cv_func_fork_works+set}" = set; then
25378   echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380   if test "$cross_compiling" = yes; then
25381   ac_cv_func_fork_works=cross
25382 else
25383   cat >conftest.$ac_ext <<_ACEOF
25384 /* confdefs.h.  */
25385 _ACEOF
25386 cat confdefs.h >>conftest.$ac_ext
25387 cat >>conftest.$ac_ext <<_ACEOF
25388 /* end confdefs.h.  */
25389 $ac_includes_default
25390 int
25391 main ()
25392 {
25393
25394           /* By Ruediger Kuhlmann. */
25395           return fork () < 0;
25396
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest$ac_exeext
25402 if { (ac_try="$ac_link"
25403 case "(($ac_try" in
25404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405   *) ac_try_echo=$ac_try;;
25406 esac
25407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25408   (eval "$ac_link") 2>&5
25409   ac_status=$?
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25412   { (case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_try") 2>&5
25418   ac_status=$?
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); }; }; then
25421   ac_cv_func_fork_works=yes
25422 else
25423   echo "$as_me: program exited with status $ac_status" >&5
25424 echo "$as_me: failed program was:" >&5
25425 sed 's/^/| /' conftest.$ac_ext >&5
25426
25427 ( exit $ac_status )
25428 ac_cv_func_fork_works=no
25429 fi
25430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25431 fi
25432
25433
25434 fi
25435 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25436 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25437
25438 else
25439   ac_cv_func_fork_works=$ac_cv_func_fork
25440 fi
25441 if test "x$ac_cv_func_fork_works" = xcross; then
25442   case $host in
25443     *-*-amigaos* | *-*-msdosdjgpp*)
25444       # Override, as these systems have only a dummy fork() stub
25445       ac_cv_func_fork_works=no
25446       ;;
25447     *)
25448       ac_cv_func_fork_works=yes
25449       ;;
25450   esac
25451   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25452 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25453 fi
25454 ac_cv_func_vfork_works=$ac_cv_func_vfork
25455 if test "x$ac_cv_func_vfork" = xyes; then
25456   { echo "$as_me:$LINENO: checking for working vfork" >&5
25457 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_vfork_works+set}" = set; then
25459   echo $ECHO_N "(cached) $ECHO_C" >&6
25460 else
25461   if test "$cross_compiling" = yes; then
25462   ac_cv_func_vfork_works=cross
25463 else
25464   cat >conftest.$ac_ext <<_ACEOF
25465 /* confdefs.h.  */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h.  */
25470 /* Thanks to Paul Eggert for this test.  */
25471 $ac_includes_default
25472 #include <sys/wait.h>
25473 #ifdef HAVE_VFORK_H
25474 # include <vfork.h>
25475 #endif
25476 /* On some sparc systems, changes by the child to local and incoming
25477    argument registers are propagated back to the parent.  The compiler
25478    is told about this with #include <vfork.h>, but some compilers
25479    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25480    static variable whose address is put into a register that is
25481    clobbered by the vfork.  */
25482 static void
25483 #ifdef __cplusplus
25484 sparc_address_test (int arg)
25485 # else
25486 sparc_address_test (arg) int arg;
25487 #endif
25488 {
25489   static pid_t child;
25490   if (!child) {
25491     child = vfork ();
25492     if (child < 0) {
25493       perror ("vfork");
25494       _exit(2);
25495     }
25496     if (!child) {
25497       arg = getpid();
25498       write(-1, "", 0);
25499       _exit (arg);
25500     }
25501   }
25502 }
25503
25504 int
25505 main ()
25506 {
25507   pid_t parent = getpid ();
25508   pid_t child;
25509
25510   sparc_address_test (0);
25511
25512   child = vfork ();
25513
25514   if (child == 0) {
25515     /* Here is another test for sparc vfork register problems.  This
25516        test uses lots of local variables, at least as many local
25517        variables as main has allocated so far including compiler
25518        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25519        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25520        reuse the register of parent for one of the local variables,
25521        since it will think that parent can't possibly be used any more
25522        in this routine.  Assigning to the local variable will thus
25523        munge parent in the parent process.  */
25524     pid_t
25525       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25526       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25527     /* Convince the compiler that p..p7 are live; otherwise, it might
25528        use the same hardware register for all 8 local variables.  */
25529     if (p != p1 || p != p2 || p != p3 || p != p4
25530         || p != p5 || p != p6 || p != p7)
25531       _exit(1);
25532
25533     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25534        from child file descriptors.  If the child closes a descriptor
25535        before it execs or exits, this munges the parent's descriptor
25536        as well.  Test for this by closing stdout in the child.  */
25537     _exit(close(fileno(stdout)) != 0);
25538   } else {
25539     int status;
25540     struct stat st;
25541
25542     while (wait(&status) != child)
25543       ;
25544     return (
25545          /* Was there some problem with vforking?  */
25546          child < 0
25547
25548          /* Did the child fail?  (This shouldn't happen.)  */
25549          || status
25550
25551          /* Did the vfork/compiler bug occur?  */
25552          || parent != getpid()
25553
25554          /* Did the file descriptor bug occur?  */
25555          || fstat(fileno(stdout), &st) != 0
25556          );
25557   }
25558 }
25559 _ACEOF
25560 rm -f conftest$ac_exeext
25561 if { (ac_try="$ac_link"
25562 case "(($ac_try" in
25563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564   *) ac_try_echo=$ac_try;;
25565 esac
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567   (eval "$ac_link") 2>&5
25568   ac_status=$?
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25571   { (case "(($ac_try" in
25572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573   *) ac_try_echo=$ac_try;;
25574 esac
25575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25576   (eval "$ac_try") 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; }; then
25580   ac_cv_func_vfork_works=yes
25581 else
25582   echo "$as_me: program exited with status $ac_status" >&5
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25585
25586 ( exit $ac_status )
25587 ac_cv_func_vfork_works=no
25588 fi
25589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25590 fi
25591
25592
25593 fi
25594 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25595 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25596
25597 fi;
25598 if test "x$ac_cv_func_fork_works" = xcross; then
25599   ac_cv_func_vfork_works=$ac_cv_func_vfork
25600   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25601 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25602 fi
25603
25604 if test "x$ac_cv_func_vfork_works" = xyes; then
25605
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_WORKING_VFORK 1
25608 _ACEOF
25609
25610 else
25611
25612 cat >>confdefs.h <<\_ACEOF
25613 #define vfork fork
25614 _ACEOF
25615
25616 fi
25617 if test "x$ac_cv_func_fork_works" = xyes; then
25618
25619 cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_WORKING_FORK 1
25621 _ACEOF
25622
25623 fi
25624
25625 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25626 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25627 if test "${ac_cv_type_getgroups+set}" = set; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   if test "$cross_compiling" = yes; then
25631   ac_cv_type_getgroups=cross
25632 else
25633   cat >conftest.$ac_ext <<_ACEOF
25634 /* confdefs.h.  */
25635 _ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h.  */
25639 /* Thanks to Mike Rendell for this test.  */
25640 $ac_includes_default
25641 #define NGID 256
25642 #undef MAX
25643 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25644
25645 int
25646 main ()
25647 {
25648   gid_t gidset[NGID];
25649   int i, n;
25650   union { gid_t gval; long int lval; }  val;
25651
25652   val.lval = -1;
25653   for (i = 0; i < NGID; i++)
25654     gidset[i] = val.gval;
25655   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25656                  gidset);
25657   /* Exit non-zero if getgroups seems to require an array of ints.  This
25658      happens when gid_t is short int but getgroups modifies an array
25659      of ints.  */
25660   return n > 0 && gidset[n] != val.gval;
25661 }
25662 _ACEOF
25663 rm -f conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667   *) ac_try_echo=$ac_try;;
25668 esac
25669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25670   (eval "$ac_link") 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25674   { (case "(($ac_try" in
25675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676   *) ac_try_echo=$ac_try;;
25677 esac
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679   (eval "$ac_try") 2>&5
25680   ac_status=$?
25681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); }; }; then
25683   ac_cv_type_getgroups=gid_t
25684 else
25685   echo "$as_me: program exited with status $ac_status" >&5
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 ( exit $ac_status )
25690 ac_cv_type_getgroups=int
25691 fi
25692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25693 fi
25694
25695
25696 if test $ac_cv_type_getgroups = cross; then
25697         cat >conftest.$ac_ext <<_ACEOF
25698 /* confdefs.h.  */
25699 _ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h.  */
25703 #include <unistd.h>
25704
25705 _ACEOF
25706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25707   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25708   ac_cv_type_getgroups=gid_t
25709 else
25710   ac_cv_type_getgroups=int
25711 fi
25712 rm -f conftest*
25713
25714 fi
25715 fi
25716 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25717 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25718
25719 cat >>confdefs.h <<_ACEOF
25720 #define GETGROUPS_T $ac_cv_type_getgroups
25721 _ACEOF
25722
25723
25724 { echo "$as_me:$LINENO: checking for getgroups" >&5
25725 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25726 if test "${ac_cv_func_getgroups+set}" = set; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25737 #define getgroups innocuous_getgroups
25738
25739 /* System header to define __stub macros and hopefully few prototypes,
25740     which can conflict with char getgroups (); below.
25741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25742     <limits.h> exists even on freestanding compilers.  */
25743
25744 #ifdef __STDC__
25745 # include <limits.h>
25746 #else
25747 # include <assert.h>
25748 #endif
25749
25750 #undef getgroups
25751
25752 /* Override any GCC internal prototype to avoid an error.
25753    Use char because int might match the return type of a GCC
25754    builtin and then its argument prototype would still apply.  */
25755 #ifdef __cplusplus
25756 extern "C"
25757 #endif
25758 char getgroups ();
25759 /* The GNU C library defines this for functions which it implements
25760     to always fail with ENOSYS.  Some functions are actually named
25761     something starting with __ and the normal name is an alias.  */
25762 #if defined __stub_getgroups || defined __stub___getgroups
25763 choke me
25764 #endif
25765
25766 int
25767 main ()
25768 {
25769 return getgroups ();
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 rm -f conftest.$ac_objext conftest$ac_exeext
25775 if { (ac_try="$ac_link"
25776 case "(($ac_try" in
25777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778   *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781   (eval "$ac_link") 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && {
25788          test -z "$ac_c_werror_flag" ||
25789          test ! -s conftest.err
25790        } && test -s conftest$ac_exeext &&
25791        $as_test_x conftest$ac_exeext; then
25792   ac_cv_func_getgroups=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         ac_cv_func_getgroups=no
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801       conftest$ac_exeext conftest.$ac_ext
25802 fi
25803 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25804 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25805
25806
25807 # If we don't yet have getgroups, see if it's in -lbsd.
25808 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25809 ac_save_LIBS=$LIBS
25810 if test $ac_cv_func_getgroups = no; then
25811   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25812 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25813 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25814   echo $ECHO_N "(cached) $ECHO_C" >&6
25815 else
25816   ac_check_lib_save_LIBS=$LIBS
25817 LIBS="-lbsd  $LIBS"
25818 cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824
25825 /* Override any GCC internal prototype to avoid an error.
25826    Use char because int might match the return type of a GCC
25827    builtin and then its argument prototype would still apply.  */
25828 #ifdef __cplusplus
25829 extern "C"
25830 #endif
25831 char getgroups ();
25832 int
25833 main ()
25834 {
25835 return getgroups ();
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext conftest$ac_exeext
25841 if { (ac_try="$ac_link"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_link") 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } && {
25854          test -z "$ac_c_werror_flag" ||
25855          test ! -s conftest.err
25856        } && test -s conftest$ac_exeext &&
25857        $as_test_x conftest$ac_exeext; then
25858   ac_cv_lib_bsd_getgroups=yes
25859 else
25860   echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25862
25863         ac_cv_lib_bsd_getgroups=no
25864 fi
25865
25866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25867       conftest$ac_exeext conftest.$ac_ext
25868 LIBS=$ac_check_lib_save_LIBS
25869 fi
25870 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25871 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25872 if test $ac_cv_lib_bsd_getgroups = yes; then
25873   GETGROUPS_LIB=-lbsd
25874 fi
25875
25876 fi
25877
25878 # Run the program to test the functionality of the system-supplied
25879 # getgroups function only if there is such a function.
25880 if test $ac_cv_func_getgroups = yes; then
25881   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25882 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25883 if test "${ac_cv_func_getgroups_works+set}" = set; then
25884   echo $ECHO_N "(cached) $ECHO_C" >&6
25885 else
25886   if test "$cross_compiling" = yes; then
25887   ac_cv_func_getgroups_works=no
25888 else
25889   cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895 $ac_includes_default
25896 int
25897 main ()
25898 {
25899 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25900        return getgroups (0, 0) == -1;
25901   ;
25902   return 0;
25903 }
25904 _ACEOF
25905 rm -f conftest$ac_exeext
25906 if { (ac_try="$ac_link"
25907 case "(($ac_try" in
25908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909   *) ac_try_echo=$ac_try;;
25910 esac
25911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25912   (eval "$ac_link") 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25916   { (case "(($ac_try" in
25917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918   *) ac_try_echo=$ac_try;;
25919 esac
25920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25921   (eval "$ac_try") 2>&5
25922   ac_status=$?
25923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924   (exit $ac_status); }; }; then
25925   ac_cv_func_getgroups_works=yes
25926 else
25927   echo "$as_me: program exited with status $ac_status" >&5
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931 ( exit $ac_status )
25932 ac_cv_func_getgroups_works=no
25933 fi
25934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25935 fi
25936
25937
25938
25939 fi
25940 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25941 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25942   if test $ac_cv_func_getgroups_works = yes; then
25943
25944 cat >>confdefs.h <<\_ACEOF
25945 #define HAVE_GETGROUPS 1
25946 _ACEOF
25947
25948   fi
25949 fi
25950 LIBS=$ac_save_LIBS
25951
25952 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25953 # -lseq on Dynix/PTX, -lgen on Unixware.
25954 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25955 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25956 if test "${ac_cv_search_getmntent+set}" = set; then
25957   echo $ECHO_N "(cached) $ECHO_C" >&6
25958 else
25959   ac_func_search_save_LIBS=$LIBS
25960 cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966
25967 /* Override any GCC internal prototype to avoid an error.
25968    Use char because int might match the return type of a GCC
25969    builtin and then its argument prototype would still apply.  */
25970 #ifdef __cplusplus
25971 extern "C"
25972 #endif
25973 char getmntent ();
25974 int
25975 main ()
25976 {
25977 return getmntent ();
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 for ac_lib in '' sun seq gen; do
25983   if test -z "$ac_lib"; then
25984     ac_res="none required"
25985   else
25986     ac_res=-l$ac_lib
25987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25988   fi
25989   rm -f conftest.$ac_objext conftest$ac_exeext
25990 if { (ac_try="$ac_link"
25991 case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_link") 2>conftest.er1
25997   ac_status=$?
25998   grep -v '^ *+' conftest.er1 >conftest.err
25999   rm -f conftest.er1
26000   cat conftest.err >&5
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); } && {
26003          test -z "$ac_c_werror_flag" ||
26004          test ! -s conftest.err
26005        } && test -s conftest$ac_exeext &&
26006        $as_test_x conftest$ac_exeext; then
26007   ac_cv_search_getmntent=$ac_res
26008 else
26009   echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26016       conftest$ac_exeext
26017   if test "${ac_cv_search_getmntent+set}" = set; then
26018   break
26019 fi
26020 done
26021 if test "${ac_cv_search_getmntent+set}" = set; then
26022   :
26023 else
26024   ac_cv_search_getmntent=no
26025 fi
26026 rm conftest.$ac_ext
26027 LIBS=$ac_func_search_save_LIBS
26028 fi
26029 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26030 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26031 ac_res=$ac_cv_search_getmntent
26032 if test "$ac_res" != no; then
26033   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26034   ac_cv_func_getmntent=yes
26035
26036 cat >>confdefs.h <<\_ACEOF
26037 #define HAVE_GETMNTENT 1
26038 _ACEOF
26039
26040 else
26041   ac_cv_func_getmntent=no
26042 fi
26043
26044
26045 if test $ac_cv_c_compiler_gnu = yes; then
26046     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26047 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26048 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26049   echo $ECHO_N "(cached) $ECHO_C" >&6
26050 else
26051     ac_pattern="Autoconf.*'x'"
26052   cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h.  */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h.  */
26058 #include <sgtty.h>
26059 Autoconf TIOCGETP
26060 _ACEOF
26061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26062   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26063   ac_cv_prog_gcc_traditional=yes
26064 else
26065   ac_cv_prog_gcc_traditional=no
26066 fi
26067 rm -f conftest*
26068
26069
26070   if test $ac_cv_prog_gcc_traditional = no; then
26071     cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077 #include <termio.h>
26078 Autoconf TCGETA
26079 _ACEOF
26080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26081   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26082   ac_cv_prog_gcc_traditional=yes
26083 fi
26084 rm -f conftest*
26085
26086   fi
26087 fi
26088 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26089 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26090   if test $ac_cv_prog_gcc_traditional = yes; then
26091     CC="$CC -traditional"
26092   fi
26093 fi
26094
26095 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26096 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26097 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26098   echo $ECHO_N "(cached) $ECHO_C" >&6
26099 else
26100   rm -f conftest.sym conftest.file
26101 echo >conftest.file
26102 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26103   if test "$cross_compiling" = yes; then
26104   ac_cv_func_lstat_dereferences_slashed_symlink=no
26105 else
26106   cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112 $ac_includes_default
26113 int
26114 main ()
26115 {
26116 struct stat sbuf;
26117      /* Linux will dereference the symlink and fail.
26118         That is better in the sense that it means we will not
26119         have to compile and use the lstat wrapper.  */
26120      return lstat ("conftest.sym/", &sbuf) == 0;
26121   ;
26122   return 0;
26123 }
26124 _ACEOF
26125 rm -f conftest$ac_exeext
26126 if { (ac_try="$ac_link"
26127 case "(($ac_try" in
26128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26129   *) ac_try_echo=$ac_try;;
26130 esac
26131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26132   (eval "$ac_link") 2>&5
26133   ac_status=$?
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26136   { (case "(($ac_try" in
26137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138   *) ac_try_echo=$ac_try;;
26139 esac
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141   (eval "$ac_try") 2>&5
26142   ac_status=$?
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); }; }; then
26145   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26146 else
26147   echo "$as_me: program exited with status $ac_status" >&5
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26150
26151 ( exit $ac_status )
26152 ac_cv_func_lstat_dereferences_slashed_symlink=no
26153 fi
26154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26155 fi
26156
26157
26158 else
26159   # If the `ln -s' command failed, then we probably don't even
26160   # have an lstat function.
26161   ac_cv_func_lstat_dereferences_slashed_symlink=no
26162 fi
26163 rm -f conftest.sym conftest.file
26164
26165 fi
26166 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26167 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26168
26169 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26170
26171 cat >>confdefs.h <<_ACEOF
26172 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26173 _ACEOF
26174
26175
26176 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26177   case " $LIBOBJS " in
26178   *" lstat.$ac_objext "* ) ;;
26179   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26180  ;;
26181 esac
26182
26183 fi
26184
26185 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26186 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26187 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26190   if test "$cross_compiling" = yes; then
26191   ac_cv_func_lstat_empty_string_bug=yes
26192 else
26193   cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199 $ac_includes_default
26200 int
26201 main ()
26202 {
26203 struct stat sbuf;
26204   return lstat ("", &sbuf) == 0;
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 rm -f conftest$ac_exeext
26210 if { (ac_try="$ac_link"
26211 case "(($ac_try" in
26212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26213   *) ac_try_echo=$ac_try;;
26214 esac
26215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26216   (eval "$ac_link") 2>&5
26217   ac_status=$?
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26220   { (case "(($ac_try" in
26221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222   *) ac_try_echo=$ac_try;;
26223 esac
26224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26225   (eval "$ac_try") 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); }; }; then
26229   ac_cv_func_lstat_empty_string_bug=no
26230 else
26231   echo "$as_me: program exited with status $ac_status" >&5
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235 ( exit $ac_status )
26236 ac_cv_func_lstat_empty_string_bug=yes
26237 fi
26238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26239 fi
26240
26241
26242 fi
26243 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26244 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26245 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26246   case " $LIBOBJS " in
26247   *" lstat.$ac_objext "* ) ;;
26248   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26249  ;;
26250 esac
26251
26252
26253 cat >>confdefs.h <<_ACEOF
26254 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26255 _ACEOF
26256
26257 fi
26258
26259 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26260 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26261 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 else
26264   rm -f conftest.sym conftest.file
26265 echo >conftest.file
26266 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26267   if test "$cross_compiling" = yes; then
26268   ac_cv_func_lstat_dereferences_slashed_symlink=no
26269 else
26270   cat >conftest.$ac_ext <<_ACEOF
26271 /* confdefs.h.  */
26272 _ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h.  */
26276 $ac_includes_default
26277 int
26278 main ()
26279 {
26280 struct stat sbuf;
26281      /* Linux will dereference the symlink and fail.
26282         That is better in the sense that it means we will not
26283         have to compile and use the lstat wrapper.  */
26284      return lstat ("conftest.sym/", &sbuf) == 0;
26285   ;
26286   return 0;
26287 }
26288 _ACEOF
26289 rm -f conftest$ac_exeext
26290 if { (ac_try="$ac_link"
26291 case "(($ac_try" in
26292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293   *) ac_try_echo=$ac_try;;
26294 esac
26295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26296   (eval "$ac_link") 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26300   { (case "(($ac_try" in
26301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302   *) ac_try_echo=$ac_try;;
26303 esac
26304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26305   (eval "$ac_try") 2>&5
26306   ac_status=$?
26307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308   (exit $ac_status); }; }; then
26309   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26310 else
26311   echo "$as_me: program exited with status $ac_status" >&5
26312 echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ( exit $ac_status )
26316 ac_cv_func_lstat_dereferences_slashed_symlink=no
26317 fi
26318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26319 fi
26320
26321
26322 else
26323   # If the `ln -s' command failed, then we probably don't even
26324   # have an lstat function.
26325   ac_cv_func_lstat_dereferences_slashed_symlink=no
26326 fi
26327 rm -f conftest.sym conftest.file
26328
26329 fi
26330 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26331 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26332
26333 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26334
26335 cat >>confdefs.h <<_ACEOF
26336 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26337 _ACEOF
26338
26339
26340 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26341   case " $LIBOBJS " in
26342   *" lstat.$ac_objext "* ) ;;
26343   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26344  ;;
26345 esac
26346
26347 fi
26348
26349 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26350 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26351 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26352   echo $ECHO_N "(cached) $ECHO_C" >&6
26353 else
26354   cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360 #include <sys/types.h>
26361 int
26362 main ()
26363 {
26364 return makedev(0, 0);
26365   ;
26366   return 0;
26367 }
26368 _ACEOF
26369 rm -f conftest.$ac_objext conftest$ac_exeext
26370 if { (ac_try="$ac_link"
26371 case "(($ac_try" in
26372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373   *) ac_try_echo=$ac_try;;
26374 esac
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376   (eval "$ac_link") 2>conftest.er1
26377   ac_status=$?
26378   grep -v '^ *+' conftest.er1 >conftest.err
26379   rm -f conftest.er1
26380   cat conftest.err >&5
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } && {
26383          test -z "$ac_c_werror_flag" ||
26384          test ! -s conftest.err
26385        } && test -s conftest$ac_exeext &&
26386        $as_test_x conftest$ac_exeext; then
26387   ac_cv_header_sys_types_h_makedev=yes
26388 else
26389   echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392         ac_cv_header_sys_types_h_makedev=no
26393 fi
26394
26395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26396       conftest$ac_exeext conftest.$ac_ext
26397
26398 fi
26399 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26400 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26401
26402 if test $ac_cv_header_sys_types_h_makedev = no; then
26403 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26404   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26405 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26406 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26407   echo $ECHO_N "(cached) $ECHO_C" >&6
26408 fi
26409 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26410 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26411 else
26412   # Is the header compilable?
26413 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26414 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26415 cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421 $ac_includes_default
26422 #include <sys/mkdev.h>
26423 _ACEOF
26424 rm -f conftest.$ac_objext
26425 if { (ac_try="$ac_compile"
26426 case "(($ac_try" in
26427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428   *) ac_try_echo=$ac_try;;
26429 esac
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431   (eval "$ac_compile") 2>conftest.er1
26432   ac_status=$?
26433   grep -v '^ *+' conftest.er1 >conftest.err
26434   rm -f conftest.er1
26435   cat conftest.err >&5
26436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437   (exit $ac_status); } && {
26438          test -z "$ac_c_werror_flag" ||
26439          test ! -s conftest.err
26440        } && test -s conftest.$ac_objext; then
26441   ac_header_compiler=yes
26442 else
26443   echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26445
26446         ac_header_compiler=no
26447 fi
26448
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26451 echo "${ECHO_T}$ac_header_compiler" >&6; }
26452
26453 # Is the header present?
26454 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26455 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26456 cat >conftest.$ac_ext <<_ACEOF
26457 /* confdefs.h.  */
26458 _ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h.  */
26462 #include <sys/mkdev.h>
26463 _ACEOF
26464 if { (ac_try="$ac_cpp conftest.$ac_ext"
26465 case "(($ac_try" in
26466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467   *) ac_try_echo=$ac_try;;
26468 esac
26469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26471   ac_status=$?
26472   grep -v '^ *+' conftest.er1 >conftest.err
26473   rm -f conftest.er1
26474   cat conftest.err >&5
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); } >/dev/null && {
26477          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26478          test ! -s conftest.err
26479        }; then
26480   ac_header_preproc=yes
26481 else
26482   echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26484
26485   ac_header_preproc=no
26486 fi
26487
26488 rm -f conftest.err conftest.$ac_ext
26489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26490 echo "${ECHO_T}$ac_header_preproc" >&6; }
26491
26492 # So?  What about this header?
26493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26494   yes:no: )
26495     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26496 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26497     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26498 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26499     ac_header_preproc=yes
26500     ;;
26501   no:yes:* )
26502     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26503 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26504     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26505 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26506     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26507 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26508     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26509 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26510     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26511 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26512     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26513 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26514     ( cat <<\_ASBOX
26515 ## ------------------------------- ##
26516 ## Report this to nfs@lists.sf.net ##
26517 ## ------------------------------- ##
26518 _ASBOX
26519      ) | sed "s/^/$as_me: WARNING:     /" >&2
26520     ;;
26521 esac
26522 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26523 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26524 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26525   echo $ECHO_N "(cached) $ECHO_C" >&6
26526 else
26527   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26528 fi
26529 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26530 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26531
26532 fi
26533 if test $ac_cv_header_sys_mkdev_h = yes; then
26534
26535 cat >>confdefs.h <<\_ACEOF
26536 #define MAJOR_IN_MKDEV 1
26537 _ACEOF
26538
26539 fi
26540
26541
26542
26543   if test $ac_cv_header_sys_mkdev_h = no; then
26544     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26545   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26546 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26547 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26548   echo $ECHO_N "(cached) $ECHO_C" >&6
26549 fi
26550 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26551 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26552 else
26553   # Is the header compilable?
26554 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26555 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h.  */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h.  */
26562 $ac_includes_default
26563 #include <sys/sysmacros.h>
26564 _ACEOF
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_compile") 2>conftest.er1
26573   ac_status=$?
26574   grep -v '^ *+' conftest.er1 >conftest.err
26575   rm -f conftest.er1
26576   cat conftest.err >&5
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); } && {
26579          test -z "$ac_c_werror_flag" ||
26580          test ! -s conftest.err
26581        } && test -s conftest.$ac_objext; then
26582   ac_header_compiler=yes
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587         ac_header_compiler=no
26588 fi
26589
26590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26592 echo "${ECHO_T}$ac_header_compiler" >&6; }
26593
26594 # Is the header present?
26595 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26596 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26597 cat >conftest.$ac_ext <<_ACEOF
26598 /* confdefs.h.  */
26599 _ACEOF
26600 cat confdefs.h >>conftest.$ac_ext
26601 cat >>conftest.$ac_ext <<_ACEOF
26602 /* end confdefs.h.  */
26603 #include <sys/sysmacros.h>
26604 _ACEOF
26605 if { (ac_try="$ac_cpp conftest.$ac_ext"
26606 case "(($ac_try" in
26607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26608   *) ac_try_echo=$ac_try;;
26609 esac
26610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26612   ac_status=$?
26613   grep -v '^ *+' conftest.er1 >conftest.err
26614   rm -f conftest.er1
26615   cat conftest.err >&5
26616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617   (exit $ac_status); } >/dev/null && {
26618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26619          test ! -s conftest.err
26620        }; then
26621   ac_header_preproc=yes
26622 else
26623   echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626   ac_header_preproc=no
26627 fi
26628
26629 rm -f conftest.err conftest.$ac_ext
26630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26631 echo "${ECHO_T}$ac_header_preproc" >&6; }
26632
26633 # So?  What about this header?
26634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26635   yes:no: )
26636     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
26637 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26638     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
26639 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
26640     ac_header_preproc=yes
26641     ;;
26642   no:yes:* )
26643     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
26644 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
26645     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
26646 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
26647     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
26648 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
26649     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
26650 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26651     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26652 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26653     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26654 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26655     ( cat <<\_ASBOX
26656 ## ------------------------------- ##
26657 ## Report this to nfs@lists.sf.net ##
26658 ## ------------------------------- ##
26659 _ASBOX
26660      ) | sed "s/^/$as_me: WARNING:     /" >&2
26661     ;;
26662 esac
26663 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26664 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26665 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26666   echo $ECHO_N "(cached) $ECHO_C" >&6
26667 else
26668   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26669 fi
26670 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26671 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26672
26673 fi
26674 if test $ac_cv_header_sys_sysmacros_h = yes; then
26675
26676 cat >>confdefs.h <<\_ACEOF
26677 #define MAJOR_IN_SYSMACROS 1
26678 _ACEOF
26679
26680 fi
26681
26682
26683   fi
26684 fi
26685
26686 #AC_FUNC_MALLOC
26687 { echo "$as_me:$LINENO: checking for working memcmp" >&5
26688 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
26689 if test "${ac_cv_func_memcmp_working+set}" = set; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 else
26692   if test "$cross_compiling" = yes; then
26693   ac_cv_func_memcmp_working=no
26694 else
26695   cat >conftest.$ac_ext <<_ACEOF
26696 /* confdefs.h.  */
26697 _ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h.  */
26701 $ac_includes_default
26702 int
26703 main ()
26704 {
26705
26706   /* Some versions of memcmp are not 8-bit clean.  */
26707   char c0 = '\100', c1 = '\200', c2 = '\201';
26708   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26709     return 1;
26710
26711   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26712      or more and with at least one buffer not starting on a 4-byte boundary.
26713      William Lewis provided this test program.   */
26714   {
26715     char foo[21];
26716     char bar[21];
26717     int i;
26718     for (i = 0; i < 4; i++)
26719       {
26720         char *a = foo + i;
26721         char *b = bar + i;
26722         strcpy (a, "--------01111111");
26723         strcpy (b, "--------10000000");
26724         if (memcmp (a, b, 16) >= 0)
26725           return 1;
26726       }
26727     return 0;
26728   }
26729
26730   ;
26731   return 0;
26732 }
26733 _ACEOF
26734 rm -f conftest$ac_exeext
26735 if { (ac_try="$ac_link"
26736 case "(($ac_try" in
26737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738   *) ac_try_echo=$ac_try;;
26739 esac
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741   (eval "$ac_link") 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26745   { (case "(($ac_try" in
26746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747   *) ac_try_echo=$ac_try;;
26748 esac
26749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750   (eval "$ac_try") 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   ac_cv_func_memcmp_working=yes
26755 else
26756   echo "$as_me: program exited with status $ac_status" >&5
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 ( exit $ac_status )
26761 ac_cv_func_memcmp_working=no
26762 fi
26763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26764 fi
26765
26766
26767 fi
26768 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26769 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26770 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26771   *" memcmp.$ac_objext "* ) ;;
26772   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26773  ;;
26774 esac
26775
26776
26777 #AC_FUNC_REALLOC
26778
26779
26780 for ac_header in sys/select.h sys/socket.h
26781 do
26782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26787   echo $ECHO_N "(cached) $ECHO_C" >&6
26788 fi
26789 ac_res=`eval echo '${'$as_ac_Header'}'`
26790                { echo "$as_me:$LINENO: result: $ac_res" >&5
26791 echo "${ECHO_T}$ac_res" >&6; }
26792 else
26793   # Is the header compilable?
26794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26796 cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 $ac_includes_default
26803 #include <$ac_header>
26804 _ACEOF
26805 rm -f conftest.$ac_objext
26806 if { (ac_try="$ac_compile"
26807 case "(($ac_try" in
26808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809   *) ac_try_echo=$ac_try;;
26810 esac
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812   (eval "$ac_compile") 2>conftest.er1
26813   ac_status=$?
26814   grep -v '^ *+' conftest.er1 >conftest.err
26815   rm -f conftest.er1
26816   cat conftest.err >&5
26817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818   (exit $ac_status); } && {
26819          test -z "$ac_c_werror_flag" ||
26820          test ! -s conftest.err
26821        } && test -s conftest.$ac_objext; then
26822   ac_header_compiler=yes
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827         ac_header_compiler=no
26828 fi
26829
26830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26832 echo "${ECHO_T}$ac_header_compiler" >&6; }
26833
26834 # Is the header present?
26835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26837 cat >conftest.$ac_ext <<_ACEOF
26838 /* confdefs.h.  */
26839 _ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h.  */
26843 #include <$ac_header>
26844 _ACEOF
26845 if { (ac_try="$ac_cpp conftest.$ac_ext"
26846 case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26852   ac_status=$?
26853   grep -v '^ *+' conftest.er1 >conftest.err
26854   rm -f conftest.er1
26855   cat conftest.err >&5
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); } >/dev/null && {
26858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26859          test ! -s conftest.err
26860        }; then
26861   ac_header_preproc=yes
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866   ac_header_preproc=no
26867 fi
26868
26869 rm -f conftest.err conftest.$ac_ext
26870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26871 echo "${ECHO_T}$ac_header_preproc" >&6; }
26872
26873 # So?  What about this header?
26874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26875   yes:no: )
26876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26880     ac_header_preproc=yes
26881     ;;
26882   no:yes:* )
26883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26895     ( cat <<\_ASBOX
26896 ## ------------------------------- ##
26897 ## Report this to nfs@lists.sf.net ##
26898 ## ------------------------------- ##
26899 _ASBOX
26900      ) | sed "s/^/$as_me: WARNING:     /" >&2
26901     ;;
26902 esac
26903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   eval "$as_ac_Header=\$ac_header_preproc"
26909 fi
26910 ac_res=`eval echo '${'$as_ac_Header'}'`
26911                { echo "$as_me:$LINENO: result: $ac_res" >&5
26912 echo "${ECHO_T}$ac_res" >&6; }
26913
26914 fi
26915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26916   cat >>confdefs.h <<_ACEOF
26917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26918 _ACEOF
26919
26920 fi
26921
26922 done
26923
26924 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26925 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26926 if test "${ac_cv_func_select_args+set}" = set; then
26927   echo $ECHO_N "(cached) $ECHO_C" >&6
26928 else
26929   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26930  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26931   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26932    cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h.  */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h.  */
26938 $ac_includes_default
26939 #ifdef HAVE_SYS_SELECT_H
26940 # include <sys/select.h>
26941 #endif
26942 #ifdef HAVE_SYS_SOCKET_H
26943 # include <sys/socket.h>
26944 #endif
26945
26946 int
26947 main ()
26948 {
26949 extern int select ($ac_arg1,
26950                                             $ac_arg234, $ac_arg234, $ac_arg234,
26951                                             $ac_arg5);
26952   ;
26953   return 0;
26954 }
26955 _ACEOF
26956 rm -f conftest.$ac_objext
26957 if { (ac_try="$ac_compile"
26958 case "(($ac_try" in
26959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960   *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963   (eval "$ac_compile") 2>conftest.er1
26964   ac_status=$?
26965   grep -v '^ *+' conftest.er1 >conftest.err
26966   rm -f conftest.er1
26967   cat conftest.err >&5
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); } && {
26970          test -z "$ac_c_werror_flag" ||
26971          test ! -s conftest.err
26972        } && test -s conftest.$ac_objext; then
26973   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978
26979 fi
26980
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26982   done
26983  done
26984 done
26985 # Provide a safe default value.
26986 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26987
26988 fi
26989 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26990 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26991 ac_save_IFS=$IFS; IFS=','
26992 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26993 IFS=$ac_save_IFS
26994 shift
26995
26996 cat >>confdefs.h <<_ACEOF
26997 #define SELECT_TYPE_ARG1 $1
26998 _ACEOF
26999
27000
27001 cat >>confdefs.h <<_ACEOF
27002 #define SELECT_TYPE_ARG234 ($2)
27003 _ACEOF
27004
27005
27006 cat >>confdefs.h <<_ACEOF
27007 #define SELECT_TYPE_ARG5 ($3)
27008 _ACEOF
27009
27010 rm -f conftest*
27011
27012 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27013 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27014 if test "${ac_cv_type_signal+set}" = set; then
27015   echo $ECHO_N "(cached) $ECHO_C" >&6
27016 else
27017   cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 #include <sys/types.h>
27024 #include <signal.h>
27025
27026 int
27027 main ()
27028 {
27029 return *(signal (0, 0)) (0) == 1;
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 rm -f conftest.$ac_objext
27035 if { (ac_try="$ac_compile"
27036 case "(($ac_try" in
27037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038   *) ac_try_echo=$ac_try;;
27039 esac
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041   (eval "$ac_compile") 2>conftest.er1
27042   ac_status=$?
27043   grep -v '^ *+' conftest.er1 >conftest.err
27044   rm -f conftest.er1
27045   cat conftest.err >&5
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); } && {
27048          test -z "$ac_c_werror_flag" ||
27049          test ! -s conftest.err
27050        } && test -s conftest.$ac_objext; then
27051   ac_cv_type_signal=int
27052 else
27053   echo "$as_me: failed program was:" >&5
27054 sed 's/^/| /' conftest.$ac_ext >&5
27055
27056         ac_cv_type_signal=void
27057 fi
27058
27059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 fi
27061 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27062 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27063
27064 cat >>confdefs.h <<_ACEOF
27065 #define RETSIGTYPE $ac_cv_type_signal
27066 _ACEOF
27067
27068
27069 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27070 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27071 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074   if test "$cross_compiling" = yes; then
27075   ac_cv_func_stat_empty_string_bug=yes
27076 else
27077   cat >conftest.$ac_ext <<_ACEOF
27078 /* confdefs.h.  */
27079 _ACEOF
27080 cat confdefs.h >>conftest.$ac_ext
27081 cat >>conftest.$ac_ext <<_ACEOF
27082 /* end confdefs.h.  */
27083 $ac_includes_default
27084 int
27085 main ()
27086 {
27087 struct stat sbuf;
27088   return stat ("", &sbuf) == 0;
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_link") 2>&5
27101   ac_status=$?
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27104   { (case "(($ac_try" in
27105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106   *) ac_try_echo=$ac_try;;
27107 esac
27108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109   (eval "$ac_try") 2>&5
27110   ac_status=$?
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); }; }; then
27113   ac_cv_func_stat_empty_string_bug=no
27114 else
27115   echo "$as_me: program exited with status $ac_status" >&5
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119 ( exit $ac_status )
27120 ac_cv_func_stat_empty_string_bug=yes
27121 fi
27122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27123 fi
27124
27125
27126 fi
27127 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27128 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27129 if test $ac_cv_func_stat_empty_string_bug = yes; then
27130   case " $LIBOBJS " in
27131   *" stat.$ac_objext "* ) ;;
27132   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27133  ;;
27134 esac
27135
27136
27137 cat >>confdefs.h <<_ACEOF
27138 #define HAVE_STAT_EMPTY_STRING_BUG 1
27139 _ACEOF
27140
27141 fi
27142
27143
27144 for ac_func in vprintf
27145 do
27146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27150   echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152   cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27160 #define $ac_func innocuous_$ac_func
27161
27162 /* System header to define __stub macros and hopefully few prototypes,
27163     which can conflict with char $ac_func (); below.
27164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27165     <limits.h> exists even on freestanding compilers.  */
27166
27167 #ifdef __STDC__
27168 # include <limits.h>
27169 #else
27170 # include <assert.h>
27171 #endif
27172
27173 #undef $ac_func
27174
27175 /* Override any GCC internal prototype to avoid an error.
27176    Use char because int might match the return type of a GCC
27177    builtin and then its argument prototype would still apply.  */
27178 #ifdef __cplusplus
27179 extern "C"
27180 #endif
27181 char $ac_func ();
27182 /* The GNU C library defines this for functions which it implements
27183     to always fail with ENOSYS.  Some functions are actually named
27184     something starting with __ and the normal name is an alias.  */
27185 #if defined __stub_$ac_func || defined __stub___$ac_func
27186 choke me
27187 #endif
27188
27189 int
27190 main ()
27191 {
27192 return $ac_func ();
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 rm -f conftest.$ac_objext conftest$ac_exeext
27198 if { (ac_try="$ac_link"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_link") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_c_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest$ac_exeext &&
27214        $as_test_x conftest$ac_exeext; then
27215   eval "$as_ac_var=yes"
27216 else
27217   echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220         eval "$as_ac_var=no"
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27224       conftest$ac_exeext conftest.$ac_ext
27225 fi
27226 ac_res=`eval echo '${'$as_ac_var'}'`
27227                { echo "$as_me:$LINENO: result: $ac_res" >&5
27228 echo "${ECHO_T}$ac_res" >&6; }
27229 if test `eval echo '${'$as_ac_var'}'` = yes; then
27230   cat >>confdefs.h <<_ACEOF
27231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27232 _ACEOF
27233
27234 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27235 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27236 if test "${ac_cv_func__doprnt+set}" = set; then
27237   echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239   cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27247 #define _doprnt innocuous__doprnt
27248
27249 /* System header to define __stub macros and hopefully few prototypes,
27250     which can conflict with char _doprnt (); below.
27251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27252     <limits.h> exists even on freestanding compilers.  */
27253
27254 #ifdef __STDC__
27255 # include <limits.h>
27256 #else
27257 # include <assert.h>
27258 #endif
27259
27260 #undef _doprnt
27261
27262 /* Override any GCC internal prototype to avoid an error.
27263    Use char because int might match the return type of a GCC
27264    builtin and then its argument prototype would still apply.  */
27265 #ifdef __cplusplus
27266 extern "C"
27267 #endif
27268 char _doprnt ();
27269 /* The GNU C library defines this for functions which it implements
27270     to always fail with ENOSYS.  Some functions are actually named
27271     something starting with __ and the normal name is an alias.  */
27272 #if defined __stub__doprnt || defined __stub____doprnt
27273 choke me
27274 #endif
27275
27276 int
27277 main ()
27278 {
27279 return _doprnt ();
27280   ;
27281   return 0;
27282 }
27283 _ACEOF
27284 rm -f conftest.$ac_objext conftest$ac_exeext
27285 if { (ac_try="$ac_link"
27286 case "(($ac_try" in
27287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27288   *) ac_try_echo=$ac_try;;
27289 esac
27290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27291   (eval "$ac_link") 2>conftest.er1
27292   ac_status=$?
27293   grep -v '^ *+' conftest.er1 >conftest.err
27294   rm -f conftest.er1
27295   cat conftest.err >&5
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); } && {
27298          test -z "$ac_c_werror_flag" ||
27299          test ! -s conftest.err
27300        } && test -s conftest$ac_exeext &&
27301        $as_test_x conftest$ac_exeext; then
27302   ac_cv_func__doprnt=yes
27303 else
27304   echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27306
27307         ac_cv_func__doprnt=no
27308 fi
27309
27310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27311       conftest$ac_exeext conftest.$ac_ext
27312 fi
27313 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27314 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27315 if test $ac_cv_func__doprnt = yes; then
27316
27317 cat >>confdefs.h <<\_ACEOF
27318 #define HAVE_DOPRNT 1
27319 _ACEOF
27320
27321 fi
27322
27323 fi
27324 done
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27357                gethostbyaddr gethostbyname gethostname getmntent \
27358                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27359                realpath rmdir select socket strcasecmp strchr strdup \
27360                strerror strrchr strtol strtoul sigprocmask
27361 do
27362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27366   echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27376 #define $ac_func innocuous_$ac_func
27377
27378 /* System header to define __stub macros and hopefully few prototypes,
27379     which can conflict with char $ac_func (); below.
27380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27381     <limits.h> exists even on freestanding compilers.  */
27382
27383 #ifdef __STDC__
27384 # include <limits.h>
27385 #else
27386 # include <assert.h>
27387 #endif
27388
27389 #undef $ac_func
27390
27391 /* Override any GCC internal prototype to avoid an error.
27392    Use char because int might match the return type of a GCC
27393    builtin and then its argument prototype would still apply.  */
27394 #ifdef __cplusplus
27395 extern "C"
27396 #endif
27397 char $ac_func ();
27398 /* The GNU C library defines this for functions which it implements
27399     to always fail with ENOSYS.  Some functions are actually named
27400     something starting with __ and the normal name is an alias.  */
27401 #if defined __stub_$ac_func || defined __stub___$ac_func
27402 choke me
27403 #endif
27404
27405 int
27406 main ()
27407 {
27408 return $ac_func ();
27409   ;
27410   return 0;
27411 }
27412 _ACEOF
27413 rm -f conftest.$ac_objext conftest$ac_exeext
27414 if { (ac_try="$ac_link"
27415 case "(($ac_try" in
27416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417   *) ac_try_echo=$ac_try;;
27418 esac
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420   (eval "$ac_link") 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } && {
27427          test -z "$ac_c_werror_flag" ||
27428          test ! -s conftest.err
27429        } && test -s conftest$ac_exeext &&
27430        $as_test_x conftest$ac_exeext; then
27431   eval "$as_ac_var=yes"
27432 else
27433   echo "$as_me: failed program was:" >&5
27434 sed 's/^/| /' conftest.$ac_ext >&5
27435
27436         eval "$as_ac_var=no"
27437 fi
27438
27439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27440       conftest$ac_exeext conftest.$ac_ext
27441 fi
27442 ac_res=`eval echo '${'$as_ac_var'}'`
27443                { echo "$as_me:$LINENO: result: $ac_res" >&5
27444 echo "${ECHO_T}$ac_res" >&6; }
27445 if test `eval echo '${'$as_ac_var'}'` = yes; then
27446   cat >>confdefs.h <<_ACEOF
27447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27448 _ACEOF
27449
27450 fi
27451 done
27452
27453
27454
27455 { echo "$as_me:$LINENO: checking for short" >&5
27456 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27457 if test "${ac_cv_type_short+set}" = set; then
27458   echo $ECHO_N "(cached) $ECHO_C" >&6
27459 else
27460   cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466 $ac_includes_default
27467 typedef short ac__type_new_;
27468 int
27469 main ()
27470 {
27471 if ((ac__type_new_ *) 0)
27472   return 0;
27473 if (sizeof (ac__type_new_))
27474   return 0;
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 rm -f conftest.$ac_objext
27480 if { (ac_try="$ac_compile"
27481 case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_compile") 2>conftest.er1
27487   ac_status=$?
27488   grep -v '^ *+' conftest.er1 >conftest.err
27489   rm -f conftest.er1
27490   cat conftest.err >&5
27491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492   (exit $ac_status); } && {
27493          test -z "$ac_c_werror_flag" ||
27494          test ! -s conftest.err
27495        } && test -s conftest.$ac_objext; then
27496   ac_cv_type_short=yes
27497 else
27498   echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27500
27501         ac_cv_type_short=no
27502 fi
27503
27504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27505 fi
27506 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27507 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27508
27509 # The cast to long int works around a bug in the HP C Compiler
27510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512 # This bug is HP SR number 8606223364.
27513 { echo "$as_me:$LINENO: checking size of short" >&5
27514 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27515 if test "${ac_cv_sizeof_short+set}" = set; then
27516   echo $ECHO_N "(cached) $ECHO_C" >&6
27517 else
27518   if test "$cross_compiling" = yes; then
27519   # Depending upon the size, compute the lo and hi bounds.
27520 cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h.  */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h.  */
27526 $ac_includes_default
27527    typedef short ac__type_sizeof_;
27528 int
27529 main ()
27530 {
27531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27532 test_array [0] = 0
27533
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext
27539 if { (ac_try="$ac_compile"
27540 case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545   (eval "$ac_compile") 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } && {
27552          test -z "$ac_c_werror_flag" ||
27553          test ! -s conftest.err
27554        } && test -s conftest.$ac_objext; then
27555   ac_lo=0 ac_mid=0
27556   while :; do
27557     cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563 $ac_includes_default
27564    typedef short ac__type_sizeof_;
27565 int
27566 main ()
27567 {
27568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27569 test_array [0] = 0
27570
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 rm -f conftest.$ac_objext
27576 if { (ac_try="$ac_compile"
27577 case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_compile") 2>conftest.er1
27583   ac_status=$?
27584   grep -v '^ *+' conftest.er1 >conftest.err
27585   rm -f conftest.er1
27586   cat conftest.err >&5
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); } && {
27589          test -z "$ac_c_werror_flag" ||
27590          test ! -s conftest.err
27591        } && test -s conftest.$ac_objext; then
27592   ac_hi=$ac_mid; break
27593 else
27594   echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597         ac_lo=`expr $ac_mid + 1`
27598                         if test $ac_lo -le $ac_mid; then
27599                           ac_lo= ac_hi=
27600                           break
27601                         fi
27602                         ac_mid=`expr 2 '*' $ac_mid + 1`
27603 fi
27604
27605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27606   done
27607 else
27608   echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27610
27611         cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h.  */
27613 _ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h.  */
27617 $ac_includes_default
27618    typedef short ac__type_sizeof_;
27619 int
27620 main ()
27621 {
27622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27623 test_array [0] = 0
27624
27625   ;
27626   return 0;
27627 }
27628 _ACEOF
27629 rm -f conftest.$ac_objext
27630 if { (ac_try="$ac_compile"
27631 case "(($ac_try" in
27632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27633   *) ac_try_echo=$ac_try;;
27634 esac
27635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27636   (eval "$ac_compile") 2>conftest.er1
27637   ac_status=$?
27638   grep -v '^ *+' conftest.er1 >conftest.err
27639   rm -f conftest.er1
27640   cat conftest.err >&5
27641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642   (exit $ac_status); } && {
27643          test -z "$ac_c_werror_flag" ||
27644          test ! -s conftest.err
27645        } && test -s conftest.$ac_objext; then
27646   ac_hi=-1 ac_mid=-1
27647   while :; do
27648     cat >conftest.$ac_ext <<_ACEOF
27649 /* confdefs.h.  */
27650 _ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h.  */
27654 $ac_includes_default
27655    typedef short ac__type_sizeof_;
27656 int
27657 main ()
27658 {
27659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27660 test_array [0] = 0
27661
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext
27667 if { (ac_try="$ac_compile"
27668 case "(($ac_try" in
27669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670   *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673   (eval "$ac_compile") 2>conftest.er1
27674   ac_status=$?
27675   grep -v '^ *+' conftest.er1 >conftest.err
27676   rm -f conftest.er1
27677   cat conftest.err >&5
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); } && {
27680          test -z "$ac_c_werror_flag" ||
27681          test ! -s conftest.err
27682        } && test -s conftest.$ac_objext; then
27683   ac_lo=$ac_mid; break
27684 else
27685   echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688         ac_hi=`expr '(' $ac_mid ')' - 1`
27689                         if test $ac_mid -le $ac_hi; then
27690                           ac_lo= ac_hi=
27691                           break
27692                         fi
27693                         ac_mid=`expr 2 '*' $ac_mid`
27694 fi
27695
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697   done
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702         ac_lo= ac_hi=
27703 fi
27704
27705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27706 fi
27707
27708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27709 # Binary search between lo and hi bounds.
27710 while test "x$ac_lo" != "x$ac_hi"; do
27711   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27712   cat >conftest.$ac_ext <<_ACEOF
27713 /* confdefs.h.  */
27714 _ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h.  */
27718 $ac_includes_default
27719    typedef short ac__type_sizeof_;
27720 int
27721 main ()
27722 {
27723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27724 test_array [0] = 0
27725
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 rm -f conftest.$ac_objext
27731 if { (ac_try="$ac_compile"
27732 case "(($ac_try" in
27733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734   *) ac_try_echo=$ac_try;;
27735 esac
27736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737   (eval "$ac_compile") 2>conftest.er1
27738   ac_status=$?
27739   grep -v '^ *+' conftest.er1 >conftest.err
27740   rm -f conftest.er1
27741   cat conftest.err >&5
27742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743   (exit $ac_status); } && {
27744          test -z "$ac_c_werror_flag" ||
27745          test ! -s conftest.err
27746        } && test -s conftest.$ac_objext; then
27747   ac_hi=$ac_mid
27748 else
27749   echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752         ac_lo=`expr '(' $ac_mid ')' + 1`
27753 fi
27754
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 done
27757 case $ac_lo in
27758 ?*) ac_cv_sizeof_short=$ac_lo;;
27759 '') if test "$ac_cv_type_short" = yes; then
27760      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27761 See \`config.log' for more details." >&5
27762 echo "$as_me: error: cannot compute sizeof (short)
27763 See \`config.log' for more details." >&2;}
27764    { (exit 77); exit 77; }; }
27765    else
27766      ac_cv_sizeof_short=0
27767    fi ;;
27768 esac
27769 else
27770   cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776 $ac_includes_default
27777    typedef short ac__type_sizeof_;
27778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27780 #include <stdio.h>
27781 #include <stdlib.h>
27782 int
27783 main ()
27784 {
27785
27786   FILE *f = fopen ("conftest.val", "w");
27787   if (! f)
27788     return 1;
27789   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27790     {
27791       long int i = longval ();
27792       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27793         return 1;
27794       fprintf (f, "%ld\n", i);
27795     }
27796   else
27797     {
27798       unsigned long int i = ulongval ();
27799       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27800         return 1;
27801       fprintf (f, "%lu\n", i);
27802     }
27803   return ferror (f) || fclose (f) != 0;
27804
27805   ;
27806   return 0;
27807 }
27808 _ACEOF
27809 rm -f conftest$ac_exeext
27810 if { (ac_try="$ac_link"
27811 case "(($ac_try" in
27812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813   *) ac_try_echo=$ac_try;;
27814 esac
27815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27816   (eval "$ac_link") 2>&5
27817   ac_status=$?
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27820   { (case "(($ac_try" in
27821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822   *) ac_try_echo=$ac_try;;
27823 esac
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825   (eval "$ac_try") 2>&5
27826   ac_status=$?
27827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828   (exit $ac_status); }; }; then
27829   ac_cv_sizeof_short=`cat conftest.val`
27830 else
27831   echo "$as_me: program exited with status $ac_status" >&5
27832 echo "$as_me: failed program was:" >&5
27833 sed 's/^/| /' conftest.$ac_ext >&5
27834
27835 ( exit $ac_status )
27836 if test "$ac_cv_type_short" = yes; then
27837      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27838 See \`config.log' for more details." >&5
27839 echo "$as_me: error: cannot compute sizeof (short)
27840 See \`config.log' for more details." >&2;}
27841    { (exit 77); exit 77; }; }
27842    else
27843      ac_cv_sizeof_short=0
27844    fi
27845 fi
27846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27847 fi
27848 rm -f conftest.val
27849 fi
27850 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27851 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27852
27853
27854
27855 cat >>confdefs.h <<_ACEOF
27856 #define SIZEOF_SHORT $ac_cv_sizeof_short
27857 _ACEOF
27858
27859
27860 { echo "$as_me:$LINENO: checking for int" >&5
27861 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27862 if test "${ac_cv_type_int+set}" = set; then
27863   echo $ECHO_N "(cached) $ECHO_C" >&6
27864 else
27865   cat >conftest.$ac_ext <<_ACEOF
27866 /* confdefs.h.  */
27867 _ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h.  */
27871 $ac_includes_default
27872 typedef int ac__type_new_;
27873 int
27874 main ()
27875 {
27876 if ((ac__type_new_ *) 0)
27877   return 0;
27878 if (sizeof (ac__type_new_))
27879   return 0;
27880   ;
27881   return 0;
27882 }
27883 _ACEOF
27884 rm -f conftest.$ac_objext
27885 if { (ac_try="$ac_compile"
27886 case "(($ac_try" in
27887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888   *) ac_try_echo=$ac_try;;
27889 esac
27890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891   (eval "$ac_compile") 2>conftest.er1
27892   ac_status=$?
27893   grep -v '^ *+' conftest.er1 >conftest.err
27894   rm -f conftest.er1
27895   cat conftest.err >&5
27896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897   (exit $ac_status); } && {
27898          test -z "$ac_c_werror_flag" ||
27899          test ! -s conftest.err
27900        } && test -s conftest.$ac_objext; then
27901   ac_cv_type_int=yes
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906         ac_cv_type_int=no
27907 fi
27908
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910 fi
27911 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27912 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27913
27914 # The cast to long int works around a bug in the HP C Compiler
27915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27917 # This bug is HP SR number 8606223364.
27918 { echo "$as_me:$LINENO: checking size of int" >&5
27919 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27920 if test "${ac_cv_sizeof_int+set}" = set; then
27921   echo $ECHO_N "(cached) $ECHO_C" >&6
27922 else
27923   if test "$cross_compiling" = yes; then
27924   # Depending upon the size, compute the lo and hi bounds.
27925 cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931 $ac_includes_default
27932    typedef int ac__type_sizeof_;
27933 int
27934 main ()
27935 {
27936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27937 test_array [0] = 0
27938
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (ac_try="$ac_compile"
27945 case "(($ac_try" in
27946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947   *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950   (eval "$ac_compile") 2>conftest.er1
27951   ac_status=$?
27952   grep -v '^ *+' conftest.er1 >conftest.err
27953   rm -f conftest.er1
27954   cat conftest.err >&5
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } && {
27957          test -z "$ac_c_werror_flag" ||
27958          test ! -s conftest.err
27959        } && test -s conftest.$ac_objext; then
27960   ac_lo=0 ac_mid=0
27961   while :; do
27962     cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 $ac_includes_default
27969    typedef int ac__type_sizeof_;
27970 int
27971 main ()
27972 {
27973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27974 test_array [0] = 0
27975
27976   ;
27977   return 0;
27978 }
27979 _ACEOF
27980 rm -f conftest.$ac_objext
27981 if { (ac_try="$ac_compile"
27982 case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_compile") 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } && {
27994          test -z "$ac_c_werror_flag" ||
27995          test ! -s conftest.err
27996        } && test -s conftest.$ac_objext; then
27997   ac_hi=$ac_mid; break
27998 else
27999   echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28001
28002         ac_lo=`expr $ac_mid + 1`
28003                         if test $ac_lo -le $ac_mid; then
28004                           ac_lo= ac_hi=
28005                           break
28006                         fi
28007                         ac_mid=`expr 2 '*' $ac_mid + 1`
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28011   done
28012 else
28013   echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28015
28016         cat >conftest.$ac_ext <<_ACEOF
28017 /* confdefs.h.  */
28018 _ACEOF
28019 cat confdefs.h >>conftest.$ac_ext
28020 cat >>conftest.$ac_ext <<_ACEOF
28021 /* end confdefs.h.  */
28022 $ac_includes_default
28023    typedef int ac__type_sizeof_;
28024 int
28025 main ()
28026 {
28027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28028 test_array [0] = 0
28029
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext
28035 if { (ac_try="$ac_compile"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_compile") 2>conftest.er1
28042   ac_status=$?
28043   grep -v '^ *+' conftest.er1 >conftest.err
28044   rm -f conftest.er1
28045   cat conftest.err >&5
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } && {
28048          test -z "$ac_c_werror_flag" ||
28049          test ! -s conftest.err
28050        } && test -s conftest.$ac_objext; then
28051   ac_hi=-1 ac_mid=-1
28052   while :; do
28053     cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059 $ac_includes_default
28060    typedef int ac__type_sizeof_;
28061 int
28062 main ()
28063 {
28064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28065 test_array [0] = 0
28066
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext
28072 if { (ac_try="$ac_compile"
28073 case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078   (eval "$ac_compile") 2>conftest.er1
28079   ac_status=$?
28080   grep -v '^ *+' conftest.er1 >conftest.err
28081   rm -f conftest.er1
28082   cat conftest.err >&5
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); } && {
28085          test -z "$ac_c_werror_flag" ||
28086          test ! -s conftest.err
28087        } && test -s conftest.$ac_objext; then
28088   ac_lo=$ac_mid; break
28089 else
28090   echo "$as_me: failed program was:" >&5
28091 sed 's/^/| /' conftest.$ac_ext >&5
28092
28093         ac_hi=`expr '(' $ac_mid ')' - 1`
28094                         if test $ac_mid -le $ac_hi; then
28095                           ac_lo= ac_hi=
28096                           break
28097                         fi
28098                         ac_mid=`expr 2 '*' $ac_mid`
28099 fi
28100
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28102   done
28103 else
28104   echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28106
28107         ac_lo= ac_hi=
28108 fi
28109
28110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28111 fi
28112
28113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28114 # Binary search between lo and hi bounds.
28115 while test "x$ac_lo" != "x$ac_hi"; do
28116   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28117   cat >conftest.$ac_ext <<_ACEOF
28118 /* confdefs.h.  */
28119 _ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h.  */
28123 $ac_includes_default
28124    typedef int ac__type_sizeof_;
28125 int
28126 main ()
28127 {
28128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28129 test_array [0] = 0
28130
28131   ;
28132   return 0;
28133 }
28134 _ACEOF
28135 rm -f conftest.$ac_objext
28136 if { (ac_try="$ac_compile"
28137 case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_compile") 2>conftest.er1
28143   ac_status=$?
28144   grep -v '^ *+' conftest.er1 >conftest.err
28145   rm -f conftest.er1
28146   cat conftest.err >&5
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && {
28149          test -z "$ac_c_werror_flag" ||
28150          test ! -s conftest.err
28151        } && test -s conftest.$ac_objext; then
28152   ac_hi=$ac_mid
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157         ac_lo=`expr '(' $ac_mid ')' + 1`
28158 fi
28159
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161 done
28162 case $ac_lo in
28163 ?*) ac_cv_sizeof_int=$ac_lo;;
28164 '') if test "$ac_cv_type_int" = yes; then
28165      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28166 See \`config.log' for more details." >&5
28167 echo "$as_me: error: cannot compute sizeof (int)
28168 See \`config.log' for more details." >&2;}
28169    { (exit 77); exit 77; }; }
28170    else
28171      ac_cv_sizeof_int=0
28172    fi ;;
28173 esac
28174 else
28175   cat >conftest.$ac_ext <<_ACEOF
28176 /* confdefs.h.  */
28177 _ACEOF
28178 cat confdefs.h >>conftest.$ac_ext
28179 cat >>conftest.$ac_ext <<_ACEOF
28180 /* end confdefs.h.  */
28181 $ac_includes_default
28182    typedef int ac__type_sizeof_;
28183 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28184 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28185 #include <stdio.h>
28186 #include <stdlib.h>
28187 int
28188 main ()
28189 {
28190
28191   FILE *f = fopen ("conftest.val", "w");
28192   if (! f)
28193     return 1;
28194   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28195     {
28196       long int i = longval ();
28197       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28198         return 1;
28199       fprintf (f, "%ld\n", i);
28200     }
28201   else
28202     {
28203       unsigned long int i = ulongval ();
28204       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28205         return 1;
28206       fprintf (f, "%lu\n", i);
28207     }
28208   return ferror (f) || fclose (f) != 0;
28209
28210   ;
28211   return 0;
28212 }
28213 _ACEOF
28214 rm -f conftest$ac_exeext
28215 if { (ac_try="$ac_link"
28216 case "(($ac_try" in
28217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218   *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221   (eval "$ac_link") 2>&5
28222   ac_status=$?
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28225   { (case "(($ac_try" in
28226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227   *) ac_try_echo=$ac_try;;
28228 esac
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230   (eval "$ac_try") 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; }; then
28234   ac_cv_sizeof_int=`cat conftest.val`
28235 else
28236   echo "$as_me: program exited with status $ac_status" >&5
28237 echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28239
28240 ( exit $ac_status )
28241 if test "$ac_cv_type_int" = yes; then
28242      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28243 See \`config.log' for more details." >&5
28244 echo "$as_me: error: cannot compute sizeof (int)
28245 See \`config.log' for more details." >&2;}
28246    { (exit 77); exit 77; }; }
28247    else
28248      ac_cv_sizeof_int=0
28249    fi
28250 fi
28251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28252 fi
28253 rm -f conftest.val
28254 fi
28255 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28256 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28257
28258
28259
28260 cat >>confdefs.h <<_ACEOF
28261 #define SIZEOF_INT $ac_cv_sizeof_int
28262 _ACEOF
28263
28264
28265 { echo "$as_me:$LINENO: checking for long" >&5
28266 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28267 if test "${ac_cv_type_long+set}" = set; then
28268   echo $ECHO_N "(cached) $ECHO_C" >&6
28269 else
28270   cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h.  */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h.  */
28276 $ac_includes_default
28277 typedef long ac__type_new_;
28278 int
28279 main ()
28280 {
28281 if ((ac__type_new_ *) 0)
28282   return 0;
28283 if (sizeof (ac__type_new_))
28284   return 0;
28285   ;
28286   return 0;
28287 }
28288 _ACEOF
28289 rm -f conftest.$ac_objext
28290 if { (ac_try="$ac_compile"
28291 case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_compile") 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } && {
28303          test -z "$ac_c_werror_flag" ||
28304          test ! -s conftest.err
28305        } && test -s conftest.$ac_objext; then
28306   ac_cv_type_long=yes
28307 else
28308   echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28310
28311         ac_cv_type_long=no
28312 fi
28313
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 fi
28316 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28317 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28318
28319 # The cast to long int works around a bug in the HP C Compiler
28320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28322 # This bug is HP SR number 8606223364.
28323 { echo "$as_me:$LINENO: checking size of long" >&5
28324 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28325 if test "${ac_cv_sizeof_long+set}" = set; then
28326   echo $ECHO_N "(cached) $ECHO_C" >&6
28327 else
28328   if test "$cross_compiling" = yes; then
28329   # Depending upon the size, compute the lo and hi bounds.
28330 cat >conftest.$ac_ext <<_ACEOF
28331 /* confdefs.h.  */
28332 _ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h.  */
28336 $ac_includes_default
28337    typedef long ac__type_sizeof_;
28338 int
28339 main ()
28340 {
28341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28342 test_array [0] = 0
28343
28344   ;
28345   return 0;
28346 }
28347 _ACEOF
28348 rm -f conftest.$ac_objext
28349 if { (ac_try="$ac_compile"
28350 case "(($ac_try" in
28351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28352   *) ac_try_echo=$ac_try;;
28353 esac
28354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28355   (eval "$ac_compile") 2>conftest.er1
28356   ac_status=$?
28357   grep -v '^ *+' conftest.er1 >conftest.err
28358   rm -f conftest.er1
28359   cat conftest.err >&5
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); } && {
28362          test -z "$ac_c_werror_flag" ||
28363          test ! -s conftest.err
28364        } && test -s conftest.$ac_objext; then
28365   ac_lo=0 ac_mid=0
28366   while :; do
28367     cat >conftest.$ac_ext <<_ACEOF
28368 /* confdefs.h.  */
28369 _ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h.  */
28373 $ac_includes_default
28374    typedef long ac__type_sizeof_;
28375 int
28376 main ()
28377 {
28378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28379 test_array [0] = 0
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389   *) ac_try_echo=$ac_try;;
28390 esac
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392   (eval "$ac_compile") 2>conftest.er1
28393   ac_status=$?
28394   grep -v '^ *+' conftest.er1 >conftest.err
28395   rm -f conftest.er1
28396   cat conftest.err >&5
28397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398   (exit $ac_status); } && {
28399          test -z "$ac_c_werror_flag" ||
28400          test ! -s conftest.err
28401        } && test -s conftest.$ac_objext; then
28402   ac_hi=$ac_mid; break
28403 else
28404   echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407         ac_lo=`expr $ac_mid + 1`
28408                         if test $ac_lo -le $ac_mid; then
28409                           ac_lo= ac_hi=
28410                           break
28411                         fi
28412                         ac_mid=`expr 2 '*' $ac_mid + 1`
28413 fi
28414
28415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28416   done
28417 else
28418   echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28420
28421         cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427 $ac_includes_default
28428    typedef long ac__type_sizeof_;
28429 int
28430 main ()
28431 {
28432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28433 test_array [0] = 0
28434
28435   ;
28436   return 0;
28437 }
28438 _ACEOF
28439 rm -f conftest.$ac_objext
28440 if { (ac_try="$ac_compile"
28441 case "(($ac_try" in
28442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28443   *) ac_try_echo=$ac_try;;
28444 esac
28445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28446   (eval "$ac_compile") 2>conftest.er1
28447   ac_status=$?
28448   grep -v '^ *+' conftest.er1 >conftest.err
28449   rm -f conftest.er1
28450   cat conftest.err >&5
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); } && {
28453          test -z "$ac_c_werror_flag" ||
28454          test ! -s conftest.err
28455        } && test -s conftest.$ac_objext; then
28456   ac_hi=-1 ac_mid=-1
28457   while :; do
28458     cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464 $ac_includes_default
28465    typedef long ac__type_sizeof_;
28466 int
28467 main ()
28468 {
28469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28470 test_array [0] = 0
28471
28472   ;
28473   return 0;
28474 }
28475 _ACEOF
28476 rm -f conftest.$ac_objext
28477 if { (ac_try="$ac_compile"
28478 case "(($ac_try" in
28479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28480   *) ac_try_echo=$ac_try;;
28481 esac
28482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28483   (eval "$ac_compile") 2>conftest.er1
28484   ac_status=$?
28485   grep -v '^ *+' conftest.er1 >conftest.err
28486   rm -f conftest.er1
28487   cat conftest.err >&5
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); } && {
28490          test -z "$ac_c_werror_flag" ||
28491          test ! -s conftest.err
28492        } && test -s conftest.$ac_objext; then
28493   ac_lo=$ac_mid; break
28494 else
28495   echo "$as_me: failed program was:" >&5
28496 sed 's/^/| /' conftest.$ac_ext >&5
28497
28498         ac_hi=`expr '(' $ac_mid ')' - 1`
28499                         if test $ac_mid -le $ac_hi; then
28500                           ac_lo= ac_hi=
28501                           break
28502                         fi
28503                         ac_mid=`expr 2 '*' $ac_mid`
28504 fi
28505
28506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28507   done
28508 else
28509   echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512         ac_lo= ac_hi=
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 fi
28517
28518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28519 # Binary search between lo and hi bounds.
28520 while test "x$ac_lo" != "x$ac_hi"; do
28521   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28522   cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528 $ac_includes_default
28529    typedef long ac__type_sizeof_;
28530 int
28531 main ()
28532 {
28533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28534 test_array [0] = 0
28535
28536   ;
28537   return 0;
28538 }
28539 _ACEOF
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544   *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547   (eval "$ac_compile") 2>conftest.er1
28548   ac_status=$?
28549   grep -v '^ *+' conftest.er1 >conftest.err
28550   rm -f conftest.er1
28551   cat conftest.err >&5
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); } && {
28554          test -z "$ac_c_werror_flag" ||
28555          test ! -s conftest.err
28556        } && test -s conftest.$ac_objext; then
28557   ac_hi=$ac_mid
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562         ac_lo=`expr '(' $ac_mid ')' + 1`
28563 fi
28564
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566 done
28567 case $ac_lo in
28568 ?*) ac_cv_sizeof_long=$ac_lo;;
28569 '') if test "$ac_cv_type_long" = yes; then
28570      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28571 See \`config.log' for more details." >&5
28572 echo "$as_me: error: cannot compute sizeof (long)
28573 See \`config.log' for more details." >&2;}
28574    { (exit 77); exit 77; }; }
28575    else
28576      ac_cv_sizeof_long=0
28577    fi ;;
28578 esac
28579 else
28580   cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586 $ac_includes_default
28587    typedef long ac__type_sizeof_;
28588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28590 #include <stdio.h>
28591 #include <stdlib.h>
28592 int
28593 main ()
28594 {
28595
28596   FILE *f = fopen ("conftest.val", "w");
28597   if (! f)
28598     return 1;
28599   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28600     {
28601       long int i = longval ();
28602       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28603         return 1;
28604       fprintf (f, "%ld\n", i);
28605     }
28606   else
28607     {
28608       unsigned long int i = ulongval ();
28609       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28610         return 1;
28611       fprintf (f, "%lu\n", i);
28612     }
28613   return ferror (f) || fclose (f) != 0;
28614
28615   ;
28616   return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest$ac_exeext
28620 if { (ac_try="$ac_link"
28621 case "(($ac_try" in
28622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623   *) ac_try_echo=$ac_try;;
28624 esac
28625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626   (eval "$ac_link") 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28630   { (case "(($ac_try" in
28631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28632   *) ac_try_echo=$ac_try;;
28633 esac
28634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28635   (eval "$ac_try") 2>&5
28636   ac_status=$?
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); }; }; then
28639   ac_cv_sizeof_long=`cat conftest.val`
28640 else
28641   echo "$as_me: program exited with status $ac_status" >&5
28642 echo "$as_me: failed program was:" >&5
28643 sed 's/^/| /' conftest.$ac_ext >&5
28644
28645 ( exit $ac_status )
28646 if test "$ac_cv_type_long" = yes; then
28647      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28648 See \`config.log' for more details." >&5
28649 echo "$as_me: error: cannot compute sizeof (long)
28650 See \`config.log' for more details." >&2;}
28651    { (exit 77); exit 77; }; }
28652    else
28653      ac_cv_sizeof_long=0
28654    fi
28655 fi
28656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28657 fi
28658 rm -f conftest.val
28659 fi
28660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28661 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
28662
28663
28664
28665 cat >>confdefs.h <<_ACEOF
28666 #define SIZEOF_LONG $ac_cv_sizeof_long
28667 _ACEOF
28668
28669
28670 { echo "$as_me:$LINENO: checking for size_t" >&5
28671 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28672 if test "${ac_cv_type_size_t+set}" = set; then
28673   echo $ECHO_N "(cached) $ECHO_C" >&6
28674 else
28675   cat >conftest.$ac_ext <<_ACEOF
28676 /* confdefs.h.  */
28677 _ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h.  */
28681 $ac_includes_default
28682 typedef size_t ac__type_new_;
28683 int
28684 main ()
28685 {
28686 if ((ac__type_new_ *) 0)
28687   return 0;
28688 if (sizeof (ac__type_new_))
28689   return 0;
28690   ;
28691   return 0;
28692 }
28693 _ACEOF
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698   *) ac_try_echo=$ac_try;;
28699 esac
28700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701   (eval "$ac_compile") 2>conftest.er1
28702   ac_status=$?
28703   grep -v '^ *+' conftest.er1 >conftest.err
28704   rm -f conftest.er1
28705   cat conftest.err >&5
28706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707   (exit $ac_status); } && {
28708          test -z "$ac_c_werror_flag" ||
28709          test ! -s conftest.err
28710        } && test -s conftest.$ac_objext; then
28711   ac_cv_type_size_t=yes
28712 else
28713   echo "$as_me: failed program was:" >&5
28714 sed 's/^/| /' conftest.$ac_ext >&5
28715
28716         ac_cv_type_size_t=no
28717 fi
28718
28719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28720 fi
28721 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28722 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28723
28724 # The cast to long int works around a bug in the HP C Compiler
28725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28727 # This bug is HP SR number 8606223364.
28728 { echo "$as_me:$LINENO: checking size of size_t" >&5
28729 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
28730 if test "${ac_cv_sizeof_size_t+set}" = set; then
28731   echo $ECHO_N "(cached) $ECHO_C" >&6
28732 else
28733   if test "$cross_compiling" = yes; then
28734   # Depending upon the size, compute the lo and hi bounds.
28735 cat >conftest.$ac_ext <<_ACEOF
28736 /* confdefs.h.  */
28737 _ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h.  */
28741 $ac_includes_default
28742    typedef size_t ac__type_sizeof_;
28743 int
28744 main ()
28745 {
28746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28747 test_array [0] = 0
28748
28749   ;
28750   return 0;
28751 }
28752 _ACEOF
28753 rm -f conftest.$ac_objext
28754 if { (ac_try="$ac_compile"
28755 case "(($ac_try" in
28756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757   *) ac_try_echo=$ac_try;;
28758 esac
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760   (eval "$ac_compile") 2>conftest.er1
28761   ac_status=$?
28762   grep -v '^ *+' conftest.er1 >conftest.err
28763   rm -f conftest.er1
28764   cat conftest.err >&5
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); } && {
28767          test -z "$ac_c_werror_flag" ||
28768          test ! -s conftest.err
28769        } && test -s conftest.$ac_objext; then
28770   ac_lo=0 ac_mid=0
28771   while :; do
28772     cat >conftest.$ac_ext <<_ACEOF
28773 /* confdefs.h.  */
28774 _ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h.  */
28778 $ac_includes_default
28779    typedef size_t ac__type_sizeof_;
28780 int
28781 main ()
28782 {
28783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28784 test_array [0] = 0
28785
28786   ;
28787   return 0;
28788 }
28789 _ACEOF
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794   *) ac_try_echo=$ac_try;;
28795 esac
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797   (eval "$ac_compile") 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } && {
28804          test -z "$ac_c_werror_flag" ||
28805          test ! -s conftest.err
28806        } && test -s conftest.$ac_objext; then
28807   ac_hi=$ac_mid; break
28808 else
28809   echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28811
28812         ac_lo=`expr $ac_mid + 1`
28813                         if test $ac_lo -le $ac_mid; then
28814                           ac_lo= ac_hi=
28815                           break
28816                         fi
28817                         ac_mid=`expr 2 '*' $ac_mid + 1`
28818 fi
28819
28820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28821   done
28822 else
28823   echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28825
28826         cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h.  */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h.  */
28832 $ac_includes_default
28833    typedef size_t ac__type_sizeof_;
28834 int
28835 main ()
28836 {
28837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28838 test_array [0] = 0
28839
28840   ;
28841   return 0;
28842 }
28843 _ACEOF
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848   *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851   (eval "$ac_compile") 2>conftest.er1
28852   ac_status=$?
28853   grep -v '^ *+' conftest.er1 >conftest.err
28854   rm -f conftest.er1
28855   cat conftest.err >&5
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); } && {
28858          test -z "$ac_c_werror_flag" ||
28859          test ! -s conftest.err
28860        } && test -s conftest.$ac_objext; then
28861   ac_hi=-1 ac_mid=-1
28862   while :; do
28863     cat >conftest.$ac_ext <<_ACEOF
28864 /* confdefs.h.  */
28865 _ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h.  */
28869 $ac_includes_default
28870    typedef size_t ac__type_sizeof_;
28871 int
28872 main ()
28873 {
28874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28875 test_array [0] = 0
28876
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f conftest.$ac_objext
28882 if { (ac_try="$ac_compile"
28883 case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888   (eval "$ac_compile") 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } && {
28895          test -z "$ac_c_werror_flag" ||
28896          test ! -s conftest.err
28897        } && test -s conftest.$ac_objext; then
28898   ac_lo=$ac_mid; break
28899 else
28900   echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28902
28903         ac_hi=`expr '(' $ac_mid ')' - 1`
28904                         if test $ac_mid -le $ac_hi; then
28905                           ac_lo= ac_hi=
28906                           break
28907                         fi
28908                         ac_mid=`expr 2 '*' $ac_mid`
28909 fi
28910
28911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28912   done
28913 else
28914   echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28916
28917         ac_lo= ac_hi=
28918 fi
28919
28920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921 fi
28922
28923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28924 # Binary search between lo and hi bounds.
28925 while test "x$ac_lo" != "x$ac_hi"; do
28926   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28927   cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933 $ac_includes_default
28934    typedef size_t ac__type_sizeof_;
28935 int
28936 main ()
28937 {
28938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28939 test_array [0] = 0
28940
28941   ;
28942   return 0;
28943 }
28944 _ACEOF
28945 rm -f conftest.$ac_objext
28946 if { (ac_try="$ac_compile"
28947 case "(($ac_try" in
28948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28949   *) ac_try_echo=$ac_try;;
28950 esac
28951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28952   (eval "$ac_compile") 2>conftest.er1
28953   ac_status=$?
28954   grep -v '^ *+' conftest.er1 >conftest.err
28955   rm -f conftest.er1
28956   cat conftest.err >&5
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); } && {
28959          test -z "$ac_c_werror_flag" ||
28960          test ! -s conftest.err
28961        } && test -s conftest.$ac_objext; then
28962   ac_hi=$ac_mid
28963 else
28964   echo "$as_me: failed program was:" >&5
28965 sed 's/^/| /' conftest.$ac_ext >&5
28966
28967         ac_lo=`expr '(' $ac_mid ')' + 1`
28968 fi
28969
28970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28971 done
28972 case $ac_lo in
28973 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28974 '') if test "$ac_cv_type_size_t" = yes; then
28975      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28976 See \`config.log' for more details." >&5
28977 echo "$as_me: error: cannot compute sizeof (size_t)
28978 See \`config.log' for more details." >&2;}
28979    { (exit 77); exit 77; }; }
28980    else
28981      ac_cv_sizeof_size_t=0
28982    fi ;;
28983 esac
28984 else
28985   cat >conftest.$ac_ext <<_ACEOF
28986 /* confdefs.h.  */
28987 _ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h.  */
28991 $ac_includes_default
28992    typedef size_t ac__type_sizeof_;
28993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28995 #include <stdio.h>
28996 #include <stdlib.h>
28997 int
28998 main ()
28999 {
29000
29001   FILE *f = fopen ("conftest.val", "w");
29002   if (! f)
29003     return 1;
29004   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29005     {
29006       long int i = longval ();
29007       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29008         return 1;
29009       fprintf (f, "%ld\n", i);
29010     }
29011   else
29012     {
29013       unsigned long int i = ulongval ();
29014       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29015         return 1;
29016       fprintf (f, "%lu\n", i);
29017     }
29018   return ferror (f) || fclose (f) != 0;
29019
29020   ;
29021   return 0;
29022 }
29023 _ACEOF
29024 rm -f conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031   (eval "$ac_link") 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035   { (case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_try") 2>&5
29041   ac_status=$?
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); }; }; then
29044   ac_cv_sizeof_size_t=`cat conftest.val`
29045 else
29046   echo "$as_me: program exited with status $ac_status" >&5
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29049
29050 ( exit $ac_status )
29051 if test "$ac_cv_type_size_t" = yes; then
29052      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29053 See \`config.log' for more details." >&5
29054 echo "$as_me: error: cannot compute sizeof (size_t)
29055 See \`config.log' for more details." >&2;}
29056    { (exit 77); exit 77; }; }
29057    else
29058      ac_cv_sizeof_size_t=0
29059    fi
29060 fi
29061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29062 fi
29063 rm -f conftest.val
29064 fi
29065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29066 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29067
29068
29069
29070 cat >>confdefs.h <<_ACEOF
29071 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29072 _ACEOF
29073
29074
29075 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29076 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29077 if test "${ac_cv_type_socklen_t+set}" = set; then
29078   echo $ECHO_N "(cached) $ECHO_C" >&6
29079 else
29080   cat >conftest.$ac_ext <<_ACEOF
29081 /* confdefs.h.  */
29082 _ACEOF
29083 cat confdefs.h >>conftest.$ac_ext
29084 cat >>conftest.$ac_ext <<_ACEOF
29085 /* end confdefs.h.  */
29086 $ac_includes_default
29087 typedef socklen_t ac__type_new_;
29088 int
29089 main ()
29090 {
29091 if ((ac__type_new_ *) 0)
29092   return 0;
29093 if (sizeof (ac__type_new_))
29094   return 0;
29095   ;
29096   return 0;
29097 }
29098 _ACEOF
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106   (eval "$ac_compile") 2>conftest.er1
29107   ac_status=$?
29108   grep -v '^ *+' conftest.er1 >conftest.err
29109   rm -f conftest.er1
29110   cat conftest.err >&5
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); } && {
29113          test -z "$ac_c_werror_flag" ||
29114          test ! -s conftest.err
29115        } && test -s conftest.$ac_objext; then
29116   ac_cv_type_socklen_t=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121         ac_cv_type_socklen_t=no
29122 fi
29123
29124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29127 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29128
29129 # The cast to long int works around a bug in the HP C Compiler
29130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29132 # This bug is HP SR number 8606223364.
29133 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29134 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29135 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29136   echo $ECHO_N "(cached) $ECHO_C" >&6
29137 else
29138   if test "$cross_compiling" = yes; then
29139   # Depending upon the size, compute the lo and hi bounds.
29140 cat >conftest.$ac_ext <<_ACEOF
29141 /* confdefs.h.  */
29142 _ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h.  */
29146 $ac_includes_default
29147    typedef socklen_t ac__type_sizeof_;
29148 int
29149 main ()
29150 {
29151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29152 test_array [0] = 0
29153
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_compile") 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } && {
29172          test -z "$ac_c_werror_flag" ||
29173          test ! -s conftest.err
29174        } && test -s conftest.$ac_objext; then
29175   ac_lo=0 ac_mid=0
29176   while :; do
29177     cat >conftest.$ac_ext <<_ACEOF
29178 /* confdefs.h.  */
29179 _ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h.  */
29183 $ac_includes_default
29184    typedef socklen_t ac__type_sizeof_;
29185 int
29186 main ()
29187 {
29188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29189 test_array [0] = 0
29190
29191   ;
29192   return 0;
29193 }
29194 _ACEOF
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199   *) ac_try_echo=$ac_try;;
29200 esac
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202   (eval "$ac_compile") 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } && {
29209          test -z "$ac_c_werror_flag" ||
29210          test ! -s conftest.err
29211        } && test -s conftest.$ac_objext; then
29212   ac_hi=$ac_mid; break
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217         ac_lo=`expr $ac_mid + 1`
29218                         if test $ac_lo -le $ac_mid; then
29219                           ac_lo= ac_hi=
29220                           break
29221                         fi
29222                         ac_mid=`expr 2 '*' $ac_mid + 1`
29223 fi
29224
29225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29226   done
29227 else
29228   echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29230
29231         cat >conftest.$ac_ext <<_ACEOF
29232 /* confdefs.h.  */
29233 _ACEOF
29234 cat confdefs.h >>conftest.$ac_ext
29235 cat >>conftest.$ac_ext <<_ACEOF
29236 /* end confdefs.h.  */
29237 $ac_includes_default
29238    typedef socklen_t ac__type_sizeof_;
29239 int
29240 main ()
29241 {
29242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29243 test_array [0] = 0
29244
29245   ;
29246   return 0;
29247 }
29248 _ACEOF
29249 rm -f conftest.$ac_objext
29250 if { (ac_try="$ac_compile"
29251 case "(($ac_try" in
29252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253   *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256   (eval "$ac_compile") 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } && {
29263          test -z "$ac_c_werror_flag" ||
29264          test ! -s conftest.err
29265        } && test -s conftest.$ac_objext; then
29266   ac_hi=-1 ac_mid=-1
29267   while :; do
29268     cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274 $ac_includes_default
29275    typedef socklen_t ac__type_sizeof_;
29276 int
29277 main ()
29278 {
29279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29280 test_array [0] = 0
29281
29282   ;
29283   return 0;
29284 }
29285 _ACEOF
29286 rm -f conftest.$ac_objext
29287 if { (ac_try="$ac_compile"
29288 case "(($ac_try" in
29289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290   *) ac_try_echo=$ac_try;;
29291 esac
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293   (eval "$ac_compile") 2>conftest.er1
29294   ac_status=$?
29295   grep -v '^ *+' conftest.er1 >conftest.err
29296   rm -f conftest.er1
29297   cat conftest.err >&5
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); } && {
29300          test -z "$ac_c_werror_flag" ||
29301          test ! -s conftest.err
29302        } && test -s conftest.$ac_objext; then
29303   ac_lo=$ac_mid; break
29304 else
29305   echo "$as_me: failed program was:" >&5
29306 sed 's/^/| /' conftest.$ac_ext >&5
29307
29308         ac_hi=`expr '(' $ac_mid ')' - 1`
29309                         if test $ac_mid -le $ac_hi; then
29310                           ac_lo= ac_hi=
29311                           break
29312                         fi
29313                         ac_mid=`expr 2 '*' $ac_mid`
29314 fi
29315
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317   done
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322         ac_lo= ac_hi=
29323 fi
29324
29325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29326 fi
29327
29328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29329 # Binary search between lo and hi bounds.
29330 while test "x$ac_lo" != "x$ac_hi"; do
29331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29332   cat >conftest.$ac_ext <<_ACEOF
29333 /* confdefs.h.  */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h.  */
29338 $ac_includes_default
29339    typedef socklen_t ac__type_sizeof_;
29340 int
29341 main ()
29342 {
29343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29344 test_array [0] = 0
29345
29346   ;
29347   return 0;
29348 }
29349 _ACEOF
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354   *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357   (eval "$ac_compile") 2>conftest.er1
29358   ac_status=$?
29359   grep -v '^ *+' conftest.er1 >conftest.err
29360   rm -f conftest.er1
29361   cat conftest.err >&5
29362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363   (exit $ac_status); } && {
29364          test -z "$ac_c_werror_flag" ||
29365          test ! -s conftest.err
29366        } && test -s conftest.$ac_objext; then
29367   ac_hi=$ac_mid
29368 else
29369   echo "$as_me: failed program was:" >&5
29370 sed 's/^/| /' conftest.$ac_ext >&5
29371
29372         ac_lo=`expr '(' $ac_mid ')' + 1`
29373 fi
29374
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29376 done
29377 case $ac_lo in
29378 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29379 '') if test "$ac_cv_type_socklen_t" = yes; then
29380      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29381 See \`config.log' for more details." >&5
29382 echo "$as_me: error: cannot compute sizeof (socklen_t)
29383 See \`config.log' for more details." >&2;}
29384    { (exit 77); exit 77; }; }
29385    else
29386      ac_cv_sizeof_socklen_t=0
29387    fi ;;
29388 esac
29389 else
29390   cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396 $ac_includes_default
29397    typedef socklen_t ac__type_sizeof_;
29398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29400 #include <stdio.h>
29401 #include <stdlib.h>
29402 int
29403 main ()
29404 {
29405
29406   FILE *f = fopen ("conftest.val", "w");
29407   if (! f)
29408     return 1;
29409   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29410     {
29411       long int i = longval ();
29412       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29413         return 1;
29414       fprintf (f, "%ld\n", i);
29415     }
29416   else
29417     {
29418       unsigned long int i = ulongval ();
29419       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29420         return 1;
29421       fprintf (f, "%lu\n", i);
29422     }
29423   return ferror (f) || fclose (f) != 0;
29424
29425   ;
29426   return 0;
29427 }
29428 _ACEOF
29429 rm -f conftest$ac_exeext
29430 if { (ac_try="$ac_link"
29431 case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_link") 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29440   { (case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_try") 2>&5
29446   ac_status=$?
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); }; }; then
29449   ac_cv_sizeof_socklen_t=`cat conftest.val`
29450 else
29451   echo "$as_me: program exited with status $ac_status" >&5
29452 echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455 ( exit $ac_status )
29456 if test "$ac_cv_type_socklen_t" = yes; then
29457      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29458 See \`config.log' for more details." >&5
29459 echo "$as_me: error: cannot compute sizeof (socklen_t)
29460 See \`config.log' for more details." >&2;}
29461    { (exit 77); exit 77; }; }
29462    else
29463      ac_cv_sizeof_socklen_t=0
29464    fi
29465 fi
29466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29467 fi
29468 rm -f conftest.val
29469 fi
29470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29471 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29472
29473
29474
29475 cat >>confdefs.h <<_ACEOF
29476 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29477 _ACEOF
29478
29479
29480
29481
29482
29483 cat >>confdefs.h <<_ACEOF
29484 #define NFS_STATEDIR "$statedir"
29485 _ACEOF
29486
29487
29488 if test "x$cross_compiling" = "xno"; then
29489         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29490         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29491         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29492         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29493 else
29494         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29495         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29496         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29497         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29498 fi
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510 case $host in
29511   alpha*)
29512     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29513   *)
29514     ARCHFLAGS="" ;;
29515 esac
29516
29517 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29518
29519 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29520
29521 AM_CFLAGS="$my_am_cflags"
29522
29523
29524 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29525 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29526
29527
29528 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/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
29529
29530 cat >confcache <<\_ACEOF
29531 # This file is a shell script that caches the results of configure
29532 # tests run on this system so they can be shared between configure
29533 # scripts and configure runs, see configure's option --config-cache.
29534 # It is not useful on other systems.  If it contains results you don't
29535 # want to keep, you may remove or edit it.
29536 #
29537 # config.status only pays attention to the cache file if you give it
29538 # the --recheck option to rerun configure.
29539 #
29540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29542 # following values.
29543
29544 _ACEOF
29545
29546 # The following way of writing the cache mishandles newlines in values,
29547 # but we know of no workaround that is simple, portable, and efficient.
29548 # So, we kill variables containing newlines.
29549 # Ultrix sh set writes to stderr and can't be redirected directly,
29550 # and sets the high bit in the cache file unless we assign to the vars.
29551 (
29552   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29553     eval ac_val=\$$ac_var
29554     case $ac_val in #(
29555     *${as_nl}*)
29556       case $ac_var in #(
29557       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29558 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29559       esac
29560       case $ac_var in #(
29561       _ | IFS | as_nl) ;; #(
29562       *) $as_unset $ac_var ;;
29563       esac ;;
29564     esac
29565   done
29566
29567   (set) 2>&1 |
29568     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29569     *${as_nl}ac_space=\ *)
29570       # `set' does not quote correctly, so add quotes (double-quote
29571       # substitution turns \\\\ into \\, and sed turns \\ into \).
29572       sed -n \
29573         "s/'/'\\\\''/g;
29574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29575       ;; #(
29576     *)
29577       # `set' quotes correctly as required by POSIX, so do not add quotes.
29578       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29579       ;;
29580     esac |
29581     sort
29582 ) |
29583   sed '
29584      /^ac_cv_env_/b end
29585      t clear
29586      :clear
29587      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29588      t end
29589      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29590      :end' >>confcache
29591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29592   if test -w "$cache_file"; then
29593     test "x$cache_file" != "x/dev/null" &&
29594       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29595 echo "$as_me: updating cache $cache_file" >&6;}
29596     cat confcache >$cache_file
29597   else
29598     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29599 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29600   fi
29601 fi
29602 rm -f confcache
29603
29604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29605 # Let make expand exec_prefix.
29606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29607
29608 DEFS=-DHAVE_CONFIG_H
29609
29610 ac_libobjs=
29611 ac_ltlibobjs=
29612 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29613   # 1. Remove the extension, and $U if already installed.
29614   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29615   ac_i=`echo "$ac_i" | sed "$ac_script"`
29616   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29617   #    will be set to the directory where LIBOBJS objects are built.
29618   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29619   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29620 done
29621 LIBOBJS=$ac_libobjs
29622
29623 LTLIBOBJS=$ac_ltlibobjs
29624
29625
29626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29627   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29628 Usually this means the macro was only invoked conditionally." >&5
29629 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29630 Usually this means the macro was only invoked conditionally." >&2;}
29631    { (exit 1); exit 1; }; }
29632 fi
29633 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
29634   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
29635 Usually this means the macro was only invoked conditionally." >&5
29636 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
29637 Usually this means the macro was only invoked conditionally." >&2;}
29638    { (exit 1); exit 1; }; }
29639 fi
29640 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
29641   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
29642 Usually this means the macro was only invoked conditionally." >&5
29643 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
29644 Usually this means the macro was only invoked conditionally." >&2;}
29645    { (exit 1); exit 1; }; }
29646 fi
29647 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
29648   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29649 Usually this means the macro was only invoked conditionally." >&5
29650 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
29651 Usually this means the macro was only invoked conditionally." >&2;}
29652    { (exit 1); exit 1; }; }
29653 fi
29654 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
29655   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
29656 Usually this means the macro was only invoked conditionally." >&5
29657 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
29658 Usually this means the macro was only invoked conditionally." >&2;}
29659    { (exit 1); exit 1; }; }
29660 fi
29661 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
29662   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
29663 Usually this means the macro was only invoked conditionally." >&5
29664 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
29665 Usually this means the macro was only invoked conditionally." >&2;}
29666    { (exit 1); exit 1; }; }
29667 fi
29668 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29669   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29670 Usually this means the macro was only invoked conditionally." >&5
29671 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29672 Usually this means the macro was only invoked conditionally." >&2;}
29673    { (exit 1); exit 1; }; }
29674 fi
29675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29676   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29677 Usually this means the macro was only invoked conditionally." >&5
29678 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29679 Usually this means the macro was only invoked conditionally." >&2;}
29680    { (exit 1); exit 1; }; }
29681 fi
29682 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29683   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29684 Usually this means the macro was only invoked conditionally." >&5
29685 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29686 Usually this means the macro was only invoked conditionally." >&2;}
29687    { (exit 1); exit 1; }; }
29688 fi
29689 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29690   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29691 Usually this means the macro was only invoked conditionally." >&5
29692 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29693 Usually this means the macro was only invoked conditionally." >&2;}
29694    { (exit 1); exit 1; }; }
29695 fi
29696
29697 : ${CONFIG_STATUS=./config.status}
29698 ac_clean_files_save=$ac_clean_files
29699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29702 cat >$CONFIG_STATUS <<_ACEOF
29703 #! $SHELL
29704 # Generated by $as_me.
29705 # Run this file to recreate the current configuration.
29706 # Compiler output produced by configure, useful for debugging
29707 # configure, is in config.log if it exists.
29708
29709 debug=false
29710 ac_cs_recheck=false
29711 ac_cs_silent=false
29712 SHELL=\${CONFIG_SHELL-$SHELL}
29713 _ACEOF
29714
29715 cat >>$CONFIG_STATUS <<\_ACEOF
29716 ## --------------------- ##
29717 ## M4sh Initialization.  ##
29718 ## --------------------- ##
29719
29720 # Be more Bourne compatible
29721 DUALCASE=1; export DUALCASE # for MKS sh
29722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29723   emulate sh
29724   NULLCMD=:
29725   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29726   # is contrary to our usage.  Disable this feature.
29727   alias -g '${1+"$@"}'='"$@"'
29728   setopt NO_GLOB_SUBST
29729 else
29730   case `(set -o) 2>/dev/null` in
29731   *posix*) set -o posix ;;
29732 esac
29733
29734 fi
29735
29736
29737
29738
29739 # PATH needs CR
29740 # Avoid depending upon Character Ranges.
29741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29744 as_cr_digits='0123456789'
29745 as_cr_alnum=$as_cr_Letters$as_cr_digits
29746
29747 # The user is always right.
29748 if test "${PATH_SEPARATOR+set}" != set; then
29749   echo "#! /bin/sh" >conf$$.sh
29750   echo  "exit 0"   >>conf$$.sh
29751   chmod +x conf$$.sh
29752   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29753     PATH_SEPARATOR=';'
29754   else
29755     PATH_SEPARATOR=:
29756   fi
29757   rm -f conf$$.sh
29758 fi
29759
29760 # Support unset when possible.
29761 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29762   as_unset=unset
29763 else
29764   as_unset=false
29765 fi
29766
29767
29768 # IFS
29769 # We need space, tab and new line, in precisely that order.  Quoting is
29770 # there to prevent editors from complaining about space-tab.
29771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29772 # splitting by setting IFS to empty value.)
29773 as_nl='
29774 '
29775 IFS=" ""        $as_nl"
29776
29777 # Find who we are.  Look in the path if we contain no directory separator.
29778 case $0 in
29779   *[\\/]* ) as_myself=$0 ;;
29780   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29781 for as_dir in $PATH
29782 do
29783   IFS=$as_save_IFS
29784   test -z "$as_dir" && as_dir=.
29785   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29786 done
29787 IFS=$as_save_IFS
29788
29789      ;;
29790 esac
29791 # We did not find ourselves, most probably we were run as `sh COMMAND'
29792 # in which case we are not to be found in the path.
29793 if test "x$as_myself" = x; then
29794   as_myself=$0
29795 fi
29796 if test ! -f "$as_myself"; then
29797   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29798   { (exit 1); exit 1; }
29799 fi
29800
29801 # Work around bugs in pre-3.0 UWIN ksh.
29802 for as_var in ENV MAIL MAILPATH
29803 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29804 done
29805 PS1='$ '
29806 PS2='> '
29807 PS4='+ '
29808
29809 # NLS nuisances.
29810 for as_var in \
29811   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29812   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29813   LC_TELEPHONE LC_TIME
29814 do
29815   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29816     eval $as_var=C; export $as_var
29817   else
29818     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29819   fi
29820 done
29821
29822 # Required to use basename.
29823 if expr a : '\(a\)' >/dev/null 2>&1 &&
29824    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29825   as_expr=expr
29826 else
29827   as_expr=false
29828 fi
29829
29830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29831   as_basename=basename
29832 else
29833   as_basename=false
29834 fi
29835
29836
29837 # Name of the executable.
29838 as_me=`$as_basename -- "$0" ||
29839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29840          X"$0" : 'X\(//\)$' \| \
29841          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29842 echo X/"$0" |
29843     sed '/^.*\/\([^/][^/]*\)\/*$/{
29844             s//\1/
29845             q
29846           }
29847           /^X\/\(\/\/\)$/{
29848             s//\1/
29849             q
29850           }
29851           /^X\/\(\/\).*/{
29852             s//\1/
29853             q
29854           }
29855           s/.*/./; q'`
29856
29857 # CDPATH.
29858 $as_unset CDPATH
29859
29860
29861
29862   as_lineno_1=$LINENO
29863   as_lineno_2=$LINENO
29864   test "x$as_lineno_1" != "x$as_lineno_2" &&
29865   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29866
29867   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29868   # uniformly replaced by the line number.  The first 'sed' inserts a
29869   # line-number line after each line using $LINENO; the second 'sed'
29870   # does the real work.  The second script uses 'N' to pair each
29871   # line-number line with the line containing $LINENO, and appends
29872   # trailing '-' during substitution so that $LINENO is not a special
29873   # case at line end.
29874   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29875   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29876   # E. McMahon (1931-1989) for sed's syntax.  :-)
29877   sed -n '
29878     p
29879     /[$]LINENO/=
29880   ' <$as_myself |
29881     sed '
29882       s/[$]LINENO.*/&-/
29883       t lineno
29884       b
29885       :lineno
29886       N
29887       :loop
29888       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29889       t loop
29890       s/-\n.*//
29891     ' >$as_me.lineno &&
29892   chmod +x "$as_me.lineno" ||
29893     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29894    { (exit 1); exit 1; }; }
29895
29896   # Don't try to exec as it changes $[0], causing all sort of problems
29897   # (the dirname of $[0] is not the place where we might find the
29898   # original and so on.  Autoconf is especially sensitive to this).
29899   . "./$as_me.lineno"
29900   # Exit status is that of the last command.
29901   exit
29902 }
29903
29904
29905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29906   as_dirname=dirname
29907 else
29908   as_dirname=false
29909 fi
29910
29911 ECHO_C= ECHO_N= ECHO_T=
29912 case `echo -n x` in
29913 -n*)
29914   case `echo 'x\c'` in
29915   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29916   *)   ECHO_C='\c';;
29917   esac;;
29918 *)
29919   ECHO_N='-n';;
29920 esac
29921
29922 if expr a : '\(a\)' >/dev/null 2>&1 &&
29923    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29924   as_expr=expr
29925 else
29926   as_expr=false
29927 fi
29928
29929 rm -f conf$$ conf$$.exe conf$$.file
29930 if test -d conf$$.dir; then
29931   rm -f conf$$.dir/conf$$.file
29932 else
29933   rm -f conf$$.dir
29934   mkdir conf$$.dir
29935 fi
29936 echo >conf$$.file
29937 if ln -s conf$$.file conf$$ 2>/dev/null; then
29938   as_ln_s='ln -s'
29939   # ... but there are two gotchas:
29940   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29941   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29942   # In both cases, we have to default to `cp -p'.
29943   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29944     as_ln_s='cp -p'
29945 elif ln conf$$.file conf$$ 2>/dev/null; then
29946   as_ln_s=ln
29947 else
29948   as_ln_s='cp -p'
29949 fi
29950 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29951 rmdir conf$$.dir 2>/dev/null
29952
29953 if mkdir -p . 2>/dev/null; then
29954   as_mkdir_p=:
29955 else
29956   test -d ./-p && rmdir ./-p
29957   as_mkdir_p=false
29958 fi
29959
29960 if test -x / >/dev/null 2>&1; then
29961   as_test_x='test -x'
29962 else
29963   if ls -dL / >/dev/null 2>&1; then
29964     as_ls_L_option=L
29965   else
29966     as_ls_L_option=
29967   fi
29968   as_test_x='
29969     eval sh -c '\''
29970       if test -d "$1"; then
29971         test -d "$1/.";
29972       else
29973         case $1 in
29974         -*)set "./$1";;
29975         esac;
29976         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29977         ???[sx]*):;;*)false;;esac;fi
29978     '\'' sh
29979   '
29980 fi
29981 as_executable_p=$as_test_x
29982
29983 # Sed expression to map a string onto a valid CPP name.
29984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29985
29986 # Sed expression to map a string onto a valid variable name.
29987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29988
29989
29990 exec 6>&1
29991
29992 # Save the log message, to keep $[0] and so on meaningful, and to
29993 # report actual input values of CONFIG_FILES etc. instead of their
29994 # values after options handling.
29995 ac_log="
29996 This file was extended by linux nfs-utils $as_me 1.1.0-rc1, which was
29997 generated by GNU Autoconf 2.61.  Invocation command line was
29998
29999   CONFIG_FILES    = $CONFIG_FILES
30000   CONFIG_HEADERS  = $CONFIG_HEADERS
30001   CONFIG_LINKS    = $CONFIG_LINKS
30002   CONFIG_COMMANDS = $CONFIG_COMMANDS
30003   $ $0 $@
30004
30005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30006 "
30007
30008 _ACEOF
30009
30010 cat >>$CONFIG_STATUS <<_ACEOF
30011 # Files that config.status was made for.
30012 config_files="$ac_config_files"
30013 config_headers="$ac_config_headers"
30014 config_commands="$ac_config_commands"
30015
30016 _ACEOF
30017
30018 cat >>$CONFIG_STATUS <<\_ACEOF
30019 ac_cs_usage="\
30020 \`$as_me' instantiates files from templates according to the
30021 current configuration.
30022
30023 Usage: $0 [OPTIONS] [FILE]...
30024
30025   -h, --help       print this help, then exit
30026   -V, --version    print version number and configuration settings, then exit
30027   -q, --quiet      do not print progress messages
30028   -d, --debug      don't remove temporary files
30029       --recheck    update $as_me by reconfiguring in the same conditions
30030   --file=FILE[:TEMPLATE]
30031                    instantiate the configuration file FILE
30032   --header=FILE[:TEMPLATE]
30033                    instantiate the configuration header FILE
30034
30035 Configuration files:
30036 $config_files
30037
30038 Configuration headers:
30039 $config_headers
30040
30041 Configuration commands:
30042 $config_commands
30043
30044 Report bugs to <bug-autoconf@gnu.org>."
30045
30046 _ACEOF
30047 cat >>$CONFIG_STATUS <<_ACEOF
30048 ac_cs_version="\\
30049 linux nfs-utils config.status 1.1.0-rc1
30050 configured by $0, generated by GNU Autoconf 2.61,
30051   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30052
30053 Copyright (C) 2006 Free Software Foundation, Inc.
30054 This config.status script is free software; the Free Software Foundation
30055 gives unlimited permission to copy, distribute and modify it."
30056
30057 ac_pwd='$ac_pwd'
30058 srcdir='$srcdir'
30059 INSTALL='$INSTALL'
30060 MKDIR_P='$MKDIR_P'
30061 _ACEOF
30062
30063 cat >>$CONFIG_STATUS <<\_ACEOF
30064 # If no file are specified by the user, then we need to provide default
30065 # value.  By we need to know if files were specified by the user.
30066 ac_need_defaults=:
30067 while test $# != 0
30068 do
30069   case $1 in
30070   --*=*)
30071     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30072     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30073     ac_shift=:
30074     ;;
30075   *)
30076     ac_option=$1
30077     ac_optarg=$2
30078     ac_shift=shift
30079     ;;
30080   esac
30081
30082   case $ac_option in
30083   # Handling of the options.
30084   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30085     ac_cs_recheck=: ;;
30086   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30087     echo "$ac_cs_version"; exit ;;
30088   --debug | --debu | --deb | --de | --d | -d )
30089     debug=: ;;
30090   --file | --fil | --fi | --f )
30091     $ac_shift
30092     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30093     ac_need_defaults=false;;
30094   --header | --heade | --head | --hea )
30095     $ac_shift
30096     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30097     ac_need_defaults=false;;
30098   --he | --h)
30099     # Conflict between --help and --header
30100     { echo "$as_me: error: ambiguous option: $1
30101 Try \`$0 --help' for more information." >&2
30102    { (exit 1); exit 1; }; };;
30103   --help | --hel | -h )
30104     echo "$ac_cs_usage"; exit ;;
30105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30107     ac_cs_silent=: ;;
30108
30109   # This is an error.
30110   -*) { echo "$as_me: error: unrecognized option: $1
30111 Try \`$0 --help' for more information." >&2
30112    { (exit 1); exit 1; }; } ;;
30113
30114   *) ac_config_targets="$ac_config_targets $1"
30115      ac_need_defaults=false ;;
30116
30117   esac
30118   shift
30119 done
30120
30121 ac_configure_extra_args=
30122
30123 if $ac_cs_silent; then
30124   exec 6>/dev/null
30125   ac_configure_extra_args="$ac_configure_extra_args --silent"
30126 fi
30127
30128 _ACEOF
30129 cat >>$CONFIG_STATUS <<_ACEOF
30130 if \$ac_cs_recheck; then
30131   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30132   CONFIG_SHELL=$SHELL
30133   export CONFIG_SHELL
30134   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30135 fi
30136
30137 _ACEOF
30138 cat >>$CONFIG_STATUS <<\_ACEOF
30139 exec 5>>config.log
30140 {
30141   echo
30142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30143 ## Running $as_me. ##
30144 _ASBOX
30145   echo "$ac_log"
30146 } >&5
30147
30148 _ACEOF
30149 cat >>$CONFIG_STATUS <<_ACEOF
30150 #
30151 # INIT-COMMANDS
30152 #
30153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30154
30155 _ACEOF
30156
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30158
30159 # Handling of arguments.
30160 for ac_config_target in $ac_config_targets
30161 do
30162   case $ac_config_target in
30163     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30164     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30165     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30166     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30167     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30168     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30169     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30170     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30171     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30172     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30173     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30174     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30175     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30176     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30177     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30178     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30179     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30180     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30181     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30182     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30183     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30184     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30185     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30186     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30187     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30188     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30189     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30190     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30191     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30192
30193   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30194 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30195    { (exit 1); exit 1; }; };;
30196   esac
30197 done
30198
30199
30200 # If the user did not use the arguments to specify the items to instantiate,
30201 # then the envvar interface is used.  Set only those that are not.
30202 # We use the long form for the default assignment because of an extremely
30203 # bizarre bug on SunOS 4.1.3.
30204 if $ac_need_defaults; then
30205   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30206   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30207   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30208 fi
30209
30210 # Have a temporary directory for convenience.  Make it in the build tree
30211 # simply because there is no reason against having it here, and in addition,
30212 # creating and moving files from /tmp can sometimes cause problems.
30213 # Hook for its removal unless debugging.
30214 # Note that there is a small window in which the directory will not be cleaned:
30215 # after its creation but before its name has been assigned to `$tmp'.
30216 $debug ||
30217 {
30218   tmp=
30219   trap 'exit_status=$?
30220   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30221 ' 0
30222   trap '{ (exit 1); exit 1; }' 1 2 13 15
30223 }
30224 # Create a (secure) tmp directory for tmp files.
30225
30226 {
30227   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30228   test -n "$tmp" && test -d "$tmp"
30229 }  ||
30230 {
30231   tmp=./conf$$-$RANDOM
30232   (umask 077 && mkdir "$tmp")
30233 } ||
30234 {
30235    echo "$me: cannot create a temporary directory in ." >&2
30236    { (exit 1); exit 1; }
30237 }
30238
30239 #
30240 # Set up the sed scripts for CONFIG_FILES section.
30241 #
30242
30243 # No need to generate the scripts if there are no CONFIG_FILES.
30244 # This happens for instance when ./config.status config.h
30245 if test -n "$CONFIG_FILES"; then
30246
30247 _ACEOF
30248
30249
30250
30251 ac_delim='%!_!# '
30252 for ac_last_try in false false false false false :; do
30253   cat >conf$$subs.sed <<_ACEOF
30254 SHELL!$SHELL$ac_delim
30255 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30256 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30257 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30258 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30259 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30260 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30261 exec_prefix!$exec_prefix$ac_delim
30262 prefix!$prefix$ac_delim
30263 program_transform_name!$program_transform_name$ac_delim
30264 bindir!$bindir$ac_delim
30265 sbindir!$sbindir$ac_delim
30266 libexecdir!$libexecdir$ac_delim
30267 datarootdir!$datarootdir$ac_delim
30268 datadir!$datadir$ac_delim
30269 sysconfdir!$sysconfdir$ac_delim
30270 sharedstatedir!$sharedstatedir$ac_delim
30271 localstatedir!$localstatedir$ac_delim
30272 includedir!$includedir$ac_delim
30273 oldincludedir!$oldincludedir$ac_delim
30274 docdir!$docdir$ac_delim
30275 infodir!$infodir$ac_delim
30276 htmldir!$htmldir$ac_delim
30277 dvidir!$dvidir$ac_delim
30278 pdfdir!$pdfdir$ac_delim
30279 psdir!$psdir$ac_delim
30280 libdir!$libdir$ac_delim
30281 localedir!$localedir$ac_delim
30282 mandir!$mandir$ac_delim
30283 DEFS!$DEFS$ac_delim
30284 ECHO_C!$ECHO_C$ac_delim
30285 ECHO_N!$ECHO_N$ac_delim
30286 ECHO_T!$ECHO_T$ac_delim
30287 LIBS!$LIBS$ac_delim
30288 build_alias!$build_alias$ac_delim
30289 host_alias!$host_alias$ac_delim
30290 target_alias!$target_alias$ac_delim
30291 build!$build$ac_delim
30292 build_cpu!$build_cpu$ac_delim
30293 build_vendor!$build_vendor$ac_delim
30294 build_os!$build_os$ac_delim
30295 host!$host$ac_delim
30296 host_cpu!$host_cpu$ac_delim
30297 host_vendor!$host_vendor$ac_delim
30298 host_os!$host_os$ac_delim
30299 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30300 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30301 INSTALL_DATA!$INSTALL_DATA$ac_delim
30302 am__isrc!$am__isrc$ac_delim
30303 CYGPATH_W!$CYGPATH_W$ac_delim
30304 PACKAGE!$PACKAGE$ac_delim
30305 VERSION!$VERSION$ac_delim
30306 ACLOCAL!$ACLOCAL$ac_delim
30307 AUTOCONF!$AUTOCONF$ac_delim
30308 AUTOMAKE!$AUTOMAKE$ac_delim
30309 AUTOHEADER!$AUTOHEADER$ac_delim
30310 MAKEINFO!$MAKEINFO$ac_delim
30311 install_sh!$install_sh$ac_delim
30312 STRIP!$STRIP$ac_delim
30313 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30314 mkdir_p!$mkdir_p$ac_delim
30315 AWK!$AWK$ac_delim
30316 SET_MAKE!$SET_MAKE$ac_delim
30317 am__leading_dot!$am__leading_dot$ac_delim
30318 AMTAR!$AMTAR$ac_delim
30319 am__tar!$am__tar$ac_delim
30320 am__untar!$am__untar$ac_delim
30321 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30322 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30323 MAINT!$MAINT$ac_delim
30324 RELEASE!$RELEASE$ac_delim
30325 statedir!$statedir$ac_delim
30326 statduser!$statduser$ac_delim
30327 startstatd!$startstatd$ac_delim
30328 enable_nfsv3!$enable_nfsv3$ac_delim
30329 IDMAPD!$IDMAPD$ac_delim
30330 enable_nfsv4!$enable_nfsv4$ac_delim
30331 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30332 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30333 GSSD!$GSSD$ac_delim
30334 SVCGSSD!$SVCGSSD$ac_delim
30335 enable_gss!$enable_gss$ac_delim
30336 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30337 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30338 kprefix!$kprefix$ac_delim
30339 secure_statd!$secure_statd$ac_delim
30340 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30341 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30342 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30343 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30344 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30345 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30346 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30347 CC!$CC$ac_delim
30348 CFLAGS!$CFLAGS$ac_delim
30349 LDFLAGS!$LDFLAGS$ac_delim
30350 CPPFLAGS!$CPPFLAGS$ac_delim
30351 _ACEOF
30352
30353   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30354     break
30355   elif $ac_last_try; then
30356     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30358    { (exit 1); exit 1; }; }
30359   else
30360     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30361   fi
30362 done
30363
30364 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30365 if test -n "$ac_eof"; then
30366   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30367   ac_eof=`expr $ac_eof + 1`
30368 fi
30369
30370 cat >>$CONFIG_STATUS <<_ACEOF
30371 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30373 _ACEOF
30374 sed '
30375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30376 s/^/s,@/; s/!/@,|#_!!_#|/
30377 :n
30378 t n
30379 s/'"$ac_delim"'$/,g/; t
30380 s/$/\\/; p
30381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30382 ' >>$CONFIG_STATUS <conf$$subs.sed
30383 rm -f conf$$subs.sed
30384 cat >>$CONFIG_STATUS <<_ACEOF
30385 CEOF$ac_eof
30386 _ACEOF
30387
30388
30389 ac_delim='%!_!# '
30390 for ac_last_try in false false false false false :; do
30391   cat >conf$$subs.sed <<_ACEOF
30392 ac_ct_CC!$ac_ct_CC$ac_delim
30393 EXEEXT!$EXEEXT$ac_delim
30394 OBJEXT!$OBJEXT$ac_delim
30395 DEPDIR!$DEPDIR$ac_delim
30396 am__include!$am__include$ac_delim
30397 am__quote!$am__quote$ac_delim
30398 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30399 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30400 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30401 CCDEPMODE!$CCDEPMODE$ac_delim
30402 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30403 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30404 LIBWRAP!$LIBWRAP$ac_delim
30405 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30406 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30407 CXX!$CXX$ac_delim
30408 CXXFLAGS!$CXXFLAGS$ac_delim
30409 ac_ct_CXX!$ac_ct_CXX$ac_delim
30410 CXXDEPMODE!$CXXDEPMODE$ac_delim
30411 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30412 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30413 CPP!$CPP$ac_delim
30414 LN_S!$LN_S$ac_delim
30415 GREP!$GREP$ac_delim
30416 EGREP!$EGREP$ac_delim
30417 ECHO!$ECHO$ac_delim
30418 AR!$AR$ac_delim
30419 RANLIB!$RANLIB$ac_delim
30420 CXXCPP!$CXXCPP$ac_delim
30421 F77!$F77$ac_delim
30422 FFLAGS!$FFLAGS$ac_delim
30423 ac_ct_F77!$ac_ct_F77$ac_delim
30424 LIBTOOL!$LIBTOOL$ac_delim
30425 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30426 LD!$LD$ac_delim
30427 LIBNSL!$LIBNSL$ac_delim
30428 PKG_CONFIG!$PKG_CONFIG$ac_delim
30429 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30430 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30431 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30432 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30433 LIBSOCKET!$LIBSOCKET$ac_delim
30434 LIBCRYPT!$LIBCRYPT$ac_delim
30435 LIBBSD!$LIBBSD$ac_delim
30436 LIBBLKID!$LIBBLKID$ac_delim
30437 KRBDIR!$KRBDIR$ac_delim
30438 KRBLIBS!$KRBLIBS$ac_delim
30439 KRBCFLAGS!$KRBCFLAGS$ac_delim
30440 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30441 K5VERS!$K5VERS$ac_delim
30442 ALLOCA!$ALLOCA$ac_delim
30443 LIBOBJS!$LIBOBJS$ac_delim
30444 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30445 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30446 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30447 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30448 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30449 AM_CFLAGS!$AM_CFLAGS$ac_delim
30450 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30451 LTLIBOBJS!$LTLIBOBJS$ac_delim
30452 _ACEOF
30453
30454   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
30455     break
30456   elif $ac_last_try; then
30457     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30459    { (exit 1); exit 1; }; }
30460   else
30461     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30462   fi
30463 done
30464
30465 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30466 if test -n "$ac_eof"; then
30467   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30468   ac_eof=`expr $ac_eof + 1`
30469 fi
30470
30471 cat >>$CONFIG_STATUS <<_ACEOF
30472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30474 _ACEOF
30475 sed '
30476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30477 s/^/s,@/; s/!/@,|#_!!_#|/
30478 :n
30479 t n
30480 s/'"$ac_delim"'$/,g/; t
30481 s/$/\\/; p
30482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30483 ' >>$CONFIG_STATUS <conf$$subs.sed
30484 rm -f conf$$subs.sed
30485 cat >>$CONFIG_STATUS <<_ACEOF
30486 :end
30487 s/|#_!!_#|//g
30488 CEOF$ac_eof
30489 _ACEOF
30490
30491
30492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30494 # trailing colons and then remove the whole line if VPATH becomes empty
30495 # (actually we leave an empty line to preserve line numbers).
30496 if test "x$srcdir" = x.; then
30497   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30498 s/:*\$(srcdir):*/:/
30499 s/:*\${srcdir}:*/:/
30500 s/:*@srcdir@:*/:/
30501 s/^\([^=]*=[     ]*\):*/\1/
30502 s/:*$//
30503 s/^[^=]*=[       ]*$//
30504 }'
30505 fi
30506
30507 cat >>$CONFIG_STATUS <<\_ACEOF
30508 fi # test -n "$CONFIG_FILES"
30509
30510
30511 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30512 do
30513   case $ac_tag in
30514   :[FHLC]) ac_mode=$ac_tag; continue;;
30515   esac
30516   case $ac_mode$ac_tag in
30517   :[FHL]*:*);;
30518   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30520    { (exit 1); exit 1; }; };;
30521   :[FH]-) ac_tag=-:-;;
30522   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30523   esac
30524   ac_save_IFS=$IFS
30525   IFS=:
30526   set x $ac_tag
30527   IFS=$ac_save_IFS
30528   shift
30529   ac_file=$1
30530   shift
30531
30532   case $ac_mode in
30533   :L) ac_source=$1;;
30534   :[FH])
30535     ac_file_inputs=
30536     for ac_f
30537     do
30538       case $ac_f in
30539       -) ac_f="$tmp/stdin";;
30540       *) # Look for the file first in the build tree, then in the source tree
30541          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30542          # because $ac_f cannot contain `:'.
30543          test -f "$ac_f" ||
30544            case $ac_f in
30545            [\\/$]*) false;;
30546            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30547            esac ||
30548            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30550    { (exit 1); exit 1; }; };;
30551       esac
30552       ac_file_inputs="$ac_file_inputs $ac_f"
30553     done
30554
30555     # Let's still pretend it is `configure' which instantiates (i.e., don't
30556     # use $as_me), people would be surprised to read:
30557     #    /* config.h.  Generated by config.status.  */
30558     configure_input="Generated from "`IFS=:
30559           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30560     if test x"$ac_file" != x-; then
30561       configure_input="$ac_file.  $configure_input"
30562       { echo "$as_me:$LINENO: creating $ac_file" >&5
30563 echo "$as_me: creating $ac_file" >&6;}
30564     fi
30565
30566     case $ac_tag in
30567     *:-:* | *:-) cat >"$tmp/stdin";;
30568     esac
30569     ;;
30570   esac
30571
30572   ac_dir=`$as_dirname -- "$ac_file" ||
30573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30574          X"$ac_file" : 'X\(//\)[^/]' \| \
30575          X"$ac_file" : 'X\(//\)$' \| \
30576          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30577 echo X"$ac_file" |
30578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30579             s//\1/
30580             q
30581           }
30582           /^X\(\/\/\)[^/].*/{
30583             s//\1/
30584             q
30585           }
30586           /^X\(\/\/\)$/{
30587             s//\1/
30588             q
30589           }
30590           /^X\(\/\).*/{
30591             s//\1/
30592             q
30593           }
30594           s/.*/./; q'`
30595   { as_dir="$ac_dir"
30596   case $as_dir in #(
30597   -*) as_dir=./$as_dir;;
30598   esac
30599   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30600     as_dirs=
30601     while :; do
30602       case $as_dir in #(
30603       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30604       *) as_qdir=$as_dir;;
30605       esac
30606       as_dirs="'$as_qdir' $as_dirs"
30607       as_dir=`$as_dirname -- "$as_dir" ||
30608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30609          X"$as_dir" : 'X\(//\)[^/]' \| \
30610          X"$as_dir" : 'X\(//\)$' \| \
30611          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30612 echo X"$as_dir" |
30613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30614             s//\1/
30615             q
30616           }
30617           /^X\(\/\/\)[^/].*/{
30618             s//\1/
30619             q
30620           }
30621           /^X\(\/\/\)$/{
30622             s//\1/
30623             q
30624           }
30625           /^X\(\/\).*/{
30626             s//\1/
30627             q
30628           }
30629           s/.*/./; q'`
30630       test -d "$as_dir" && break
30631     done
30632     test -z "$as_dirs" || eval "mkdir $as_dirs"
30633   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30635    { (exit 1); exit 1; }; }; }
30636   ac_builddir=.
30637
30638 case "$ac_dir" in
30639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30640 *)
30641   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30642   # A ".." for each directory in $ac_dir_suffix.
30643   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30644   case $ac_top_builddir_sub in
30645   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30646   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30647   esac ;;
30648 esac
30649 ac_abs_top_builddir=$ac_pwd
30650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30651 # for backward compatibility:
30652 ac_top_builddir=$ac_top_build_prefix
30653
30654 case $srcdir in
30655   .)  # We are building in place.
30656     ac_srcdir=.
30657     ac_top_srcdir=$ac_top_builddir_sub
30658     ac_abs_top_srcdir=$ac_pwd ;;
30659   [\\/]* | ?:[\\/]* )  # Absolute name.
30660     ac_srcdir=$srcdir$ac_dir_suffix;
30661     ac_top_srcdir=$srcdir
30662     ac_abs_top_srcdir=$srcdir ;;
30663   *) # Relative name.
30664     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30665     ac_top_srcdir=$ac_top_build_prefix$srcdir
30666     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30667 esac
30668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30669
30670
30671   case $ac_mode in
30672   :F)
30673   #
30674   # CONFIG_FILE
30675   #
30676
30677   case $INSTALL in
30678   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30679   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30680   esac
30681   ac_MKDIR_P=$MKDIR_P
30682   case $MKDIR_P in
30683   [\\/$]* | ?:[\\/]* ) ;;
30684   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30685   esac
30686 _ACEOF
30687
30688 cat >>$CONFIG_STATUS <<\_ACEOF
30689 # If the template does not know about datarootdir, expand it.
30690 # FIXME: This hack should be removed a few years after 2.60.
30691 ac_datarootdir_hack=; ac_datarootdir_seen=
30692
30693 case `sed -n '/datarootdir/ {
30694   p
30695   q
30696 }
30697 /@datadir@/p
30698 /@docdir@/p
30699 /@infodir@/p
30700 /@localedir@/p
30701 /@mandir@/p
30702 ' $ac_file_inputs` in
30703 *datarootdir*) ac_datarootdir_seen=yes;;
30704 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30705   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30706 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30707 _ACEOF
30708 cat >>$CONFIG_STATUS <<_ACEOF
30709   ac_datarootdir_hack='
30710   s&@datadir@&$datadir&g
30711   s&@docdir@&$docdir&g
30712   s&@infodir@&$infodir&g
30713   s&@localedir@&$localedir&g
30714   s&@mandir@&$mandir&g
30715     s&\\\${datarootdir}&$datarootdir&g' ;;
30716 esac
30717 _ACEOF
30718
30719 # Neutralize VPATH when `$srcdir' = `.'.
30720 # Shell code in configure.ac might set extrasub.
30721 # FIXME: do we really want to maintain this feature?
30722 cat >>$CONFIG_STATUS <<_ACEOF
30723   sed "$ac_vpsub
30724 $extrasub
30725 _ACEOF
30726 cat >>$CONFIG_STATUS <<\_ACEOF
30727 :t
30728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30729 s&@configure_input@&$configure_input&;t t
30730 s&@top_builddir@&$ac_top_builddir_sub&;t t
30731 s&@srcdir@&$ac_srcdir&;t t
30732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30733 s&@top_srcdir@&$ac_top_srcdir&;t t
30734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30735 s&@builddir@&$ac_builddir&;t t
30736 s&@abs_builddir@&$ac_abs_builddir&;t t
30737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30738 s&@INSTALL@&$ac_INSTALL&;t t
30739 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30740 $ac_datarootdir_hack
30741 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30742
30743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30744   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30745   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30746   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30747 which seems to be undefined.  Please make sure it is defined." >&5
30748 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30749 which seems to be undefined.  Please make sure it is defined." >&2;}
30750
30751   rm -f "$tmp/stdin"
30752   case $ac_file in
30753   -) cat "$tmp/out"; rm -f "$tmp/out";;
30754   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30755   esac
30756  ;;
30757   :H)
30758   #
30759   # CONFIG_HEADER
30760   #
30761 _ACEOF
30762
30763 # Transform confdefs.h into a sed script `conftest.defines', that
30764 # substitutes the proper values into config.h.in to produce config.h.
30765 rm -f conftest.defines conftest.tail
30766 # First, append a space to every undef/define line, to ease matching.
30767 echo 's/$/ /' >conftest.defines
30768 # Then, protect against being on the right side of a sed subst, or in
30769 # an unquoted here document, in config.status.  If some macros were
30770 # called several times there might be several #defines for the same
30771 # symbol, which is useless.  But do not sort them, since the last
30772 # AC_DEFINE must be honored.
30773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30774 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30775 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30776 # PARAMS is the parameter list in the macro definition--in most cases, it's
30777 # just an empty string.
30778 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30779 ac_dB='\\)[      (].*,\\1define\\2'
30780 ac_dC=' '
30781 ac_dD=' ,'
30782
30783 uniq confdefs.h |
30784   sed -n '
30785         t rset
30786         :rset
30787         s/^[     ]*#[    ]*define[       ][      ]*//
30788         t ok
30789         d
30790         :ok
30791         s/[\\&,]/\\&/g
30792         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30793         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30794   ' >>conftest.defines
30795
30796 # Remove the space that was appended to ease matching.
30797 # Then replace #undef with comments.  This is necessary, for
30798 # example, in the case of _POSIX_SOURCE, which is predefined and required
30799 # on some systems where configure will not decide to define it.
30800 # (The regexp can be short, since the line contains either #define or #undef.)
30801 echo 's/ $//
30802 s,^[     #]*u.*,/* & */,' >>conftest.defines
30803
30804 # Break up conftest.defines:
30805 ac_max_sed_lines=50
30806
30807 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30808 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30809 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30810 # et cetera.
30811 ac_in='$ac_file_inputs'
30812 ac_out='"$tmp/out1"'
30813 ac_nxt='"$tmp/out2"'
30814
30815 while :
30816 do
30817   # Write a here document:
30818     cat >>$CONFIG_STATUS <<_ACEOF
30819     # First, check the format of the line:
30820     cat >"\$tmp/defines.sed" <<\\CEOF
30821 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30822 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30823 b
30824 :def
30825 _ACEOF
30826   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30827   echo 'CEOF
30828     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30829   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30830   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30831   grep . conftest.tail >/dev/null || break
30832   rm -f conftest.defines
30833   mv conftest.tail conftest.defines
30834 done
30835 rm -f conftest.defines conftest.tail
30836
30837 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30838 cat >>$CONFIG_STATUS <<\_ACEOF
30839   if test x"$ac_file" != x-; then
30840     echo "/* $configure_input  */" >"$tmp/config.h"
30841     cat "$ac_result" >>"$tmp/config.h"
30842     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30843       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30844 echo "$as_me: $ac_file is unchanged" >&6;}
30845     else
30846       rm -f $ac_file
30847       mv "$tmp/config.h" $ac_file
30848     fi
30849   else
30850     echo "/* $configure_input  */"
30851     cat "$ac_result"
30852   fi
30853   rm -f "$tmp/out12"
30854 # Compute $ac_file's index in $config_headers.
30855 _am_stamp_count=1
30856 for _am_header in $config_headers :; do
30857   case $_am_header in
30858     $ac_file | $ac_file:* )
30859       break ;;
30860     * )
30861       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30862   esac
30863 done
30864 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30865 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30866          X$ac_file : 'X\(//\)[^/]' \| \
30867          X$ac_file : 'X\(//\)$' \| \
30868          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30869 echo X$ac_file |
30870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30871             s//\1/
30872             q
30873           }
30874           /^X\(\/\/\)[^/].*/{
30875             s//\1/
30876             q
30877           }
30878           /^X\(\/\/\)$/{
30879             s//\1/
30880             q
30881           }
30882           /^X\(\/\).*/{
30883             s//\1/
30884             q
30885           }
30886           s/.*/./; q'`/stamp-h$_am_stamp_count
30887  ;;
30888
30889   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30890 echo "$as_me: executing $ac_file commands" >&6;}
30891  ;;
30892   esac
30893
30894
30895   case $ac_file$ac_mode in
30896     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30897   # Strip MF so we end up with the name of the file.
30898   mf=`echo "$mf" | sed -e 's/:.*$//'`
30899   # Check whether this is an Automake generated Makefile or not.
30900   # We used to match only the files named `Makefile.in', but
30901   # some people rename them; so instead we look at the file content.
30902   # Grep'ing the first line is not enough: some people post-process
30903   # each Makefile.in and add a new line on top of each file to say so.
30904   # Grep'ing the whole file is not good either: AIX grep has a line
30905   # limit of 2048, but all sed's we know have understand at least 4000.
30906   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30907     dirpart=`$as_dirname -- "$mf" ||
30908 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30909          X"$mf" : 'X\(//\)[^/]' \| \
30910          X"$mf" : 'X\(//\)$' \| \
30911          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30912 echo X"$mf" |
30913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30914             s//\1/
30915             q
30916           }
30917           /^X\(\/\/\)[^/].*/{
30918             s//\1/
30919             q
30920           }
30921           /^X\(\/\/\)$/{
30922             s//\1/
30923             q
30924           }
30925           /^X\(\/\).*/{
30926             s//\1/
30927             q
30928           }
30929           s/.*/./; q'`
30930   else
30931     continue
30932   fi
30933   # Extract the definition of DEPDIR, am__include, and am__quote
30934   # from the Makefile without running `make'.
30935   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30936   test -z "$DEPDIR" && continue
30937   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30938   test -z "am__include" && continue
30939   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30940   # When using ansi2knr, U may be empty or an underscore; expand it
30941   U=`sed -n 's/^U = //p' < "$mf"`
30942   # Find all dependency output files, they are included files with
30943   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30944   # simplest approach to changing $(DEPDIR) to its actual value in the
30945   # expansion.
30946   for file in `sed -n "
30947     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30948        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30949     # Make sure the directory exists.
30950     test -f "$dirpart/$file" && continue
30951     fdir=`$as_dirname -- "$file" ||
30952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30953          X"$file" : 'X\(//\)[^/]' \| \
30954          X"$file" : 'X\(//\)$' \| \
30955          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30956 echo X"$file" |
30957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30958             s//\1/
30959             q
30960           }
30961           /^X\(\/\/\)[^/].*/{
30962             s//\1/
30963             q
30964           }
30965           /^X\(\/\/\)$/{
30966             s//\1/
30967             q
30968           }
30969           /^X\(\/\).*/{
30970             s//\1/
30971             q
30972           }
30973           s/.*/./; q'`
30974     { as_dir=$dirpart/$fdir
30975   case $as_dir in #(
30976   -*) as_dir=./$as_dir;;
30977   esac
30978   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30979     as_dirs=
30980     while :; do
30981       case $as_dir in #(
30982       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30983       *) as_qdir=$as_dir;;
30984       esac
30985       as_dirs="'$as_qdir' $as_dirs"
30986       as_dir=`$as_dirname -- "$as_dir" ||
30987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30988          X"$as_dir" : 'X\(//\)[^/]' \| \
30989          X"$as_dir" : 'X\(//\)$' \| \
30990          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30991 echo X"$as_dir" |
30992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30993             s//\1/
30994             q
30995           }
30996           /^X\(\/\/\)[^/].*/{
30997             s//\1/
30998             q
30999           }
31000           /^X\(\/\/\)$/{
31001             s//\1/
31002             q
31003           }
31004           /^X\(\/\).*/{
31005             s//\1/
31006             q
31007           }
31008           s/.*/./; q'`
31009       test -d "$as_dir" && break
31010     done
31011     test -z "$as_dirs" || eval "mkdir $as_dirs"
31012   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31013 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31014    { (exit 1); exit 1; }; }; }
31015     # echo "creating $dirpart/$file"
31016     echo '# dummy' > "$dirpart/$file"
31017   done
31018 done
31019  ;;
31020
31021   esac
31022 done # for ac_tag
31023
31024
31025 { (exit 0); exit 0; }
31026 _ACEOF
31027 chmod +x $CONFIG_STATUS
31028 ac_clean_files=$ac_clean_files_save
31029
31030
31031 # configure is writing to config.log, and then calls config.status.
31032 # config.status does its own redirection, appending to config.log.
31033 # Unfortunately, on DOS this fails, as config.log is still kept open
31034 # by configure, so config.status won't be able to write to it; its
31035 # output is simply discarded.  So we exec the FD to /dev/null,
31036 # effectively closing config.log, so it can be properly (re)opened and
31037 # appended to by config.status.  When coming back to configure, we
31038 # need to make the FD available again.
31039 if test "$no_create" != yes; then
31040   ac_cs_success=:
31041   ac_config_status_args=
31042   test "$silent" = yes &&
31043     ac_config_status_args="$ac_config_status_args --quiet"
31044   exec 5>/dev/null
31045   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31046   exec 5>>config.log
31047   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31048   # would make configure fail if this is the last instruction.
31049   $ac_cs_success || { (exit 1); exit 1; }
31050 fi
31051
31052