]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Debian patch 1.0.8-1
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d for linux nfs-utils 1.0.8.
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 Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells which exist, to save several forks.
236          if test -f $as_shell &&
237                 { ($as_shell) 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { $as_shell 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (dirname -- /) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
542
543 case X$ECHO in
544 X*--fallback-echo)
545   # Remove one level of quotation (which was required for Make).
546   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547   ;;
548 esac
549
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552   # Discard the --no-reexec flag, and continue.
553   shift
554 elif test "X$1" = X--fallback-echo; then
555   # Avoid inline document here, it may be left over
556   :
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558   # Yippee, $echo works!
559   :
560 else
561   # Restart under the correct shell.
562   exec $SHELL "$0" --no-reexec ${1+"$@"}
563 fi
564
565 if test "X$1" = X--fallback-echo; then
566   # used as fallback echo
567   shift
568   cat <<EOF
569 $*
570 EOF
571   exit 0
572 fi
573
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584        echo_test_string=`eval $cmd` &&
585        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586     then
587       break
588     fi
589   done
590 fi
591
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594    test "X$echo_testing_string" = "X$echo_test_string"; then
595   :
596 else
597   # The Solaris, AIX, and Digital Unix default echo programs unquote
598   # backslashes.  This makes it impossible to quote backslashes using
599   #   echo "$something" | sed 's/\\/\\\\/g'
600   #
601   # So, first we look for a working echo in the user's PATH.
602
603   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604   for dir in $PATH /usr/ucb; do
605     IFS="$lt_save_ifs"
606     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609        test "X$echo_testing_string" = "X$echo_test_string"; then
610       echo="$dir/echo"
611       break
612     fi
613   done
614   IFS="$lt_save_ifs"
615
616   if test "X$echo" = Xecho; then
617     # We didn't find a better echo, so look for alternatives.
618     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620        test "X$echo_testing_string" = "X$echo_test_string"; then
621       # This shell has a builtin print -r that does the trick.
622       echo='print -r'
623     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624          test "X$CONFIG_SHELL" != X/bin/ksh; then
625       # If we have ksh, try running configure again with it.
626       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627       export ORIGINAL_CONFIG_SHELL
628       CONFIG_SHELL=/bin/ksh
629       export CONFIG_SHELL
630       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631     else
632       # Try using printf.
633       echo='printf %s\n'
634       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636          test "X$echo_testing_string" = "X$echo_test_string"; then
637         # Cool, printf works
638         :
639       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640            test "X$echo_testing_string" = 'X\t' &&
641            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642            test "X$echo_testing_string" = "X$echo_test_string"; then
643         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644         export CONFIG_SHELL
645         SHELL="$CONFIG_SHELL"
646         export SHELL
647         echo="$CONFIG_SHELL $0 --fallback-echo"
648       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649            test "X$echo_testing_string" = 'X\t' &&
650            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651            test "X$echo_testing_string" = "X$echo_test_string"; then
652         echo="$CONFIG_SHELL $0 --fallback-echo"
653       else
654         # maybe with a smaller string...
655         prev=:
656
657         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659           then
660             break
661           fi
662           prev="$cmd"
663         done
664
665         if test "$prev" != 'sed 50q "$0"'; then
666           echo_test_string=`eval $prev`
667           export echo_test_string
668           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669         else
670           # Oops.  We lost completely, so just stick with echo.
671           echo=echo
672         fi
673       fi
674     fi
675   fi
676 fi
677 fi
678
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685
686
687
688
689 tagnames=${tagnames+${tagnames},}CXX
690
691 tagnames=${tagnames+${tagnames},}F77
692
693 exec 7<&0 </dev/null 6>&1
694
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700 #
701 # Initializations.
702 #
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
712
713 # Identity of this package.
714 PACKAGE_NAME='linux nfs-utils'
715 PACKAGE_TARNAME='nfs-utils'
716 PACKAGE_VERSION='1.0.8'
717 PACKAGE_STRING='linux nfs-utils 1.0.8'
718 PACKAGE_BUGREPORT='nfs@lists.sf.net'
719
720 ac_unique_file="tools/getiversion/getiversion.c"
721 ac_default_prefix=/usr
722 ac_unique_file="support/include/config.h.in"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 #  include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 #  include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
758
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 build
797 build_cpu
798 build_vendor
799 build_os
800 host
801 host_cpu
802 host_vendor
803 host_os
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 RELEASE
826 statedir
827 statduser
828 enable_nfsv3
829 IDMAPD
830 enable_nfsv4
831 CONFIG_NFSV4_TRUE
832 CONFIG_NFSV4_FALSE
833 GSSD
834 SVCGSSD
835 enable_gss
836 CONFIG_GSS_TRUE
837 CONFIG_GSS_FALSE
838 kprefix
839 secure_statd
840 CONFIG_RQUOTAD_TRUE
841 CONFIG_RQUOTAD_FALSE
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 LIBWRAP
859 HAVE_LIBWRAP
860 HAVE_TCP_WRAPPER
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CPP
868 LN_S
869 GREP
870 EGREP
871 ECHO
872 AR
873 RANLIB
874 CXXCPP
875 F77
876 FFLAGS
877 ac_ct_F77
878 LIBTOOL
879 CC_FOR_BUILD
880 LD
881 PKG_CONFIG
882 RPCSECGSS_CFLAGS
883 RPCSECGSS_LIBS
884 GSSAPI_CFLAGS
885 GSSAPI_LIBS
886 LIBSOCKET
887 LIBNSL
888 LIBCRYPT
889 LIBBSD
890 KRBDIR
891 KRBLIBS
892 KRBCFLAGS
893 K5VERS
894 ALLOCA
895 LIBOBJS
896 CFLAGS_FOR_BUILD
897 CXXFLAGS_FOR_BUILD
898 CPPFLAGS_FOR_BUILD
899 LDFLAGS_FOR_BUILD
900 AM_CPPFLAGS
901 AM_CFLAGS
902 ACLOCAL_AMFLAGS
903 LTLIBOBJS'
904 ac_subst_files=''
905       ac_precious_vars='build_alias
906 host_alias
907 target_alias
908 CC
909 CFLAGS
910 LDFLAGS
911 CPPFLAGS
912 CXX
913 CXXFLAGS
914 CCC
915 CPP
916 CXXCPP
917 F77
918 FFLAGS
919 PKG_CONFIG
920 RPCSECGSS_CFLAGS
921 RPCSECGSS_LIBS
922 GSSAPI_CFLAGS
923 GSSAPI_LIBS'
924
925
926 # Initialize some variables set by options.
927 ac_init_help=
928 ac_init_version=false
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976   # If the previous option needs an argument, assign it.
977   if test -n "$ac_prev"; then
978     eval $ac_prev=\$ac_option
979     ac_prev=
980     continue
981   fi
982
983   case $ac_option in
984   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985   *)    ac_optarg=yes ;;
986   esac
987
988   # Accept the important Cygnus configure options, so we can diagnose typos.
989
990   case $ac_dashdash$ac_option in
991   --)
992     ac_dashdash=yes ;;
993
994   -bindir | --bindir | --bindi | --bind | --bin | --bi)
995     ac_prev=bindir ;;
996   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997     bindir=$ac_optarg ;;
998
999   -build | --build | --buil | --bui | --bu)
1000     ac_prev=build_alias ;;
1001   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002     build_alias=$ac_optarg ;;
1003
1004   -cache-file | --cache-file | --cache-fil | --cache-fi \
1005   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006     ac_prev=cache_file ;;
1007   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009     cache_file=$ac_optarg ;;
1010
1011   --config-cache | -C)
1012     cache_file=config.cache ;;
1013
1014   -datadir | --datadir | --datadi | --datad)
1015     ac_prev=datadir ;;
1016   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017     datadir=$ac_optarg ;;
1018
1019   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020   | --dataroo | --dataro | --datar)
1021     ac_prev=datarootdir ;;
1022   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024     datarootdir=$ac_optarg ;;
1025
1026   -disable-* | --disable-*)
1027     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1033     eval enable_$ac_feature=no ;;
1034
1035   -docdir | --docdir | --docdi | --doc | --do)
1036     ac_prev=docdir ;;
1037   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038     docdir=$ac_optarg ;;
1039
1040   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041     ac_prev=dvidir ;;
1042   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043     dvidir=$ac_optarg ;;
1044
1045   -enable-* | --enable-*)
1046     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050    { (exit 1); exit 1; }; }
1051     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1052     eval enable_$ac_feature=\$ac_optarg ;;
1053
1054   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056   | --exec | --exe | --ex)
1057     ac_prev=exec_prefix ;;
1058   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060   | --exec=* | --exe=* | --ex=*)
1061     exec_prefix=$ac_optarg ;;
1062
1063   -gas | --gas | --ga | --g)
1064     # Obsolete; use --with-gas.
1065     with_gas=yes ;;
1066
1067   -help | --help | --hel | --he | -h)
1068     ac_init_help=long ;;
1069   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070     ac_init_help=recursive ;;
1071   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072     ac_init_help=short ;;
1073
1074   -host | --host | --hos | --ho)
1075     ac_prev=host_alias ;;
1076   -host=* | --host=* | --hos=* | --ho=*)
1077     host_alias=$ac_optarg ;;
1078
1079   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080     ac_prev=htmldir ;;
1081   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082   | --ht=*)
1083     htmldir=$ac_optarg ;;
1084
1085   -includedir | --includedir | --includedi | --included | --include \
1086   | --includ | --inclu | --incl | --inc)
1087     ac_prev=includedir ;;
1088   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089   | --includ=* | --inclu=* | --incl=* | --inc=*)
1090     includedir=$ac_optarg ;;
1091
1092   -infodir | --infodir | --infodi | --infod | --info | --inf)
1093     ac_prev=infodir ;;
1094   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095     infodir=$ac_optarg ;;
1096
1097   -libdir | --libdir | --libdi | --libd)
1098     ac_prev=libdir ;;
1099   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100     libdir=$ac_optarg ;;
1101
1102   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103   | --libexe | --libex | --libe)
1104     ac_prev=libexecdir ;;
1105   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106   | --libexe=* | --libex=* | --libe=*)
1107     libexecdir=$ac_optarg ;;
1108
1109   -localedir | --localedir | --localedi | --localed | --locale)
1110     ac_prev=localedir ;;
1111   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112     localedir=$ac_optarg ;;
1113
1114   -localstatedir | --localstatedir | --localstatedi | --localstated \
1115   | --localstate | --localstat | --localsta | --localst | --locals)
1116     ac_prev=localstatedir ;;
1117   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119     localstatedir=$ac_optarg ;;
1120
1121   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122     ac_prev=mandir ;;
1123   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124     mandir=$ac_optarg ;;
1125
1126   -nfp | --nfp | --nf)
1127     # Obsolete; use --without-fp.
1128     with_fp=no ;;
1129
1130   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131   | --no-cr | --no-c | -n)
1132     no_create=yes ;;
1133
1134   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136     no_recursion=yes ;;
1137
1138   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140   | --oldin | --oldi | --old | --ol | --o)
1141     ac_prev=oldincludedir ;;
1142   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145     oldincludedir=$ac_optarg ;;
1146
1147   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148     ac_prev=prefix ;;
1149   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150     prefix=$ac_optarg ;;
1151
1152   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153   | --program-pre | --program-pr | --program-p)
1154     ac_prev=program_prefix ;;
1155   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157     program_prefix=$ac_optarg ;;
1158
1159   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160   | --program-suf | --program-su | --program-s)
1161     ac_prev=program_suffix ;;
1162   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164     program_suffix=$ac_optarg ;;
1165
1166   -program-transform-name | --program-transform-name \
1167   | --program-transform-nam | --program-transform-na \
1168   | --program-transform-n | --program-transform- \
1169   | --program-transform | --program-transfor \
1170   | --program-transfo | --program-transf \
1171   | --program-trans | --program-tran \
1172   | --progr-tra | --program-tr | --program-t)
1173     ac_prev=program_transform_name ;;
1174   -program-transform-name=* | --program-transform-name=* \
1175   | --program-transform-nam=* | --program-transform-na=* \
1176   | --program-transform-n=* | --program-transform-=* \
1177   | --program-transform=* | --program-transfor=* \
1178   | --program-transfo=* | --program-transf=* \
1179   | --program-trans=* | --program-tran=* \
1180   | --progr-tra=* | --program-tr=* | --program-t=*)
1181     program_transform_name=$ac_optarg ;;
1182
1183   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184     ac_prev=pdfdir ;;
1185   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186     pdfdir=$ac_optarg ;;
1187
1188   -psdir | --psdir | --psdi | --psd | --ps)
1189     ac_prev=psdir ;;
1190   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191     psdir=$ac_optarg ;;
1192
1193   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194   | -silent | --silent | --silen | --sile | --sil)
1195     silent=yes ;;
1196
1197   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198     ac_prev=sbindir ;;
1199   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200   | --sbi=* | --sb=*)
1201     sbindir=$ac_optarg ;;
1202
1203   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205   | --sharedst | --shareds | --shared | --share | --shar \
1206   | --sha | --sh)
1207     ac_prev=sharedstatedir ;;
1208   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211   | --sha=* | --sh=*)
1212     sharedstatedir=$ac_optarg ;;
1213
1214   -site | --site | --sit)
1215     ac_prev=site ;;
1216   -site=* | --site=* | --sit=*)
1217     site=$ac_optarg ;;
1218
1219   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220     ac_prev=srcdir ;;
1221   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222     srcdir=$ac_optarg ;;
1223
1224   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225   | --syscon | --sysco | --sysc | --sys | --sy)
1226     ac_prev=sysconfdir ;;
1227   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229     sysconfdir=$ac_optarg ;;
1230
1231   -target | --target | --targe | --targ | --tar | --ta | --t)
1232     ac_prev=target_alias ;;
1233   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234     target_alias=$ac_optarg ;;
1235
1236   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237     verbose=yes ;;
1238
1239   -version | --version | --versio | --versi | --vers | -V)
1240     ac_init_version=: ;;
1241
1242   -with-* | --with-*)
1243     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1246       { echo "$as_me: error: invalid package name: $ac_package" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_package=`echo $ac_package| sed 's/-/_/g'`
1249     eval with_$ac_package=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid package name: $ac_package" >&2
1256    { (exit 1); exit 1; }; }
1257     ac_package=`echo $ac_package | sed 's/-/_/g'`
1258     eval with_$ac_package=no ;;
1259
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1263
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1270
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1277
1278   -*) { echo "$as_me: error: unrecognized option: $ac_option
1279 Try \`$0 --help' for more information." >&2
1280    { (exit 1); exit 1; }; }
1281     ;;
1282
1283   *=*)
1284     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1288    { (exit 1); exit 1; }; }
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1291
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298     ;;
1299
1300   esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   { echo "$as_me: error: missing argument to $ac_option" >&2
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 # Be sure to have absolute directory names.
1310 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311                 datadir sysconfdir sharedstatedir localstatedir includedir \
1312                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313                 libdir localedir mandir
1314 do
1315   eval ac_val=\$$ac_var
1316   case $ac_val in
1317     [\\/$]* | ?:[\\/]* )  continue;;
1318     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319   esac
1320   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1321    { (exit 1); exit 1; }; }
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333   if test "x$build_alias" = x; then
1334     cross_compiling=maybe
1335     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336     If a cross compiler is detected then cross compile mode will be used." >&2
1337   elif test "x$build_alias" != "x$host_alias"; then
1338     cross_compiling=yes
1339   fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351   { echo "$as_me: error: Working directory cannot be determined" >&2
1352    { (exit 1); exit 1; }; }
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354   { echo "$as_me: error: pwd does not report name of working directory" >&2
1355    { (exit 1); exit 1; }; }
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$0" ||
1363 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$0" : 'X\(//\)[^/]' \| \
1365          X"$0" : 'X\(//\)$' \| \
1366          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1367 echo X"$0" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1395    { (exit 1); exit 1; }; }
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1400    { (exit 1); exit 1; }; }
1401         pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404   srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_env_${ac_var}_value=\$${ac_var}
1415   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423   # Omit some internal or obsolete options to make the list less imposing.
1424   # This message is too long to be a string in the A/UX 3.1 sh.
1425   cat <<_ACEOF
1426 \`configure' configures linux nfs-utils 1.0.8 to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE.  See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436   -h, --help              display this help and exit
1437       --help=short        display options specific to this package
1438       --help=recursive    display the short help of all the included packages
1439   -V, --version           display version information and exit
1440   -q, --quiet, --silent   do not print \`checking...' messages
1441       --cache-file=FILE   cache test results in FILE [disabled]
1442   -C, --config-cache      alias for \`--cache-file=config.cache'
1443   -n, --no-create         do not create output files
1444       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1445
1446 Installation directories:
1447   --prefix=PREFIX         install architecture-independent files in PREFIX
1448                           [$ac_default_prefix]
1449   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1450                           [PREFIX]
1451
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460   --bindir=DIR           user executables [EPREFIX/bin]
1461   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1462   --libexecdir=DIR       program executables [EPREFIX/libexec]
1463   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1464   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1465   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1466   --libdir=DIR           object code libraries [EPREFIX/lib]
1467   --includedir=DIR       C header files [PREFIX/include]
1468   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1469   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1470   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1471   --infodir=DIR          info documentation [DATAROOTDIR/info]
1472   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1473   --mandir=DIR           man documentation [DATAROOTDIR/man]
1474   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1475   --htmldir=DIR          html documentation [DOCDIR]
1476   --dvidir=DIR           dvi documentation [DOCDIR]
1477   --pdfdir=DIR           pdf documentation [DOCDIR]
1478   --psdir=DIR            ps documentation [DOCDIR]
1479 _ACEOF
1480
1481   cat <<\_ACEOF
1482
1483 Program names:
1484   --program-prefix=PREFIX            prepend PREFIX to installed program names
1485   --program-suffix=SUFFIX            append SUFFIX to installed program names
1486   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1487
1488 System types:
1489   --build=BUILD     configure for building on BUILD [guessed]
1490   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495   case $ac_init_help in
1496      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8:";;
1497    esac
1498   cat <<\_ACEOF
1499
1500 Optional Features:
1501   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503   --enable-nfsv3          enable support for NFSv3 [default=yes]
1504   --enable-nfsv4          enable support for NFSv4 [default=yes]
1505   --enable-gss            enable support for rpcsec_gss [default=yes]
1506   --enable-kprefix        install progs as rpc.knfsd etc
1507   --enable-secure-statd   Only lockd can use statd (security)
1508   --enable-rquotad        enable rquotad [default=yes]
1509   --disable-dependency-tracking  speeds up one-time build
1510   --enable-dependency-tracking   do not reject slow dependency extractors
1511   --enable-shared[=PKGS]  build shared libraries [default=yes]
1512   --enable-static[=PKGS]  build static libraries [default=yes]
1513   --enable-fast-install[=PKGS]
1514                           optimize for fast installation [default=yes]
1515   --disable-libtool-lock  avoid locking (might break parallel builds)
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-release=XXX      set release to XXX [1]
1521   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1522   --with-statduser=rpcuser
1523                           statd to run under [rpcuser or nobody]
1524   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1525                  (optionally in PATH)
1526   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527   --with-pic              try to use only PIC/non-PIC objects [default=use
1528                           both]
1529   --with-tags[=TAGS]      include additional configurations [automatic]
1530   --with-krb5=DIR         use Kerberos v5 installation in DIR
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CXX         C++ compiler command
1540   CXXFLAGS    C++ compiler flags
1541   CPP         C preprocessor
1542   CXXCPP      C++ preprocessor
1543   F77         Fortran 77 compiler command
1544   FFLAGS      Fortran 77 compiler flags
1545   PKG_CONFIG  path to pkg-config utility
1546   RPCSECGSS_CFLAGS
1547               C compiler flags for RPCSECGSS, overriding pkg-config
1548   RPCSECGSS_LIBS
1549               linker flags for RPCSECGSS, overriding pkg-config
1550   GSSAPI_CFLAGS
1551               C compiler flags for GSSAPI, overriding pkg-config
1552   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1553
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1556
1557 Report bugs to <nfs@lists.sf.net>.
1558 _ACEOF
1559 ac_status=$?
1560 fi
1561
1562 if test "$ac_init_help" = "recursive"; then
1563   # If there are subdirs, report their specific --help.
1564   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565     test -d $ac_dir || continue
1566     ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1572   # A ".." for each directory in $ac_dir_suffix.
1573   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1574   case $ac_top_builddir_sub in
1575   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577   esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585   .)  # We are building in place.
1586     ac_srcdir=.
1587     ac_top_srcdir=$ac_top_builddir_sub
1588     ac_abs_top_srcdir=$ac_pwd ;;
1589   [\\/]* | ?:[\\/]* )  # Absolute name.
1590     ac_srcdir=$srcdir$ac_dir_suffix;
1591     ac_top_srcdir=$srcdir
1592     ac_abs_top_srcdir=$srcdir ;;
1593   *) # Relative name.
1594     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595     ac_top_srcdir=$ac_top_build_prefix$srcdir
1596     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600     cd "$ac_dir" || { ac_status=$?; continue; }
1601     # Check for guested configure.
1602     if test -f $ac_srcdir/configure.gnu; then
1603       echo &&
1604       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1605     elif test -f $ac_srcdir/configure; then
1606       echo &&
1607       $SHELL $ac_srcdir/configure  --help=recursive
1608     else
1609       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610     fi || ac_status=$?
1611     cd "$ac_pwd" || { ac_status=$?; break; }
1612   done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617   cat <<\_ACEOF
1618 linux nfs-utils configure 1.0.8
1619 generated by GNU Autoconf 2.59d
1620
1621 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1622 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626   exit
1627 fi
1628 cat >config.log <<_ACEOF
1629 This file contains any messages produced by compilers while
1630 running configure, to aid debugging if configure makes a mistake.
1631
1632 It was created by linux nfs-utils $as_me 1.0.8, which was
1633 generated by GNU Autoconf 2.59d.  Invocation command line was
1634
1635   $ $0 $@
1636
1637 _ACEOF
1638 exec 5>>config.log
1639 {
1640 cat <<_ASUNAME
1641 ## --------- ##
1642 ## Platform. ##
1643 ## --------- ##
1644
1645 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1646 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1647 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1648 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1649 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1650
1651 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1652 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1653
1654 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1655 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1656 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1657 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1658 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1659 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1660 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1661
1662 _ASUNAME
1663
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   echo "PATH: $as_dir"
1670 done
1671 IFS=$as_save_IFS
1672
1673 } >&5
1674
1675 cat >&5 <<_ACEOF
1676
1677
1678 ## ----------- ##
1679 ## Core tests. ##
1680 ## ----------- ##
1681
1682 _ACEOF
1683
1684
1685 # Keep a trace of the command line.
1686 # Strip out --no-create and --no-recursion so they do not pile up.
1687 # Strip out --silent because we don't want to record it for future runs.
1688 # Also quote any args containing shell meta-characters.
1689 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_configure_args=
1691 ac_configure_args0=
1692 ac_configure_args1=
1693 ac_sep=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697   for ac_arg
1698   do
1699     case $ac_arg in
1700     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702     | -silent | --silent | --silen | --sile | --sil)
1703       continue ;;
1704     *\'*)
1705       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706     esac
1707     case $ac_pass in
1708     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709     2)
1710       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711       if test $ac_must_keep_next = true; then
1712         ac_must_keep_next=false # Got value, back to normal.
1713       else
1714         case $ac_arg in
1715           *=* | --config-cache | -C | -disable-* | --disable-* \
1716           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718           | -with-* | --with-* | -without-* | --without-* | --x)
1719             case "$ac_configure_args0 " in
1720               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721             esac
1722             ;;
1723           -* ) ac_must_keep_next=true ;;
1724         esac
1725       fi
1726       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1727       # Get rid of the leading space.
1728       ac_sep=" "
1729       ;;
1730     esac
1731   done
1732 done
1733 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735
1736 # When interrupted or exit'd, cleanup temporary files, and complete
1737 # config.log.  We remove comments because anyway the quotes in there
1738 # would cause problems or look ugly.
1739 # WARNING: Use '\'' to represent an apostrophe within the trap.
1740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741 trap 'exit_status=$?
1742   # Save into config.log some information that might help in debugging.
1743   {
1744     echo
1745
1746     cat <<\_ASBOX
1747 ## ---------------- ##
1748 ## Cache variables. ##
1749 ## ---------------- ##
1750 _ASBOX
1751     echo
1752     # The following way of writing the cache mishandles newlines in values,
1753 (
1754   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755     eval ac_val=\$$ac_var
1756     case $ac_val in #(
1757     *${as_nl}*)
1758       case $ac_var in #(
1759       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1760 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1761       esac
1762       case $ac_var in #(
1763       _ | IFS | as_nl) ;; #(
1764       *) $as_unset $ac_var ;;
1765       esac ;;
1766     esac
1767   done
1768   (set) 2>&1 |
1769     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770     *${as_nl}ac_space=\ *)
1771       sed -n \
1772         "s/'\''/'\''\\\\'\'''\''/g;
1773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774       ;; #(
1775     *)
1776       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777       ;;
1778     esac |
1779     sort
1780 )
1781     echo
1782
1783     cat <<\_ASBOX
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1787 _ASBOX
1788     echo
1789     for ac_var in $ac_subst_vars
1790     do
1791       eval ac_val=\$$ac_var
1792       echo "$ac_var='\''$ac_val'\''"
1793     done | sort
1794     echo
1795
1796     if test -n "$ac_subst_files"; then
1797       cat <<\_ASBOX
1798 ## ------------------- ##
1799 ## File substitutions. ##
1800 ## ------------------- ##
1801 _ASBOX
1802       echo
1803       for ac_var in $ac_subst_files
1804       do
1805         eval ac_val=\$$ac_var
1806         echo "$ac_var='\''$ac_val'\''"
1807       done | sort
1808       echo
1809     fi
1810
1811     if test -s confdefs.h; then
1812       cat <<\_ASBOX
1813 ## ----------- ##
1814 ## confdefs.h. ##
1815 ## ----------- ##
1816 _ASBOX
1817       echo
1818       cat confdefs.h
1819       echo
1820     fi
1821     test "$ac_signal" != 0 &&
1822       echo "$as_me: caught signal $ac_signal"
1823     echo "$as_me: exit $exit_status"
1824   } >&5
1825   rm -f core *.core core.conftest.* &&
1826     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827     exit $exit_status
1828 ' 0
1829 for ac_signal in 1 2 13 15; do
1830   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1831 done
1832 ac_signal=0
1833
1834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1835 rm -f -r conftest* confdefs.h
1836
1837 # Predefined preprocessor variables.
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_NAME "$PACKAGE_NAME"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_STRING "$PACKAGE_STRING"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1861 _ACEOF
1862
1863
1864 # Let the site file select an alternate cache file if it wants to.
1865 # Prefer explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867   set x "$CONFIG_SITE"
1868 elif test "x$prefix" != xNONE; then
1869   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1870 else
1871   set x "$ac_default_prefix/share/config.site" \
1872         "$ac_default_prefix/etc/config.site"
1873 fi
1874 shift
1875 for ac_site_file
1876 do
1877   if test -r "$ac_site_file"; then
1878     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1879 echo "$as_me: loading site script $ac_site_file" >&6;}
1880     sed 's/^/| /' "$ac_site_file" >&5
1881     . "$ac_site_file"
1882   fi
1883 done
1884
1885 if test -r "$cache_file"; then
1886   # Some versions of bash will fail to source /dev/null (special
1887   # files actually), so we avoid doing that.
1888   if test -f "$cache_file"; then
1889     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1890 echo "$as_me: loading cache $cache_file" >&6;}
1891     case $cache_file in
1892       [\\/]* | ?:[\\/]* ) . $cache_file;;
1893       *)                      . ./$cache_file;;
1894     esac
1895   fi
1896 else
1897   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1898 echo "$as_me: creating cache $cache_file" >&6;}
1899   >$cache_file
1900 fi
1901
1902 # Check that the precious variables saved in the cache have kept the same
1903 # value.
1904 ac_cache_corrupted=false
1905 for ac_var in $ac_precious_vars; do
1906   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1907   eval ac_new_set=\$ac_env_${ac_var}_set
1908   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1909   eval ac_new_val=\$ac_env_${ac_var}_value
1910   case $ac_old_set,$ac_new_set in
1911     set,)
1912       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1914       ac_cache_corrupted=: ;;
1915     ,set)
1916       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1918       ac_cache_corrupted=: ;;
1919     ,);;
1920     *)
1921       if test "x$ac_old_val" != "x$ac_new_val"; then
1922         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1924         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1925 echo "$as_me:   former value:  $ac_old_val" >&2;}
1926         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1927 echo "$as_me:   current value: $ac_new_val" >&2;}
1928         ac_cache_corrupted=:
1929       fi;;
1930   esac
1931   # Pass precious variables to config.status.
1932   if test "$ac_new_set" = set; then
1933     case $ac_new_val in
1934     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1935     *) ac_arg=$ac_var=$ac_new_val ;;
1936     esac
1937     case " $ac_configure_args " in
1938       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1939       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940     esac
1941   fi
1942 done
1943 if $ac_cache_corrupted; then
1944   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975 ac_ext=c
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980
1981
1982 ac_aux_dir=
1983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1984   if test -f $ac_dir/install-sh; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/install-sh -c"
1987     break
1988   elif test -f $ac_dir/install.sh; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/install.sh -c"
1991     break
1992   elif test -f $ac_dir/shtool; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/shtool install -c"
1995     break
1996   fi
1997 done
1998 if test -z "$ac_aux_dir"; then
1999   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2005 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2006
2007 # Make sure we can run config.sub.
2008 $ac_config_sub sun4 >/dev/null 2>&1 ||
2009   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2010 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2011    { (exit 1); exit 1; }; }
2012
2013 { echo "$as_me:$LINENO: checking build system type" >&5
2014 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2015 if test "${ac_cv_build+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   ac_build_alias=$build_alias
2019 test "x$ac_build_alias" = x &&
2020   ac_build_alias=`$ac_config_guess`
2021 test "x$ac_build_alias" = x &&
2022   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2023 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2024    { (exit 1); exit 1; }; }
2025 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
2026   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
2027 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
2028    { (exit 1); exit 1; }; }
2029
2030 fi
2031 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2032 echo "${ECHO_T}$ac_cv_build" >&6; }
2033 case $ac_cv_build in
2034 *-*-*) ;;
2035 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2036 echo "$as_me: error: invalid value of canonical build" >&2;}
2037    { (exit 1); exit 1; }; };;
2038 esac
2039 build=$ac_cv_build
2040 ac_save_IFS=$IFS; IFS='-'
2041 set x $ac_cv_build
2042 shift
2043 build_cpu=$1
2044 build_vendor=$2
2045 shift; shift
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2048 build_os=$*
2049 IFS=$ac_save_IFS
2050 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2051
2052
2053 { echo "$as_me:$LINENO: checking host system type" >&5
2054 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2055 if test "${ac_cv_host+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test "x$host_alias" = x; then
2059   ac_cv_host=$ac_cv_build
2060 else
2061   ac_cv_host=`$ac_config_sub $host_alias` ||
2062     { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
2063 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
2064    { (exit 1); exit 1; }; }
2065 fi
2066
2067 fi
2068 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2069 echo "${ECHO_T}$ac_cv_host" >&6; }
2070 case $ac_cv_host in
2071 *-*-*) ;;
2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2073 echo "$as_me: error: invalid value of canonical host" >&2;}
2074    { (exit 1); exit 1; }; };;
2075 esac
2076 host=$ac_cv_host
2077 ac_save_IFS=$IFS; IFS='-'
2078 set x $ac_cv_host
2079 shift
2080 host_cpu=$1
2081 host_vendor=$2
2082 shift; shift
2083 # Remember, the first character of IFS is used to create $*,
2084 # except with old shells:
2085 host_os=$*
2086 IFS=$ac_save_IFS
2087 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2088
2089
2090
2091 case aclocal in
2092   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
2093   *)                      ac_macro_dir=$srcdir/aclocal ;;
2094 esac
2095 test -d "$ac_macro_dir" ||
2096   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2097 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2098    { (exit 1); exit 1; }; }
2099
2100 am__api_version="1.9"
2101 # Find a good install program.  We prefer a C program (faster),
2102 # so one script is as good as another.  But avoid the broken or
2103 # incompatible versions:
2104 # SysV /etc/install, /usr/sbin/install
2105 # SunOS /usr/etc/install
2106 # IRIX /sbin/install
2107 # AIX /bin/install
2108 # AmigaOS /C/install, which installs bootblocks on floppy discs
2109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112 # OS/2's system install, which has a completely different semantic
2113 # ./install, which can be erroneously created by make from ./install.sh.
2114 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2115 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2116 if test -z "$INSTALL"; then
2117 if test "${ac_cv_path_install+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125   # Account for people who put trailing slashes in PATH elements.
2126 case $as_dir/ in
2127   ./ | .// | /cC/* | \
2128   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2129   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2130   /usr/ucb/* ) ;;
2131   *)
2132     # OSF1 and SCO ODT 3.0 have their own names for install.
2133     # Don't use installbsd from OSF since it installs stuff as root
2134     # by default.
2135     for ac_prog in ginstall scoinst install; do
2136       for ac_exec_ext in '' $ac_executable_extensions; do
2137         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2138           if test $ac_prog = install &&
2139             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2140             # AIX install.  It has an incompatible calling convention.
2141             :
2142           elif test $ac_prog = install &&
2143             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2144             # program-specific install script used by HP pwplus--don't use.
2145             :
2146           else
2147             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2148             break 3
2149           fi
2150         fi
2151       done
2152     done
2153     ;;
2154 esac
2155 done
2156 IFS=$as_save_IFS
2157
2158
2159 fi
2160   if test "${ac_cv_path_install+set}" = set; then
2161     INSTALL=$ac_cv_path_install
2162   else
2163     # As a last resort, use the slow shell script.  Don't cache a
2164     # value for INSTALL within a source directory, because that will
2165     # break other packages using the cache if that directory is
2166     # removed, or if the value is a relative name.
2167     INSTALL=$ac_install_sh
2168   fi
2169 fi
2170 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2171 echo "${ECHO_T}$INSTALL" >&6; }
2172
2173 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2174 # It thinks the first close brace ends the variable substitution.
2175 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2176
2177 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2178
2179 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2180
2181 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2182 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2183 # Just in case
2184 sleep 1
2185 echo timestamp > conftest.file
2186 # Do `set' in a subshell so we don't clobber the current shell's
2187 # arguments.  Must try -L first in case configure is actually a
2188 # symlink; some systems play weird games with the mod time of symlinks
2189 # (eg FreeBSD returns the mod time of the symlink's containing
2190 # directory).
2191 if (
2192    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2193    if test "$*" = "X"; then
2194       # -L didn't work.
2195       set X `ls -t $srcdir/configure conftest.file`
2196    fi
2197    rm -f conftest.file
2198    if test "$*" != "X $srcdir/configure conftest.file" \
2199       && test "$*" != "X conftest.file $srcdir/configure"; then
2200
2201       # If neither matched, then we have a broken ls.  This can happen
2202       # if, for instance, CONFIG_SHELL is bash and it inherits a
2203       # broken ls alias from the environment.  This has actually
2204       # happened.  Such a system could not be considered "sane".
2205       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2206 alias in your environment" >&5
2207 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2208 alias in your environment" >&2;}
2209    { (exit 1); exit 1; }; }
2210    fi
2211
2212    test "$2" = conftest.file
2213    )
2214 then
2215    # Ok.
2216    :
2217 else
2218    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2219 Check your system clock" >&5
2220 echo "$as_me: error: newly created file is older than distributed files!
2221 Check your system clock" >&2;}
2222    { (exit 1); exit 1; }; }
2223 fi
2224 { echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6; }
2226 test "$program_prefix" != NONE &&
2227   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2228 # Use a double $ so make ignores it.
2229 test "$program_suffix" != NONE &&
2230   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2231 # Double any \ or $.  echo might interpret backslashes.
2232 # By default was `s,x,x', remove it if useless.
2233 cat <<\_ACEOF >conftest.sed
2234 s/[\\$]/&&/g;s/;s,x,x,$//
2235 _ACEOF
2236 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2237 rm -f conftest.sed
2238
2239 # expand $ac_aux_dir to an absolute path
2240 am_aux_dir=`cd $ac_aux_dir && pwd`
2241
2242 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2243 # Use eval to expand $SHELL
2244 if eval "$MISSING --run true"; then
2245   am_missing_run="$MISSING --run "
2246 else
2247   am_missing_run=
2248   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2250 fi
2251
2252 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2253   # We used to keeping the `.' as first argument, in order to
2254   # allow $(mkdir_p) to be used without argument.  As in
2255   #   $(mkdir_p) $(somedir)
2256   # where $(somedir) is conditionally defined.  However this is wrong
2257   # for two reasons:
2258   #  1. if the package is installed by a user who cannot write `.'
2259   #     make install will fail,
2260   #  2. the above comment should most certainly read
2261   #     $(mkdir_p) $(DESTDIR)$(somedir)
2262   #     so it does not work when $(somedir) is undefined and
2263   #     $(DESTDIR) is not.
2264   #  To support the latter case, we have to write
2265   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2266   #  so the `.' trick is pointless.
2267   mkdir_p='mkdir -p --'
2268 else
2269   # On NextStep and OpenStep, the `mkdir' command does not
2270   # recognize any option.  It will interpret all options as
2271   # directories to create, and then abort because `.' already
2272   # exists.
2273   for d in ./-p ./--version;
2274   do
2275     test -d $d && rmdir $d
2276   done
2277   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2278   if test -f "$ac_aux_dir/mkinstalldirs"; then
2279     mkdir_p='$(mkinstalldirs)'
2280   else
2281     mkdir_p='$(install_sh) -d'
2282   fi
2283 fi
2284
2285 for ac_prog in gawk mawk nawk awk
2286 do
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_AWK+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$AWK"; then
2295   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2304     ac_cv_prog_AWK="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310 IFS=$as_save_IFS
2311
2312 fi
2313 fi
2314 AWK=$ac_cv_prog_AWK
2315 if test -n "$AWK"; then
2316   { echo "$as_me:$LINENO: result: $AWK" >&5
2317 echo "${ECHO_T}$AWK" >&6; }
2318 else
2319   { echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6; }
2321 fi
2322
2323
2324   test -n "$AWK" && break
2325 done
2326
2327 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2328 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2329 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.make <<\_ACEOF
2334 SHELL = /bin/sh
2335 all:
2336         @echo 'ac_maketemp=X"$(MAKE)"'
2337 _ACEOF
2338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2339 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2340 if test "$ac_maketemp" != X ; then
2341   eval ac_cv_prog_make_${ac_make}_set=yes
2342 else
2343   eval ac_cv_prog_make_${ac_make}_set=no
2344 fi
2345 rm -f conftest.make
2346 fi
2347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2348   { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2350   SET_MAKE=
2351 else
2352   { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2354   SET_MAKE="MAKE=${MAKE-make}"
2355 fi
2356
2357 rm -rf .tst 2>/dev/null
2358 mkdir .tst 2>/dev/null
2359 if test -d .tst; then
2360   am__leading_dot=.
2361 else
2362   am__leading_dot=_
2363 fi
2364 rmdir .tst 2>/dev/null
2365
2366 # test to see if srcdir already configured
2367 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2368    test -f $srcdir/config.status; then
2369   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2370 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2371    { (exit 1); exit 1; }; }
2372 fi
2373
2374 # test whether we have cygpath
2375 if test -z "$CYGPATH_W"; then
2376   if (cygpath --version) >/dev/null 2>/dev/null; then
2377     CYGPATH_W='cygpath -w'
2378   else
2379     CYGPATH_W=echo
2380   fi
2381 fi
2382
2383
2384 # Define the identity of the package.
2385  PACKAGE='nfs-utils'
2386  VERSION='1.0.8'
2387
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE "$PACKAGE"
2391 _ACEOF
2392
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define VERSION "$VERSION"
2396 _ACEOF
2397
2398 # Some tools Automake needs.
2399
2400 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2401
2402
2403 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2404
2405
2406 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2407
2408
2409 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2410
2411
2412 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2413
2414 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2415
2416 # Installed binaries are usually stripped using `strip' when the user
2417 # run `make install-strip'.  However `strip' might not be the right
2418 # tool to use in cross-compilation environments, therefore Automake
2419 # will honor the `STRIP' environment variable to overrule this program.
2420 if test "$cross_compiling" != no; then
2421   if test -n "$ac_tool_prefix"; then
2422   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}strip; ac_word=$2
2424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_STRIP+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$STRIP"; then
2430   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2439     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 STRIP=$ac_cv_prog_STRIP
2450 if test -n "$STRIP"; then
2451   { echo "$as_me:$LINENO: result: $STRIP" >&5
2452 echo "${ECHO_T}$STRIP" >&6; }
2453 else
2454   { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_STRIP"; then
2461   ac_ct_STRIP=$STRIP
2462   # Extract the first word of "strip", so it can be a program name with args.
2463 set dummy strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$ac_ct_STRIP"; then
2470   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_ac_ct_STRIP="strip"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2490 if test -n "$ac_ct_STRIP"; then
2491   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2492 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498   if test "x$ac_ct_STRIP" = x; then
2499     STRIP=":"
2500   else
2501     case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504 whose name does not start with the host triplet.  If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet.  If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2510 esac
2511     STRIP=$ac_ct_STRIP
2512   fi
2513 else
2514   STRIP="$ac_cv_prog_STRIP"
2515 fi
2516
2517 fi
2518 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2519
2520 # We need awk for the "check" target.  The system "awk" is bad on
2521 # some platforms.
2522 # Always define AMTAR for backward compatibility.
2523
2524 AMTAR=${AMTAR-"${am_missing_run}tar"}
2525
2526 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536 # Check whether --with-release was given.
2537 if test "${with_release+set}" = set; then
2538   withval=$with_release; RELEASE=$withval
2539 else
2540   RELEASE=1
2541 fi
2542
2543
2544
2545 # Check whether --with-statedir was given.
2546 if test "${with_statedir+set}" = set; then
2547   withval=$with_statedir; statedir=$withval
2548 else
2549   statedir=/var/lib/nfs
2550 fi
2551
2552
2553
2554 # Check whether --with-statduser was given.
2555 if test "${with_statduser+set}" = set; then
2556   withval=$with_statduser; statduser=$withval
2557 else
2558   if test "x$cross_compiling" = "xno"; then
2559                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2560                         statduser=rpcuser
2561                 else
2562                         statduser=nobody
2563                 fi
2564         else
2565                 statduser=nobody
2566         fi
2567 fi
2568
2569
2570 # Check whether --enable-nfsv3 was given.
2571 if test "${enable_nfsv3+set}" = set; then
2572   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2573 else
2574   enable_nfsv3=yes
2575 fi
2576
2577         if test "$enable_nfsv3" = yes; then
2578
2579 cat >>confdefs.h <<\_ACEOF
2580 #define NFS3_SUPPORTED 1
2581 _ACEOF
2582
2583         else
2584                 enable_nfsv3=
2585         fi
2586
2587 # Check whether --enable-nfsv4 was given.
2588 if test "${enable_nfsv4+set}" = set; then
2589   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2590 else
2591   enable_nfsv4=yes
2592 fi
2593
2594         if test "$enable_nfsv4" = yes; then
2595
2596 cat >>confdefs.h <<\_ACEOF
2597 #define NFS4_SUPPORTED 1
2598 _ACEOF
2599
2600                 IDMAPD=idmapd
2601         else
2602                 enable_nfsv4=
2603                 IDMAPD=
2604         fi
2605
2606
2607
2608
2609 if test "$enable_nfsv4" = "yes"; then
2610   CONFIG_NFSV4_TRUE=
2611   CONFIG_NFSV4_FALSE='#'
2612 else
2613   CONFIG_NFSV4_TRUE='#'
2614   CONFIG_NFSV4_FALSE=
2615 fi
2616
2617 # Check whether --enable-gss was given.
2618 if test "${enable_gss+set}" = set; then
2619   enableval=$enable_gss; enable_gss=$enableval
2620 else
2621   enable_gss=yes
2622 fi
2623
2624         if test "$enable_gss" = yes; then
2625
2626 cat >>confdefs.h <<\_ACEOF
2627 #define GSS_SUPPORTED 1
2628 _ACEOF
2629
2630                 GSSD=gssd
2631                 SVCGSSD=svcgssd
2632         else
2633                 enable_gss=
2634                 GSSD=
2635                 SVCGSSD=
2636         fi
2637
2638
2639
2640
2641
2642 if test "$enable_gss" = "yes"; then
2643   CONFIG_GSS_TRUE=
2644   CONFIG_GSS_FALSE='#'
2645 else
2646   CONFIG_GSS_TRUE='#'
2647   CONFIG_GSS_FALSE=
2648 fi
2649
2650 # Check whether --enable-kprefix was given.
2651 if test "${enable_kprefix+set}" = set; then
2652   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2653 else
2654   kprefix=
2655 fi
2656
2657
2658 # Check whether --enable-secure-statd was given.
2659 if test "${enable_secure_statd+set}" = set; then
2660   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2661 else
2662   secure_statd=no
2663 fi
2664
2665         if test "$secure_statd" = yes; then
2666
2667 cat >>confdefs.h <<\_ACEOF
2668 #define RESTRICTED_STATD 1
2669 _ACEOF
2670
2671         fi
2672
2673 # Check whether --enable-rquotad was given.
2674 if test "${enable_rquotad+set}" = set; then
2675   enableval=$enable_rquotad; enable_rquotad=$enableval
2676 else
2677   enable_rquotad=yes
2678 fi
2679
2680         if test "$enable_rquotad" = yes; then
2681                 RQUOTAD=rquotad
2682         else
2683                 RQUOTAD=
2684         fi
2685
2686
2687 if test "$enable_rquotad" = "yes"; then
2688   CONFIG_RQUOTAD_TRUE=
2689   CONFIG_RQUOTAD_FALSE='#'
2690 else
2691   CONFIG_RQUOTAD_TRUE='#'
2692   CONFIG_RQUOTAD_FALSE=
2693 fi
2694
2695
2696 # Check whether user wants TCP wrappers support
2697 DEPDIR="${am__leading_dot}deps"
2698
2699 ac_config_commands="$ac_config_commands depfiles"
2700
2701
2702 am_make=${MAKE-make}
2703 cat > confinc << 'END'
2704 am__doit:
2705         @echo done
2706 .PHONY: am__doit
2707 END
2708 # If we don't find an include directive, just comment out the code.
2709 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2710 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2711 am__include="#"
2712 am__quote=
2713 _am_result=none
2714 # First try GNU make style include.
2715 echo "include confinc" > confmf
2716 # We grep out `Entering directory' and `Leaving directory'
2717 # messages which can occur if `w' ends up in MAKEFLAGS.
2718 # In particular we don't look at `^make:' because GNU make might
2719 # be invoked under some other name (usually "gmake"), in which
2720 # case it prints its new name instead of `make'.
2721 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2722    am__include=include
2723    am__quote=
2724    _am_result=GNU
2725 fi
2726 # Now try BSD make style include.
2727 if test "$am__include" = "#"; then
2728    echo '.include "confinc"' > confmf
2729    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2730       am__include=.include
2731       am__quote="\""
2732       _am_result=BSD
2733    fi
2734 fi
2735
2736
2737 { echo "$as_me:$LINENO: result: $_am_result" >&5
2738 echo "${ECHO_T}$_am_result" >&6; }
2739 rm -f confinc confmf
2740
2741 # Check whether --enable-dependency-tracking was given.
2742 if test "${enable_dependency_tracking+set}" = set; then
2743   enableval=$enable_dependency_tracking;
2744 fi
2745
2746 if test "x$enable_dependency_tracking" != xno; then
2747   am_depcomp="$ac_aux_dir/depcomp"
2748   AMDEPBACKSLASH='\'
2749 fi
2750
2751
2752 if test "x$enable_dependency_tracking" != xno; then
2753   AMDEP_TRUE=
2754   AMDEP_FALSE='#'
2755 else
2756   AMDEP_TRUE='#'
2757   AMDEP_FALSE=
2758 fi
2759
2760
2761
2762 ac_ext=c
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   if test -n "$CC"; then
2776   ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781   IFS=$as_save_IFS
2782   test -z "$as_dir" && as_dir=.
2783   for ac_exec_ext in '' $ac_executable_extensions; do
2784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2785     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787     break 2
2788   fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797   { echo "$as_me:$LINENO: result: $CC" >&5
2798 echo "${ECHO_T}$CC" >&6; }
2799 else
2800   { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804
2805 fi
2806 if test -z "$ac_cv_prog_CC"; then
2807   ac_ct_CC=$CC
2808   # Extract the first word of "gcc", so it can be a program name with args.
2809 set dummy gcc; ac_word=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   if test -n "$ac_ct_CC"; then
2816   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821   IFS=$as_save_IFS
2822   test -z "$as_dir" && as_dir=.
2823   for ac_exec_ext in '' $ac_executable_extensions; do
2824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2825     ac_cv_prog_ac_ct_CC="gcc"
2826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827     break 2
2828   fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6; }
2839 else
2840   { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2842 fi
2843
2844   if test "x$ac_ct_CC" = x; then
2845     CC=""
2846   else
2847     case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet.  If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet.  If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857     CC=$ac_ct_CC
2858   fi
2859 else
2860   CC="$ac_cv_prog_CC"
2861 fi
2862
2863 if test -z "$CC"; then
2864           if test -n "$ac_tool_prefix"; then
2865     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}cc; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870   echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872   if test -n "$CC"; then
2873   ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2882     ac_cv_prog_CC="${ac_tool_prefix}cc"
2883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884     break 2
2885   fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894   { echo "$as_me:$LINENO: result: $CC" >&5
2895 echo "${ECHO_T}$CC" >&6; }
2896 else
2897   { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2899 fi
2900
2901
2902   fi
2903 fi
2904 if test -z "$CC"; then
2905   # Extract the first word of "cc", so it can be a program name with args.
2906 set dummy cc; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   if test -n "$CC"; then
2913   ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915   ac_prog_rejected=no
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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2924        ac_prog_rejected=yes
2925        continue
2926      fi
2927     ac_cv_prog_CC="cc"
2928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 if test $ac_prog_rejected = yes; then
2936   # We found a bogon in the path, so make sure we never use it.
2937   set dummy $ac_cv_prog_CC
2938   shift
2939   if test $# != 0; then
2940     # We chose a different compiler from the bogus one.
2941     # However, it has the same basename, so the bogon will be chosen
2942     # first if we set CC to just the basename; use the full file name.
2943     shift
2944     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2945   fi
2946 fi
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951   { echo "$as_me:$LINENO: result: $CC" >&5
2952 echo "${ECHO_T}$CC" >&6; }
2953 else
2954   { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$CC"; then
2961   if test -n "$ac_tool_prefix"; then
2962   for ac_prog in cl.exe
2963   do
2964     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   if test -n "$CC"; then
2972   ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979   for ac_exec_ext in '' $ac_executable_extensions; do
2980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993   { echo "$as_me:$LINENO: result: $CC" >&5
2994 echo "${ECHO_T}$CC" >&6; }
2995 else
2996   { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
2998 fi
2999
3000
3001     test -n "$CC" && break
3002   done
3003 fi
3004 if test -z "$CC"; then
3005   ac_ct_CC=$CC
3006   for ac_prog in cl.exe
3007 do
3008   # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   if test -n "$ac_ct_CC"; then
3016   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023   for ac_exec_ext in '' $ac_executable_extensions; do
3024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3025     ac_cv_prog_ac_ct_CC="$ac_prog"
3026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3038 echo "${ECHO_T}$ac_ct_CC" >&6; }
3039 else
3040   { echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6; }
3042 fi
3043
3044
3045   test -n "$ac_ct_CC" && break
3046 done
3047
3048   if test "x$ac_ct_CC" = x; then
3049     CC=""
3050   else
3051     case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3054 whose name does not start with the host triplet.  If you think this
3055 configuration is useful to you, please write to autoconf@gnu.org." >&5
3056 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3057 whose name does not start with the host triplet.  If you think this
3058 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061     CC=$ac_ct_CC
3062   fi
3063 fi
3064
3065 fi
3066
3067
3068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: no acceptable C compiler found in \$PATH
3071 See \`config.log' for more details." >&2;}
3072    { (exit 1); exit 1; }; }
3073
3074 # Provide some information about the compiler.
3075 echo "$as_me:$LINENO: checking for C compiler version" >&5
3076 ac_compiler=`set X $ac_compile; echo $2`
3077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3078   (eval $ac_compiler --version >&5) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }
3082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3083   (eval $ac_compiler -v >&5) 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }
3087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3088   (eval $ac_compiler -V >&5) 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }
3092
3093
3094 # List of possible output files.  We want to start from the most likely,
3095 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
3096 # also for foo.exe.  b.out is created by i960 compilers.
3097 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
3098 # But we are not allowed to rm a.*, and we do not want always remove
3099 # conftest.*, so we will list them literally, when appropriate.
3100 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
3101
3102 # The IRIX 6 linker writes into existing files which may not be
3103 # executable, retaining their permissions.  Remove them first so a
3104 # subsequent execution test works.
3105 rm -f $ac_outfiles conftest.*
3106
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122
3123 ac_clean_files_save=$ac_clean_files
3124 ac_clean_files="$ac_clean_files $ac_outfiles"
3125
3126 # The following tests should remove their output except files matching conftest.*.
3127 # Try to create an executable without -o first, disregard a.out.
3128 # It will help us diagnose broken compilers, and finding out an intuition
3129 # of exeext.
3130 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3131 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3133
3134 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3135   (eval $ac_link_default) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; then
3139   for ac_file in $ac_outfiles a.* conftest.* NO
3140 do
3141   test -f "$ac_file" || continue
3142   case $ac_file in
3143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3144     * ) break;;
3145   esac
3146 done
3147 if test "$ac_file" = NO; then
3148   { { echo "$as_me:$LINENO: error: no output file found
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: no output file found
3151 See \`config.log' for more details." >&2;}
3152    { (exit 1); exit 1; }; }
3153 fi
3154
3155
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&2;}
3164    { (exit 77); exit 77; }; }
3165 fi
3166
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 # Check that the compiler produces executables we can run.  If not, either
3170 # the compiler is broken, or we cross compile.
3171 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3174 # If not cross compiling, check that we can run a simple program.
3175 if test "$cross_compiling" != yes; then
3176   if { ac_try='./$ac_file'
3177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178   (eval $ac_try) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182     cross_compiling=no
3183   else
3184     if test "$cross_compiling" = maybe; then
3185         cross_compiling=yes
3186     else
3187         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&2;}
3193    { (exit 1); exit 1; }; }
3194     fi
3195   fi
3196 fi
3197 { echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6; }
3199
3200 # Clean up; list also $ac_file, in case it matched a wildcard entry.
3201 rm -f $ac_outfiles $ac_file
3202
3203 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3205 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3206 echo "${ECHO_T}$cross_compiling" >&6; }
3207
3208 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3210 if test "${ac_cv_exeext+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214   (eval $ac_link) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; then
3218   # If both `conftest.exe' and `conftest' are `present' (well, observable),
3219     # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3220     # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
3221     for ac_file in conftest.exe conftest conftest.* NO; do
3222       test -f "$ac_file" || continue
3223       case $ac_file in
3224         *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3225         *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226               break;;
3227         * ) break;;
3228       esac
3229     done
3230     if test "$ac_file" = NO; then
3231   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
3232 See \`config.log' for more details." >&5
3233 echo "$as_me: error: cannot compute suffix of executables: no output file found
3234 See \`config.log' for more details." >&2;}
3235    { (exit 1); exit 1; }; }
3236 fi
3237
3238     # Clean up; list also $ac_file, in case it matched conftest.*.
3239     rm -f $ac_outfiles $ac_file
3240
3241 else
3242   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&2;}
3246    { (exit 1); exit 1; }; }
3247
3248 fi
3249
3250
3251 fi
3252 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3253 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3254 EXEEXT=$ac_cv_exeext
3255 ac_exeext=$EXEEXT
3256
3257
3258 ac_clean_files=$ac_clean_files_save
3259
3260 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3262 if test "${ac_cv_objext+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   rm -f conftest.o conftest.obj
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267   (eval $ac_compile) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; then
3271   for ac_file in conftest.o conftest.obj conftest.*; do
3272   test -f "$ac_file" || continue;
3273   case $ac_file in
3274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276        break;;
3277   esac
3278 done
3279 else
3280   echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287    { (exit 1); exit 1; }; }
3288 fi
3289
3290 fi
3291 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292 echo "${ECHO_T}$ac_cv_objext" >&6; }
3293 OBJEXT=$ac_cv_objext
3294 ac_objext=$OBJEXT
3295
3296
3297 rm -f conftest.*
3298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309
3310 int
3311 main ()
3312 {
3313 #ifndef __GNUC__
3314        choke me
3315 #endif
3316
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323   (eval $ac_compile) 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332   (eval $ac_try) 2>&5
3333   ac_status=$?
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); }; } &&
3336          { ac_try='test -s conftest.$ac_objext'
3337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338   (eval $ac_try) 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }; }; then
3342   ac_compiler_gnu=yes
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347         ac_compiler_gnu=no
3348 fi
3349
3350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352
3353 fi
3354 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3356 GCC=`test $ac_compiler_gnu = yes && echo yes`
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   ac_save_c_werror_flag=$ac_c_werror_flag
3365    ac_c_werror_flag=yes
3366    ac_cv_prog_cc_g=no
3367    CFLAGS="-g"
3368    cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3374
3375 int
3376 main ()
3377 {
3378
3379   ;
3380   return 0;
3381 }
3382 _ACEOF
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385   (eval $ac_compile) 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; } &&
3398          { ac_try='test -s conftest.$ac_objext'
3399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400   (eval $ac_try) 2>&5
3401   ac_status=$?
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); }; }; then
3404   ac_cv_prog_cc_g=yes
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409         CFLAGS=""
3410       cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416
3417 int
3418 main ()
3419 {
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427   (eval $ac_compile) 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } &&
3434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   :
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451         ac_c_werror_flag=$ac_save_c_werror_flag
3452          CFLAGS="-g"
3453          cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470   (eval $ac_compile) 2>conftest.er1
3471   ac_status=$?
3472   grep -v '^ *+' conftest.er1 >conftest.err
3473   rm -f conftest.er1
3474   cat conftest.err >&5
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } &&
3477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   ac_cv_prog_cc_g=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494
3495 fi
3496
3497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499
3500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504    ac_c_werror_flag=$ac_save_c_werror_flag
3505 fi
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509   CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511   if test "$GCC" = yes; then
3512     CFLAGS="-g -O2"
3513   else
3514     CFLAGS="-g"
3515   fi
3516 else
3517   if test "$GCC" = yes; then
3518     CFLAGS="-O2"
3519   else
3520     CFLAGS=
3521   fi
3522 fi
3523 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3524 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   ac_cv_prog_cc_c89=no
3529 ac_save_CC=$CC
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536 #include <stdarg.h>
3537 #include <stdio.h>
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3544      char **p;
3545      int i;
3546 {
3547   return p[i];
3548 }
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3550 {
3551   char *s;
3552   va_list v;
3553   va_start (v,p);
3554   s = g (p, va_arg (v,int));
3555   va_end (v);
3556   return s;
3557 }
3558
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3560    function prototypes and stuff, but not '\xHH' hex character constants.
3561    These don't provoke an error unfortunately, instead are silently treated
3562    as 'x'.  The following induces an error, until -std is added to get
3563    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3564    array size at least.  It's necessary to write '\x00'==0 to get something
3565    that's true only with -std.  */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3567
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 int argc;
3573 char **argv;
3574 int
3575 main ()
3576 {
3577 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 do
3585   CC="$ac_save_CC $ac_arg"
3586   rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588   (eval $ac_compile) 2>conftest.er1
3589   ac_status=$?
3590   grep -v '^ *+' conftest.er1 >conftest.err
3591   rm -f conftest.er1
3592   cat conftest.err >&5
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } &&
3595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597   (eval $ac_try) 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }; } &&
3601          { ac_try='test -s conftest.$ac_objext'
3602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603   (eval $ac_try) 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); }; }; then
3607   ac_cv_prog_cc_c89=$ac_arg
3608 else
3609   echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_objext
3616   test "x$ac_cv_prog_cc_c89" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC
3620
3621 fi
3622 # AC_CACHE_VAL
3623 case "x$ac_cv_prog_cc_c89" in
3624   x)
3625     { echo "$as_me:$LINENO: result: none needed" >&5
3626 echo "${ECHO_T}none needed" >&6; } ;;
3627   xno)
3628     { echo "$as_me:$LINENO: result: unsupported" >&5
3629 echo "${ECHO_T}unsupported" >&6; } ;;
3630   *)
3631     CC="$CC $ac_cv_prog_cc_c89"
3632     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3633 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3634 esac
3635
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643 depcc="$CC"   am_compiler_list=
3644
3645 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3646 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3647 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651   # We make a subdir and do the tests there.  Otherwise we can end up
3652   # making bogus files that we don't know about and never remove.  For
3653   # instance it was reported that on HP-UX the gcc test will end up
3654   # making a dummy file named `D' -- because `-MD' means `put the output
3655   # in D'.
3656   mkdir conftest.dir
3657   # Copy depcomp to subdir because otherwise we won't find it if we're
3658   # using a relative directory.
3659   cp "$am_depcomp" conftest.dir
3660   cd conftest.dir
3661   # We will build objects and dependencies in a subdirectory because
3662   # it helps to detect inapplicable dependency modes.  For instance
3663   # both Tru64's cc and ICC support -MD to output dependencies as a
3664   # side effect of compilation, but ICC will put the dependencies in
3665   # the current directory while Tru64 will put them in the object
3666   # directory.
3667   mkdir sub
3668
3669   am_cv_CC_dependencies_compiler_type=none
3670   if test "$am_compiler_list" = ""; then
3671      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672   fi
3673   for depmode in $am_compiler_list; do
3674     # Setup a source with many dependencies, because some compilers
3675     # like to wrap large dependency lists on column 80 (with \), and
3676     # we should not choose a depcomp mode which is confused by this.
3677     #
3678     # We need to recreate these files for each test, as the compiler may
3679     # overwrite some of them when testing with obscure command lines.
3680     # This happens at least with the AIX C compiler.
3681     : > sub/conftest.c
3682     for i in 1 2 3 4 5 6; do
3683       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3684       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3685       # Solaris 8's {/usr,}/bin/sh.
3686       touch sub/conftst$i.h
3687     done
3688     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3689
3690     case $depmode in
3691     nosideeffect)
3692       # after this tag, mechanisms are not by side-effect, so they'll
3693       # only be used when explicitly requested
3694       if test "x$enable_dependency_tracking" = xyes; then
3695         continue
3696       else
3697         break
3698       fi
3699       ;;
3700     none) break ;;
3701     esac
3702     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3703     # mode.  It turns out that the SunPro C++ compiler does not properly
3704     # handle `-M -o', and we need to detect this.
3705     if depmode=$depmode \
3706        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3707        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3708        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3709          >/dev/null 2>conftest.err &&
3710        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3712        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713       # icc doesn't choke on unknown options, it will just issue warnings
3714       # or remarks (even with -Werror).  So we grep stderr for any message
3715       # that says an option was ignored or not supported.
3716       # When given -MP, icc 7.0 and 7.1 complain thusly:
3717       #   icc: Command line warning: ignoring option '-M'; no argument required
3718       # The diagnosis changed in icc 8.0:
3719       #   icc: Command line remark: option '-MP' not supported
3720       if (grep 'ignoring option' conftest.err ||
3721           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722         am_cv_CC_dependencies_compiler_type=$depmode
3723         break
3724       fi
3725     fi
3726   done
3727
3728   cd ..
3729   rm -rf conftest.dir
3730 else
3731   am_cv_CC_dependencies_compiler_type=none
3732 fi
3733
3734 fi
3735 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3736 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3737 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3738
3739
3740
3741 if
3742   test "x$enable_dependency_tracking" != xno \
3743   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3744   am__fastdepCC_TRUE=
3745   am__fastdepCC_FALSE='#'
3746 else
3747   am__fastdepCC_TRUE='#'
3748   am__fastdepCC_FALSE=
3749 fi
3750
3751
3752
3753
3754   TCPW_MSG="no"
3755
3756 # Check whether --with-tcp-wrappers was given.
3757 if test "${with_tcp_wrappers+set}" = set; then
3758   withval=$with_tcp_wrappers;
3759         if test "x$withval" != "xno" ; then
3760             saved_LIBS="$LIBS"
3761             saved_LDFLAGS="$LDFLAGS"
3762             saved_CPPFLAGS="$CPPFLAGS"
3763             if test -n "${withval}" -a "${withval}" != "yes"; then
3764                 if test -d "${withval}/lib"; then
3765                     if test -n "${need_dash_r}"; then
3766                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3767                     else
3768                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3769                     fi
3770                 else
3771                     if test -n "${need_dash_r}"; then
3772                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3773                     else
3774                         LDFLAGS="-L${withval} ${LDFLAGS}"
3775                     fi
3776                 fi
3777                 if test -d "${withval}/include"; then
3778                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3779                 else
3780                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3781                 fi
3782             fi
3783             LIBWRAP="-lwrap"
3784             LIBS="$LIBWRAP $LIBS"
3785             { echo "$as_me:$LINENO: checking for libwrap" >&5
3786 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3787             cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793
3794                 #include <tcpd.h>
3795                 int deny_severity = 0, allow_severity = 0;
3796
3797 int
3798 main ()
3799 {
3800 hosts_access(0);
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807   (eval $ac_link) 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); }; } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826
3827                 { echo "$as_me:$LINENO: result: yes" >&5
3828 echo "${ECHO_T}yes" >&6; }
3829
3830
3831 cat >>confdefs.h <<\_ACEOF
3832 #define LIBWRAP 1
3833 _ACEOF
3834
3835
3836 cat >>confdefs.h <<\_ACEOF
3837 #define HAVE_LIBWRAP 1
3838 _ACEOF
3839
3840
3841 cat >>confdefs.h <<\_ACEOF
3842 #define HAVE_TCP_WRAPPER 1
3843 _ACEOF
3844
3845                 TCPW_MSG="yes"
3846
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851
3852                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3853 echo "$as_me: error: *** libwrap missing" >&2;}
3854    { (exit 1); exit 1; }; }
3855
3856
3857 fi
3858
3859 rm -f conftest.err conftest.$ac_objext \
3860       conftest$ac_exeext conftest.$ac_ext
3861             LIBS="$saved_LIBS"
3862         fi
3863
3864
3865 fi
3866
3867
3868
3869
3870
3871
3872
3873 ac_config_headers="$ac_config_headers support/include/config.h"
3874
3875
3876 # Checks for programs.
3877 ac_ext=cpp
3878 ac_cpp='$CXXCPP $CPPFLAGS'
3879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3882 if test -z "$CXX"; then
3883   if test -n "$CCC"; then
3884     CXX=$CCC
3885   else
3886     if test -n "$ac_tool_prefix"; then
3887   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3888   do
3889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3893 if test "${ac_cv_prog_CXX+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   if test -n "$CXX"; then
3897   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3898 else
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904   for ac_exec_ext in '' $ac_executable_extensions; do
3905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3906     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908     break 2
3909   fi
3910 done
3911 done
3912 IFS=$as_save_IFS
3913
3914 fi
3915 fi
3916 CXX=$ac_cv_prog_CXX
3917 if test -n "$CXX"; then
3918   { echo "$as_me:$LINENO: result: $CXX" >&5
3919 echo "${ECHO_T}$CXX" >&6; }
3920 else
3921   { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3923 fi
3924
3925
3926     test -n "$CXX" && break
3927   done
3928 fi
3929 if test -z "$CXX"; then
3930   ac_ct_CXX=$CXX
3931   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3932 do
3933   # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3937 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   if test -n "$ac_ct_CXX"; then
3941   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948   for ac_exec_ext in '' $ac_executable_extensions; do
3949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3950     ac_cv_prog_ac_ct_CXX="$ac_prog"
3951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955 done
3956 IFS=$as_save_IFS
3957
3958 fi
3959 fi
3960 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3961 if test -n "$ac_ct_CXX"; then
3962   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3963 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3964 else
3965   { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3967 fi
3968
3969
3970   test -n "$ac_ct_CXX" && break
3971 done
3972
3973   if test "x$ac_ct_CXX" = x; then
3974     CXX="g++"
3975   else
3976     case $cross_compiling:$ac_tool_warned in
3977 yes:)
3978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet.  If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&5
3981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet.  If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986     CXX=$ac_ct_CXX
3987   fi
3988 fi
3989
3990   fi
3991 fi
3992 # Provide some information about the compiler.
3993 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3994 ac_compiler=`set X $ac_compile; echo $2`
3995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3996   (eval $ac_compiler --version >&5) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }
4000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
4001   (eval $ac_compiler -v >&5) 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); }
4005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
4006   (eval $ac_compiler -V >&5) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }
4010
4011 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4012 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4013 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022
4023 int
4024 main ()
4025 {
4026 #ifndef __GNUC__
4027        choke me
4028 #endif
4029
4030   ;
4031   return 0;
4032 }
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036   (eval $ac_compile) 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } &&
4043          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; } &&
4049          { ac_try='test -s conftest.$ac_objext'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; }; then
4055   ac_compiler_gnu=yes
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060         ac_compiler_gnu=no
4061 fi
4062
4063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4065
4066 fi
4067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4069 GXX=`test $ac_compiler_gnu = yes && echo yes`
4070 ac_test_CXXFLAGS=${CXXFLAGS+set}
4071 ac_save_CXXFLAGS=$CXXFLAGS
4072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4074 if test "${ac_cv_prog_cxx_g+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4078    ac_cxx_werror_flag=yes
4079    ac_cv_prog_cxx_g=no
4080    CXXFLAGS="-g"
4081    cat >conftest.$ac_ext <<_ACEOF
4082 /* confdefs.h.  */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h.  */
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098   (eval $ac_compile) 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } &&
4105          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; } &&
4111          { ac_try='test -s conftest.$ac_objext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   ac_cv_prog_cxx_g=yes
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122         CXXFLAGS=""
4123       cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h.  */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140   (eval $ac_compile) 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; } &&
4153          { ac_try='test -s conftest.$ac_objext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   :
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4165          CXXFLAGS="-g"
4166          cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172
4173 int
4174 main ()
4175 {
4176
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183   (eval $ac_compile) 2>conftest.er1
4184   ac_status=$?
4185   grep -v '^ *+' conftest.er1 >conftest.err
4186   rm -f conftest.er1
4187   cat conftest.err >&5
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); } &&
4190          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; } &&
4196          { ac_try='test -s conftest.$ac_objext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   ac_cv_prog_cxx_g=yes
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207
4208 fi
4209
4210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211 fi
4212
4213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4214 fi
4215
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4218 fi
4219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4220 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4221 if test "$ac_test_CXXFLAGS" = set; then
4222   CXXFLAGS=$ac_save_CXXFLAGS
4223 elif test $ac_cv_prog_cxx_g = yes; then
4224   if test "$GXX" = yes; then
4225     CXXFLAGS="-g -O2"
4226   else
4227     CXXFLAGS="-g"
4228   fi
4229 else
4230   if test "$GXX" = yes; then
4231     CXXFLAGS="-O2"
4232   else
4233     CXXFLAGS=
4234   fi
4235 fi
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 depcc="$CXX"  am_compiler_list=
4243
4244 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4245 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4246 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4250   # We make a subdir and do the tests there.  Otherwise we can end up
4251   # making bogus files that we don't know about and never remove.  For
4252   # instance it was reported that on HP-UX the gcc test will end up
4253   # making a dummy file named `D' -- because `-MD' means `put the output
4254   # in D'.
4255   mkdir conftest.dir
4256   # Copy depcomp to subdir because otherwise we won't find it if we're
4257   # using a relative directory.
4258   cp "$am_depcomp" conftest.dir
4259   cd conftest.dir
4260   # We will build objects and dependencies in a subdirectory because
4261   # it helps to detect inapplicable dependency modes.  For instance
4262   # both Tru64's cc and ICC support -MD to output dependencies as a
4263   # side effect of compilation, but ICC will put the dependencies in
4264   # the current directory while Tru64 will put them in the object
4265   # directory.
4266   mkdir sub
4267
4268   am_cv_CXX_dependencies_compiler_type=none
4269   if test "$am_compiler_list" = ""; then
4270      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4271   fi
4272   for depmode in $am_compiler_list; do
4273     # Setup a source with many dependencies, because some compilers
4274     # like to wrap large dependency lists on column 80 (with \), and
4275     # we should not choose a depcomp mode which is confused by this.
4276     #
4277     # We need to recreate these files for each test, as the compiler may
4278     # overwrite some of them when testing with obscure command lines.
4279     # This happens at least with the AIX C compiler.
4280     : > sub/conftest.c
4281     for i in 1 2 3 4 5 6; do
4282       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4283       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4284       # Solaris 8's {/usr,}/bin/sh.
4285       touch sub/conftst$i.h
4286     done
4287     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4288
4289     case $depmode in
4290     nosideeffect)
4291       # after this tag, mechanisms are not by side-effect, so they'll
4292       # only be used when explicitly requested
4293       if test "x$enable_dependency_tracking" = xyes; then
4294         continue
4295       else
4296         break
4297       fi
4298       ;;
4299     none) break ;;
4300     esac
4301     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4302     # mode.  It turns out that the SunPro C++ compiler does not properly
4303     # handle `-M -o', and we need to detect this.
4304     if depmode=$depmode \
4305        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4306        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4308          >/dev/null 2>conftest.err &&
4309        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4311        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312       # icc doesn't choke on unknown options, it will just issue warnings
4313       # or remarks (even with -Werror).  So we grep stderr for any message
4314       # that says an option was ignored or not supported.
4315       # When given -MP, icc 7.0 and 7.1 complain thusly:
4316       #   icc: Command line warning: ignoring option '-M'; no argument required
4317       # The diagnosis changed in icc 8.0:
4318       #   icc: Command line remark: option '-MP' not supported
4319       if (grep 'ignoring option' conftest.err ||
4320           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321         am_cv_CXX_dependencies_compiler_type=$depmode
4322         break
4323       fi
4324     fi
4325   done
4326
4327   cd ..
4328   rm -rf conftest.dir
4329 else
4330   am_cv_CXX_dependencies_compiler_type=none
4331 fi
4332
4333 fi
4334 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4335 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4336 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4337
4338
4339
4340 if
4341   test "x$enable_dependency_tracking" != xno \
4342   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4343   am__fastdepCXX_TRUE=
4344   am__fastdepCXX_FALSE='#'
4345 else
4346   am__fastdepCXX_TRUE='#'
4347   am__fastdepCXX_FALSE=
4348 fi
4349
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 if test -n "$ac_tool_prefix"; then
4357   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   if test -n "$CC"; then
4365   ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372   for ac_exec_ext in '' $ac_executable_extensions; do
4373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4374     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376     break 2
4377   fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 CC=$ac_cv_prog_CC
4385 if test -n "$CC"; then
4386   { echo "$as_me:$LINENO: result: $CC" >&5
4387 echo "${ECHO_T}$CC" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394 fi
4395 if test -z "$ac_cv_prog_CC"; then
4396   ac_ct_CC=$CC
4397   # Extract the first word of "gcc", so it can be a program name with args.
4398 set dummy gcc; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   if test -n "$ac_ct_CC"; then
4405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410   IFS=$as_save_IFS
4411   test -z "$as_dir" && as_dir=.
4412   for ac_exec_ext in '' $ac_executable_extensions; do
4413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414     ac_cv_prog_ac_ct_CC="gcc"
4415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425 if test -n "$ac_ct_CC"; then
4426   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4427 echo "${ECHO_T}$ac_ct_CC" >&6; }
4428 else
4429   { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4431 fi
4432
4433   if test "x$ac_ct_CC" = x; then
4434     CC=""
4435   else
4436     case $cross_compiling:$ac_tool_warned in
4437 yes:)
4438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4439 whose name does not start with the host triplet.  If you think this
4440 configuration is useful to you, please write to autoconf@gnu.org." >&5
4441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4442 whose name does not start with the host triplet.  If you think this
4443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4444 ac_tool_warned=yes ;;
4445 esac
4446     CC=$ac_ct_CC
4447   fi
4448 else
4449   CC="$ac_cv_prog_CC"
4450 fi
4451
4452 if test -z "$CC"; then
4453           if test -n "$ac_tool_prefix"; then
4454     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4455 set dummy ${ac_tool_prefix}cc; ac_word=$2
4456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4458 if test "${ac_cv_prog_CC+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   if test -n "$CC"; then
4462   ac_cv_prog_CC="$CC" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469   for ac_exec_ext in '' $ac_executable_extensions; do
4470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4471     ac_cv_prog_CC="${ac_tool_prefix}cc"
4472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476 done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 CC=$ac_cv_prog_CC
4482 if test -n "$CC"; then
4483   { echo "$as_me:$LINENO: result: $CC" >&5
4484 echo "${ECHO_T}$CC" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489
4490
4491   fi
4492 fi
4493 if test -z "$CC"; then
4494   # Extract the first word of "cc", so it can be a program name with args.
4495 set dummy cc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_CC+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   if test -n "$CC"; then
4502   ac_cv_prog_CC="$CC" # Let the user override the test.
4503 else
4504   ac_prog_rejected=no
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510   for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4513        ac_prog_rejected=yes
4514        continue
4515      fi
4516     ac_cv_prog_CC="cc"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 if test $ac_prog_rejected = yes; then
4525   # We found a bogon in the path, so make sure we never use it.
4526   set dummy $ac_cv_prog_CC
4527   shift
4528   if test $# != 0; then
4529     # We chose a different compiler from the bogus one.
4530     # However, it has the same basename, so the bogon will be chosen
4531     # first if we set CC to just the basename; use the full file name.
4532     shift
4533     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4534   fi
4535 fi
4536 fi
4537 fi
4538 CC=$ac_cv_prog_CC
4539 if test -n "$CC"; then
4540   { echo "$as_me:$LINENO: result: $CC" >&5
4541 echo "${ECHO_T}$CC" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547
4548 fi
4549 if test -z "$CC"; then
4550   if test -n "$ac_tool_prefix"; then
4551   for ac_prog in cl.exe
4552   do
4553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_prog_CC+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   if test -n "$CC"; then
4561   ac_cv_prog_CC="$CC" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 CC=$ac_cv_prog_CC
4581 if test -n "$CC"; then
4582   { echo "$as_me:$LINENO: result: $CC" >&5
4583 echo "${ECHO_T}$CC" >&6; }
4584 else
4585   { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4587 fi
4588
4589
4590     test -n "$CC" && break
4591   done
4592 fi
4593 if test -z "$CC"; then
4594   ac_ct_CC=$CC
4595   for ac_prog in cl.exe
4596 do
4597   # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   if test -n "$ac_ct_CC"; then
4605   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_exec_ext in '' $ac_executable_extensions; do
4613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614     ac_cv_prog_ac_ct_CC="$ac_prog"
4615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4625 if test -n "$ac_ct_CC"; then
4626   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4627 echo "${ECHO_T}$ac_ct_CC" >&6; }
4628 else
4629   { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4631 fi
4632
4633
4634   test -n "$ac_ct_CC" && break
4635 done
4636
4637   if test "x$ac_ct_CC" = x; then
4638     CC=""
4639   else
4640     case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4643 whose name does not start with the host triplet.  If you think this
4644 configuration is useful to you, please write to autoconf@gnu.org." >&5
4645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4646 whose name does not start with the host triplet.  If you think this
4647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4648 ac_tool_warned=yes ;;
4649 esac
4650     CC=$ac_ct_CC
4651   fi
4652 fi
4653
4654 fi
4655
4656
4657 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: no acceptable C compiler found in \$PATH
4660 See \`config.log' for more details." >&2;}
4661    { (exit 1); exit 1; }; }
4662
4663 # Provide some information about the compiler.
4664 echo "$as_me:$LINENO: checking for C compiler version" >&5
4665 ac_compiler=`set X $ac_compile; echo $2`
4666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
4667   (eval $ac_compiler --version >&5) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }
4671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
4672   (eval $ac_compiler -v >&5) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }
4676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
4677   (eval $ac_compiler -V >&5) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }
4681
4682 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697 #ifndef __GNUC__
4698        choke me
4699 #endif
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707   (eval $ac_compile) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } &&
4714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; } &&
4720          { ac_try='test -s conftest.$ac_objext'
4721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722   (eval $ac_try) 2>&5
4723   ac_status=$?
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); }; }; then
4726   ac_compiler_gnu=yes
4727 else
4728   echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4730
4731         ac_compiler_gnu=no
4732 fi
4733
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737 fi
4738 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4740 GCC=`test $ac_compiler_gnu = yes && echo yes`
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4744 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_cc_g+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   ac_save_c_werror_flag=$ac_c_werror_flag
4749    ac_c_werror_flag=yes
4750    ac_cv_prog_cc_g=no
4751    CFLAGS="-g"
4752    cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769   (eval $ac_compile) 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; } &&
4782          { ac_try='test -s conftest.$ac_objext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   ac_cv_prog_cc_g=yes
4789 else
4790   echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793         CFLAGS=""
4794       cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800
4801 int
4802 main ()
4803 {
4804
4805   ;
4806   return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811   (eval $ac_compile) 2>conftest.er1
4812   ac_status=$?
4813   grep -v '^ *+' conftest.er1 >conftest.err
4814   rm -f conftest.er1
4815   cat conftest.err >&5
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } &&
4818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; } &&
4824          { ac_try='test -s conftest.$ac_objext'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; }; then
4830   :
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835         ac_c_werror_flag=$ac_save_c_werror_flag
4836          CFLAGS="-g"
4837          cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843
4844 int
4845 main ()
4846 {
4847
4848   ;
4849   return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4854   (eval $ac_compile) 2>conftest.er1
4855   ac_status=$?
4856   grep -v '^ *+' conftest.er1 >conftest.err
4857   rm -f conftest.er1
4858   cat conftest.err >&5
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } &&
4861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863   (eval $ac_try) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); }; } &&
4867          { ac_try='test -s conftest.$ac_objext'
4868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869   (eval $ac_try) 2>&5
4870   ac_status=$?
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); }; }; then
4873   ac_cv_prog_cc_g=yes
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879 fi
4880
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888    ac_c_werror_flag=$ac_save_c_werror_flag
4889 fi
4890 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4891 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4892 if test "$ac_test_CFLAGS" = set; then
4893   CFLAGS=$ac_save_CFLAGS
4894 elif test $ac_cv_prog_cc_g = yes; then
4895   if test "$GCC" = yes; then
4896     CFLAGS="-g -O2"
4897   else
4898     CFLAGS="-g"
4899   fi
4900 else
4901   if test "$GCC" = yes; then
4902     CFLAGS="-O2"
4903   else
4904     CFLAGS=
4905   fi
4906 fi
4907 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4908 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_cc_c89+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   ac_cv_prog_cc_c89=no
4913 ac_save_CC=$CC
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 #include <stdarg.h>
4921 #include <stdio.h>
4922 #include <sys/types.h>
4923 #include <sys/stat.h>
4924 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4925 struct buf { int x; };
4926 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4927 static char *e (p, i)
4928      char **p;
4929      int i;
4930 {
4931   return p[i];
4932 }
4933 static char *f (char * (*g) (char **, int), char **p, ...)
4934 {
4935   char *s;
4936   va_list v;
4937   va_start (v,p);
4938   s = g (p, va_arg (v,int));
4939   va_end (v);
4940   return s;
4941 }
4942
4943 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4944    function prototypes and stuff, but not '\xHH' hex character constants.
4945    These don't provoke an error unfortunately, instead are silently treated
4946    as 'x'.  The following induces an error, until -std is added to get
4947    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4948    array size at least.  It's necessary to write '\x00'==0 to get something
4949    that's true only with -std.  */
4950 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4951
4952 int test (int i, double x);
4953 struct s1 {int (*f) (int a);};
4954 struct s2 {int (*f) (double a);};
4955 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4956 int argc;
4957 char **argv;
4958 int
4959 main ()
4960 {
4961 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4967         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4968 do
4969   CC="$ac_save_CC $ac_arg"
4970   rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; } &&
4985          { ac_try='test -s conftest.$ac_objext'
4986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987   (eval $ac_try) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); }; }; then
4991   ac_cv_prog_cc_c89=$ac_arg
4992 else
4993   echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996
4997 fi
4998
4999 rm -f conftest.err conftest.$ac_objext
5000   test "x$ac_cv_prog_cc_c89" != "xno" && break
5001 done
5002 rm -f conftest.$ac_ext
5003 CC=$ac_save_CC
5004
5005 fi
5006 # AC_CACHE_VAL
5007 case "x$ac_cv_prog_cc_c89" in
5008   x)
5009     { echo "$as_me:$LINENO: result: none needed" >&5
5010 echo "${ECHO_T}none needed" >&6; } ;;
5011   xno)
5012     { echo "$as_me:$LINENO: result: unsupported" >&5
5013 echo "${ECHO_T}unsupported" >&6; } ;;
5014   *)
5015     CC="$CC $ac_cv_prog_cc_c89"
5016     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5018 esac
5019
5020
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 depcc="$CC"   am_compiler_list=
5028
5029 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5030 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5031 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035   # We make a subdir and do the tests there.  Otherwise we can end up
5036   # making bogus files that we don't know about and never remove.  For
5037   # instance it was reported that on HP-UX the gcc test will end up
5038   # making a dummy file named `D' -- because `-MD' means `put the output
5039   # in D'.
5040   mkdir conftest.dir
5041   # Copy depcomp to subdir because otherwise we won't find it if we're
5042   # using a relative directory.
5043   cp "$am_depcomp" conftest.dir
5044   cd conftest.dir
5045   # We will build objects and dependencies in a subdirectory because
5046   # it helps to detect inapplicable dependency modes.  For instance
5047   # both Tru64's cc and ICC support -MD to output dependencies as a
5048   # side effect of compilation, but ICC will put the dependencies in
5049   # the current directory while Tru64 will put them in the object
5050   # directory.
5051   mkdir sub
5052
5053   am_cv_CC_dependencies_compiler_type=none
5054   if test "$am_compiler_list" = ""; then
5055      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056   fi
5057   for depmode in $am_compiler_list; do
5058     # Setup a source with many dependencies, because some compilers
5059     # like to wrap large dependency lists on column 80 (with \), and
5060     # we should not choose a depcomp mode which is confused by this.
5061     #
5062     # We need to recreate these files for each test, as the compiler may
5063     # overwrite some of them when testing with obscure command lines.
5064     # This happens at least with the AIX C compiler.
5065     : > sub/conftest.c
5066     for i in 1 2 3 4 5 6; do
5067       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5068       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5069       # Solaris 8's {/usr,}/bin/sh.
5070       touch sub/conftst$i.h
5071     done
5072     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5073
5074     case $depmode in
5075     nosideeffect)
5076       # after this tag, mechanisms are not by side-effect, so they'll
5077       # only be used when explicitly requested
5078       if test "x$enable_dependency_tracking" = xyes; then
5079         continue
5080       else
5081         break
5082       fi
5083       ;;
5084     none) break ;;
5085     esac
5086     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5087     # mode.  It turns out that the SunPro C++ compiler does not properly
5088     # handle `-M -o', and we need to detect this.
5089     if depmode=$depmode \
5090        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5091        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5093          >/dev/null 2>conftest.err &&
5094        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5096        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097       # icc doesn't choke on unknown options, it will just issue warnings
5098       # or remarks (even with -Werror).  So we grep stderr for any message
5099       # that says an option was ignored or not supported.
5100       # When given -MP, icc 7.0 and 7.1 complain thusly:
5101       #   icc: Command line warning: ignoring option '-M'; no argument required
5102       # The diagnosis changed in icc 8.0:
5103       #   icc: Command line remark: option '-MP' not supported
5104       if (grep 'ignoring option' conftest.err ||
5105           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106         am_cv_CC_dependencies_compiler_type=$depmode
5107         break
5108       fi
5109     fi
5110   done
5111
5112   cd ..
5113   rm -rf conftest.dir
5114 else
5115   am_cv_CC_dependencies_compiler_type=none
5116 fi
5117
5118 fi
5119 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123
5124
5125 if
5126   test "x$enable_dependency_tracking" != xno \
5127   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128   am__fastdepCC_TRUE=
5129   am__fastdepCC_FALSE='#'
5130 else
5131   am__fastdepCC_TRUE='#'
5132   am__fastdepCC_FALSE=
5133 fi
5134
5135
5136 ac_ext=c
5137 ac_cpp='$CPP $CPPFLAGS'
5138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5143 # On Suns, sometimes $CPP names a directory.
5144 if test -n "$CPP" && test -d "$CPP"; then
5145   CPP=
5146 fi
5147 if test -z "$CPP"; then
5148   if test "${ac_cv_prog_CPP+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151       # Double quotes because CPP needs to be expanded
5152     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5153     do
5154       ac_preproc_ok=false
5155 for ac_c_preproc_warn_flag in '' yes
5156 do
5157   # Use a header file that comes with gcc, so configuring glibc
5158   # with a fresh cross-compiler works.
5159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160   # <limits.h> exists even on freestanding compilers.
5161   # On the NeXT, cc -E runs the code through the compiler's parser,
5162   # not just through cpp. "Syntax error" is here to catch this case.
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #ifdef __STDC__
5170 # include <limits.h>
5171 #else
5172 # include <assert.h>
5173 #endif
5174                      Syntax error
5175 _ACEOF
5176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178   ac_status=$?
5179   grep -v '^ *+' conftest.er1 >conftest.err
5180   rm -f conftest.er1
5181   cat conftest.err >&5
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); } >/dev/null; then
5184   if test -s conftest.err; then
5185     ac_cpp_err=$ac_c_preproc_warn_flag
5186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5187   else
5188     ac_cpp_err=
5189   fi
5190 else
5191   ac_cpp_err=yes
5192 fi
5193 if test -z "$ac_cpp_err"; then
5194   :
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199   # Broken: fails on valid input.
5200 continue
5201 fi
5202
5203 rm -f conftest.err conftest.$ac_ext
5204
5205   # OK, works on sane cases.  Now check whether nonexistent headers
5206   # can be detected and how.
5207   cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213 #include <ac_nonexistent.h>
5214 _ACEOF
5215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } >/dev/null; then
5223   if test -s conftest.err; then
5224     ac_cpp_err=$ac_c_preproc_warn_flag
5225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5226   else
5227     ac_cpp_err=
5228   fi
5229 else
5230   ac_cpp_err=yes
5231 fi
5232 if test -z "$ac_cpp_err"; then
5233   # Broken: success on invalid input.
5234 continue
5235 else
5236   echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239   # Passes both tests.
5240 ac_preproc_ok=:
5241 break
5242 fi
5243
5244 rm -f conftest.err conftest.$ac_ext
5245
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5250   break
5251 fi
5252
5253     done
5254     ac_cv_prog_CPP=$CPP
5255
5256 fi
5257   CPP=$ac_cv_prog_CPP
5258 else
5259   ac_cv_prog_CPP=$CPP
5260 fi
5261 { echo "$as_me:$LINENO: result: $CPP" >&5
5262 echo "${ECHO_T}$CPP" >&6; }
5263 ac_preproc_ok=false
5264 for ac_c_preproc_warn_flag in '' yes
5265 do
5266   # Use a header file that comes with gcc, so configuring glibc
5267   # with a fresh cross-compiler works.
5268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269   # <limits.h> exists even on freestanding compilers.
5270   # On the NeXT, cc -E runs the code through the compiler's parser,
5271   # not just through cpp. "Syntax error" is here to catch this case.
5272   cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #ifdef __STDC__
5279 # include <limits.h>
5280 #else
5281 # include <assert.h>
5282 #endif
5283                      Syntax error
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } >/dev/null; then
5293   if test -s conftest.err; then
5294     ac_cpp_err=$ac_c_preproc_warn_flag
5295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296   else
5297     ac_cpp_err=
5298   fi
5299 else
5300   ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303   :
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308   # Broken: fails on valid input.
5309 continue
5310 fi
5311
5312 rm -f conftest.err conftest.$ac_ext
5313
5314   # OK, works on sane cases.  Now check whether nonexistent headers
5315   # can be detected and how.
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } >/dev/null; then
5332   if test -s conftest.err; then
5333     ac_cpp_err=$ac_c_preproc_warn_flag
5334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5335   else
5336     ac_cpp_err=
5337   fi
5338 else
5339   ac_cpp_err=yes
5340 fi
5341 if test -z "$ac_cpp_err"; then
5342   # Broken: success on invalid input.
5343 continue
5344 else
5345   echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5347
5348   # Passes both tests.
5349 ac_preproc_ok=:
5350 break
5351 fi
5352
5353 rm -f conftest.err conftest.$ac_ext
5354
5355 done
5356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5357 rm -f conftest.err conftest.$ac_ext
5358 if $ac_preproc_ok; then
5359   :
5360 else
5361   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5362 See \`config.log' for more details." >&5
5363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5364 See \`config.log' for more details." >&2;}
5365    { (exit 1); exit 1; }; }
5366 fi
5367
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374 # Find a good install program.  We prefer a C program (faster),
5375 # so one script is as good as another.  But avoid the broken or
5376 # incompatible versions:
5377 # SysV /etc/install, /usr/sbin/install
5378 # SunOS /usr/etc/install
5379 # IRIX /sbin/install
5380 # AIX /bin/install
5381 # AmigaOS /C/install, which installs bootblocks on floppy discs
5382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5385 # OS/2's system install, which has a completely different semantic
5386 # ./install, which can be erroneously created by make from ./install.sh.
5387 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5389 if test -z "$INSTALL"; then
5390 if test "${ac_cv_path_install+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   # Account for people who put trailing slashes in PATH elements.
5399 case $as_dir/ in
5400   ./ | .// | /cC/* | \
5401   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5402   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5403   /usr/ucb/* ) ;;
5404   *)
5405     # OSF1 and SCO ODT 3.0 have their own names for install.
5406     # Don't use installbsd from OSF since it installs stuff as root
5407     # by default.
5408     for ac_prog in ginstall scoinst install; do
5409       for ac_exec_ext in '' $ac_executable_extensions; do
5410         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5411           if test $ac_prog = install &&
5412             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5413             # AIX install.  It has an incompatible calling convention.
5414             :
5415           elif test $ac_prog = install &&
5416             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5417             # program-specific install script used by HP pwplus--don't use.
5418             :
5419           else
5420             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5421             break 3
5422           fi
5423         fi
5424       done
5425     done
5426     ;;
5427 esac
5428 done
5429 IFS=$as_save_IFS
5430
5431
5432 fi
5433   if test "${ac_cv_path_install+set}" = set; then
5434     INSTALL=$ac_cv_path_install
5435   else
5436     # As a last resort, use the slow shell script.  Don't cache a
5437     # value for INSTALL within a source directory, because that will
5438     # break other packages using the cache if that directory is
5439     # removed, or if the value is a relative name.
5440     INSTALL=$ac_install_sh
5441   fi
5442 fi
5443 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5444 echo "${ECHO_T}$INSTALL" >&6; }
5445
5446 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5447 # It thinks the first close brace ends the variable substitution.
5448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5449
5450 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5451
5452 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5453
5454 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5456 LN_S=$as_ln_s
5457 if test "$LN_S" = "ln -s"; then
5458   { echo "$as_me:$LINENO: result: yes" >&5
5459 echo "${ECHO_T}yes" >&6; }
5460 else
5461   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5462 echo "${ECHO_T}no, using $LN_S" >&6; }
5463 fi
5464
5465 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5466 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5467 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5468 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   cat >conftest.make <<\_ACEOF
5472 SHELL = /bin/sh
5473 all:
5474         @echo 'ac_maketemp=X"$(MAKE)"'
5475 _ACEOF
5476 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5477 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5478 if test "$ac_maketemp" != X ; then
5479   eval ac_cv_prog_make_${ac_make}_set=yes
5480 else
5481   eval ac_cv_prog_make_${ac_make}_set=no
5482 fi
5483 rm -f conftest.make
5484 fi
5485 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5486   { echo "$as_me:$LINENO: result: yes" >&5
5487 echo "${ECHO_T}yes" >&6; }
5488   SET_MAKE=
5489 else
5490   { echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6; }
5492   SET_MAKE="MAKE=${MAKE-make}"
5493 fi
5494
5495 # Check whether --enable-shared was given.
5496 if test "${enable_shared+set}" = set; then
5497   enableval=$enable_shared; p=${PACKAGE-default}
5498     case $enableval in
5499     yes) enable_shared=yes ;;
5500     no) enable_shared=no ;;
5501     *)
5502       enable_shared=no
5503       # Look at the argument we got.  We use all the common list separators.
5504       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5505       for pkg in $enableval; do
5506         IFS="$lt_save_ifs"
5507         if test "X$pkg" = "X$p"; then
5508           enable_shared=yes
5509         fi
5510       done
5511       IFS="$lt_save_ifs"
5512       ;;
5513     esac
5514 else
5515   enable_shared=yes
5516 fi
5517
5518
5519 # Check whether --enable-static was given.
5520 if test "${enable_static+set}" = set; then
5521   enableval=$enable_static; p=${PACKAGE-default}
5522     case $enableval in
5523     yes) enable_static=yes ;;
5524     no) enable_static=no ;;
5525     *)
5526      enable_static=no
5527       # Look at the argument we got.  We use all the common list separators.
5528       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5529       for pkg in $enableval; do
5530         IFS="$lt_save_ifs"
5531         if test "X$pkg" = "X$p"; then
5532           enable_static=yes
5533         fi
5534       done
5535       IFS="$lt_save_ifs"
5536       ;;
5537     esac
5538 else
5539   enable_static=yes
5540 fi
5541
5542
5543 # Check whether --enable-fast-install was given.
5544 if test "${enable_fast_install+set}" = set; then
5545   enableval=$enable_fast_install; p=${PACKAGE-default}
5546     case $enableval in
5547     yes) enable_fast_install=yes ;;
5548     no) enable_fast_install=no ;;
5549     *)
5550       enable_fast_install=no
5551       # Look at the argument we got.  We use all the common list separators.
5552       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5553       for pkg in $enableval; do
5554         IFS="$lt_save_ifs"
5555         if test "X$pkg" = "X$p"; then
5556           enable_fast_install=yes
5557         fi
5558       done
5559       IFS="$lt_save_ifs"
5560       ;;
5561     esac
5562 else
5563   enable_fast_install=yes
5564 fi
5565
5566
5567 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5568 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5569 if test "${lt_cv_path_SED+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   # Loop through the user's path and test for sed and gsed.
5573 # Then use that list of sed's as ones to test for truncation.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579   for lt_ac_prog in sed gsed; do
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5582         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5583       fi
5584     done
5585   done
5586 done
5587 lt_ac_max=0
5588 lt_ac_count=0
5589 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5590 # along with /bin/sed that truncates output.
5591 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5592   test ! -f $lt_ac_sed && continue
5593   cat /dev/null > conftest.in
5594   lt_ac_count=0
5595   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5596   # Check for GNU sed and select it if it is found.
5597   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5598     lt_cv_path_SED=$lt_ac_sed
5599     break
5600   fi
5601   while true; do
5602     cat conftest.in conftest.in >conftest.tmp
5603     mv conftest.tmp conftest.in
5604     cp conftest.in conftest.nl
5605     echo >>conftest.nl
5606     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5607     cmp -s conftest.out conftest.nl || break
5608     # 10000 chars as input seems more than enough
5609     test $lt_ac_count -gt 10 && break
5610     lt_ac_count=`expr $lt_ac_count + 1`
5611     if test $lt_ac_count -gt $lt_ac_max; then
5612       lt_ac_max=$lt_ac_count
5613       lt_cv_path_SED=$lt_ac_sed
5614     fi
5615   done
5616 done
5617
5618 fi
5619
5620 SED=$lt_cv_path_SED
5621 { echo "$as_me:$LINENO: result: $SED" >&5
5622 echo "${ECHO_T}$SED" >&6; }
5623
5624 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5625 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_GREP+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   # Extract the first word of "grep ggrep" to use in msg output
5630 if test -z "$GREP"; then
5631 set dummy grep ggrep; ac_prog_name=$2
5632 if test "${ac_cv_path_GREP+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   ac_path_GREP_found=false
5636 # Loop through the user's path and test for each of PROGNAME-LIST
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   for ac_prog in grep ggrep; do
5643   for ac_exec_ext in '' $ac_executable_extensions; do
5644     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5645     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5646     # Check for GNU ac_path_GREP and select it if it is found.
5647   # Check for GNU $ac_path_GREP
5648 case `"$ac_path_GREP" --version 2>&1` in
5649 *GNU*)
5650   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5651 *)
5652   ac_count=0
5653   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5654   while :
5655   do
5656     cat "conftest.in" "conftest.in" >"conftest.tmp"
5657     mv "conftest.tmp" "conftest.in"
5658     cp "conftest.in" "conftest.nl"
5659     echo 'GREP' >> "conftest.nl"
5660     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5662     ac_count=`expr $ac_count + 1`
5663     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5664       # Best one so far, save it but keep looking for a better one
5665       ac_cv_path_GREP="$ac_path_GREP"
5666       ac_path_GREP_max=$ac_count
5667     fi
5668     # 10*(2^10) chars as input seems more than enough
5669     test $ac_count -gt 10 && break
5670   done
5671   rm -f conftest.*;;
5672 esac
5673
5674
5675     $ac_path_GREP_found && break 3
5676   done
5677 done
5678
5679 done
5680 IFS=$as_save_IFS
5681
5682
5683 fi
5684
5685 GREP="$ac_cv_path_GREP"
5686 if test -z "$GREP"; then
5687   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5688 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5689    { (exit 1); exit 1; }; }
5690 fi
5691
5692 else
5693   ac_cv_path_GREP=$GREP
5694 fi
5695
5696
5697 fi
5698 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5699 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5700  GREP="$ac_cv_path_GREP"
5701
5702
5703 { echo "$as_me:$LINENO: checking for egrep" >&5
5704 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5705 if test "${ac_cv_path_EGREP+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5709    then ac_cv_path_EGREP="$GREP -E"
5710    else
5711      # Extract the first word of "egrep" to use in msg output
5712 if test -z "$EGREP"; then
5713 set dummy egrep; ac_prog_name=$2
5714 if test "${ac_cv_path_EGREP+set}" = set; then
5715   echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717   ac_path_EGREP_found=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   for ac_prog in egrep; do
5725   for ac_exec_ext in '' $ac_executable_extensions; do
5726     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5727     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
5728     # Check for GNU ac_path_EGREP and select it if it is found.
5729   # Check for GNU $ac_path_EGREP
5730 case `"$ac_path_EGREP" --version 2>&1` in
5731 *GNU*)
5732   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5733 *)
5734   ac_count=0
5735   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5736   while :
5737   do
5738     cat "conftest.in" "conftest.in" >"conftest.tmp"
5739     mv "conftest.tmp" "conftest.in"
5740     cp "conftest.in" "conftest.nl"
5741     echo 'EGREP' >> "conftest.nl"
5742     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5743     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5744     ac_count=`expr $ac_count + 1`
5745     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5746       # Best one so far, save it but keep looking for a better one
5747       ac_cv_path_EGREP="$ac_path_EGREP"
5748       ac_path_EGREP_max=$ac_count
5749     fi
5750     # 10*(2^10) chars as input seems more than enough
5751     test $ac_count -gt 10 && break
5752   done
5753   rm -f conftest.*;;
5754 esac
5755
5756
5757     $ac_path_EGREP_found && break 3
5758   done
5759 done
5760
5761 done
5762 IFS=$as_save_IFS
5763
5764
5765 fi
5766
5767 EGREP="$ac_cv_path_EGREP"
5768 if test -z "$EGREP"; then
5769   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5770 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5771    { (exit 1); exit 1; }; }
5772 fi
5773
5774 else
5775   ac_cv_path_EGREP=$EGREP
5776 fi
5777
5778
5779    fi
5780 fi
5781 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5782 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5783  EGREP="$ac_cv_path_EGREP"
5784
5785
5786
5787 # Check whether --with-gnu-ld was given.
5788 if test "${with_gnu_ld+set}" = set; then
5789   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5790 else
5791   with_gnu_ld=no
5792 fi
5793
5794 ac_prog=ld
5795 if test "$GCC" = yes; then
5796   # Check if gcc -print-prog-name=ld gives a path.
5797   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5799   case $host in
5800   *-*-mingw*)
5801     # gcc leaves a trailing carriage return which upsets mingw
5802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5803   *)
5804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5805   esac
5806   case $ac_prog in
5807     # Accept absolute paths.
5808     [\\/]* | ?:[\\/]*)
5809       re_direlt='/[^/][^/]*/\.\./'
5810       # Canonicalize the pathname of ld
5811       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5812       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5813         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5814       done
5815       test -z "$LD" && LD="$ac_prog"
5816       ;;
5817   "")
5818     # If it fails, then pretend we aren't using GCC.
5819     ac_prog=ld
5820     ;;
5821   *)
5822     # If it is relative, then search for the first ld in PATH.
5823     with_gnu_ld=unknown
5824     ;;
5825   esac
5826 elif test "$with_gnu_ld" = yes; then
5827   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5829 else
5830   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5832 fi
5833 if test "${lt_cv_path_LD+set}" = set; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   if test -z "$LD"; then
5837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838   for ac_dir in $PATH; do
5839     IFS="$lt_save_ifs"
5840     test -z "$ac_dir" && ac_dir=.
5841     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842       lt_cv_path_LD="$ac_dir/$ac_prog"
5843       # Check to see if the program is GNU ld.  I'd rather use --version,
5844       # but apparently some variants of GNU ld only accept -v.
5845       # Break only if it was the GNU/non-GNU ld that we prefer.
5846       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847       *GNU* | *'with BFD'*)
5848         test "$with_gnu_ld" != no && break
5849         ;;
5850       *)
5851         test "$with_gnu_ld" != yes && break
5852         ;;
5853       esac
5854     fi
5855   done
5856   IFS="$lt_save_ifs"
5857 else
5858   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5859 fi
5860 fi
5861
5862 LD="$lt_cv_path_LD"
5863 if test -n "$LD"; then
5864   { echo "$as_me:$LINENO: result: $LD" >&5
5865 echo "${ECHO_T}$LD" >&6; }
5866 else
5867   { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5869 fi
5870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872    { (exit 1); exit 1; }; }
5873 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5879 case `$LD -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881   lt_cv_prog_gnu_ld=yes
5882   ;;
5883 *)
5884   lt_cv_prog_gnu_ld=no
5885   ;;
5886 esac
5887 fi
5888 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5890 with_gnu_ld=$lt_cv_prog_gnu_ld
5891
5892
5893 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5895 if test "${lt_cv_ld_reload_flag+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   lt_cv_ld_reload_flag='-r'
5899 fi
5900 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5902 reload_flag=$lt_cv_ld_reload_flag
5903 case $reload_flag in
5904 "" | " "*) ;;
5905 *) reload_flag=" $reload_flag" ;;
5906 esac
5907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5908 case $host_os in
5909   darwin*)
5910     if test "$GCC" = yes; then
5911       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5912     else
5913       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5914     fi
5915     ;;
5916 esac
5917
5918 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5920 if test "${lt_cv_path_NM+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   if test -n "$NM"; then
5924   # Let the user override the test.
5925   lt_cv_path_NM="$NM"
5926 else
5927   lt_nm_to_check="${ac_tool_prefix}nm"
5928   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5929     lt_nm_to_check="$lt_nm_to_check nm"
5930   fi
5931   for lt_tmp_nm in $lt_nm_to_check; do
5932     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5933     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5934       IFS="$lt_save_ifs"
5935       test -z "$ac_dir" && ac_dir=.
5936       tmp_nm="$ac_dir/$lt_tmp_nm"
5937       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5938         # Check to see if the nm accepts a BSD-compat flag.
5939         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5940         #   nm: unknown option "B" ignored
5941         # Tru64's nm complains that /dev/null is an invalid object file
5942         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5943         */dev/null* | *'Invalid file or object type'*)
5944           lt_cv_path_NM="$tmp_nm -B"
5945           break
5946           ;;
5947         *)
5948           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5949           */dev/null*)
5950             lt_cv_path_NM="$tmp_nm -p"
5951             break
5952             ;;
5953           *)
5954             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5955             continue # so that we can try to find one that supports BSD flags
5956             ;;
5957           esac
5958           ;;
5959         esac
5960       fi
5961     done
5962     IFS="$lt_save_ifs"
5963   done
5964   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5965 fi
5966 fi
5967 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5968 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5969 NM="$lt_cv_path_NM"
5970
5971 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5972 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5973 if test "${lt_cv_deplibs_check_method+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   lt_cv_file_magic_cmd='$MAGIC_CMD'
5977 lt_cv_file_magic_test_file=
5978 lt_cv_deplibs_check_method='unknown'
5979 # Need to set the preceding variable on all platforms that support
5980 # interlibrary dependencies.
5981 # 'none' -- dependencies not supported.
5982 # `unknown' -- same as none, but documents that we really don't know.
5983 # 'pass_all' -- all dependencies passed with no checks.
5984 # 'test_compile' -- check by making test program.
5985 # 'file_magic [[regex]]' -- check by looking for files in library path
5986 # which responds to the $file_magic_cmd with a given extended regex.
5987 # If you have `file' or equivalent on your system and you're not sure
5988 # whether `pass_all' will *always* work, you probably want this one.
5989
5990 case $host_os in
5991 aix4* | aix5*)
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994
5995 beos*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 bsdi[45]*)
6000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6001   lt_cv_file_magic_cmd='/usr/bin/file -L'
6002   lt_cv_file_magic_test_file=/shlib/libc.so
6003   ;;
6004
6005 cygwin*)
6006   # func_win32_libid is a shell function defined in ltmain.sh
6007   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6008   lt_cv_file_magic_cmd='func_win32_libid'
6009   ;;
6010
6011 mingw* | pw32*)
6012   # Base MSYS/MinGW do not provide the 'file' command needed by
6013   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6014   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6015   lt_cv_file_magic_cmd='$OBJDUMP -f'
6016   ;;
6017
6018 darwin* | rhapsody*)
6019   lt_cv_deplibs_check_method=pass_all
6020   ;;
6021
6022 freebsd* | dragonfly*)
6023   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6024     case $host_cpu in
6025     i*86 )
6026       # Not sure whether the presence of OpenBSD here was a mistake.
6027       # Let's accept both of them until this is cleared up.
6028       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029       lt_cv_file_magic_cmd=/usr/bin/file
6030       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6031       ;;
6032     esac
6033   else
6034     lt_cv_deplibs_check_method=pass_all
6035   fi
6036   ;;
6037
6038 gnu*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 hpux10.20* | hpux11*)
6043   lt_cv_file_magic_cmd=/usr/bin/file
6044   case $host_cpu in
6045   ia64*)
6046     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6048     ;;
6049   hppa*64*)
6050     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]'
6051     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6052     ;;
6053   *)
6054     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6055     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6056     ;;
6057   esac
6058   ;;
6059
6060 interix3*)
6061   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6063   ;;
6064
6065 irix5* | irix6* | nonstopux*)
6066   case $LD in
6067   *-32|*"-32 ") libmagic=32-bit;;
6068   *-n32|*"-n32 ") libmagic=N32;;
6069   *-64|*"-64 ") libmagic=64-bit;;
6070   *) libmagic=never-match;;
6071   esac
6072   lt_cv_deplibs_check_method=pass_all
6073   ;;
6074
6075 # This must be Linux ELF.
6076 linux* | k*bsd*-gnu)
6077   lt_cv_deplibs_check_method=pass_all
6078   ;;
6079
6080 netbsd* | netbsdelf*-gnu)
6081   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6082     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083   else
6084     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6085   fi
6086   ;;
6087
6088 newos6*)
6089   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090   lt_cv_file_magic_cmd=/usr/bin/file
6091   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6092   ;;
6093
6094 nto-qnx*)
6095   lt_cv_deplibs_check_method=unknown
6096   ;;
6097
6098 openbsd*)
6099   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101   else
6102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103   fi
6104   ;;
6105
6106 osf3* | osf4* | osf5*)
6107   lt_cv_deplibs_check_method=pass_all
6108   ;;
6109
6110 solaris*)
6111   lt_cv_deplibs_check_method=pass_all
6112   ;;
6113
6114 sysv4 | sysv4.3*)
6115   case $host_vendor in
6116   motorola)
6117     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]'
6118     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6119     ;;
6120   ncr)
6121     lt_cv_deplibs_check_method=pass_all
6122     ;;
6123   sequent)
6124     lt_cv_file_magic_cmd='/bin/file'
6125     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6126     ;;
6127   sni)
6128     lt_cv_file_magic_cmd='/bin/file'
6129     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6130     lt_cv_file_magic_test_file=/lib/libc.so
6131     ;;
6132   siemens)
6133     lt_cv_deplibs_check_method=pass_all
6134     ;;
6135   pc)
6136     lt_cv_deplibs_check_method=pass_all
6137     ;;
6138   esac
6139   ;;
6140
6141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6142   lt_cv_deplibs_check_method=pass_all
6143   ;;
6144 esac
6145
6146 fi
6147 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6148 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6149 file_magic_cmd=$lt_cv_file_magic_cmd
6150 deplibs_check_method=$lt_cv_deplibs_check_method
6151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6152
6153
6154
6155
6156 # If no C compiler was specified, use CC.
6157 LTCC=${LTCC-"$CC"}
6158
6159 # If no C compiler flags were specified, use CFLAGS.
6160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6161
6162 # Allow CC to be a program name with arguments.
6163 compiler=$CC
6164
6165 # Check whether --enable-libtool-lock was given.
6166 if test "${enable_libtool_lock+set}" = set; then
6167   enableval=$enable_libtool_lock;
6168 fi
6169
6170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6171
6172 # Some flags need to be propagated to the compiler or linker for good
6173 # libtool support.
6174 case $host in
6175 ia64-*-hpux*)
6176   # Find out which ABI we are using.
6177   echo 'int i;' > conftest.$ac_ext
6178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; then
6183     case `/usr/bin/file conftest.$ac_objext` in
6184     *ELF-32*)
6185       HPUX_IA64_MODE="32"
6186       ;;
6187     *ELF-64*)
6188       HPUX_IA64_MODE="64"
6189       ;;
6190     esac
6191   fi
6192   rm -rf conftest*
6193   ;;
6194 *-*-irix6*)
6195   # Find out which ABI we are using.
6196   echo '#line 6196 "configure"' > conftest.$ac_ext
6197   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198   (eval $ac_compile) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; then
6202    if test "$lt_cv_prog_gnu_ld" = yes; then
6203     case `/usr/bin/file conftest.$ac_objext` in
6204     *32-bit*)
6205       LD="${LD-ld} -melf32bsmip"
6206       ;;
6207     *N32*)
6208       LD="${LD-ld} -melf32bmipn32"
6209       ;;
6210     *64-bit*)
6211       LD="${LD-ld} -melf64bmip"
6212       ;;
6213     esac
6214    else
6215     case `/usr/bin/file conftest.$ac_objext` in
6216     *32-bit*)
6217       LD="${LD-ld} -32"
6218       ;;
6219     *N32*)
6220       LD="${LD-ld} -n32"
6221       ;;
6222     *64-bit*)
6223       LD="${LD-ld} -64"
6224       ;;
6225     esac
6226    fi
6227   fi
6228   rm -rf conftest*
6229   ;;
6230
6231 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6232   # Find out which ABI we are using.
6233   echo 'int i;' > conftest.$ac_ext
6234   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235   (eval $ac_compile) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; then
6239     case `/usr/bin/file conftest.o` in
6240     *32-bit*)
6241       case $host in
6242         x86_64-*linux*)
6243           LD="${LD-ld} -m elf_i386"
6244           ;;
6245         ppc64-*linux*|powerpc64-*linux*)
6246           LD="${LD-ld} -m elf32ppclinux"
6247           ;;
6248         s390x-*linux*)
6249           LD="${LD-ld} -m elf_s390"
6250           ;;
6251         sparc64-*linux*)
6252           LD="${LD-ld} -m elf32_sparc"
6253           ;;
6254       esac
6255       ;;
6256     *64-bit*)
6257       case $host in
6258         x86_64-*linux*)
6259           LD="${LD-ld} -m elf_x86_64"
6260           ;;
6261         ppc*-*linux*|powerpc*-*linux*)
6262           LD="${LD-ld} -m elf64ppc"
6263           ;;
6264         s390*-*linux*)
6265           LD="${LD-ld} -m elf64_s390"
6266           ;;
6267         sparc*-*linux*)
6268           LD="${LD-ld} -m elf64_sparc"
6269           ;;
6270       esac
6271       ;;
6272     esac
6273   fi
6274   rm -rf conftest*
6275   ;;
6276
6277 *-*-sco3.2v5*)
6278   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6279   SAVE_CFLAGS="$CFLAGS"
6280   CFLAGS="$CFLAGS -belf"
6281   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6282 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6283 if test "${lt_cv_cc_needs_belf+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   ac_ext=c
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292      cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h.  */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h.  */
6298
6299 int
6300 main ()
6301 {
6302
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6309   (eval $ac_link) 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } &&
6316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest$ac_exeext'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; }; then
6328   lt_cv_cc_needs_belf=yes
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333         lt_cv_cc_needs_belf=no
6334 fi
6335
6336 rm -f conftest.err conftest.$ac_objext \
6337       conftest$ac_exeext conftest.$ac_ext
6338      ac_ext=c
6339 ac_cpp='$CPP $CPPFLAGS'
6340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
6344 fi
6345 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6346 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6347   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6348     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6349     CFLAGS="$SAVE_CFLAGS"
6350   fi
6351   ;;
6352 sparc*-*solaris*)
6353   # Find out which ABI we are using.
6354   echo 'int i;' > conftest.$ac_ext
6355   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356   (eval $ac_compile) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; then
6360     case `/usr/bin/file conftest.o` in
6361     *64-bit*)
6362       case $lt_cv_prog_gnu_ld in
6363       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6364       *)    LD="${LD-ld} -64" ;;
6365       esac
6366       ;;
6367     esac
6368   fi
6369   rm -rf conftest*
6370   ;;
6371
6372
6373 esac
6374
6375 need_locks="$enable_libtool_lock"
6376
6377
6378
6379 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6380 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6381 if test "${ac_cv_header_stdc+set}" = set; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384   cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include <stdlib.h>
6391 #include <stdarg.h>
6392 #include <string.h>
6393 #include <float.h>
6394
6395 int
6396 main ()
6397 {
6398
6399   ;
6400   return 0;
6401 }
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405   (eval $ac_compile) 2>conftest.er1
6406   ac_status=$?
6407   grep -v '^ *+' conftest.er1 >conftest.err
6408   rm -f conftest.er1
6409   cat conftest.err >&5
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); } &&
6412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest.$ac_objext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_cv_header_stdc=yes
6425 else
6426   echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6428
6429         ac_cv_header_stdc=no
6430 fi
6431
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433
6434 if test $ac_cv_header_stdc = yes; then
6435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6436   cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h.  */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h.  */
6442 #include <string.h>
6443
6444 _ACEOF
6445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6446   $EGREP "memchr" >/dev/null 2>&1; then
6447   :
6448 else
6449   ac_cv_header_stdc=no
6450 fi
6451 rm -f conftest*
6452
6453 fi
6454
6455 if test $ac_cv_header_stdc = yes; then
6456   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 #include <stdlib.h>
6464
6465 _ACEOF
6466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6467   $EGREP "free" >/dev/null 2>&1; then
6468   :
6469 else
6470   ac_cv_header_stdc=no
6471 fi
6472 rm -f conftest*
6473
6474 fi
6475
6476 if test $ac_cv_header_stdc = yes; then
6477   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6478   if test "$cross_compiling" = yes; then
6479   :
6480 else
6481   cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 #include <ctype.h>
6488 #include <stdlib.h>
6489 #if ((' ' & 0x0FF) == 0x020)
6490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6492 #else
6493 # define ISLOWER(c) \
6494                    (('a' <= (c) && (c) <= 'i') \
6495                      || ('j' <= (c) && (c) <= 'r') \
6496                      || ('s' <= (c) && (c) <= 'z'))
6497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6498 #endif
6499
6500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6501 int
6502 main ()
6503 {
6504   int i;
6505   for (i = 0; i < 256; i++)
6506     if (XOR (islower (i), ISLOWER (i))
6507         || toupper (i) != TOUPPER (i))
6508       return 2;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519   (eval $ac_try) 2>&5
6520   ac_status=$?
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); }; }; then
6523   :
6524 else
6525   echo "$as_me: program exited with status $ac_status" >&5
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529 ( exit $ac_status )
6530 ac_cv_header_stdc=no
6531 fi
6532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6533 fi
6534
6535
6536 fi
6537 fi
6538 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6539 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6540 if test $ac_cv_header_stdc = yes; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define STDC_HEADERS 1
6544 _ACEOF
6545
6546 fi
6547
6548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6559                   inttypes.h stdint.h unistd.h
6560 do
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 $ac_includes_default
6574
6575 #include <$ac_header>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579   (eval $ac_compile) 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; } &&
6592          { ac_try='test -s conftest.$ac_objext'
6593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594   (eval $ac_try) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); }; }; then
6598   eval "$as_ac_Header=yes"
6599 else
6600   echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603         eval "$as_ac_Header=no"
6604 fi
6605
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 fi
6608 ac_res=`eval echo '${'$as_ac_Header'}'`
6609                { echo "$as_me:$LINENO: result: $ac_res" >&5
6610 echo "${ECHO_T}$ac_res" >&6; }
6611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6612   cat >>confdefs.h <<_ACEOF
6613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6614 _ACEOF
6615
6616 fi
6617
6618 done
6619
6620
6621
6622 for ac_header in dlfcn.h
6623 do
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6626   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 fi
6631 ac_res=`eval echo '${'$as_ac_Header'}'`
6632                { echo "$as_me:$LINENO: result: $ac_res" >&5
6633 echo "${ECHO_T}$ac_res" >&6; }
6634 else
6635   # Is the header compilable?
6636 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h.  */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h.  */
6644 $ac_includes_default
6645 #include <$ac_header>
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649   (eval $ac_compile) 2>conftest.er1
6650   ac_status=$?
6651   grep -v '^ *+' conftest.er1 >conftest.err
6652   rm -f conftest.er1
6653   cat conftest.err >&5
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); } &&
6656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658   (eval $ac_try) 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; } &&
6662          { ac_try='test -s conftest.$ac_objext'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; }; then
6668   ac_header_compiler=yes
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673         ac_header_compiler=no
6674 fi
6675
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6678 echo "${ECHO_T}$ac_header_compiler" >&6; }
6679
6680 # Is the header present?
6681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 #include <$ac_header>
6690 _ACEOF
6691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693   ac_status=$?
6694   grep -v '^ *+' conftest.er1 >conftest.err
6695   rm -f conftest.er1
6696   cat conftest.err >&5
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } >/dev/null; then
6699   if test -s conftest.err; then
6700     ac_cpp_err=$ac_c_preproc_warn_flag
6701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6702   else
6703     ac_cpp_err=
6704   fi
6705 else
6706   ac_cpp_err=yes
6707 fi
6708 if test -z "$ac_cpp_err"; then
6709   ac_header_preproc=yes
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714   ac_header_preproc=no
6715 fi
6716
6717 rm -f conftest.err conftest.$ac_ext
6718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6719 echo "${ECHO_T}$ac_header_preproc" >&6; }
6720
6721 # So?  What about this header?
6722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6723   yes:no: )
6724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6728     ac_header_preproc=yes
6729     ;;
6730   no:yes:* )
6731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6743     ( cat <<\_ASBOX
6744 ## ------------------------------- ##
6745 ## Report this to nfs@lists.sf.net ##
6746 ## ------------------------------- ##
6747 _ASBOX
6748      ) | sed "s/^/$as_me: WARNING:     /" >&2
6749     ;;
6750 esac
6751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   eval "$as_ac_Header=\$ac_header_preproc"
6757 fi
6758 ac_res=`eval echo '${'$as_ac_Header'}'`
6759                { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6761
6762 fi
6763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6764   cat >>confdefs.h <<_ACEOF
6765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6766 _ACEOF
6767
6768 fi
6769
6770 done
6771
6772
6773
6774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6775     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6776     (test "X$CXX" != "Xg++"))) ; then
6777   ac_ext=cpp
6778 ac_cpp='$CXXCPP $CPPFLAGS'
6779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6782 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6783 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6784 if test -z "$CXXCPP"; then
6785   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788       # Double quotes because CXXCPP needs to be expanded
6789     for CXXCPP in "$CXX -E" "/lib/cpp"
6790     do
6791       ac_preproc_ok=false
6792 for ac_cxx_preproc_warn_flag in '' yes
6793 do
6794   # Use a header file that comes with gcc, so configuring glibc
6795   # with a fresh cross-compiler works.
6796   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6797   # <limits.h> exists even on freestanding compilers.
6798   # On the NeXT, cc -E runs the code through the compiler's parser,
6799   # not just through cpp. "Syntax error" is here to catch this case.
6800   cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 #ifdef __STDC__
6807 # include <limits.h>
6808 #else
6809 # include <assert.h>
6810 #endif
6811                      Syntax error
6812 _ACEOF
6813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } >/dev/null; then
6821   if test -s conftest.err; then
6822     ac_cpp_err=$ac_cxx_preproc_warn_flag
6823     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6824   else
6825     ac_cpp_err=
6826   fi
6827 else
6828   ac_cpp_err=yes
6829 fi
6830 if test -z "$ac_cpp_err"; then
6831   :
6832 else
6833   echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836   # Broken: fails on valid input.
6837 continue
6838 fi
6839
6840 rm -f conftest.err conftest.$ac_ext
6841
6842   # OK, works on sane cases.  Now check whether nonexistent headers
6843   # can be detected and how.
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 #include <ac_nonexistent.h>
6851 _ACEOF
6852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } >/dev/null; then
6860   if test -s conftest.err; then
6861     ac_cpp_err=$ac_cxx_preproc_warn_flag
6862     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6863   else
6864     ac_cpp_err=
6865   fi
6866 else
6867   ac_cpp_err=yes
6868 fi
6869 if test -z "$ac_cpp_err"; then
6870   # Broken: success on invalid input.
6871 continue
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876   # Passes both tests.
6877 ac_preproc_ok=:
6878 break
6879 fi
6880
6881 rm -f conftest.err conftest.$ac_ext
6882
6883 done
6884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6885 rm -f conftest.err conftest.$ac_ext
6886 if $ac_preproc_ok; then
6887   break
6888 fi
6889
6890     done
6891     ac_cv_prog_CXXCPP=$CXXCPP
6892
6893 fi
6894   CXXCPP=$ac_cv_prog_CXXCPP
6895 else
6896   ac_cv_prog_CXXCPP=$CXXCPP
6897 fi
6898 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6899 echo "${ECHO_T}$CXXCPP" >&6; }
6900 ac_preproc_ok=false
6901 for ac_cxx_preproc_warn_flag in '' yes
6902 do
6903   # Use a header file that comes with gcc, so configuring glibc
6904   # with a fresh cross-compiler works.
6905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6906   # <limits.h> exists even on freestanding compilers.
6907   # On the NeXT, cc -E runs the code through the compiler's parser,
6908   # not just through cpp. "Syntax error" is here to catch this case.
6909   cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915 #ifdef __STDC__
6916 # include <limits.h>
6917 #else
6918 # include <assert.h>
6919 #endif
6920                      Syntax error
6921 _ACEOF
6922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } >/dev/null; then
6930   if test -s conftest.err; then
6931     ac_cpp_err=$ac_cxx_preproc_warn_flag
6932     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6933   else
6934     ac_cpp_err=
6935   fi
6936 else
6937   ac_cpp_err=yes
6938 fi
6939 if test -z "$ac_cpp_err"; then
6940   :
6941 else
6942   echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6944
6945   # Broken: fails on valid input.
6946 continue
6947 fi
6948
6949 rm -f conftest.err conftest.$ac_ext
6950
6951   # OK, works on sane cases.  Now check whether nonexistent headers
6952   # can be detected and how.
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 #include <ac_nonexistent.h>
6960 _ACEOF
6961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } >/dev/null; then
6969   if test -s conftest.err; then
6970     ac_cpp_err=$ac_cxx_preproc_warn_flag
6971     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6972   else
6973     ac_cpp_err=
6974   fi
6975 else
6976   ac_cpp_err=yes
6977 fi
6978 if test -z "$ac_cpp_err"; then
6979   # Broken: success on invalid input.
6980 continue
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985   # Passes both tests.
6986 ac_preproc_ok=:
6987 break
6988 fi
6989
6990 rm -f conftest.err conftest.$ac_ext
6991
6992 done
6993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994 rm -f conftest.err conftest.$ac_ext
6995 if $ac_preproc_ok; then
6996   :
6997 else
6998   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6999 See \`config.log' for more details." >&5
7000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7001 See \`config.log' for more details." >&2;}
7002    { (exit 1); exit 1; }; }
7003 fi
7004
7005 ac_ext=cpp
7006 ac_cpp='$CXXCPP $CPPFLAGS'
7007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010
7011 fi
7012
7013
7014 ac_ext=f
7015 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7016 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7018 if test -n "$ac_tool_prefix"; then
7019   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7020   do
7021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_F77+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   if test -n "$F77"; then
7029   ac_cv_prog_F77="$F77" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 F77=$ac_cv_prog_F77
7049 if test -n "$F77"; then
7050   { echo "$as_me:$LINENO: result: $F77" >&5
7051 echo "${ECHO_T}$F77" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058     test -n "$F77" && break
7059   done
7060 fi
7061 if test -z "$F77"; then
7062   ac_ct_F77=$F77
7063   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7064 do
7065   # Extract the first word of "$ac_prog", so it can be a program name with args.
7066 set dummy $ac_prog; ac_word=$2
7067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   if test -n "$ac_ct_F77"; then
7073   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080   for ac_exec_ext in '' $ac_executable_extensions; do
7081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7082     ac_cv_prog_ac_ct_F77="$ac_prog"
7083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7093 if test -n "$ac_ct_F77"; then
7094   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7095 echo "${ECHO_T}$ac_ct_F77" >&6; }
7096 else
7097   { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7099 fi
7100
7101
7102   test -n "$ac_ct_F77" && break
7103 done
7104
7105   if test "x$ac_ct_F77" = x; then
7106     F77=""
7107   else
7108     case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet.  If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet.  If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118     F77=$ac_ct_F77
7119   fi
7120 fi
7121
7122
7123 # Provide some information about the compiler.
7124 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7125 ac_compiler=`set X $ac_compile; echo $2`
7126 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
7127   (eval $ac_compiler --version >&5) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }
7131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
7132   (eval $ac_compiler -v >&5) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }
7136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
7137   (eval $ac_compiler -V >&5) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }
7141 rm -f a.out
7142
7143 # If we don't use `.F' as extension, the preprocessor is not run on the
7144 # input file.  (Note that this only needs to work for GNU compilers.)
7145 ac_save_ext=$ac_ext
7146 ac_ext=F
7147 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7148 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7149 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153       program main
7154 #ifndef __GNUC__
7155        choke me
7156 #endif
7157
7158       end
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162   (eval $ac_compile) 2>conftest.er1
7163   ac_status=$?
7164   grep -v '^ *+' conftest.er1 >conftest.err
7165   rm -f conftest.er1
7166   cat conftest.err >&5
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; } &&
7175          { ac_try='test -s conftest.$ac_objext'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; }; then
7181   ac_compiler_gnu=yes
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186         ac_compiler_gnu=no
7187 fi
7188
7189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7190 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7191
7192 fi
7193 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7194 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7195 ac_ext=$ac_save_ext
7196 ac_test_FFLAGS=${FFLAGS+set}
7197 ac_save_FFLAGS=$FFLAGS
7198 FFLAGS=
7199 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7200 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_f77_g+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   FFLAGS=-g
7205 cat >conftest.$ac_ext <<_ACEOF
7206       program main
7207
7208       end
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212   (eval $ac_compile) 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } &&
7219          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
7220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221   (eval $ac_try) 2>&5
7222   ac_status=$?
7223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224   (exit $ac_status); }; } &&
7225          { ac_try='test -s conftest.$ac_objext'
7226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227   (eval $ac_try) 2>&5
7228   ac_status=$?
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); }; }; then
7231   ac_cv_prog_f77_g=yes
7232 else
7233   echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236         ac_cv_prog_f77_g=no
7237 fi
7238
7239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240
7241 fi
7242 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7243 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7244 if test "$ac_test_FFLAGS" = set; then
7245   FFLAGS=$ac_save_FFLAGS
7246 elif test $ac_cv_prog_f77_g = yes; then
7247   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7248     FFLAGS="-g -O2"
7249   else
7250     FFLAGS="-g"
7251   fi
7252 else
7253   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7254     FFLAGS="-O2"
7255   else
7256     FFLAGS=
7257   fi
7258 fi
7259
7260 G77=`test $ac_compiler_gnu = yes && echo yes`
7261 ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267
7268
7269 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7270
7271 # find the maximum length of command line arguments
7272 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7273 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7274 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277     i=0
7278   teststring="ABCD"
7279
7280   case $build_os in
7281   msdosdjgpp*)
7282     # On DJGPP, this test can blow up pretty badly due to problems in libc
7283     # (any single argument exceeding 2000 bytes causes a buffer overrun
7284     # during glob expansion).  Even if it were fixed, the result of this
7285     # check would be larger than it should be.
7286     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7287     ;;
7288
7289   gnu*)
7290     # Under GNU Hurd, this test is not required because there is
7291     # no limit to the length of command line arguments.
7292     # Libtool will interpret -1 as no limit whatsoever
7293     lt_cv_sys_max_cmd_len=-1;
7294     ;;
7295
7296   cygwin* | mingw*)
7297     # On Win9x/ME, this test blows up -- it succeeds, but takes
7298     # about 5 minutes as the teststring grows exponentially.
7299     # Worse, since 9x/ME are not pre-emptively multitasking,
7300     # you end up with a "frozen" computer, even though with patience
7301     # the test eventually succeeds (with a max line length of 256k).
7302     # Instead, let's just punt: use the minimum linelength reported by
7303     # all of the supported platforms: 8192 (on NT/2K/XP).
7304     lt_cv_sys_max_cmd_len=8192;
7305     ;;
7306
7307   amigaos*)
7308     # On AmigaOS with pdksh, this test takes hours, literally.
7309     # So we just punt and use a minimum line length of 8192.
7310     lt_cv_sys_max_cmd_len=8192;
7311     ;;
7312
7313   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7314     # This has been around since 386BSD, at least.  Likely further.
7315     if test -x /sbin/sysctl; then
7316       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7317     elif test -x /usr/sbin/sysctl; then
7318       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7319     else
7320       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7321     fi
7322     # And add a safety zone
7323     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7325     ;;
7326
7327   interix*)
7328     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7329     lt_cv_sys_max_cmd_len=196608
7330     ;;
7331
7332   osf*)
7333     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7334     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7335     # nice to cause kernel panics so lets avoid the loop below.
7336     # First set a reasonable default.
7337     lt_cv_sys_max_cmd_len=16384
7338     #
7339     if test -x /sbin/sysconfig; then
7340       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7341         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7342       esac
7343     fi
7344     ;;
7345   sco3.2v5*)
7346     lt_cv_sys_max_cmd_len=102400
7347     ;;
7348   sysv5* | sco5v6* | sysv4.2uw2*)
7349     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7350     if test -n "$kargmax"; then
7351       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7352     else
7353       lt_cv_sys_max_cmd_len=32768
7354     fi
7355     ;;
7356   *)
7357     # If test is not a shell built-in, we'll probably end up computing a
7358     # maximum length that is only half of the actual maximum length, but
7359     # we can't tell.
7360     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7361     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7362                = "XX$teststring") >/dev/null 2>&1 &&
7363             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7364             lt_cv_sys_max_cmd_len=$new_result &&
7365             test $i != 17 # 1/2 MB should be enough
7366     do
7367       i=`expr $i + 1`
7368       teststring=$teststring$teststring
7369     done
7370     teststring=
7371     # Add a significant safety factor because C++ compilers can tack on massive
7372     # amounts of additional arguments before passing them to the linker.
7373     # It appears as though 1/2 is a usable value.
7374     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7375     ;;
7376   esac
7377
7378 fi
7379
7380 if test -n $lt_cv_sys_max_cmd_len ; then
7381   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7382 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: none" >&5
7385 echo "${ECHO_T}none" >&6; }
7386 fi
7387
7388
7389
7390
7391 # Check for command to grab the raw symbol name followed by C symbol from nm.
7392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397
7398 # These are sane defaults that work on at least a few old systems.
7399 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7400
7401 # Character class describing NM global symbol codes.
7402 symcode='[BCDEGRST]'
7403
7404 # Regexp to match symbols that can be accessed directly from C.
7405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7406
7407 # Transform an extracted symbol line into a proper C declaration
7408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7409
7410 # Transform an extracted symbol line into symbol name and symbol address
7411 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'"
7412
7413 # Define system-specific variables.
7414 case $host_os in
7415 aix*)
7416   symcode='[BCDT]'
7417   ;;
7418 cygwin* | mingw* | pw32*)
7419   symcode='[ABCDGISTW]'
7420   ;;
7421 hpux*) # Its linker distinguishes data from code symbols
7422   if test "$host_cpu" = ia64; then
7423     symcode='[ABCDEGRST]'
7424   fi
7425   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7426   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'"
7427   ;;
7428 linux* | k*bsd*-gnu)
7429   if test "$host_cpu" = ia64; then
7430     symcode='[ABCDGIRSTW]'
7431     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7432     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'"
7433   fi
7434   ;;
7435 irix* | nonstopux*)
7436   symcode='[BCDEGRST]'
7437   ;;
7438 osf*)
7439   symcode='[BCDEGQRST]'
7440   ;;
7441 solaris*)
7442   symcode='[BDRT]'
7443   ;;
7444 sco3.2v5*)
7445   symcode='[DT]'
7446   ;;
7447 sysv4.2uw2*)
7448   symcode='[DT]'
7449   ;;
7450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7451   symcode='[ABDT]'
7452   ;;
7453 sysv4)
7454   symcode='[DFNSTU]'
7455   ;;
7456 esac
7457
7458 # Handle CRLF in mingw tool chain
7459 opt_cr=
7460 case $build_os in
7461 mingw*)
7462   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7463   ;;
7464 esac
7465
7466 # If we're using GNU nm, then use its standard symbol codes.
7467 case `$NM -V 2>&1` in
7468 *GNU* | *'with BFD'*)
7469   symcode='[ABCDGIRSTW]' ;;
7470 esac
7471
7472 # Try without a prefix undercore, then with it.
7473 for ac_symprfx in "" "_"; do
7474
7475   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7476   symxfrm="\\1 $ac_symprfx\\2 \\2"
7477
7478   # Write the raw and C identifiers.
7479   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7480
7481   # Check to see that the pipe works correctly.
7482   pipe_works=no
7483
7484   rm -f conftest*
7485   cat > conftest.$ac_ext <<EOF
7486 #ifdef __cplusplus
7487 extern "C" {
7488 #endif
7489 char nm_test_var;
7490 void nm_test_func(){}
7491 #ifdef __cplusplus
7492 }
7493 #endif
7494 int main(){nm_test_var='a';nm_test_func();return(0);}
7495 EOF
7496
7497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498   (eval $ac_compile) 2>&5
7499   ac_status=$?
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); }; then
7502     # Now try to grab the symbols.
7503     nlist=conftest.nm
7504     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7505   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); } && test -s "$nlist"; then
7509       # Try sorting and uniquifying the output.
7510       if sort "$nlist" | uniq > "$nlist"T; then
7511         mv -f "$nlist"T "$nlist"
7512       else
7513         rm -f "$nlist"T
7514       fi
7515
7516       # Make sure that we snagged all the symbols we need.
7517       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7518         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7519           cat <<EOF > conftest.$ac_ext
7520 #ifdef __cplusplus
7521 extern "C" {
7522 #endif
7523
7524 EOF
7525           # Now generate the symbol file.
7526           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7527
7528           cat <<EOF >> conftest.$ac_ext
7529 #if defined (__STDC__) && __STDC__
7530 # define lt_ptr_t void *
7531 #else
7532 # define lt_ptr_t char *
7533 # define const
7534 #endif
7535
7536 /* The mapping between symbol names and symbols. */
7537 const struct {
7538   const char *name;
7539   lt_ptr_t address;
7540 }
7541 lt_preloaded_symbols[] =
7542 {
7543 EOF
7544           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7545           cat <<\EOF >> conftest.$ac_ext
7546   {0, (lt_ptr_t) 0}
7547 };
7548
7549 #ifdef __cplusplus
7550 }
7551 #endif
7552 EOF
7553           # Now try linking the two files.
7554           mv conftest.$ac_objext conftstm.$ac_objext
7555           lt_save_LIBS="$LIBS"
7556           lt_save_CFLAGS="$CFLAGS"
7557           LIBS="conftstm.$ac_objext"
7558           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7559           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560   (eval $ac_link) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7564             pipe_works=yes
7565           fi
7566           LIBS="$lt_save_LIBS"
7567           CFLAGS="$lt_save_CFLAGS"
7568         else
7569           echo "cannot find nm_test_func in $nlist" >&5
7570         fi
7571       else
7572         echo "cannot find nm_test_var in $nlist" >&5
7573       fi
7574     else
7575       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7576     fi
7577   else
7578     echo "$progname: failed program was:" >&5
7579     cat conftest.$ac_ext >&5
7580   fi
7581   rm -f conftest* conftst*
7582
7583   # Do not use the global_symbol_pipe unless it works.
7584   if test "$pipe_works" = yes; then
7585     break
7586   else
7587     lt_cv_sys_global_symbol_pipe=
7588   fi
7589 done
7590
7591 fi
7592
7593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7594   lt_cv_sys_global_symbol_to_cdecl=
7595 fi
7596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7597   { echo "$as_me:$LINENO: result: failed" >&5
7598 echo "${ECHO_T}failed" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: ok" >&5
7601 echo "${ECHO_T}ok" >&6; }
7602 fi
7603
7604 { echo "$as_me:$LINENO: checking for objdir" >&5
7605 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7606 if test "${lt_cv_objdir+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   rm -f .libs 2>/dev/null
7610 mkdir .libs 2>/dev/null
7611 if test -d .libs; then
7612   lt_cv_objdir=.libs
7613 else
7614   # MS-DOS does not allow filenames that begin with a dot.
7615   lt_cv_objdir=_libs
7616 fi
7617 rmdir .libs 2>/dev/null
7618 fi
7619 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7620 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7621 objdir=$lt_cv_objdir
7622
7623
7624
7625
7626
7627 case $host_os in
7628 aix3*)
7629   # AIX sometimes has problems with the GCC collect2 program.  For some
7630   # reason, if we set the COLLECT_NAMES environment variable, the problems
7631   # vanish in a puff of smoke.
7632   if test "X${COLLECT_NAMES+set}" != Xset; then
7633     COLLECT_NAMES=
7634     export COLLECT_NAMES
7635   fi
7636   ;;
7637 esac
7638
7639 # Sed substitution that helps us do robust quoting.  It backslashifies
7640 # metacharacters that are still active within double-quoted strings.
7641 Xsed='sed -e 1s/^X//'
7642 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7643
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7646
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7650
7651 # Sed substitution to avoid accidental globbing in evaled expressions
7652 no_glob_subst='s/\*/\\\*/g'
7653
7654 # Constants:
7655 rm="rm -f"
7656
7657 # Global variables:
7658 default_ofile=libtool
7659 can_build_shared=yes
7660
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7663 libext=a
7664 ltmain="$ac_aux_dir/ltmain.sh"
7665 ofile="$default_ofile"
7666 with_gnu_ld="$lt_cv_prog_gnu_ld"
7667
7668 if test -n "$ac_tool_prefix"; then
7669   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}ar; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_prog_AR+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   if test -n "$AR"; then
7677   ac_cv_prog_AR="$AR" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_exec_ext in '' $ac_executable_extensions; do
7685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686     ac_cv_prog_AR="${ac_tool_prefix}ar"
7687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 AR=$ac_cv_prog_AR
7697 if test -n "$AR"; then
7698   { echo "$as_me:$LINENO: result: $AR" >&5
7699 echo "${ECHO_T}$AR" >&6; }
7700 else
7701   { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7703 fi
7704
7705
7706 fi
7707 if test -z "$ac_cv_prog_AR"; then
7708   ac_ct_AR=$AR
7709   # Extract the first word of "ar", so it can be a program name with args.
7710 set dummy ar; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   if test -n "$ac_ct_AR"; then
7717   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724   for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_prog_ac_ct_AR="ar"
7727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7737 if test -n "$ac_ct_AR"; then
7738   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7739 echo "${ECHO_T}$ac_ct_AR" >&6; }
7740 else
7741   { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7743 fi
7744
7745   if test "x$ac_ct_AR" = x; then
7746     AR="false"
7747   else
7748     case $cross_compiling:$ac_tool_warned in
7749 yes:)
7750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7751 whose name does not start with the host triplet.  If you think this
7752 configuration is useful to you, please write to autoconf@gnu.org." >&5
7753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7754 whose name does not start with the host triplet.  If you think this
7755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758     AR=$ac_ct_AR
7759   fi
7760 else
7761   AR="$ac_cv_prog_AR"
7762 fi
7763
7764 if test -n "$ac_tool_prefix"; then
7765   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_prog_RANLIB+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   if test -n "$RANLIB"; then
7773   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 RANLIB=$ac_cv_prog_RANLIB
7793 if test -n "$RANLIB"; then
7794   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7795 echo "${ECHO_T}$RANLIB" >&6; }
7796 else
7797   { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7799 fi
7800
7801
7802 fi
7803 if test -z "$ac_cv_prog_RANLIB"; then
7804   ac_ct_RANLIB=$RANLIB
7805   # Extract the first word of "ranlib", so it can be a program name with args.
7806 set dummy ranlib; ac_word=$2
7807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7809 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   if test -n "$ac_ct_RANLIB"; then
7813   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820   for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_prog_ac_ct_RANLIB="ranlib"
7823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7833 if test -n "$ac_ct_RANLIB"; then
7834   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7835 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7836 else
7837   { echo "$as_me:$LINENO: result: no" >&5
7838 echo "${ECHO_T}no" >&6; }
7839 fi
7840
7841   if test "x$ac_ct_RANLIB" = x; then
7842     RANLIB=":"
7843   else
7844     case $cross_compiling:$ac_tool_warned in
7845 yes:)
7846 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet.  If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&5
7849 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7850 whose name does not start with the host triplet.  If you think this
7851 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854     RANLIB=$ac_ct_RANLIB
7855   fi
7856 else
7857   RANLIB="$ac_cv_prog_RANLIB"
7858 fi
7859
7860 if test -n "$ac_tool_prefix"; then
7861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}strip; ac_word=$2
7863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7865 if test "${ac_cv_prog_STRIP+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   if test -n "$STRIP"; then
7869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876   for ac_exec_ext in '' $ac_executable_extensions; do
7877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 STRIP=$ac_cv_prog_STRIP
7889 if test -n "$STRIP"; then
7890   { echo "$as_me:$LINENO: result: $STRIP" >&5
7891 echo "${ECHO_T}$STRIP" >&6; }
7892 else
7893   { echo "$as_me:$LINENO: result: no" >&5
7894 echo "${ECHO_T}no" >&6; }
7895 fi
7896
7897
7898 fi
7899 if test -z "$ac_cv_prog_STRIP"; then
7900   ac_ct_STRIP=$STRIP
7901   # Extract the first word of "strip", so it can be a program name with args.
7902 set dummy strip; ac_word=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   if test -n "$ac_ct_STRIP"; then
7909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916   for ac_exec_ext in '' $ac_executable_extensions; do
7917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7918     ac_cv_prog_ac_ct_STRIP="strip"
7919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923 done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7929 if test -n "$ac_ct_STRIP"; then
7930   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7931 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7932 else
7933   { echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6; }
7935 fi
7936
7937   if test "x$ac_ct_STRIP" = x; then
7938     STRIP=":"
7939   else
7940     case $cross_compiling:$ac_tool_warned in
7941 yes:)
7942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7943 whose name does not start with the host triplet.  If you think this
7944 configuration is useful to you, please write to autoconf@gnu.org." >&5
7945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7946 whose name does not start with the host triplet.  If you think this
7947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7948 ac_tool_warned=yes ;;
7949 esac
7950     STRIP=$ac_ct_STRIP
7951   fi
7952 else
7953   STRIP="$ac_cv_prog_STRIP"
7954 fi
7955
7956
7957 old_CC="$CC"
7958 old_CFLAGS="$CFLAGS"
7959
7960 # Set sane defaults for various variables
7961 test -z "$AR" && AR=ar
7962 test -z "$AR_FLAGS" && AR_FLAGS=cru
7963 test -z "$AS" && AS=as
7964 test -z "$CC" && CC=cc
7965 test -z "$LTCC" && LTCC=$CC
7966 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7967 test -z "$DLLTOOL" && DLLTOOL=dlltool
7968 test -z "$LD" && LD=ld
7969 test -z "$LN_S" && LN_S="ln -s"
7970 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7971 test -z "$NM" && NM=nm
7972 test -z "$SED" && SED=sed
7973 test -z "$OBJDUMP" && OBJDUMP=objdump
7974 test -z "$RANLIB" && RANLIB=:
7975 test -z "$STRIP" && STRIP=:
7976 test -z "$ac_objext" && ac_objext=o
7977
7978 # Determine commands to create old-style static archives.
7979 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7980 old_postinstall_cmds='chmod 644 $oldlib'
7981 old_postuninstall_cmds=
7982
7983 if test -n "$RANLIB"; then
7984   case $host_os in
7985   openbsd*)
7986     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7987     ;;
7988   *)
7989     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7990     ;;
7991   esac
7992   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7993 fi
7994
7995 for cc_temp in $compiler""; do
7996   case $cc_temp in
7997     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7998     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7999     \-*) ;;
8000     *) break;;
8001   esac
8002 done
8003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8004
8005
8006 # Only perform the check for file, if the check method requires it
8007 case $deplibs_check_method in
8008 file_magic*)
8009   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8010     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8011 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8012 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   case $MAGIC_CMD in
8016 [\\/*] |  ?:[\\/]*)
8017   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8018   ;;
8019 *)
8020   lt_save_MAGIC_CMD="$MAGIC_CMD"
8021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8022   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8023   for ac_dir in $ac_dummy; do
8024     IFS="$lt_save_ifs"
8025     test -z "$ac_dir" && ac_dir=.
8026     if test -f $ac_dir/${ac_tool_prefix}file; then
8027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8028       if test -n "$file_magic_test_file"; then
8029         case $deplibs_check_method in
8030         "file_magic "*)
8031           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8034             $EGREP "$file_magic_regex" > /dev/null; then
8035             :
8036           else
8037             cat <<EOF 1>&2
8038
8039 *** Warning: the command libtool uses to detect shared libraries,
8040 *** $file_magic_cmd, produces output that libtool cannot recognize.
8041 *** The result is that libtool may fail to recognize shared libraries
8042 *** as such.  This will affect the creation of libtool libraries that
8043 *** depend on shared libraries, but programs linked with such libtool
8044 *** libraries will work regardless of this problem.  Nevertheless, you
8045 *** may want to report the problem to your system manager and/or to
8046 *** bug-libtool@gnu.org
8047
8048 EOF
8049           fi ;;
8050         esac
8051       fi
8052       break
8053     fi
8054   done
8055   IFS="$lt_save_ifs"
8056   MAGIC_CMD="$lt_save_MAGIC_CMD"
8057   ;;
8058 esac
8059 fi
8060
8061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062 if test -n "$MAGIC_CMD"; then
8063   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8064 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8065 else
8066   { echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6; }
8068 fi
8069
8070 if test -z "$lt_cv_path_MAGIC_CMD"; then
8071   if test -n "$ac_tool_prefix"; then
8072     { echo "$as_me:$LINENO: checking for file" >&5
8073 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   case $MAGIC_CMD in
8078 [\\/*] |  ?:[\\/]*)
8079   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8080   ;;
8081 *)
8082   lt_save_MAGIC_CMD="$MAGIC_CMD"
8083   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8084   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8085   for ac_dir in $ac_dummy; do
8086     IFS="$lt_save_ifs"
8087     test -z "$ac_dir" && ac_dir=.
8088     if test -f $ac_dir/file; then
8089       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8090       if test -n "$file_magic_test_file"; then
8091         case $deplibs_check_method in
8092         "file_magic "*)
8093           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8094           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8095           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8096             $EGREP "$file_magic_regex" > /dev/null; then
8097             :
8098           else
8099             cat <<EOF 1>&2
8100
8101 *** Warning: the command libtool uses to detect shared libraries,
8102 *** $file_magic_cmd, produces output that libtool cannot recognize.
8103 *** The result is that libtool may fail to recognize shared libraries
8104 *** as such.  This will affect the creation of libtool libraries that
8105 *** depend on shared libraries, but programs linked with such libtool
8106 *** libraries will work regardless of this problem.  Nevertheless, you
8107 *** may want to report the problem to your system manager and/or to
8108 *** bug-libtool@gnu.org
8109
8110 EOF
8111           fi ;;
8112         esac
8113       fi
8114       break
8115     fi
8116   done
8117   IFS="$lt_save_ifs"
8118   MAGIC_CMD="$lt_save_MAGIC_CMD"
8119   ;;
8120 esac
8121 fi
8122
8123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124 if test -n "$MAGIC_CMD"; then
8125   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8126 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8127 else
8128   { echo "$as_me:$LINENO: result: no" >&5
8129 echo "${ECHO_T}no" >&6; }
8130 fi
8131
8132   else
8133     MAGIC_CMD=:
8134   fi
8135 fi
8136
8137   fi
8138   ;;
8139 esac
8140
8141 enable_dlopen=no
8142 enable_win32_dll=no
8143
8144 # Check whether --enable-libtool-lock was given.
8145 if test "${enable_libtool_lock+set}" = set; then
8146   enableval=$enable_libtool_lock;
8147 fi
8148
8149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8150
8151
8152 # Check whether --with-pic was given.
8153 if test "${with_pic+set}" = set; then
8154   withval=$with_pic; pic_mode="$withval"
8155 else
8156   pic_mode=default
8157 fi
8158
8159 test -z "$pic_mode" && pic_mode=default
8160
8161 # Use C for the default configuration in the libtool script
8162 tagname=
8163 lt_save_CC="$CC"
8164 ac_ext=c
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171 # Source file extension for C test sources.
8172 ac_ext=c
8173
8174 # Object file extension for compiled C test sources.
8175 objext=o
8176 objext=$objext
8177
8178 # Code to be used in simple compile tests
8179 lt_simple_compile_test_code="int some_variable = 0;\n"
8180
8181 # Code to be used in simple link tests
8182 lt_simple_link_test_code='int main(){return(0);}\n'
8183
8184
8185 # If no C compiler was specified, use CC.
8186 LTCC=${LTCC-"$CC"}
8187
8188 # If no C compiler flags were specified, use CFLAGS.
8189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8190
8191 # Allow CC to be a program name with arguments.
8192 compiler=$CC
8193
8194
8195 # save warnings/boilerplate of simple test code
8196 ac_outfile=conftest.$ac_objext
8197 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8198 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8199 _lt_compiler_boilerplate=`cat conftest.err`
8200 $rm conftest*
8201
8202 ac_outfile=conftest.$ac_objext
8203 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8204 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8205 _lt_linker_boilerplate=`cat conftest.err`
8206 $rm conftest*
8207
8208
8209
8210 lt_prog_compiler_no_builtin_flag=
8211
8212 if test "$GCC" = yes; then
8213   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8214
8215
8216 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8217 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8218 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   lt_cv_prog_compiler_rtti_exceptions=no
8222   ac_outfile=conftest.$ac_objext
8223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8224    lt_compiler_flag="-fno-rtti -fno-exceptions"
8225    # Insert the option either (1) after the last *FLAGS variable, or
8226    # (2) before a word containing "conftest.", or (3) at the end.
8227    # Note that $ac_compile itself does not contain backslashes and begins
8228    # with a dollar sign (not a hyphen), so the echo should work correctly.
8229    # The option is referenced via a variable to avoid confusing sed.
8230    lt_compile=`echo "$ac_compile" | $SED \
8231    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233    -e 's:$: $lt_compiler_flag:'`
8234    (eval echo "\"\$as_me:8234: $lt_compile\"" >&5)
8235    (eval "$lt_compile" 2>conftest.err)
8236    ac_status=$?
8237    cat conftest.err >&5
8238    echo "$as_me:8238: \$? = $ac_status" >&5
8239    if (exit $ac_status) && test -s "$ac_outfile"; then
8240      # The compiler can only warn and ignore the option if not recognized
8241      # So say no if there are warnings other than the usual output.
8242      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8243      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8244      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8245        lt_cv_prog_compiler_rtti_exceptions=yes
8246      fi
8247    fi
8248    $rm conftest*
8249
8250 fi
8251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8252 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8253
8254 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8255     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8256 else
8257     :
8258 fi
8259
8260 fi
8261
8262 lt_prog_compiler_wl=
8263 lt_prog_compiler_pic=
8264 lt_prog_compiler_static=
8265
8266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8268
8269   if test "$GCC" = yes; then
8270     lt_prog_compiler_wl='-Wl,'
8271     lt_prog_compiler_static='-static'
8272
8273     case $host_os in
8274       aix*)
8275       # All AIX code is PIC.
8276       if test "$host_cpu" = ia64; then
8277         # AIX 5 now supports IA64 processor
8278         lt_prog_compiler_static='-Bstatic'
8279       fi
8280       ;;
8281
8282     amigaos*)
8283       # FIXME: we need at least 68020 code to build shared libraries, but
8284       # adding the `-m68020' flag to GCC prevents building anything better,
8285       # like `-m68040'.
8286       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8287       ;;
8288
8289     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8290       # PIC is the default for these OSes.
8291       ;;
8292
8293     mingw* | pw32* | os2*)
8294       # This hack is so that the source file can tell whether it is being
8295       # built for inclusion in a dll (and should export symbols for example).
8296       lt_prog_compiler_pic='-DDLL_EXPORT'
8297       ;;
8298
8299     darwin* | rhapsody*)
8300       # PIC is the default on this platform
8301       # Common symbols not allowed in MH_DYLIB files
8302       lt_prog_compiler_pic='-fno-common'
8303       ;;
8304
8305     interix3*)
8306       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8307       # Instead, we relocate shared libraries at runtime.
8308       ;;
8309
8310     msdosdjgpp*)
8311       # Just because we use GCC doesn't mean we suddenly get shared libraries
8312       # on systems that don't support them.
8313       lt_prog_compiler_can_build_shared=no
8314       enable_shared=no
8315       ;;
8316
8317     sysv4*MP*)
8318       if test -d /usr/nec; then
8319         lt_prog_compiler_pic=-Kconform_pic
8320       fi
8321       ;;
8322
8323     hpux*)
8324       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8325       # not for PA HP-UX.
8326       case $host_cpu in
8327       hppa*64*|ia64*)
8328         # +Z the default
8329         ;;
8330       *)
8331         lt_prog_compiler_pic='-fPIC'
8332         ;;
8333       esac
8334       ;;
8335
8336     *)
8337       lt_prog_compiler_pic='-fPIC'
8338       ;;
8339     esac
8340   else
8341     # PORTME Check for flag to pass linker flags through the system compiler.
8342     case $host_os in
8343     aix*)
8344       lt_prog_compiler_wl='-Wl,'
8345       if test "$host_cpu" = ia64; then
8346         # AIX 5 now supports IA64 processor
8347         lt_prog_compiler_static='-Bstatic'
8348       else
8349         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8350       fi
8351       ;;
8352       darwin*)
8353         # PIC is the default on this platform
8354         # Common symbols not allowed in MH_DYLIB files
8355        case $cc_basename in
8356          xlc*)
8357          lt_prog_compiler_pic='-qnocommon'
8358          lt_prog_compiler_wl='-Wl,'
8359          ;;
8360        esac
8361        ;;
8362
8363     mingw* | pw32* | os2*)
8364       # This hack is so that the source file can tell whether it is being
8365       # built for inclusion in a dll (and should export symbols for example).
8366       lt_prog_compiler_pic='-DDLL_EXPORT'
8367       ;;
8368
8369     hpux9* | hpux10* | hpux11*)
8370       lt_prog_compiler_wl='-Wl,'
8371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8372       # not for PA HP-UX.
8373       case $host_cpu in
8374       hppa*64*|ia64*)
8375         # +Z the default
8376         ;;
8377       *)
8378         lt_prog_compiler_pic='+Z'
8379         ;;
8380       esac
8381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382       lt_prog_compiler_static='${wl}-a ${wl}archive'
8383       ;;
8384
8385     irix5* | irix6* | nonstopux*)
8386       lt_prog_compiler_wl='-Wl,'
8387       # PIC (with -KPIC) is the default.
8388       lt_prog_compiler_static='-non_shared'
8389       ;;
8390
8391     newsos6)
8392       lt_prog_compiler_pic='-KPIC'
8393       lt_prog_compiler_static='-Bstatic'
8394       ;;
8395
8396     linux* | k*bsd*-gnu)
8397       case $cc_basename in
8398       icc* | ecc*)
8399         lt_prog_compiler_wl='-Wl,'
8400         lt_prog_compiler_pic='-KPIC'
8401         lt_prog_compiler_static='-static'
8402         ;;
8403       pgcc* | pgf77* | pgf90* | pgf95*)
8404         # Portland Group compilers (*not* the Pentium gcc compiler,
8405         # which looks to be a dead project)
8406         lt_prog_compiler_wl='-Wl,'
8407         lt_prog_compiler_pic='-fpic'
8408         lt_prog_compiler_static='-Bstatic'
8409         ;;
8410       ccc*)
8411         lt_prog_compiler_wl='-Wl,'
8412         # All Alpha code is PIC.
8413         lt_prog_compiler_static='-non_shared'
8414         ;;
8415       esac
8416       ;;
8417
8418     osf3* | osf4* | osf5*)
8419       lt_prog_compiler_wl='-Wl,'
8420       # All OSF/1 code is PIC.
8421       lt_prog_compiler_static='-non_shared'
8422       ;;
8423
8424     solaris*)
8425       lt_prog_compiler_pic='-KPIC'
8426       lt_prog_compiler_static='-Bstatic'
8427       case $cc_basename in
8428       f77* | f90* | f95*)
8429         lt_prog_compiler_wl='-Qoption ld ';;
8430       *)
8431         lt_prog_compiler_wl='-Wl,';;
8432       esac
8433       ;;
8434
8435     sunos4*)
8436       lt_prog_compiler_wl='-Qoption ld '
8437       lt_prog_compiler_pic='-PIC'
8438       lt_prog_compiler_static='-Bstatic'
8439       ;;
8440
8441     sysv4 | sysv4.2uw2* | sysv4.3*)
8442       lt_prog_compiler_wl='-Wl,'
8443       lt_prog_compiler_pic='-KPIC'
8444       lt_prog_compiler_static='-Bstatic'
8445       ;;
8446
8447     sysv4*MP*)
8448       if test -d /usr/nec ;then
8449         lt_prog_compiler_pic='-Kconform_pic'
8450         lt_prog_compiler_static='-Bstatic'
8451       fi
8452       ;;
8453
8454     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455       lt_prog_compiler_wl='-Wl,'
8456       lt_prog_compiler_pic='-KPIC'
8457       lt_prog_compiler_static='-Bstatic'
8458       ;;
8459
8460     unicos*)
8461       lt_prog_compiler_wl='-Wl,'
8462       lt_prog_compiler_can_build_shared=no
8463       ;;
8464
8465     uts4*)
8466       lt_prog_compiler_pic='-pic'
8467       lt_prog_compiler_static='-Bstatic'
8468       ;;
8469
8470     *)
8471       lt_prog_compiler_can_build_shared=no
8472       ;;
8473     esac
8474   fi
8475
8476 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8477 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8478
8479 #
8480 # Check to make sure the PIC flag actually works.
8481 #
8482 if test -n "$lt_prog_compiler_pic"; then
8483
8484 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8486 if test "${lt_prog_compiler_pic_works+set}" = set; then
8487   echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489   lt_prog_compiler_pic_works=no
8490   ac_outfile=conftest.$ac_objext
8491    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8492    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8493    # Insert the option either (1) after the last *FLAGS variable, or
8494    # (2) before a word containing "conftest.", or (3) at the end.
8495    # Note that $ac_compile itself does not contain backslashes and begins
8496    # with a dollar sign (not a hyphen), so the echo should work correctly.
8497    # The option is referenced via a variable to avoid confusing sed.
8498    lt_compile=`echo "$ac_compile" | $SED \
8499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501    -e 's:$: $lt_compiler_flag:'`
8502    (eval echo "\"\$as_me:8502: $lt_compile\"" >&5)
8503    (eval "$lt_compile" 2>conftest.err)
8504    ac_status=$?
8505    cat conftest.err >&5
8506    echo "$as_me:8506: \$? = $ac_status" >&5
8507    if (exit $ac_status) && test -s "$ac_outfile"; then
8508      # The compiler can only warn and ignore the option if not recognized
8509      # So say no if there are warnings other than the usual output.
8510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8511      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513        lt_prog_compiler_pic_works=yes
8514      fi
8515    fi
8516    $rm conftest*
8517
8518 fi
8519 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8520 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8521
8522 if test x"$lt_prog_compiler_pic_works" = xyes; then
8523     case $lt_prog_compiler_pic in
8524      "" | " "*) ;;
8525      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8526      esac
8527 else
8528     lt_prog_compiler_pic=
8529      lt_prog_compiler_can_build_shared=no
8530 fi
8531
8532 fi
8533 case $host_os in
8534   # For platforms which do not support PIC, -DPIC is meaningless:
8535   *djgpp*)
8536     lt_prog_compiler_pic=
8537     ;;
8538   *)
8539     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8540     ;;
8541 esac
8542
8543 #
8544 # Check to make sure the static flag actually works.
8545 #
8546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8547 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8548 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8549 if test "${lt_prog_compiler_static_works+set}" = set; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   lt_prog_compiler_static_works=no
8553    save_LDFLAGS="$LDFLAGS"
8554    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8555    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8556    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8557      # The linker can only warn and ignore the option if not recognized
8558      # So say no if there are warnings
8559      if test -s conftest.err; then
8560        # Append any errors to the config.log.
8561        cat conftest.err 1>&5
8562        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8563        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564        if diff conftest.exp conftest.er2 >/dev/null; then
8565          lt_prog_compiler_static_works=yes
8566        fi
8567      else
8568        lt_prog_compiler_static_works=yes
8569      fi
8570    fi
8571    $rm conftest*
8572    LDFLAGS="$save_LDFLAGS"
8573
8574 fi
8575 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8576 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8577
8578 if test x"$lt_prog_compiler_static_works" = xyes; then
8579     :
8580 else
8581     lt_prog_compiler_static=
8582 fi
8583
8584
8585 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8587 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   lt_cv_prog_compiler_c_o=no
8591    $rm -r conftest 2>/dev/null
8592    mkdir conftest
8593    cd conftest
8594    mkdir out
8595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8596
8597    lt_compiler_flag="-o out/conftest2.$ac_objext"
8598    # Insert the option either (1) after the last *FLAGS variable, or
8599    # (2) before a word containing "conftest.", or (3) at the end.
8600    # Note that $ac_compile itself does not contain backslashes and begins
8601    # with a dollar sign (not a hyphen), so the echo should work correctly.
8602    lt_compile=`echo "$ac_compile" | $SED \
8603    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605    -e 's:$: $lt_compiler_flag:'`
8606    (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607    (eval "$lt_compile" 2>out/conftest.err)
8608    ac_status=$?
8609    cat out/conftest.err >&5
8610    echo "$as_me:8610: \$? = $ac_status" >&5
8611    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612    then
8613      # The compiler can only warn and ignore the option if not recognized
8614      # So say no if there are warnings
8615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618        lt_cv_prog_compiler_c_o=yes
8619      fi
8620    fi
8621    chmod u+w . 2>&5
8622    $rm conftest*
8623    # SGI C++ compiler will create directory out/ii_files/ for
8624    # template instantiation
8625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8626    $rm out/* && rmdir out
8627    cd ..
8628    rmdir conftest
8629    $rm conftest*
8630
8631 fi
8632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8634
8635
8636 hard_links="nottested"
8637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8638   # do not overwrite the value of need_locks provided by the user
8639   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8641   hard_links=yes
8642   $rm conftest*
8643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8644   touch conftest.a
8645   ln conftest.a conftest.b 2>&5 || hard_links=no
8646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8647   { echo "$as_me:$LINENO: result: $hard_links" >&5
8648 echo "${ECHO_T}$hard_links" >&6; }
8649   if test "$hard_links" = no; then
8650     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8652     need_locks=warn
8653   fi
8654 else
8655   need_locks=no
8656 fi
8657
8658 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8660
8661   runpath_var=
8662   allow_undefined_flag=
8663   enable_shared_with_static_runtimes=no
8664   archive_cmds=
8665   archive_expsym_cmds=
8666   old_archive_From_new_cmds=
8667   old_archive_from_expsyms_cmds=
8668   export_dynamic_flag_spec=
8669   whole_archive_flag_spec=
8670   thread_safe_flag_spec=
8671   hardcode_libdir_flag_spec=
8672   hardcode_libdir_flag_spec_ld=
8673   hardcode_libdir_separator=
8674   hardcode_direct=no
8675   hardcode_minus_L=no
8676   hardcode_shlibpath_var=unsupported
8677   link_all_deplibs=unknown
8678   hardcode_automatic=no
8679   module_cmds=
8680   module_expsym_cmds=
8681   always_export_symbols=no
8682   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8683   # include_expsyms should be a list of space-separated symbols to be *always*
8684   # included in the symbol list
8685   include_expsyms=
8686   # exclude_expsyms can be an extended regexp of symbols to exclude
8687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8689   # as well as any symbol that contains `d'.
8690   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8692   # platforms (ab)use it in PIC code, but their linkers get confused if
8693   # the symbol is explicitly referenced.  Since portable code cannot
8694   # rely on this symbol name, it's probably fine to never include it in
8695   # preloaded symbol tables.
8696   extract_expsyms_cmds=
8697   # Just being paranoid about ensuring that cc_basename is set.
8698   for cc_temp in $compiler""; do
8699   case $cc_temp in
8700     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8701     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8702     \-*) ;;
8703     *) break;;
8704   esac
8705 done
8706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8707
8708   case $host_os in
8709   cygwin* | mingw* | pw32*)
8710     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8711     # When not using gcc, we currently assume that we are using
8712     # Microsoft Visual C++.
8713     if test "$GCC" != yes; then
8714       with_gnu_ld=no
8715     fi
8716     ;;
8717   interix*)
8718     # we just hope/assume this is gcc and not c89 (= MSVC++)
8719     with_gnu_ld=yes
8720     ;;
8721   openbsd*)
8722     with_gnu_ld=no
8723     ;;
8724   esac
8725
8726   ld_shlibs=yes
8727   if test "$with_gnu_ld" = yes; then
8728     # If archive_cmds runs LD, not CC, wlarc should be empty
8729     wlarc='${wl}'
8730
8731     # Set some defaults for GNU ld with shared library support. These
8732     # are reset later if shared libraries are not supported. Putting them
8733     # here allows them to be overridden if necessary.
8734     runpath_var=LD_RUN_PATH
8735     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8736     export_dynamic_flag_spec='${wl}--export-dynamic'
8737     # ancient GNU ld didn't support --whole-archive et. al.
8738     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8739         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8740       else
8741         whole_archive_flag_spec=
8742     fi
8743     supports_anon_versioning=no
8744     case `$LD -v 2>/dev/null` in
8745       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8746       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8747       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8748       *\ 2.11.*) ;; # other 2.11 versions
8749       *) supports_anon_versioning=yes ;;
8750     esac
8751
8752     # See if GNU ld supports shared libraries.
8753     case $host_os in
8754     aix3* | aix4* | aix5*)
8755       # On AIX/PPC, the GNU linker is very broken
8756       if test "$host_cpu" != ia64; then
8757         ld_shlibs=no
8758         cat <<EOF 1>&2
8759
8760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8761 *** to be unable to reliably create shared libraries on AIX.
8762 *** Therefore, libtool is disabling shared libraries support.  If you
8763 *** really care for shared libraries, you may want to modify your PATH
8764 *** so that a non-GNU linker is found, and then restart.
8765
8766 EOF
8767       fi
8768       ;;
8769
8770     amigaos*)
8771       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)'
8772       hardcode_libdir_flag_spec='-L$libdir'
8773       hardcode_minus_L=yes
8774
8775       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8776       # that the semantics of dynamic libraries on AmigaOS, at least up
8777       # to version 4, is to share data among multiple programs linked
8778       # with the same dynamic library.  Since this doesn't match the
8779       # behavior of shared libraries on other platforms, we can't use
8780       # them.
8781       ld_shlibs=no
8782       ;;
8783
8784     beos*)
8785       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8786         allow_undefined_flag=unsupported
8787         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8788         # support --undefined.  This deserves some investigation.  FIXME
8789         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790       else
8791         ld_shlibs=no
8792       fi
8793       ;;
8794
8795     cygwin* | mingw* | pw32*)
8796       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8797       # as there is no search path for DLLs.
8798       hardcode_libdir_flag_spec='-L$libdir'
8799       allow_undefined_flag=unsupported
8800       always_export_symbols=no
8801       enable_shared_with_static_runtimes=yes
8802       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8803
8804       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8805         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8806         # If the export-symbols file already is a .def file (1st line
8807         # is EXPORTS), use it as is; otherwise, prepend...
8808         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8809           cp $export_symbols $output_objdir/$soname.def;
8810         else
8811           echo EXPORTS > $output_objdir/$soname.def;
8812           cat $export_symbols >> $output_objdir/$soname.def;
8813         fi~
8814         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8815       else
8816         ld_shlibs=no
8817       fi
8818       ;;
8819
8820     interix3*)
8821       hardcode_direct=no
8822       hardcode_shlibpath_var=no
8823       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824       export_dynamic_flag_spec='${wl}-E'
8825       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8826       # Instead, shared libraries are loaded at an image base (0x10000000 by
8827       # default) and relocated if they conflict, which is a slow very memory
8828       # consuming and fragmenting process.  To avoid this, we pick a random,
8829       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8830       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8831       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8832       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'
8833       ;;
8834
8835     linux* | k*bsd*-gnu)
8836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8837         tmp_addflag=
8838         case $cc_basename,$host_cpu in
8839         pgcc*)                          # Portland Group C compiler
8840           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'
8841           tmp_addflag=' $pic_flag'
8842           ;;
8843         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8844           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'
8845           tmp_addflag=' $pic_flag -Mnomain' ;;
8846         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8847           tmp_addflag=' -i_dynamic' ;;
8848         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8849           tmp_addflag=' -i_dynamic -nofor_main' ;;
8850         ifc* | ifort*)                  # Intel Fortran compiler
8851           tmp_addflag=' -nofor_main' ;;
8852         esac
8853         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854
8855         if test $supports_anon_versioning = yes; then
8856           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8857   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8858   $echo "local: *; };" >> $output_objdir/$libname.ver~
8859           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8860         fi
8861         link_all_deplibs=no
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866
8867     netbsd* | netbsdelf*-gnu)
8868       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8869         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870         wlarc=
8871       else
8872         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874       fi
8875       ;;
8876
8877     solaris*)
8878       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8879         ld_shlibs=no
8880         cat <<EOF 1>&2
8881
8882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883 *** create shared libraries on Solaris systems.  Therefore, libtool
8884 *** is disabling shared libraries support.  We urge you to upgrade GNU
8885 *** binutils to release 2.9.1 or newer.  Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8888
8889 EOF
8890       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8891         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893       else
8894         ld_shlibs=no
8895       fi
8896       ;;
8897
8898     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899       case `$LD -v 2>&1` in
8900         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901         ld_shlibs=no
8902         cat <<_LT_EOF 1>&2
8903
8904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8906 *** is disabling shared libraries support.  We urge you to upgrade GNU
8907 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8908 *** your PATH or compiler configuration so that the native linker is
8909 *** used, and then restart.
8910
8911 _LT_EOF
8912         ;;
8913         *)
8914           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8915             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8916             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8917             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8918           else
8919             ld_shlibs=no
8920           fi
8921         ;;
8922       esac
8923       ;;
8924
8925     sunos4*)
8926       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8927       wlarc=
8928       hardcode_direct=yes
8929       hardcode_shlibpath_var=no
8930       ;;
8931
8932     *)
8933       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8934         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936       else
8937         ld_shlibs=no
8938       fi
8939       ;;
8940     esac
8941
8942     if test "$ld_shlibs" = no; then
8943       runpath_var=
8944       hardcode_libdir_flag_spec=
8945       export_dynamic_flag_spec=
8946       whole_archive_flag_spec=
8947     fi
8948   else
8949     # PORTME fill in a description of your system's linker (not GNU ld)
8950     case $host_os in
8951     aix3*)
8952       allow_undefined_flag=unsupported
8953       always_export_symbols=yes
8954       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'
8955       # Note: this linker hardcodes the directories in LIBPATH if there
8956       # are no directories specified by -L.
8957       hardcode_minus_L=yes
8958       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8959         # Neither direct hardcoding nor static linking is supported with a
8960         # broken collect2.
8961         hardcode_direct=unsupported
8962       fi
8963       ;;
8964
8965     aix4* | aix5*)
8966       if test "$host_cpu" = ia64; then
8967         # On IA64, the linker does run time linking by default, so we don't
8968         # have to do anything special.
8969         aix_use_runtimelinking=no
8970         exp_sym_flag='-Bexport'
8971         no_entry_flag=""
8972       else
8973         # If we're using GNU nm, then we don't want the "-C" option.
8974         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8975         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8976           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'
8977         else
8978           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'
8979         fi
8980         aix_use_runtimelinking=no
8981
8982         # Test if we are trying to use run time linking or normal
8983         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8984         # need to do runtime linking.
8985         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8986           for ld_flag in $LDFLAGS; do
8987           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8988             aix_use_runtimelinking=yes
8989             break
8990           fi
8991           done
8992           ;;
8993         esac
8994
8995         exp_sym_flag='-bexport'
8996         no_entry_flag='-bnoentry'
8997       fi
8998
8999       # When large executables or shared objects are built, AIX ld can
9000       # have problems creating the table of contents.  If linking a library
9001       # or program results in "error TOC overflow" add -mminimal-toc to
9002       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9003       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9004
9005       archive_cmds=''
9006       hardcode_direct=yes
9007       hardcode_libdir_separator=':'
9008       link_all_deplibs=yes
9009
9010       if test "$GCC" = yes; then
9011         case $host_os in aix4.[012]|aix4.[012].*)
9012         # We only want to do this on AIX 4.2 and lower, the check
9013         # below for broken collect2 doesn't work under 4.3+
9014           collect2name=`${CC} -print-prog-name=collect2`
9015           if test -f "$collect2name" && \
9016            strings "$collect2name" | grep resolve_lib_name >/dev/null
9017           then
9018           # We have reworked collect2
9019           hardcode_direct=yes
9020           else
9021           # We have old collect2
9022           hardcode_direct=unsupported
9023           # It fails to find uninstalled libraries when the uninstalled
9024           # path is not listed in the libpath.  Setting hardcode_minus_L
9025           # to unsupported forces relinking
9026           hardcode_minus_L=yes
9027           hardcode_libdir_flag_spec='-L$libdir'
9028           hardcode_libdir_separator=
9029           fi
9030           ;;
9031         esac
9032         shared_flag='-shared'
9033         if test "$aix_use_runtimelinking" = yes; then
9034           shared_flag="$shared_flag "'${wl}-G'
9035         fi
9036       else
9037         # not using gcc
9038         if test "$host_cpu" = ia64; then
9039         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9040         # chokes on -Wl,-G. The following line is correct:
9041           shared_flag='-G'
9042         else
9043           if test "$aix_use_runtimelinking" = yes; then
9044             shared_flag='${wl}-G'
9045           else
9046             shared_flag='${wl}-bM:SRE'
9047           fi
9048         fi
9049       fi
9050
9051       # It seems that -bexpall does not export symbols beginning with
9052       # underscore (_), so it is better to generate a list of symbols to export.
9053       always_export_symbols=yes
9054       if test "$aix_use_runtimelinking" = yes; then
9055         # Warning - without using the other runtime loading flags (-brtl),
9056         # -berok will link without error, but may produce a broken library.
9057         allow_undefined_flag='-berok'
9058        # Determine the default libpath from the value encoded in an empty executable.
9059        cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h.  */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h.  */
9065
9066 int
9067 main ()
9068 {
9069
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076   (eval $ac_link) 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; } &&
9089          { ac_try='test -s conftest$ac_exeext'
9090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091   (eval $ac_try) 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; }; then
9095
9096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9097 }'`
9098 # Check for a 64-bit object if we didn't find anything.
9099 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; }
9100 }'`; fi
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105
9106 fi
9107
9108 rm -f conftest.err conftest.$ac_objext \
9109       conftest$ac_exeext conftest.$ac_ext
9110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9111
9112        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113         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"
9114        else
9115         if test "$host_cpu" = ia64; then
9116           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9117           allow_undefined_flag="-z nodefs"
9118           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"
9119         else
9120          # Determine the default libpath from the value encoded in an empty executable.
9121          cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 int
9129 main ()
9130 {
9131
9132   ;
9133   return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138   (eval $ac_link) 2>conftest.er1
9139   ac_status=$?
9140   grep -v '^ *+' conftest.er1 >conftest.err
9141   rm -f conftest.er1
9142   cat conftest.err >&5
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); } &&
9145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; } &&
9151          { ac_try='test -s conftest$ac_exeext'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; }; then
9157
9158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9159 }'`
9160 # Check for a 64-bit object if we didn't find anything.
9161 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; }
9162 }'`; fi
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167
9168 fi
9169
9170 rm -f conftest.err conftest.$ac_objext \
9171       conftest$ac_exeext conftest.$ac_ext
9172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9173
9174          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9175           # Warning - without using the other run time loading flags,
9176           # -berok will link without error, but may produce a broken library.
9177           no_undefined_flag=' ${wl}-bernotok'
9178           allow_undefined_flag=' ${wl}-berok'
9179           # Exported symbols can be pulled into shared objects from archives
9180           whole_archive_flag_spec='$convenience'
9181           archive_cmds_need_lc=yes
9182           # This is similar to how AIX traditionally builds its shared libraries.
9183           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'
9184         fi
9185       fi
9186       ;;
9187
9188     amigaos*)
9189       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)'
9190       hardcode_libdir_flag_spec='-L$libdir'
9191       hardcode_minus_L=yes
9192       # see comment about different semantics on the GNU ld section
9193       ld_shlibs=no
9194       ;;
9195
9196     bsdi[45]*)
9197       export_dynamic_flag_spec=-rdynamic
9198       ;;
9199
9200     cygwin* | mingw* | pw32*)
9201       # When not using gcc, we currently assume that we are using
9202       # Microsoft Visual C++.
9203       # hardcode_libdir_flag_spec is actually meaningless, as there is
9204       # no search path for DLLs.
9205       hardcode_libdir_flag_spec=' '
9206       allow_undefined_flag=unsupported
9207       # Tell ltmain to make .lib files, not .a files.
9208       libext=lib
9209       # Tell ltmain to make .dll files, not .so files.
9210       shrext_cmds=".dll"
9211       # FIXME: Setting linknames here is a bad hack.
9212       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9213       # The linker will automatically build a .lib file if we build a DLL.
9214       old_archive_From_new_cmds='true'
9215       # FIXME: Should let the user specify the lib program.
9216       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9217       fix_srcfile_path='`cygpath -w "$srcfile"`'
9218       enable_shared_with_static_runtimes=yes
9219       ;;
9220
9221     darwin* | rhapsody*)
9222       case $host_os in
9223         rhapsody* | darwin1.[012])
9224          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9225          ;;
9226        *) # Darwin 1.3 on
9227          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9228            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9229          else
9230            case ${MACOSX_DEPLOYMENT_TARGET} in
9231              10.[012])
9232                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9233                ;;
9234              10.*)
9235                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9236                ;;
9237            esac
9238          fi
9239          ;;
9240       esac
9241       archive_cmds_need_lc=no
9242       hardcode_direct=no
9243       hardcode_automatic=yes
9244       hardcode_shlibpath_var=unsupported
9245       whole_archive_flag_spec=''
9246       link_all_deplibs=yes
9247     if test "$GCC" = yes ; then
9248         output_verbose_link_cmd='echo'
9249         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9250       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9251       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9252       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}'
9253       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}'
9254     else
9255       case $cc_basename in
9256         xlc*)
9257          output_verbose_link_cmd='echo'
9258          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9259          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9260           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9261          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}'
9262           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}'
9263           ;;
9264        *)
9265          ld_shlibs=no
9266           ;;
9267       esac
9268     fi
9269       ;;
9270
9271     dgux*)
9272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273       hardcode_libdir_flag_spec='-L$libdir'
9274       hardcode_shlibpath_var=no
9275       ;;
9276
9277     freebsd1*)
9278       ld_shlibs=no
9279       ;;
9280
9281     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9282     # support.  Future versions do this automatically, but an explicit c++rt0.o
9283     # does not break anything, and helps significantly (at the cost of a little
9284     # extra space).
9285     freebsd2.2*)
9286       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9287       hardcode_libdir_flag_spec='-R$libdir'
9288       hardcode_direct=yes
9289       hardcode_shlibpath_var=no
9290       ;;
9291
9292     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9293     freebsd2*)
9294       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9295       hardcode_direct=yes
9296       hardcode_minus_L=yes
9297       hardcode_shlibpath_var=no
9298       ;;
9299
9300     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9301     freebsd* | dragonfly*)
9302       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9303       hardcode_libdir_flag_spec='-R$libdir'
9304       hardcode_direct=yes
9305       hardcode_shlibpath_var=no
9306       ;;
9307
9308     hpux9*)
9309       if test "$GCC" = yes; then
9310         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'
9311       else
9312         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'
9313       fi
9314       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9315       hardcode_libdir_separator=:
9316       hardcode_direct=yes
9317
9318       # hardcode_minus_L: Not really in the search PATH,
9319       # but as the default location of the library.
9320       hardcode_minus_L=yes
9321       export_dynamic_flag_spec='${wl}-E'
9322       ;;
9323
9324     hpux10*)
9325       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9326         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9327       else
9328         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9329       fi
9330       if test "$with_gnu_ld" = no; then
9331         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9332         hardcode_libdir_separator=:
9333
9334         hardcode_direct=yes
9335         export_dynamic_flag_spec='${wl}-E'
9336
9337         # hardcode_minus_L: Not really in the search PATH,
9338         # but as the default location of the library.
9339         hardcode_minus_L=yes
9340       fi
9341       ;;
9342
9343     hpux11*)
9344       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9345         case $host_cpu in
9346         hppa*64*)
9347           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9348           ;;
9349         ia64*)
9350           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9351           ;;
9352         *)
9353           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354           ;;
9355         esac
9356       else
9357         case $host_cpu in
9358         hppa*64*)
9359           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9360           ;;
9361         ia64*)
9362           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9363           ;;
9364         *)
9365           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9366           ;;
9367         esac
9368       fi
9369       if test "$with_gnu_ld" = no; then
9370         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371         hardcode_libdir_separator=:
9372
9373         case $host_cpu in
9374         hppa*64*|ia64*)
9375           hardcode_libdir_flag_spec_ld='+b $libdir'
9376           hardcode_direct=no
9377           hardcode_shlibpath_var=no
9378           ;;
9379         *)
9380           hardcode_direct=yes
9381           export_dynamic_flag_spec='${wl}-E'
9382
9383           # hardcode_minus_L: Not really in the search PATH,
9384           # but as the default location of the library.
9385           hardcode_minus_L=yes
9386           ;;
9387         esac
9388       fi
9389       ;;
9390
9391     irix5* | irix6* | nonstopux*)
9392       if test "$GCC" = yes; then
9393         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'
9394       else
9395         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'
9396         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9397       fi
9398       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9399       hardcode_libdir_separator=:
9400       link_all_deplibs=yes
9401       ;;
9402
9403     netbsd* | netbsdelf*-gnu)
9404       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9405         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9406       else
9407         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9408       fi
9409       hardcode_libdir_flag_spec='-R$libdir'
9410       hardcode_direct=yes
9411       hardcode_shlibpath_var=no
9412       ;;
9413
9414     newsos6)
9415       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416       hardcode_direct=yes
9417       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418       hardcode_libdir_separator=:
9419       hardcode_shlibpath_var=no
9420       ;;
9421
9422     openbsd*)
9423       hardcode_direct=yes
9424       hardcode_shlibpath_var=no
9425       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9426         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9427         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9428         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429         export_dynamic_flag_spec='${wl}-E'
9430       else
9431        case $host_os in
9432          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9433            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434            hardcode_libdir_flag_spec='-R$libdir'
9435            ;;
9436          *)
9437            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9438            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9439            ;;
9440        esac
9441       fi
9442       ;;
9443
9444     os2*)
9445       hardcode_libdir_flag_spec='-L$libdir'
9446       hardcode_minus_L=yes
9447       allow_undefined_flag=unsupported
9448       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'
9449       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9450       ;;
9451
9452     osf3*)
9453       if test "$GCC" = yes; then
9454         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9455         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'
9456       else
9457         allow_undefined_flag=' -expect_unresolved \*'
9458         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'
9459       fi
9460       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461       hardcode_libdir_separator=:
9462       ;;
9463
9464     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9465       if test "$GCC" = yes; then
9466         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9467         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'
9468         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469       else
9470         allow_undefined_flag=' -expect_unresolved \*'
9471         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'
9472         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9473         $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'
9474
9475         # Both c and cxx compiler support -rpath directly
9476         hardcode_libdir_flag_spec='-rpath $libdir'
9477       fi
9478       hardcode_libdir_separator=:
9479       ;;
9480
9481     solaris*)
9482       no_undefined_flag=' -z text'
9483       if test "$GCC" = yes; then
9484         wlarc='${wl}'
9485         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9487           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9488       else
9489         wlarc=''
9490         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9492         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9493       fi
9494       hardcode_libdir_flag_spec='-R$libdir'
9495       hardcode_shlibpath_var=no
9496       case $host_os in
9497       solaris2.[0-5] | solaris2.[0-5].*) ;;
9498       *)
9499         # The compiler driver will combine linker options so we
9500         # cannot just pass the convience library names through
9501         # without $wl, iff we do not link with $LD.
9502         # Luckily, gcc supports the same syntax we need for Sun Studio.
9503         # Supported since Solaris 2.6 (maybe 2.5.1?)
9504         case $wlarc in
9505         '')
9506           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9507         *)
9508           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' ;;
9509         esac ;;
9510       esac
9511       link_all_deplibs=yes
9512       ;;
9513
9514     sunos4*)
9515       if test "x$host_vendor" = xsequent; then
9516         # Use $CC to link under sequent, because it throws in some extra .o
9517         # files that make .init and .fini sections work.
9518         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9519       else
9520         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9521       fi
9522       hardcode_libdir_flag_spec='-L$libdir'
9523       hardcode_direct=yes
9524       hardcode_minus_L=yes
9525       hardcode_shlibpath_var=no
9526       ;;
9527
9528     sysv4)
9529       case $host_vendor in
9530         sni)
9531           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532           hardcode_direct=yes # is this really true???
9533         ;;
9534         siemens)
9535           ## LD is ld it makes a PLAMLIB
9536           ## CC just makes a GrossModule.
9537           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9538           reload_cmds='$CC -r -o $output$reload_objs'
9539           hardcode_direct=no
9540         ;;
9541         motorola)
9542           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9544         ;;
9545       esac
9546       runpath_var='LD_RUN_PATH'
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     sysv4.3*)
9551       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552       hardcode_shlibpath_var=no
9553       export_dynamic_flag_spec='-Bexport'
9554       ;;
9555
9556     sysv4*MP*)
9557       if test -d /usr/nec; then
9558         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559         hardcode_shlibpath_var=no
9560         runpath_var=LD_RUN_PATH
9561         hardcode_runpath_var=yes
9562         ld_shlibs=yes
9563       fi
9564       ;;
9565
9566     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9567       no_undefined_flag='${wl}-z,text'
9568       archive_cmds_need_lc=no
9569       hardcode_shlibpath_var=no
9570       runpath_var='LD_RUN_PATH'
9571
9572       if test "$GCC" = yes; then
9573         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575       else
9576         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578       fi
9579       ;;
9580
9581     sysv5* | sco3.2v5* | sco5v6*)
9582       # Note: We can NOT use -z defs as we might desire, because we do not
9583       # link with -lc, and that would cause any symbols used from libc to
9584       # always be unresolved, which means just about no library would
9585       # ever link correctly.  If we're not using GNU ld we use -z text
9586       # though, which does catch some bad symbols but isn't as heavy-handed
9587       # as -z defs.
9588       no_undefined_flag='${wl}-z,text'
9589       allow_undefined_flag='${wl}-z,nodefs'
9590       archive_cmds_need_lc=no
9591       hardcode_shlibpath_var=no
9592       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9593       hardcode_libdir_separator=':'
9594       link_all_deplibs=yes
9595       export_dynamic_flag_spec='${wl}-Bexport'
9596       runpath_var='LD_RUN_PATH'
9597
9598       if test "$GCC" = yes; then
9599         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9601       else
9602         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604       fi
9605       ;;
9606
9607     uts4*)
9608       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609       hardcode_libdir_flag_spec='-L$libdir'
9610       hardcode_shlibpath_var=no
9611       ;;
9612
9613     *)
9614       ld_shlibs=no
9615       ;;
9616     esac
9617   fi
9618
9619 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9620 echo "${ECHO_T}$ld_shlibs" >&6; }
9621 test "$ld_shlibs" = no && can_build_shared=no
9622
9623 #
9624 # Do we need to explicitly link libc?
9625 #
9626 case "x$archive_cmds_need_lc" in
9627 x|xyes)
9628   # Assume -lc should be added
9629   archive_cmds_need_lc=yes
9630
9631   if test "$enable_shared" = yes && test "$GCC" = yes; then
9632     case $archive_cmds in
9633     *'~'*)
9634       # FIXME: we may have to deal with multi-command sequences.
9635       ;;
9636     '$CC '*)
9637       # Test whether the compiler implicitly links with -lc since on some
9638       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9639       # to ld, don't add -lc before -lgcc.
9640       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9642       $rm conftest*
9643       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9644
9645       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9646   (eval $ac_compile) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); } 2>conftest.err; then
9650         soname=conftest
9651         lib=conftest
9652         libobjs=conftest.$ac_objext
9653         deplibs=
9654         wl=$lt_prog_compiler_wl
9655         pic_flag=$lt_prog_compiler_pic
9656         compiler_flags=-v
9657         linker_flags=-v
9658         verstring=
9659         output_objdir=.
9660         libname=conftest
9661         lt_save_allow_undefined_flag=$allow_undefined_flag
9662         allow_undefined_flag=
9663         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9664   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }
9668         then
9669           archive_cmds_need_lc=no
9670         else
9671           archive_cmds_need_lc=yes
9672         fi
9673         allow_undefined_flag=$lt_save_allow_undefined_flag
9674       else
9675         cat conftest.err 1>&5
9676       fi
9677       $rm conftest*
9678       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9679 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9680       ;;
9681     esac
9682   fi
9683   ;;
9684 esac
9685
9686 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9687 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9688 library_names_spec=
9689 libname_spec='lib$name'
9690 soname_spec=
9691 shrext_cmds=".so"
9692 postinstall_cmds=
9693 postuninstall_cmds=
9694 finish_cmds=
9695 finish_eval=
9696 shlibpath_var=
9697 shlibpath_overrides_runpath=unknown
9698 version_type=none
9699 dynamic_linker="$host_os ld.so"
9700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9701 if test "$GCC" = yes; then
9702   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9703   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9704     # if the path contains ";" then we assume it to be the separator
9705     # otherwise default to the standard path separator (i.e. ":") - it is
9706     # assumed that no part of a normal pathname contains ";" but that should
9707     # okay in the real world where ";" in dirpaths is itself problematic.
9708     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9709   else
9710     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9711   fi
9712 else
9713   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9714 fi
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9717
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9721
9722 case $host_os in
9723 aix3*)
9724   version_type=linux
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726   shlibpath_var=LIBPATH
9727
9728   # AIX 3 has no versioning support, so we append a major version to the name.
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   ;;
9731
9732 aix4* | aix5*)
9733   version_type=linux
9734   need_lib_prefix=no
9735   need_version=no
9736   hardcode_into_libs=yes
9737   if test "$host_cpu" = ia64; then
9738     # AIX 5 supports IA64
9739     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740     shlibpath_var=LD_LIBRARY_PATH
9741   else
9742     # With GCC up to 2.95.x, collect2 would create an import file
9743     # for dependence libraries.  The import file would start with
9744     # the line `#! .'.  This would cause the generated library to
9745     # depend on `.', always an invalid library.  This was fixed in
9746     # development snapshots of GCC prior to 3.0.
9747     case $host_os in
9748       aix4 | aix4.[01] | aix4.[01].*)
9749       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750            echo ' yes '
9751            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9752         :
9753       else
9754         can_build_shared=no
9755       fi
9756       ;;
9757     esac
9758     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759     # soname into executable. Probably we can add versioning support to
9760     # collect2, so additional links can be useful in future.
9761     if test "$aix_use_runtimelinking" = yes; then
9762       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763       # instead of lib<name>.a to let people know that these are not
9764       # typical AIX shared libraries.
9765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766     else
9767       # We preserve .a as extension for shared libraries through AIX4.2
9768       # and later when we are not doing run time linking.
9769       library_names_spec='${libname}${release}.a $libname.a'
9770       soname_spec='${libname}${release}${shared_ext}$major'
9771     fi
9772     shlibpath_var=LIBPATH
9773   fi
9774   ;;
9775
9776 amigaos*)
9777   library_names_spec='$libname.ixlibrary $libname.a'
9778   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9779   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'
9780   ;;
9781
9782 beos*)
9783   library_names_spec='${libname}${shared_ext}'
9784   dynamic_linker="$host_os ld.so"
9785   shlibpath_var=LIBRARY_PATH
9786   ;;
9787
9788 bsdi[45]*)
9789   version_type=linux
9790   need_version=no
9791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792   soname_spec='${libname}${release}${shared_ext}$major'
9793   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9794   shlibpath_var=LD_LIBRARY_PATH
9795   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9796   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9797   # the default ld.so.conf also contains /usr/contrib/lib and
9798   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9799   # libtool to hard-code these into programs
9800   ;;
9801
9802 cygwin* | mingw* | pw32*)
9803   version_type=windows
9804   shrext_cmds=".dll"
9805   need_version=no
9806   need_lib_prefix=no
9807
9808   case $GCC,$host_os in
9809   yes,cygwin* | yes,mingw* | yes,pw32*)
9810     library_names_spec='$libname.dll.a'
9811     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9812     postinstall_cmds='base_file=`basename \${file}`~
9813       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9814       dldir=$destdir/`dirname \$dlpath`~
9815       test -d \$dldir || mkdir -p \$dldir~
9816       $install_prog $dir/$dlname \$dldir/$dlname~
9817       chmod a+x \$dldir/$dlname'
9818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9819       dlpath=$dir/\$dldll~
9820        $rm \$dlpath'
9821     shlibpath_overrides_runpath=yes
9822
9823     case $host_os in
9824     cygwin*)
9825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9828       ;;
9829     mingw*)
9830       # MinGW DLLs use traditional 'lib' prefix
9831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9834         # It is most probably a Windows format PATH printed by
9835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9836         # path with ; separators, and with drive letters. We can handle the
9837         # drive letters (cygwin fileutils understands them), so leave them,
9838         # especially as we might pass files found there to a mingw objdump,
9839         # which wouldn't understand a cygwinified path. Ahh.
9840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9841       else
9842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9843       fi
9844       ;;
9845     pw32*)
9846       # pw32 DLLs use 'pw' prefix rather than 'lib'
9847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9848       ;;
9849     esac
9850     ;;
9851
9852   *)
9853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9854     ;;
9855   esac
9856   dynamic_linker='Win32 ld.exe'
9857   # FIXME: first we should search . and the directory the executable is in
9858   shlibpath_var=PATH
9859   ;;
9860
9861 darwin* | rhapsody*)
9862   dynamic_linker="$host_os dyld"
9863   version_type=darwin
9864   need_lib_prefix=no
9865   need_version=no
9866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9867   soname_spec='${libname}${release}${major}$shared_ext'
9868   shlibpath_overrides_runpath=yes
9869   shlibpath_var=DYLD_LIBRARY_PATH
9870   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9872   if test "$GCC" = yes; then
9873     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"`
9874   else
9875     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9876   fi
9877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9878   ;;
9879
9880 dgux*)
9881   version_type=linux
9882   need_lib_prefix=no
9883   need_version=no
9884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9885   soname_spec='${libname}${release}${shared_ext}$major'
9886   shlibpath_var=LD_LIBRARY_PATH
9887   ;;
9888
9889 freebsd1*)
9890   dynamic_linker=no
9891   ;;
9892
9893 freebsd* | dragonfly*)
9894   # DragonFly does not have aout.  When/if they implement a new
9895   # versioning mechanism, adjust this.
9896   if test -x /usr/bin/objformat; then
9897     objformat=`/usr/bin/objformat`
9898   else
9899     case $host_os in
9900     freebsd[123]*) objformat=aout ;;
9901     *) objformat=elf ;;
9902     esac
9903   fi
9904   version_type=freebsd-$objformat
9905   case $version_type in
9906     freebsd-elf*)
9907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9908       need_version=no
9909       need_lib_prefix=no
9910       ;;
9911     freebsd-*)
9912       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9913       need_version=yes
9914       ;;
9915   esac
9916   shlibpath_var=LD_LIBRARY_PATH
9917   case $host_os in
9918   freebsd2*)
9919     shlibpath_overrides_runpath=yes
9920     ;;
9921   freebsd3.[01]* | freebsdelf3.[01]*)
9922     shlibpath_overrides_runpath=yes
9923     hardcode_into_libs=yes
9924     ;;
9925   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9926   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9927     shlibpath_overrides_runpath=no
9928     hardcode_into_libs=yes
9929     ;;
9930   freebsd*) # from 4.6 on
9931     shlibpath_overrides_runpath=yes
9932     hardcode_into_libs=yes
9933     ;;
9934   esac
9935   ;;
9936
9937 gnu*)
9938   version_type=linux
9939   need_lib_prefix=no
9940   need_version=no
9941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9942   soname_spec='${libname}${release}${shared_ext}$major'
9943   shlibpath_var=LD_LIBRARY_PATH
9944   hardcode_into_libs=yes
9945   ;;
9946
9947 hpux9* | hpux10* | hpux11*)
9948   # Give a soname corresponding to the major version so that dld.sl refuses to
9949   # link against other versions.
9950   version_type=sunos
9951   need_lib_prefix=no
9952   need_version=no
9953   case $host_cpu in
9954   ia64*)
9955     shrext_cmds='.so'
9956     hardcode_into_libs=yes
9957     dynamic_linker="$host_os dld.so"
9958     shlibpath_var=LD_LIBRARY_PATH
9959     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961     soname_spec='${libname}${release}${shared_ext}$major'
9962     if test "X$HPUX_IA64_MODE" = X32; then
9963       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9964     else
9965       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9966     fi
9967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9968     ;;
9969    hppa*64*)
9970      shrext_cmds='.sl'
9971      hardcode_into_libs=yes
9972      dynamic_linker="$host_os dld.sl"
9973      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9974      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9975      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976      soname_spec='${libname}${release}${shared_ext}$major'
9977      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9978      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9979      ;;
9980    *)
9981     shrext_cmds='.sl'
9982     dynamic_linker="$host_os dld.sl"
9983     shlibpath_var=SHLIB_PATH
9984     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986     soname_spec='${libname}${release}${shared_ext}$major'
9987     ;;
9988   esac
9989   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9990   postinstall_cmds='chmod 555 $lib'
9991   ;;
9992
9993 interix3*)
9994   version_type=linux
9995   need_lib_prefix=no
9996   need_version=no
9997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9998   soname_spec='${libname}${release}${shared_ext}$major'
9999   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10000   shlibpath_var=LD_LIBRARY_PATH
10001   shlibpath_overrides_runpath=no
10002   hardcode_into_libs=yes
10003   ;;
10004
10005 irix5* | irix6* | nonstopux*)
10006   case $host_os in
10007     nonstopux*) version_type=nonstopux ;;
10008     *)
10009         if test "$lt_cv_prog_gnu_ld" = yes; then
10010                 version_type=linux
10011         else
10012                 version_type=irix
10013         fi ;;
10014   esac
10015   need_lib_prefix=no
10016   need_version=no
10017   soname_spec='${libname}${release}${shared_ext}$major'
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10019   case $host_os in
10020   irix5* | nonstopux*)
10021     libsuff= shlibsuff=
10022     ;;
10023   *)
10024     case $LD in # libtool.m4 will add one of these switches to LD
10025     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10026       libsuff= shlibsuff= libmagic=32-bit;;
10027     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10028       libsuff=32 shlibsuff=N32 libmagic=N32;;
10029     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10030       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10031     *) libsuff= shlibsuff= libmagic=never-match;;
10032     esac
10033     ;;
10034   esac
10035   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10036   shlibpath_overrides_runpath=no
10037   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10038   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10039   hardcode_into_libs=yes
10040   ;;
10041
10042 # No shared lib support for Linux oldld, aout, or coff.
10043 linux*oldld* | linux*aout* | linux*coff*)
10044   dynamic_linker=no
10045   ;;
10046
10047 # This must be Linux ELF.
10048 linux* | k*bsd*-gnu)
10049   version_type=linux
10050   need_lib_prefix=no
10051   need_version=no
10052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053   soname_spec='${libname}${release}${shared_ext}$major'
10054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   shlibpath_overrides_runpath=no
10057   # This implies no fast_install, which is unacceptable.
10058   # Some rework will be needed to allow for fast_install
10059   # before this can be enabled.
10060   hardcode_into_libs=yes
10061
10062   # Append ld.so.conf contents to the search path
10063   if test -f /etc/ld.so.conf; then
10064     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' ' '`
10065     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10066   fi
10067
10068   # We used to test for /lib/ld.so.1 and disable shared libraries on
10069   # powerpc, because MkLinux only supported shared libraries with the
10070   # GNU dynamic linker.  Since this was broken with cross compilers,
10071   # most powerpc-linux boxes support dynamic linking these days and
10072   # people can always --disable-shared, the test was removed, and we
10073   # assume the GNU/Linux dynamic linker is in use.
10074   dynamic_linker='GNU/Linux ld.so'
10075   ;;
10076
10077 netbsdelf*-gnu)
10078   version_type=linux
10079   need_lib_prefix=no
10080   need_version=no
10081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082   soname_spec='${libname}${release}${shared_ext}$major'
10083   shlibpath_var=LD_LIBRARY_PATH
10084   shlibpath_overrides_runpath=no
10085   hardcode_into_libs=yes
10086   dynamic_linker='NetBSD ld.elf_so'
10087   ;;
10088
10089 netbsd*)
10090   version_type=sunos
10091   need_lib_prefix=no
10092   need_version=no
10093   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10095     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10096     dynamic_linker='NetBSD (a.out) ld.so'
10097   else
10098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099     soname_spec='${libname}${release}${shared_ext}$major'
10100     dynamic_linker='NetBSD ld.elf_so'
10101   fi
10102   shlibpath_var=LD_LIBRARY_PATH
10103   shlibpath_overrides_runpath=yes
10104   hardcode_into_libs=yes
10105   ;;
10106
10107 newsos6)
10108   version_type=linux
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110   shlibpath_var=LD_LIBRARY_PATH
10111   shlibpath_overrides_runpath=yes
10112   ;;
10113
10114 nto-qnx*)
10115   version_type=linux
10116   need_lib_prefix=no
10117   need_version=no
10118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119   soname_spec='${libname}${release}${shared_ext}$major'
10120   shlibpath_var=LD_LIBRARY_PATH
10121   shlibpath_overrides_runpath=yes
10122   ;;
10123
10124 openbsd*)
10125   version_type=sunos
10126   sys_lib_dlsearch_path_spec="/usr/lib"
10127   need_lib_prefix=no
10128   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10129   case $host_os in
10130     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10131     *)                         need_version=no  ;;
10132   esac
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10137     case $host_os in
10138       openbsd2.[89] | openbsd2.[89].*)
10139         shlibpath_overrides_runpath=no
10140         ;;
10141       *)
10142         shlibpath_overrides_runpath=yes
10143         ;;
10144       esac
10145   else
10146     shlibpath_overrides_runpath=yes
10147   fi
10148   ;;
10149
10150 os2*)
10151   libname_spec='$name'
10152   shrext_cmds=".dll"
10153   need_lib_prefix=no
10154   library_names_spec='$libname${shared_ext} $libname.a'
10155   dynamic_linker='OS/2 ld.exe'
10156   shlibpath_var=LIBPATH
10157   ;;
10158
10159 osf3* | osf4* | osf5*)
10160   version_type=osf
10161   need_lib_prefix=no
10162   need_version=no
10163   soname_spec='${libname}${release}${shared_ext}$major'
10164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165   shlibpath_var=LD_LIBRARY_PATH
10166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10168   ;;
10169
10170 solaris*)
10171   version_type=linux
10172   need_lib_prefix=no
10173   need_version=no
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=yes
10178   hardcode_into_libs=yes
10179   # ldd complains unless libraries are executable
10180   postinstall_cmds='chmod +x $lib'
10181   ;;
10182
10183 sunos4*)
10184   version_type=sunos
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   shlibpath_overrides_runpath=yes
10189   if test "$with_gnu_ld" = yes; then
10190     need_lib_prefix=no
10191   fi
10192   need_version=yes
10193   ;;
10194
10195 sysv4 | sysv4.3*)
10196   version_type=linux
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   case $host_vendor in
10201     sni)
10202       shlibpath_overrides_runpath=no
10203       need_lib_prefix=no
10204       export_dynamic_flag_spec='${wl}-Blargedynsym'
10205       runpath_var=LD_RUN_PATH
10206       ;;
10207     siemens)
10208       need_lib_prefix=no
10209       ;;
10210     motorola)
10211       need_lib_prefix=no
10212       need_version=no
10213       shlibpath_overrides_runpath=no
10214       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10215       ;;
10216   esac
10217   ;;
10218
10219 sysv4*MP*)
10220   if test -d /usr/nec ;then
10221     version_type=linux
10222     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10223     soname_spec='$libname${shared_ext}.$major'
10224     shlibpath_var=LD_LIBRARY_PATH
10225   fi
10226   ;;
10227
10228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10229   version_type=freebsd-elf
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   hardcode_into_libs=yes
10236   if test "$with_gnu_ld" = yes; then
10237     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10238     shlibpath_overrides_runpath=no
10239   else
10240     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10241     shlibpath_overrides_runpath=yes
10242     case $host_os in
10243       sco3.2v5*)
10244         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10245         ;;
10246     esac
10247   fi
10248   sys_lib_dlsearch_path_spec='/usr/lib'
10249   ;;
10250
10251 uts4*)
10252   version_type=linux
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   ;;
10257
10258 *)
10259   dynamic_linker=no
10260   ;;
10261 esac
10262 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10263 echo "${ECHO_T}$dynamic_linker" >&6; }
10264 test "$dynamic_linker" = no && can_build_shared=no
10265
10266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10267 if test "$GCC" = yes; then
10268   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10269 fi
10270
10271 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10273 hardcode_action=
10274 if test -n "$hardcode_libdir_flag_spec" || \
10275    test -n "$runpath_var" || \
10276    test "X$hardcode_automatic" = "Xyes" ; then
10277
10278   # We can hardcode non-existant directories.
10279   if test "$hardcode_direct" != no &&
10280      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10281      # have to relink, otherwise we might link with an installed library
10282      # when we should be linking with a yet-to-be-installed one
10283      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10284      test "$hardcode_minus_L" != no; then
10285     # Linking always hardcodes the temporary library directory.
10286     hardcode_action=relink
10287   else
10288     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10289     hardcode_action=immediate
10290   fi
10291 else
10292   # We cannot hardcode anything, or else we can only hardcode existing
10293   # directories.
10294   hardcode_action=unsupported
10295 fi
10296 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10297 echo "${ECHO_T}$hardcode_action" >&6; }
10298
10299 if test "$hardcode_action" = relink; then
10300   # Fast installation is not supported
10301   enable_fast_install=no
10302 elif test "$shlibpath_overrides_runpath" = yes ||
10303      test "$enable_shared" = no; then
10304   # Fast installation is not necessary
10305   enable_fast_install=needless
10306 fi
10307
10308 striplib=
10309 old_striplib=
10310 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10311 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10312 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10313   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10314   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10315   { echo "$as_me:$LINENO: result: yes" >&5
10316 echo "${ECHO_T}yes" >&6; }
10317 else
10318 # FIXME - insert some real tests, host_os isn't really good enough
10319   case $host_os in
10320    darwin*)
10321        if test -n "$STRIP" ; then
10322          striplib="$STRIP -x"
10323          { echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6; }
10325        else
10326   { echo "$as_me:$LINENO: result: no" >&5
10327 echo "${ECHO_T}no" >&6; }
10328 fi
10329        ;;
10330    *)
10331   { echo "$as_me:$LINENO: result: no" >&5
10332 echo "${ECHO_T}no" >&6; }
10333     ;;
10334   esac
10335 fi
10336
10337 if test "x$enable_dlopen" != xyes; then
10338   enable_dlopen=unknown
10339   enable_dlopen_self=unknown
10340   enable_dlopen_self_static=unknown
10341 else
10342   lt_cv_dlopen=no
10343   lt_cv_dlopen_libs=
10344
10345   case $host_os in
10346   beos*)
10347     lt_cv_dlopen="load_add_on"
10348     lt_cv_dlopen_libs=
10349     lt_cv_dlopen_self=yes
10350     ;;
10351
10352   mingw* | pw32*)
10353     lt_cv_dlopen="LoadLibrary"
10354     lt_cv_dlopen_libs=
10355    ;;
10356
10357   cygwin*)
10358     lt_cv_dlopen="dlopen"
10359     lt_cv_dlopen_libs=
10360    ;;
10361
10362   darwin*)
10363   # if libdl is installed we need to link against it
10364     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10367   echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369   ac_check_lib_save_LIBS=$LIBS
10370 LIBS="-ldl  $LIBS"
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377
10378 /* Override any GCC internal prototype to avoid an error.
10379    Use char because int might match the return type of a GCC
10380    builtin and then its argument prototype would still apply.  */
10381 #ifdef __cplusplus
10382 extern "C"
10383 #endif
10384 char dlopen ();
10385 int
10386 main ()
10387 {
10388 return dlopen ();
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395   (eval $ac_link) 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404   (eval $ac_try) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; } &&
10408          { ac_try='test -s conftest$ac_exeext'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; }; then
10414   ac_cv_lib_dl_dlopen=yes
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419         ac_cv_lib_dl_dlopen=no
10420 fi
10421
10422 rm -f conftest.err conftest.$ac_objext \
10423       conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10425 fi
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10428 if test $ac_cv_lib_dl_dlopen = yes; then
10429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10430 else
10431
10432     lt_cv_dlopen="dyld"
10433     lt_cv_dlopen_libs=
10434     lt_cv_dlopen_self=yes
10435
10436 fi
10437
10438    ;;
10439
10440   *)
10441     { echo "$as_me:$LINENO: checking for shl_load" >&5
10442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10443 if test "${ac_cv_func_shl_load+set}" = set; then
10444   echo $ECHO_N "(cached) $ECHO_C" >&6
10445 else
10446   cat >conftest.$ac_ext <<_ACEOF
10447 /* confdefs.h.  */
10448 _ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h.  */
10452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10454 #define shl_load innocuous_shl_load
10455
10456 /* System header to define __stub macros and hopefully few prototypes,
10457     which can conflict with char shl_load (); below.
10458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10459     <limits.h> exists even on freestanding compilers.  */
10460
10461 #ifdef __STDC__
10462 # include <limits.h>
10463 #else
10464 # include <assert.h>
10465 #endif
10466
10467 #undef shl_load
10468
10469 /* Override any GCC internal prototype to avoid an error.
10470    Use char because int might match the return type of a GCC
10471    builtin and then its argument prototype would still apply.  */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char shl_load ();
10476 /* The GNU C library defines this for functions which it implements
10477     to always fail with ENOSYS.  Some functions are actually named
10478     something starting with __ and the normal name is an alias.  */
10479 #if defined __stub_shl_load || defined __stub___shl_load
10480 choke me
10481 #endif
10482
10483 int
10484 main ()
10485 {
10486 return shl_load ();
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493   (eval $ac_link) 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502   (eval $ac_try) 2>&5
10503   ac_status=$?
10504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); }; } &&
10506          { ac_try='test -s conftest$ac_exeext'
10507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508   (eval $ac_try) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); }; }; then
10512   ac_cv_func_shl_load=yes
10513 else
10514   echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517         ac_cv_func_shl_load=no
10518 fi
10519
10520 rm -f conftest.err conftest.$ac_objext \
10521       conftest$ac_exeext conftest.$ac_ext
10522 fi
10523 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10524 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10525 if test $ac_cv_func_shl_load = yes; then
10526   lt_cv_dlopen="shl_load"
10527 else
10528   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10529 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 else
10533   ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-ldld  $LIBS"
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541
10542 /* Override any GCC internal prototype to avoid an error.
10543    Use char because int might match the return type of a GCC
10544    builtin and then its argument prototype would still apply.  */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char shl_load ();
10549 int
10550 main ()
10551 {
10552 return shl_load ();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; } &&
10572          { ac_try='test -s conftest$ac_exeext'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; }; then
10578   ac_cv_lib_dld_shl_load=yes
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10582
10583         ac_cv_lib_dld_shl_load=no
10584 fi
10585
10586 rm -f conftest.err conftest.$ac_objext \
10587       conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10589 fi
10590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10591 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10592 if test $ac_cv_lib_dld_shl_load = yes; then
10593   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10594 else
10595   { echo "$as_me:$LINENO: checking for dlopen" >&5
10596 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10597 if test "${ac_cv_func_dlopen+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10608 #define dlopen innocuous_dlopen
10609
10610 /* System header to define __stub macros and hopefully few prototypes,
10611     which can conflict with char dlopen (); below.
10612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613     <limits.h> exists even on freestanding compilers.  */
10614
10615 #ifdef __STDC__
10616 # include <limits.h>
10617 #else
10618 # include <assert.h>
10619 #endif
10620
10621 #undef dlopen
10622
10623 /* Override any GCC internal prototype to avoid an error.
10624    Use char because int might match the return type of a GCC
10625    builtin and then its argument prototype would still apply.  */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char dlopen ();
10630 /* The GNU C library defines this for functions which it implements
10631     to always fail with ENOSYS.  Some functions are actually named
10632     something starting with __ and the normal name is an alias.  */
10633 #if defined __stub_dlopen || defined __stub___dlopen
10634 choke me
10635 #endif
10636
10637 int
10638 main ()
10639 {
10640 return dlopen ();
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647   (eval $ac_link) 2>conftest.er1
10648   ac_status=$?
10649   grep -v '^ *+' conftest.er1 >conftest.err
10650   rm -f conftest.er1
10651   cat conftest.err >&5
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); } &&
10654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656   (eval $ac_try) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; } &&
10660          { ac_try='test -s conftest$ac_exeext'
10661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662   (eval $ac_try) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; }; then
10666   ac_cv_func_dlopen=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         ac_cv_func_dlopen=no
10672 fi
10673
10674 rm -f conftest.err conftest.$ac_objext \
10675       conftest$ac_exeext conftest.$ac_ext
10676 fi
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10678 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10679 if test $ac_cv_func_dlopen = yes; then
10680   lt_cv_dlopen="dlopen"
10681 else
10682   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldl  $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char dlopen ();
10703 int
10704 main ()
10705 {
10706 return dlopen ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713   (eval $ac_link) 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } &&
10720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   ac_cv_lib_dl_dlopen=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737         ac_cv_lib_dl_dlopen=no
10738 fi
10739
10740 rm -f conftest.err conftest.$ac_objext \
10741       conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10746 if test $ac_cv_lib_dl_dlopen = yes; then
10747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748 else
10749   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10750 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10752   echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754   ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lsvld  $LIBS"
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764    Use char because int might match the return type of a GCC
10765    builtin and then its argument prototype would still apply.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dlopen ();
10770 int
10771 main ()
10772 {
10773 return dlopen ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780   (eval $ac_link) 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789   (eval $ac_try) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; } &&
10793          { ac_try='test -s conftest$ac_exeext'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; }; then
10799   ac_cv_lib_svld_dlopen=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         ac_cv_lib_svld_dlopen=no
10805 fi
10806
10807 rm -f conftest.err conftest.$ac_objext \
10808       conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10810 fi
10811 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10812 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10813 if test $ac_cv_lib_svld_dlopen = yes; then
10814   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10815 else
10816   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   ac_check_lib_save_LIBS=$LIBS
10822 LIBS="-ldld  $LIBS"
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831    Use char because int might match the return type of a GCC
10832    builtin and then its argument prototype would still apply.  */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char dld_link ();
10837 int
10838 main ()
10839 {
10840 return dld_link ();
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847   (eval $ac_link) 2>conftest.er1
10848   ac_status=$?
10849   grep -v '^ *+' conftest.er1 >conftest.err
10850   rm -f conftest.er1
10851   cat conftest.err >&5
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } &&
10854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; } &&
10860          { ac_try='test -s conftest$ac_exeext'
10861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862   (eval $ac_try) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   ac_cv_lib_dld_dld_link=yes
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871         ac_cv_lib_dld_dld_link=no
10872 fi
10873
10874 rm -f conftest.err conftest.$ac_objext \
10875       conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10879 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10880 if test $ac_cv_lib_dld_dld_link = yes; then
10881   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10882 fi
10883
10884
10885 fi
10886
10887
10888 fi
10889
10890
10891 fi
10892
10893
10894 fi
10895
10896
10897 fi
10898
10899     ;;
10900   esac
10901
10902   if test "x$lt_cv_dlopen" != xno; then
10903     enable_dlopen=yes
10904   else
10905     enable_dlopen=no
10906   fi
10907
10908   case $lt_cv_dlopen in
10909   dlopen)
10910     save_CPPFLAGS="$CPPFLAGS"
10911     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10912
10913     save_LDFLAGS="$LDFLAGS"
10914     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10915
10916     save_LIBS="$LIBS"
10917     LIBS="$lt_cv_dlopen_libs $LIBS"
10918
10919     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10920 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10921 if test "${lt_cv_dlopen_self+set}" = set; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924           if test "$cross_compiling" = yes; then :
10925   lt_cv_dlopen_self=cross
10926 else
10927   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10928   lt_status=$lt_dlunknown
10929   cat > conftest.$ac_ext <<EOF
10930 #line 10930 "configure"
10931 #include "confdefs.h"
10932
10933 #if HAVE_DLFCN_H
10934 #include <dlfcn.h>
10935 #endif
10936
10937 #include <stdio.h>
10938
10939 #ifdef RTLD_GLOBAL
10940 #  define LT_DLGLOBAL           RTLD_GLOBAL
10941 #else
10942 #  ifdef DL_GLOBAL
10943 #    define LT_DLGLOBAL         DL_GLOBAL
10944 #  else
10945 #    define LT_DLGLOBAL         0
10946 #  endif
10947 #endif
10948
10949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10950    find out it does not work in some platform. */
10951 #ifndef LT_DLLAZY_OR_NOW
10952 #  ifdef RTLD_LAZY
10953 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10954 #  else
10955 #    ifdef DL_LAZY
10956 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10957 #    else
10958 #      ifdef RTLD_NOW
10959 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10960 #      else
10961 #        ifdef DL_NOW
10962 #          define LT_DLLAZY_OR_NOW      DL_NOW
10963 #        else
10964 #          define LT_DLLAZY_OR_NOW      0
10965 #        endif
10966 #      endif
10967 #    endif
10968 #  endif
10969 #endif
10970
10971 #ifdef __cplusplus
10972 extern "C" void exit (int);
10973 #endif
10974
10975 void fnord() { int i=42;}
10976 int main ()
10977 {
10978   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10979   int status = $lt_dlunknown;
10980
10981   if (self)
10982     {
10983       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10984       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10985       /* dlclose (self); */
10986     }
10987   else
10988     puts (dlerror ());
10989
10990     exit (status);
10991 }
10992 EOF
10993   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10998     (./conftest; exit; ) >&5 2>/dev/null
10999     lt_status=$?
11000     case x$lt_status in
11001       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11002       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11003       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11004     esac
11005   else :
11006     # compilation failed
11007     lt_cv_dlopen_self=no
11008   fi
11009 fi
11010 rm -fr conftest*
11011
11012
11013 fi
11014 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11015 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11016
11017     if test "x$lt_cv_dlopen_self" = xyes; then
11018       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11019       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11020 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11021 if test "${lt_cv_dlopen_self_static+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024           if test "$cross_compiling" = yes; then :
11025   lt_cv_dlopen_self_static=cross
11026 else
11027   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11028   lt_status=$lt_dlunknown
11029   cat > conftest.$ac_ext <<EOF
11030 #line 11030 "configure"
11031 #include "confdefs.h"
11032
11033 #if HAVE_DLFCN_H
11034 #include <dlfcn.h>
11035 #endif
11036
11037 #include <stdio.h>
11038
11039 #ifdef RTLD_GLOBAL
11040 #  define LT_DLGLOBAL           RTLD_GLOBAL
11041 #else
11042 #  ifdef DL_GLOBAL
11043 #    define LT_DLGLOBAL         DL_GLOBAL
11044 #  else
11045 #    define LT_DLGLOBAL         0
11046 #  endif
11047 #endif
11048
11049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11050    find out it does not work in some platform. */
11051 #ifndef LT_DLLAZY_OR_NOW
11052 #  ifdef RTLD_LAZY
11053 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11054 #  else
11055 #    ifdef DL_LAZY
11056 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11057 #    else
11058 #      ifdef RTLD_NOW
11059 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11060 #      else
11061 #        ifdef DL_NOW
11062 #          define LT_DLLAZY_OR_NOW      DL_NOW
11063 #        else
11064 #          define LT_DLLAZY_OR_NOW      0
11065 #        endif
11066 #      endif
11067 #    endif
11068 #  endif
11069 #endif
11070
11071 #ifdef __cplusplus
11072 extern "C" void exit (int);
11073 #endif
11074
11075 void fnord() { int i=42;}
11076 int main ()
11077 {
11078   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11079   int status = $lt_dlunknown;
11080
11081   if (self)
11082     {
11083       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11084       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11085       /* dlclose (self); */
11086     }
11087   else
11088     puts (dlerror ());
11089
11090     exit (status);
11091 }
11092 EOF
11093   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11094   (eval $ac_link) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11098     (./conftest; exit; ) >&5 2>/dev/null
11099     lt_status=$?
11100     case x$lt_status in
11101       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11102       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11103       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11104     esac
11105   else :
11106     # compilation failed
11107     lt_cv_dlopen_self_static=no
11108   fi
11109 fi
11110 rm -fr conftest*
11111
11112
11113 fi
11114 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11115 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11116     fi
11117
11118     CPPFLAGS="$save_CPPFLAGS"
11119     LDFLAGS="$save_LDFLAGS"
11120     LIBS="$save_LIBS"
11121     ;;
11122   esac
11123
11124   case $lt_cv_dlopen_self in
11125   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11126   *) enable_dlopen_self=unknown ;;
11127   esac
11128
11129   case $lt_cv_dlopen_self_static in
11130   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11131   *) enable_dlopen_self_static=unknown ;;
11132   esac
11133 fi
11134
11135
11136 # Report which library types will actually be built
11137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11140 echo "${ECHO_T}$can_build_shared" >&6; }
11141
11142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11144 test "$can_build_shared" = "no" && enable_shared=no
11145
11146 # On AIX, shared libraries and static libraries use the same namespace, and
11147 # are all built from PIC.
11148 case $host_os in
11149 aix3*)
11150   test "$enable_shared" = yes && enable_static=no
11151   if test -n "$RANLIB"; then
11152     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11153     postinstall_cmds='$RANLIB $lib'
11154   fi
11155   ;;
11156
11157 aix4* | aix5*)
11158   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11159     test "$enable_shared" = yes && enable_static=no
11160   fi
11161     ;;
11162 esac
11163 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11164 echo "${ECHO_T}$enable_shared" >&6; }
11165
11166 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11167 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11168 # Make sure either enable_shared or enable_static is yes.
11169 test "$enable_shared" = yes || enable_static=yes
11170 { echo "$as_me:$LINENO: result: $enable_static" >&5
11171 echo "${ECHO_T}$enable_static" >&6; }
11172
11173 # The else clause should only fire when bootstrapping the
11174 # libtool distribution, otherwise you forgot to ship ltmain.sh
11175 # with your package, and you will get complaints that there are
11176 # no rules to generate ltmain.sh.
11177 if test -f "$ltmain"; then
11178   # See if we are running on zsh, and set the options which allow our commands through
11179   # without removal of \ escapes.
11180   if test -n "${ZSH_VERSION+set}" ; then
11181     setopt NO_GLOB_SUBST
11182   fi
11183   # Now quote all the things that may contain metacharacters while being
11184   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11185   # variables and quote the copies for generation of the libtool script.
11186   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11187     SED SHELL STRIP \
11188     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11189     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11190     deplibs_check_method reload_flag reload_cmds need_locks \
11191     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11192     lt_cv_sys_global_symbol_to_c_name_address \
11193     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11194     old_postinstall_cmds old_postuninstall_cmds \
11195     compiler \
11196     CC \
11197     LD \
11198     lt_prog_compiler_wl \
11199     lt_prog_compiler_pic \
11200     lt_prog_compiler_static \
11201     lt_prog_compiler_no_builtin_flag \
11202     export_dynamic_flag_spec \
11203     thread_safe_flag_spec \
11204     whole_archive_flag_spec \
11205     enable_shared_with_static_runtimes \
11206     old_archive_cmds \
11207     old_archive_from_new_cmds \
11208     predep_objects \
11209     postdep_objects \
11210     predeps \
11211     postdeps \
11212     compiler_lib_search_path \
11213     archive_cmds \
11214     archive_expsym_cmds \
11215     postinstall_cmds \
11216     postuninstall_cmds \
11217     old_archive_from_expsyms_cmds \
11218     allow_undefined_flag \
11219     no_undefined_flag \
11220     export_symbols_cmds \
11221     hardcode_libdir_flag_spec \
11222     hardcode_libdir_flag_spec_ld \
11223     hardcode_libdir_separator \
11224     hardcode_automatic \
11225     module_cmds \
11226     module_expsym_cmds \
11227     lt_cv_prog_compiler_c_o \
11228     exclude_expsyms \
11229     include_expsyms; do
11230
11231     case $var in
11232     old_archive_cmds | \
11233     old_archive_from_new_cmds | \
11234     archive_cmds | \
11235     archive_expsym_cmds | \
11236     module_cmds | \
11237     module_expsym_cmds | \
11238     old_archive_from_expsyms_cmds | \
11239     export_symbols_cmds | \
11240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11241     postinstall_cmds | postuninstall_cmds | \
11242     old_postinstall_cmds | old_postuninstall_cmds | \
11243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11244       # Double-quote double-evaled strings.
11245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11246       ;;
11247     *)
11248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11249       ;;
11250     esac
11251   done
11252
11253   case $lt_echo in
11254   *'\$0 --fallback-echo"')
11255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11256     ;;
11257   esac
11258
11259 cfgfile="${ofile}T"
11260   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11261   $rm -f "$cfgfile"
11262   { echo "$as_me:$LINENO: creating $ofile" >&5
11263 echo "$as_me: creating $ofile" >&6;}
11264
11265   cat <<__EOF__ >> "$cfgfile"
11266 #! $SHELL
11267
11268 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11269 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11271 #
11272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11273 # Free Software Foundation, Inc.
11274 #
11275 # This file is part of GNU Libtool:
11276 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11277 #
11278 # This program is free software; you can redistribute it and/or modify
11279 # it under the terms of the GNU General Public License as published by
11280 # the Free Software Foundation; either version 2 of the License, or
11281 # (at your option) any later version.
11282 #
11283 # This program is distributed in the hope that it will be useful, but
11284 # WITHOUT ANY WARRANTY; without even the implied warranty of
11285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11286 # General Public License for more details.
11287 #
11288 # You should have received a copy of the GNU General Public License
11289 # along with this program; if not, write to the Free Software
11290 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11291 #
11292 # As a special exception to the GNU General Public License, if you
11293 # distribute this file as part of a program that contains a
11294 # configuration script generated by Autoconf, you may include it under
11295 # the same distribution terms that you use for the rest of that program.
11296
11297 # A sed program that does not truncate output.
11298 SED=$lt_SED
11299
11300 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11301 Xsed="$SED -e 1s/^X//"
11302
11303 # The HP-UX ksh and POSIX shell print the target directory to stdout
11304 # if CDPATH is set.
11305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11306
11307 # The names of the tagged configurations supported by this script.
11308 available_tags=
11309
11310 # ### BEGIN LIBTOOL CONFIG
11311
11312 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11313
11314 # Shell to use when invoking shell scripts.
11315 SHELL=$lt_SHELL
11316
11317 # Whether or not to build shared libraries.
11318 build_libtool_libs=$enable_shared
11319
11320 # Whether or not to build static libraries.
11321 build_old_libs=$enable_static
11322
11323 # Whether or not to add -lc for building shared libraries.
11324 build_libtool_need_lc=$archive_cmds_need_lc
11325
11326 # Whether or not to disallow shared libs when runtime libs are static
11327 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11328
11329 # Whether or not to optimize for fast installation.
11330 fast_install=$enable_fast_install
11331
11332 # The host system.
11333 host_alias=$host_alias
11334 host=$host
11335 host_os=$host_os
11336
11337 # The build system.
11338 build_alias=$build_alias
11339 build=$build
11340 build_os=$build_os
11341
11342 # An echo program that does not interpret backslashes.
11343 echo=$lt_echo
11344
11345 # The archiver.
11346 AR=$lt_AR
11347 AR_FLAGS=$lt_AR_FLAGS
11348
11349 # A C compiler.
11350 LTCC=$lt_LTCC
11351
11352 # LTCC compiler flags.
11353 LTCFLAGS=$lt_LTCFLAGS
11354
11355 # A language-specific compiler.
11356 CC=$lt_compiler
11357
11358 # Is the compiler the GNU C compiler?
11359 with_gcc=$GCC
11360
11361 # An ERE matcher.
11362 EGREP=$lt_EGREP
11363
11364 # The linker used to build libraries.
11365 LD=$lt_LD
11366
11367 # Whether we need hard or soft links.
11368 LN_S=$lt_LN_S
11369
11370 # A BSD-compatible nm program.
11371 NM=$lt_NM
11372
11373 # A symbol stripping program
11374 STRIP=$lt_STRIP
11375
11376 # Used to examine libraries when file_magic_cmd begins "file"
11377 MAGIC_CMD=$MAGIC_CMD
11378
11379 # Used on cygwin: DLL creation program.
11380 DLLTOOL="$DLLTOOL"
11381
11382 # Used on cygwin: object dumper.
11383 OBJDUMP="$OBJDUMP"
11384
11385 # Used on cygwin: assembler.
11386 AS="$AS"
11387
11388 # The name of the directory that contains temporary libtool files.
11389 objdir=$objdir
11390
11391 # How to create reloadable object files.
11392 reload_flag=$lt_reload_flag
11393 reload_cmds=$lt_reload_cmds
11394
11395 # How to pass a linker flag through the compiler.
11396 wl=$lt_lt_prog_compiler_wl
11397
11398 # Object file suffix (normally "o").
11399 objext="$ac_objext"
11400
11401 # Old archive suffix (normally "a").
11402 libext="$libext"
11403
11404 # Shared library suffix (normally ".so").
11405 shrext_cmds='$shrext_cmds'
11406
11407 # Executable file suffix (normally "").
11408 exeext="$exeext"
11409
11410 # Additional compiler flags for building library objects.
11411 pic_flag=$lt_lt_prog_compiler_pic
11412 pic_mode=$pic_mode
11413
11414 # What is the maximum length of a command?
11415 max_cmd_len=$lt_cv_sys_max_cmd_len
11416
11417 # Does compiler simultaneously support -c and -o options?
11418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11419
11420 # Must we lock files when doing compilation?
11421 need_locks=$lt_need_locks
11422
11423 # Do we need the lib prefix for modules?
11424 need_lib_prefix=$need_lib_prefix
11425
11426 # Do we need a version for libraries?
11427 need_version=$need_version
11428
11429 # Whether dlopen is supported.
11430 dlopen_support=$enable_dlopen
11431
11432 # Whether dlopen of programs is supported.
11433 dlopen_self=$enable_dlopen_self
11434
11435 # Whether dlopen of statically linked programs is supported.
11436 dlopen_self_static=$enable_dlopen_self_static
11437
11438 # Compiler flag to prevent dynamic linking.
11439 link_static_flag=$lt_lt_prog_compiler_static
11440
11441 # Compiler flag to turn off builtin functions.
11442 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11443
11444 # Compiler flag to allow reflexive dlopens.
11445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11446
11447 # Compiler flag to generate shared objects directly from archives.
11448 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11449
11450 # Compiler flag to generate thread-safe objects.
11451 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11452
11453 # Library versioning type.
11454 version_type=$version_type
11455
11456 # Format of library name prefix.
11457 libname_spec=$lt_libname_spec
11458
11459 # List of archive names.  First name is the real one, the rest are links.
11460 # The last name is the one that the linker finds with -lNAME.
11461 library_names_spec=$lt_library_names_spec
11462
11463 # The coded name of the library, if different from the real name.
11464 soname_spec=$lt_soname_spec
11465
11466 # Commands used to build and install an old-style archive.
11467 RANLIB=$lt_RANLIB
11468 old_archive_cmds=$lt_old_archive_cmds
11469 old_postinstall_cmds=$lt_old_postinstall_cmds
11470 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11471
11472 # Create an old-style archive from a shared archive.
11473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11474
11475 # Create a temporary old-style archive to link instead of a shared archive.
11476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11477
11478 # Commands used to build and install a shared archive.
11479 archive_cmds=$lt_archive_cmds
11480 archive_expsym_cmds=$lt_archive_expsym_cmds
11481 postinstall_cmds=$lt_postinstall_cmds
11482 postuninstall_cmds=$lt_postuninstall_cmds
11483
11484 # Commands used to build a loadable module (assumed same as above if empty)
11485 module_cmds=$lt_module_cmds
11486 module_expsym_cmds=$lt_module_expsym_cmds
11487
11488 # Commands to strip libraries.
11489 old_striplib=$lt_old_striplib
11490 striplib=$lt_striplib
11491
11492 # Dependencies to place before the objects being linked to create a
11493 # shared library.
11494 predep_objects=$lt_predep_objects
11495
11496 # Dependencies to place after the objects being linked to create a
11497 # shared library.
11498 postdep_objects=$lt_postdep_objects
11499
11500 # Dependencies to place before the objects being linked to create a
11501 # shared library.
11502 predeps=$lt_predeps
11503
11504 # Dependencies to place after the objects being linked to create a
11505 # shared library.
11506 postdeps=$lt_postdeps
11507
11508 # The library search path used internally by the compiler when linking
11509 # a shared library.
11510 compiler_lib_search_path=$lt_compiler_lib_search_path
11511
11512 # Method to check whether dependent libraries are shared objects.
11513 deplibs_check_method=$lt_deplibs_check_method
11514
11515 # Command to use when deplibs_check_method == file_magic.
11516 file_magic_cmd=$lt_file_magic_cmd
11517
11518 # Flag that allows shared libraries with undefined symbols to be built.
11519 allow_undefined_flag=$lt_allow_undefined_flag
11520
11521 # Flag that forces no undefined symbols.
11522 no_undefined_flag=$lt_no_undefined_flag
11523
11524 # Commands used to finish a libtool library installation in a directory.
11525 finish_cmds=$lt_finish_cmds
11526
11527 # Same as above, but a single script fragment to be evaled but not shown.
11528 finish_eval=$lt_finish_eval
11529
11530 # Take the output of nm and produce a listing of raw symbols and C names.
11531 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11532
11533 # Transform the output of nm in a proper C declaration
11534 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11535
11536 # Transform the output of nm in a C name address pair
11537 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11538
11539 # This is the shared library runtime path variable.
11540 runpath_var=$runpath_var
11541
11542 # This is the shared library path variable.
11543 shlibpath_var=$shlibpath_var
11544
11545 # Is shlibpath searched before the hard-coded library search path?
11546 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11547
11548 # How to hardcode a shared library path into an executable.
11549 hardcode_action=$hardcode_action
11550
11551 # Whether we should hardcode library paths into libraries.
11552 hardcode_into_libs=$hardcode_into_libs
11553
11554 # Flag to hardcode \$libdir into a binary during linking.
11555 # This must work even if \$libdir does not exist.
11556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11557
11558 # If ld is used when linking, flag to hardcode \$libdir into
11559 # a binary during linking. This must work even if \$libdir does
11560 # not exist.
11561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11562
11563 # Whether we need a single -rpath flag with a separated argument.
11564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11565
11566 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11567 # resulting binary.
11568 hardcode_direct=$hardcode_direct
11569
11570 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11571 # resulting binary.
11572 hardcode_minus_L=$hardcode_minus_L
11573
11574 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11575 # the resulting binary.
11576 hardcode_shlibpath_var=$hardcode_shlibpath_var
11577
11578 # Set to yes if building a shared library automatically hardcodes DIR into the library
11579 # and all subsequent libraries and executables linked against it.
11580 hardcode_automatic=$hardcode_automatic
11581
11582 # Variables whose values should be saved in libtool wrapper scripts and
11583 # restored at relink time.
11584 variables_saved_for_relink="$variables_saved_for_relink"
11585
11586 # Whether libtool must link a program against all its dependency libraries.
11587 link_all_deplibs=$link_all_deplibs
11588
11589 # Compile-time system search path for libraries
11590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11591
11592 # Run-time system search path for libraries
11593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11594
11595 # Fix the shell variable \$srcfile for the compiler.
11596 fix_srcfile_path="$fix_srcfile_path"
11597
11598 # Set to yes if exported symbols are required.
11599 always_export_symbols=$always_export_symbols
11600
11601 # The commands to list exported symbols.
11602 export_symbols_cmds=$lt_export_symbols_cmds
11603
11604 # The commands to extract the exported symbol list from a shared archive.
11605 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11606
11607 # Symbols that should not be listed in the preloaded symbols.
11608 exclude_expsyms=$lt_exclude_expsyms
11609
11610 # Symbols that must always be exported.
11611 include_expsyms=$lt_include_expsyms
11612
11613 # ### END LIBTOOL CONFIG
11614
11615 __EOF__
11616
11617
11618   case $host_os in
11619   aix3*)
11620     cat <<\EOF >> "$cfgfile"
11621
11622 # AIX sometimes has problems with the GCC collect2 program.  For some
11623 # reason, if we set the COLLECT_NAMES environment variable, the problems
11624 # vanish in a puff of smoke.
11625 if test "X${COLLECT_NAMES+set}" != Xset; then
11626   COLLECT_NAMES=
11627   export COLLECT_NAMES
11628 fi
11629 EOF
11630     ;;
11631   esac
11632
11633   # We use sed instead of cat because bash on DJGPP gets confused if
11634   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11635   # text mode, it properly converts lines to CR/LF.  This bash problem
11636   # is reportedly fixed, but why not run on old versions too?
11637   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11638
11639   mv -f "$cfgfile" "$ofile" || \
11640     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11641   chmod +x "$ofile"
11642
11643 else
11644   # If there is no Makefile yet, we rely on a make rule to execute
11645   # `config.status --recheck' to rerun these tests and create the
11646   # libtool script then.
11647   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11648   if test -f "$ltmain_in"; then
11649     test -f Makefile && make "$ltmain"
11650   fi
11651 fi
11652
11653
11654 ac_ext=c
11655 ac_cpp='$CPP $CPPFLAGS'
11656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11659
11660 CC="$lt_save_CC"
11661
11662
11663 # Check whether --with-tags was given.
11664 if test "${with_tags+set}" = set; then
11665   withval=$with_tags; tagnames="$withval"
11666 fi
11667
11668
11669 if test -f "$ltmain" && test -n "$tagnames"; then
11670   if test ! -f "${ofile}"; then
11671     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11672 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11673   fi
11674
11675   if test -z "$LTCC"; then
11676     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11677     if test -z "$LTCC"; then
11678       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11679 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11680     else
11681       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11682 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11683     fi
11684   fi
11685   if test -z "$LTCFLAGS"; then
11686     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11687   fi
11688
11689   # Extract list of available tagged configurations in $ofile.
11690   # Note that this assumes the entire list is on one line.
11691   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11692
11693   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11694   for tagname in $tagnames; do
11695     IFS="$lt_save_ifs"
11696     # Check whether tagname contains only valid characters
11697     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11698     "") ;;
11699     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11700 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11701    { (exit 1); exit 1; }; }
11702         ;;
11703     esac
11704
11705     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11706     then
11707       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11708 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11709    { (exit 1); exit 1; }; }
11710     fi
11711
11712     # Update the list of available tags.
11713     if test -n "$tagname"; then
11714       echo appending configuration tag \"$tagname\" to $ofile
11715
11716       case $tagname in
11717       CXX)
11718         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11719             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11720             (test "X$CXX" != "Xg++"))) ; then
11721           ac_ext=cpp
11722 ac_cpp='$CXXCPP $CPPFLAGS'
11723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11726
11727
11728
11729
11730 archive_cmds_need_lc_CXX=no
11731 allow_undefined_flag_CXX=
11732 always_export_symbols_CXX=no
11733 archive_expsym_cmds_CXX=
11734 export_dynamic_flag_spec_CXX=
11735 hardcode_direct_CXX=no
11736 hardcode_libdir_flag_spec_CXX=
11737 hardcode_libdir_flag_spec_ld_CXX=
11738 hardcode_libdir_separator_CXX=
11739 hardcode_minus_L_CXX=no
11740 hardcode_shlibpath_var_CXX=unsupported
11741 hardcode_automatic_CXX=no
11742 module_cmds_CXX=
11743 module_expsym_cmds_CXX=
11744 link_all_deplibs_CXX=unknown
11745 old_archive_cmds_CXX=$old_archive_cmds
11746 no_undefined_flag_CXX=
11747 whole_archive_flag_spec_CXX=
11748 enable_shared_with_static_runtimes_CXX=no
11749
11750 # Dependencies to place before and after the object being linked:
11751 predep_objects_CXX=
11752 postdep_objects_CXX=
11753 predeps_CXX=
11754 postdeps_CXX=
11755 compiler_lib_search_path_CXX=
11756
11757 # Source file extension for C++ test sources.
11758 ac_ext=cpp
11759
11760 # Object file extension for compiled C++ test sources.
11761 objext=o
11762 objext_CXX=$objext
11763
11764 # Code to be used in simple compile tests
11765 lt_simple_compile_test_code="int some_variable = 0;\n"
11766
11767 # Code to be used in simple link tests
11768 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11769
11770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11771
11772 # If no C compiler was specified, use CC.
11773 LTCC=${LTCC-"$CC"}
11774
11775 # If no C compiler flags were specified, use CFLAGS.
11776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11777
11778 # Allow CC to be a program name with arguments.
11779 compiler=$CC
11780
11781
11782 # save warnings/boilerplate of simple test code
11783 ac_outfile=conftest.$ac_objext
11784 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11785 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11786 _lt_compiler_boilerplate=`cat conftest.err`
11787 $rm conftest*
11788
11789 ac_outfile=conftest.$ac_objext
11790 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11791 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11792 _lt_linker_boilerplate=`cat conftest.err`
11793 $rm conftest*
11794
11795
11796 # Allow CC to be a program name with arguments.
11797 lt_save_CC=$CC
11798 lt_save_LD=$LD
11799 lt_save_GCC=$GCC
11800 GCC=$GXX
11801 lt_save_with_gnu_ld=$with_gnu_ld
11802 lt_save_path_LD=$lt_cv_path_LD
11803 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11804   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11805 else
11806   $as_unset lt_cv_prog_gnu_ld
11807 fi
11808 if test -n "${lt_cv_path_LDCXX+set}"; then
11809   lt_cv_path_LD=$lt_cv_path_LDCXX
11810 else
11811   $as_unset lt_cv_path_LD
11812 fi
11813 test -z "${LDCXX+set}" || LD=$LDCXX
11814 CC=${CXX-"c++"}
11815 compiler=$CC
11816 compiler_CXX=$CC
11817 for cc_temp in $compiler""; do
11818   case $cc_temp in
11819     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11820     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11821     \-*) ;;
11822     *) break;;
11823   esac
11824 done
11825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11826
11827
11828 # We don't want -fno-exception wen compiling C++ code, so set the
11829 # no_builtin_flag separately
11830 if test "$GXX" = yes; then
11831   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11832 else
11833   lt_prog_compiler_no_builtin_flag_CXX=
11834 fi
11835
11836 if test "$GXX" = yes; then
11837   # Set up default GNU C++ configuration
11838
11839
11840 # Check whether --with-gnu-ld was given.
11841 if test "${with_gnu_ld+set}" = set; then
11842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11843 else
11844   with_gnu_ld=no
11845 fi
11846
11847 ac_prog=ld
11848 if test "$GCC" = yes; then
11849   # Check if gcc -print-prog-name=ld gives a path.
11850   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11852   case $host in
11853   *-*-mingw*)
11854     # gcc leaves a trailing carriage return which upsets mingw
11855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11856   *)
11857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11858   esac
11859   case $ac_prog in
11860     # Accept absolute paths.
11861     [\\/]* | ?:[\\/]*)
11862       re_direlt='/[^/][^/]*/\.\./'
11863       # Canonicalize the pathname of ld
11864       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11865       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11866         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11867       done
11868       test -z "$LD" && LD="$ac_prog"
11869       ;;
11870   "")
11871     # If it fails, then pretend we aren't using GCC.
11872     ac_prog=ld
11873     ;;
11874   *)
11875     # If it is relative, then search for the first ld in PATH.
11876     with_gnu_ld=unknown
11877     ;;
11878   esac
11879 elif test "$with_gnu_ld" = yes; then
11880   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11882 else
11883   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11885 fi
11886 if test "${lt_cv_path_LD+set}" = set; then
11887   echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889   if test -z "$LD"; then
11890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11891   for ac_dir in $PATH; do
11892     IFS="$lt_save_ifs"
11893     test -z "$ac_dir" && ac_dir=.
11894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11895       lt_cv_path_LD="$ac_dir/$ac_prog"
11896       # Check to see if the program is GNU ld.  I'd rather use --version,
11897       # but apparently some variants of GNU ld only accept -v.
11898       # Break only if it was the GNU/non-GNU ld that we prefer.
11899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11900       *GNU* | *'with BFD'*)
11901         test "$with_gnu_ld" != no && break
11902         ;;
11903       *)
11904         test "$with_gnu_ld" != yes && break
11905         ;;
11906       esac
11907     fi
11908   done
11909   IFS="$lt_save_ifs"
11910 else
11911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11912 fi
11913 fi
11914
11915 LD="$lt_cv_path_LD"
11916 if test -n "$LD"; then
11917   { echo "$as_me:$LINENO: result: $LD" >&5
11918 echo "${ECHO_T}$LD" >&6; }
11919 else
11920   { echo "$as_me:$LINENO: result: no" >&5
11921 echo "${ECHO_T}no" >&6; }
11922 fi
11923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11925    { (exit 1); exit 1; }; }
11926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11932 case `$LD -v 2>&1 </dev/null` in
11933 *GNU* | *'with BFD'*)
11934   lt_cv_prog_gnu_ld=yes
11935   ;;
11936 *)
11937   lt_cv_prog_gnu_ld=no
11938   ;;
11939 esac
11940 fi
11941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11943 with_gnu_ld=$lt_cv_prog_gnu_ld
11944
11945
11946
11947   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11948   # archiving commands below assume that GNU ld is being used.
11949   if test "$with_gnu_ld" = yes; then
11950     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11951     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'
11952
11953     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11954     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11955
11956     # If archive_cmds runs LD, not CC, wlarc should be empty
11957     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11958     #     investigate it a little bit more. (MM)
11959     wlarc='${wl}'
11960
11961     # ancient GNU ld didn't support --whole-archive et. al.
11962     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11963         grep 'no-whole-archive' > /dev/null; then
11964       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11965     else
11966       whole_archive_flag_spec_CXX=
11967     fi
11968   else
11969     with_gnu_ld=no
11970     wlarc=
11971
11972     # A generic and very simple default shared library creation
11973     # command for GNU C++ for the case where it uses the native
11974     # linker, instead of GNU ld.  If possible, this setting should
11975     # overridden to take advantage of the native linker features on
11976     # the platform it is being used on.
11977     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11978   fi
11979
11980   # Commands to make compiler produce verbose output that lists
11981   # what "hidden" libraries, object files and flags are used when
11982   # linking a shared library.
11983   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11984
11985 else
11986   GXX=no
11987   with_gnu_ld=no
11988   wlarc=
11989 fi
11990
11991 # PORTME: fill in a description of your system's C++ link characteristics
11992 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11993 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11994 ld_shlibs_CXX=yes
11995 case $host_os in
11996   aix3*)
11997     # FIXME: insert proper C++ library support
11998     ld_shlibs_CXX=no
11999     ;;
12000   aix4* | aix5*)
12001     if test "$host_cpu" = ia64; then
12002       # On IA64, the linker does run time linking by default, so we don't
12003       # have to do anything special.
12004       aix_use_runtimelinking=no
12005       exp_sym_flag='-Bexport'
12006       no_entry_flag=""
12007     else
12008       aix_use_runtimelinking=no
12009
12010       # Test if we are trying to use run time linking or normal
12011       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12012       # need to do runtime linking.
12013       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12014         for ld_flag in $LDFLAGS; do
12015           case $ld_flag in
12016           *-brtl*)
12017             aix_use_runtimelinking=yes
12018             break
12019             ;;
12020           esac
12021         done
12022         ;;
12023       esac
12024
12025       exp_sym_flag='-bexport'
12026       no_entry_flag='-bnoentry'
12027     fi
12028
12029     # When large executables or shared objects are built, AIX ld can
12030     # have problems creating the table of contents.  If linking a library
12031     # or program results in "error TOC overflow" add -mminimal-toc to
12032     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12033     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12034
12035     archive_cmds_CXX=''
12036     hardcode_direct_CXX=yes
12037     hardcode_libdir_separator_CXX=':'
12038     link_all_deplibs_CXX=yes
12039
12040     if test "$GXX" = yes; then
12041       case $host_os in aix4.[012]|aix4.[012].*)
12042       # We only want to do this on AIX 4.2 and lower, the check
12043       # below for broken collect2 doesn't work under 4.3+
12044         collect2name=`${CC} -print-prog-name=collect2`
12045         if test -f "$collect2name" && \
12046            strings "$collect2name" | grep resolve_lib_name >/dev/null
12047         then
12048           # We have reworked collect2
12049           hardcode_direct_CXX=yes
12050         else
12051           # We have old collect2
12052           hardcode_direct_CXX=unsupported
12053           # It fails to find uninstalled libraries when the uninstalled
12054           # path is not listed in the libpath.  Setting hardcode_minus_L
12055           # to unsupported forces relinking
12056           hardcode_minus_L_CXX=yes
12057           hardcode_libdir_flag_spec_CXX='-L$libdir'
12058           hardcode_libdir_separator_CXX=
12059         fi
12060         ;;
12061       esac
12062       shared_flag='-shared'
12063       if test "$aix_use_runtimelinking" = yes; then
12064         shared_flag="$shared_flag "'${wl}-G'
12065       fi
12066     else
12067       # not using gcc
12068       if test "$host_cpu" = ia64; then
12069         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12070         # chokes on -Wl,-G. The following line is correct:
12071         shared_flag='-G'
12072       else
12073         if test "$aix_use_runtimelinking" = yes; then
12074           shared_flag='${wl}-G'
12075         else
12076           shared_flag='${wl}-bM:SRE'
12077         fi
12078       fi
12079     fi
12080
12081     # It seems that -bexpall does not export symbols beginning with
12082     # underscore (_), so it is better to generate a list of symbols to export.
12083     always_export_symbols_CXX=yes
12084     if test "$aix_use_runtimelinking" = yes; then
12085       # Warning - without using the other runtime loading flags (-brtl),
12086       # -berok will link without error, but may produce a broken library.
12087       allow_undefined_flag_CXX='-berok'
12088       # Determine the default libpath from the value encoded in an empty executable.
12089       cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095
12096 int
12097 main ()
12098 {
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106   (eval $ac_link) 2>conftest.er1
12107   ac_status=$?
12108   grep -v '^ *+' conftest.er1 >conftest.err
12109   rm -f conftest.er1
12110   cat conftest.err >&5
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125
12126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12127 }'`
12128 # Check for a 64-bit object if we didn't find anything.
12129 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; }
12130 }'`; fi
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135
12136 fi
12137
12138 rm -f conftest.err conftest.$ac_objext \
12139       conftest$ac_exeext conftest.$ac_ext
12140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12141
12142       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12143
12144       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"
12145      else
12146       if test "$host_cpu" = ia64; then
12147         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12148         allow_undefined_flag_CXX="-z nodefs"
12149         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"
12150       else
12151         # Determine the default libpath from the value encoded in an empty executable.
12152         cat >conftest.$ac_ext <<_ACEOF
12153 /* confdefs.h.  */
12154 _ACEOF
12155 cat confdefs.h >>conftest.$ac_ext
12156 cat >>conftest.$ac_ext <<_ACEOF
12157 /* end confdefs.h.  */
12158
12159 int
12160 main ()
12161 {
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169   (eval $ac_link) 2>conftest.er1
12170   ac_status=$?
12171   grep -v '^ *+' conftest.er1 >conftest.err
12172   rm -f conftest.er1
12173   cat conftest.err >&5
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178   (eval $ac_try) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); }; } &&
12182          { ac_try='test -s conftest$ac_exeext'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188
12189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12190 }'`
12191 # Check for a 64-bit object if we didn't find anything.
12192 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; }
12193 }'`; fi
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198
12199 fi
12200
12201 rm -f conftest.err conftest.$ac_objext \
12202       conftest$ac_exeext conftest.$ac_ext
12203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12204
12205         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12206         # Warning - without using the other run time loading flags,
12207         # -berok will link without error, but may produce a broken library.
12208         no_undefined_flag_CXX=' ${wl}-bernotok'
12209         allow_undefined_flag_CXX=' ${wl}-berok'
12210         # Exported symbols can be pulled into shared objects from archives
12211         whole_archive_flag_spec_CXX='$convenience'
12212         archive_cmds_need_lc_CXX=yes
12213         # This is similar to how AIX traditionally builds its shared libraries.
12214         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'
12215       fi
12216     fi
12217     ;;
12218
12219   beos*)
12220     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12221       allow_undefined_flag_CXX=unsupported
12222       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12223       # support --undefined.  This deserves some investigation.  FIXME
12224       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12225     else
12226       ld_shlibs_CXX=no
12227     fi
12228     ;;
12229
12230   chorus*)
12231     case $cc_basename in
12232       *)
12233         # FIXME: insert proper C++ library support
12234         ld_shlibs_CXX=no
12235         ;;
12236     esac
12237     ;;
12238
12239   cygwin* | mingw* | pw32*)
12240     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12241     # as there is no search path for DLLs.
12242     hardcode_libdir_flag_spec_CXX='-L$libdir'
12243     allow_undefined_flag_CXX=unsupported
12244     always_export_symbols_CXX=no
12245     enable_shared_with_static_runtimes_CXX=yes
12246
12247     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12248       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'
12249       # If the export-symbols file already is a .def file (1st line
12250       # is EXPORTS), use it as is; otherwise, prepend...
12251       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12252         cp $export_symbols $output_objdir/$soname.def;
12253       else
12254         echo EXPORTS > $output_objdir/$soname.def;
12255         cat $export_symbols >> $output_objdir/$soname.def;
12256       fi~
12257       $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'
12258     else
12259       ld_shlibs_CXX=no
12260     fi
12261   ;;
12262       darwin* | rhapsody*)
12263         case $host_os in
12264         rhapsody* | darwin1.[012])
12265          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12266          ;;
12267        *) # Darwin 1.3 on
12268          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12269            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12270          else
12271            case ${MACOSX_DEPLOYMENT_TARGET} in
12272              10.[012])
12273                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12274                ;;
12275              10.*)
12276                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12277                ;;
12278            esac
12279          fi
12280          ;;
12281         esac
12282       archive_cmds_need_lc_CXX=no
12283       hardcode_direct_CXX=no
12284       hardcode_automatic_CXX=yes
12285       hardcode_shlibpath_var_CXX=unsupported
12286       whole_archive_flag_spec_CXX=''
12287       link_all_deplibs_CXX=yes
12288
12289     if test "$GXX" = yes ; then
12290       lt_int_apple_cc_single_mod=no
12291       output_verbose_link_cmd='echo'
12292       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12293        lt_int_apple_cc_single_mod=yes
12294       fi
12295       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12296        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12297       else
12298           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'
12299         fi
12300         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12301         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12302           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12303             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}'
12304           else
12305             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}'
12306           fi
12307             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}'
12308       else
12309       case $cc_basename in
12310         xlc*)
12311          output_verbose_link_cmd='echo'
12312           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'
12313           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12314           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12315           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}'
12316           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}'
12317           ;;
12318        *)
12319          ld_shlibs_CXX=no
12320           ;;
12321       esac
12322       fi
12323         ;;
12324
12325   dgux*)
12326     case $cc_basename in
12327       ec++*)
12328         # FIXME: insert proper C++ library support
12329         ld_shlibs_CXX=no
12330         ;;
12331       ghcx*)
12332         # Green Hills C++ Compiler
12333         # FIXME: insert proper C++ library support
12334         ld_shlibs_CXX=no
12335         ;;
12336       *)
12337         # FIXME: insert proper C++ library support
12338         ld_shlibs_CXX=no
12339         ;;
12340     esac
12341     ;;
12342   freebsd[12]*)
12343     # C++ shared libraries reported to be fairly broken before switch to ELF
12344     ld_shlibs_CXX=no
12345     ;;
12346   freebsd-elf*)
12347     archive_cmds_need_lc_CXX=no
12348     ;;
12349   freebsd* | dragonfly*)
12350     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12351     # conventions
12352     ld_shlibs_CXX=yes
12353     ;;
12354   gnu*)
12355     ;;
12356   hpux9*)
12357     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12358     hardcode_libdir_separator_CXX=:
12359     export_dynamic_flag_spec_CXX='${wl}-E'
12360     hardcode_direct_CXX=yes
12361     hardcode_minus_L_CXX=yes # Not in the search PATH,
12362                                 # but as the default
12363                                 # location of the library.
12364
12365     case $cc_basename in
12366     CC*)
12367       # FIXME: insert proper C++ library support
12368       ld_shlibs_CXX=no
12369       ;;
12370     aCC*)
12371       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'
12372       # Commands to make compiler produce verbose output that lists
12373       # what "hidden" libraries, object files and flags are used when
12374       # linking a shared library.
12375       #
12376       # There doesn't appear to be a way to prevent this compiler from
12377       # explicitly linking system object files so we need to strip them
12378       # from the output so that they don't get included in the library
12379       # dependencies.
12380       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'
12381       ;;
12382     *)
12383       if test "$GXX" = yes; then
12384         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'
12385       else
12386         # FIXME: insert proper C++ library support
12387         ld_shlibs_CXX=no
12388       fi
12389       ;;
12390     esac
12391     ;;
12392   hpux10*|hpux11*)
12393     if test $with_gnu_ld = no; then
12394       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12395       hardcode_libdir_separator_CXX=:
12396
12397       case $host_cpu in
12398       hppa*64*|ia64*)
12399         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12400         ;;
12401       *)
12402         export_dynamic_flag_spec_CXX='${wl}-E'
12403         ;;
12404       esac
12405     fi
12406     case $host_cpu in
12407     hppa*64*|ia64*)
12408       hardcode_direct_CXX=no
12409       hardcode_shlibpath_var_CXX=no
12410       ;;
12411     *)
12412       hardcode_direct_CXX=yes
12413       hardcode_minus_L_CXX=yes # Not in the search PATH,
12414                                               # but as the default
12415                                               # location of the library.
12416       ;;
12417     esac
12418
12419     case $cc_basename in
12420       CC*)
12421         # FIXME: insert proper C++ library support
12422         ld_shlibs_CXX=no
12423         ;;
12424       aCC*)
12425         case $host_cpu in
12426         hppa*64*)
12427           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12428           ;;
12429         ia64*)
12430           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12431           ;;
12432         *)
12433           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12434           ;;
12435         esac
12436         # Commands to make compiler produce verbose output that lists
12437         # what "hidden" libraries, object files and flags are used when
12438         # linking a shared library.
12439         #
12440         # There doesn't appear to be a way to prevent this compiler from
12441         # explicitly linking system object files so we need to strip them
12442         # from the output so that they don't get included in the library
12443         # dependencies.
12444         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'
12445         ;;
12446       *)
12447         if test "$GXX" = yes; then
12448           if test $with_gnu_ld = no; then
12449             case $host_cpu in
12450             hppa*64*)
12451               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12452               ;;
12453             ia64*)
12454               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12455               ;;
12456             *)
12457               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'
12458               ;;
12459             esac
12460           fi
12461         else
12462           # FIXME: insert proper C++ library support
12463           ld_shlibs_CXX=no
12464         fi
12465         ;;
12466     esac
12467     ;;
12468   interix3*)
12469     hardcode_direct_CXX=no
12470     hardcode_shlibpath_var_CXX=no
12471     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12472     export_dynamic_flag_spec_CXX='${wl}-E'
12473     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12474     # Instead, shared libraries are loaded at an image base (0x10000000 by
12475     # default) and relocated if they conflict, which is a slow very memory
12476     # consuming and fragmenting process.  To avoid this, we pick a random,
12477     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12478     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12479     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'
12480     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'
12481     ;;
12482   irix5* | irix6*)
12483     case $cc_basename in
12484       CC*)
12485         # SGI C++
12486         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'
12487
12488         # Archives containing C++ object files must be created using
12489         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12490         # necessary to make sure instantiated templates are included
12491         # in the archive.
12492         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12493         ;;
12494       *)
12495         if test "$GXX" = yes; then
12496           if test "$with_gnu_ld" = no; then
12497             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'
12498           else
12499             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'
12500           fi
12501         fi
12502         link_all_deplibs_CXX=yes
12503         ;;
12504     esac
12505     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12506     hardcode_libdir_separator_CXX=:
12507     ;;
12508   linux* | k*bsd*-gnu)
12509     case $cc_basename in
12510       KCC*)
12511         # Kuck and Associates, Inc. (KAI) C++ Compiler
12512
12513         # KCC will only create a shared library if the output file
12514         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12515         # to its proper name (with version) after linking.
12516         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'
12517         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'
12518         # Commands to make compiler produce verbose output that lists
12519         # what "hidden" libraries, object files and flags are used when
12520         # linking a shared library.
12521         #
12522         # There doesn't appear to be a way to prevent this compiler from
12523         # explicitly linking system object files so we need to strip them
12524         # from the output so that they don't get included in the library
12525         # dependencies.
12526         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'
12527
12528         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12529         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12530
12531         # Archives containing C++ object files must be created using
12532         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12533         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12534         ;;
12535       icpc*)
12536         # Intel C++
12537         with_gnu_ld=yes
12538         # version 8.0 and above of icpc choke on multiply defined symbols
12539         # if we add $predep_objects and $postdep_objects, however 7.1 and
12540         # earlier do not add the objects themselves.
12541         case `$CC -V 2>&1` in
12542         *"Version 7."*)
12543           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12544           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'
12545           ;;
12546         *)  # Version 8.0 or newer
12547           tmp_idyn=
12548           case $host_cpu in
12549             ia64*) tmp_idyn=' -i_dynamic';;
12550           esac
12551           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12552           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'
12553           ;;
12554         esac
12555         archive_cmds_need_lc_CXX=no
12556         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12557         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12558         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12559         ;;
12560       pgCC*)
12561         # Portland Group C++ compiler
12562         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12563         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'
12564
12565         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12566         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12567         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'
12568         ;;
12569       cxx*)
12570         # Compaq C++
12571         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572         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'
12573
12574         runpath_var=LD_RUN_PATH
12575         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12576         hardcode_libdir_separator_CXX=:
12577
12578         # Commands to make compiler produce verbose output that lists
12579         # what "hidden" libraries, object files and flags are used when
12580         # linking a shared library.
12581         #
12582         # There doesn't appear to be a way to prevent this compiler from
12583         # explicitly linking system object files so we need to strip them
12584         # from the output so that they don't get included in the library
12585         # dependencies.
12586         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'
12587         ;;
12588     esac
12589     ;;
12590   lynxos*)
12591     # FIXME: insert proper C++ library support
12592     ld_shlibs_CXX=no
12593     ;;
12594   m88k*)
12595     # FIXME: insert proper C++ library support
12596     ld_shlibs_CXX=no
12597     ;;
12598   mvs*)
12599     case $cc_basename in
12600       cxx*)
12601         # FIXME: insert proper C++ library support
12602         ld_shlibs_CXX=no
12603         ;;
12604       *)
12605         # FIXME: insert proper C++ library support
12606         ld_shlibs_CXX=no
12607         ;;
12608     esac
12609     ;;
12610   netbsd* | netbsdelf*-gnu)
12611     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12612       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12613       wlarc=
12614       hardcode_libdir_flag_spec_CXX='-R$libdir'
12615       hardcode_direct_CXX=yes
12616       hardcode_shlibpath_var_CXX=no
12617     fi
12618     # Workaround some broken pre-1.5 toolchains
12619     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12620     ;;
12621   openbsd2*)
12622     # C++ shared libraries are fairly broken
12623     ld_shlibs_CXX=no
12624     ;;
12625   openbsd*)
12626     hardcode_direct_CXX=yes
12627     hardcode_shlibpath_var_CXX=no
12628     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12629     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12630     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12631       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12632       export_dynamic_flag_spec_CXX='${wl}-E'
12633       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12634     fi
12635     output_verbose_link_cmd='echo'
12636     ;;
12637   osf3*)
12638     case $cc_basename in
12639       KCC*)
12640         # Kuck and Associates, Inc. (KAI) C++ Compiler
12641
12642         # KCC will only create a shared library if the output file
12643         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12644         # to its proper name (with version) after linking.
12645         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'
12646
12647         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12648         hardcode_libdir_separator_CXX=:
12649
12650         # Archives containing C++ object files must be created using
12651         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12652         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12653
12654         ;;
12655       RCC*)
12656         # Rational C++ 2.4.1
12657         # FIXME: insert proper C++ library support
12658         ld_shlibs_CXX=no
12659         ;;
12660       cxx*)
12661         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12662         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'
12663
12664         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665         hardcode_libdir_separator_CXX=:
12666
12667         # Commands to make compiler produce verbose output that lists
12668         # what "hidden" libraries, object files and flags are used when
12669         # linking a shared library.
12670         #
12671         # There doesn't appear to be a way to prevent this compiler from
12672         # explicitly linking system object files so we need to strip them
12673         # from the output so that they don't get included in the library
12674         # dependencies.
12675         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'
12676         ;;
12677       *)
12678         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12679           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12680           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'
12681
12682           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12683           hardcode_libdir_separator_CXX=:
12684
12685           # Commands to make compiler produce verbose output that lists
12686           # what "hidden" libraries, object files and flags are used when
12687           # linking a shared library.
12688           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12689
12690         else
12691           # FIXME: insert proper C++ library support
12692           ld_shlibs_CXX=no
12693         fi
12694         ;;
12695     esac
12696     ;;
12697   osf4* | osf5*)
12698     case $cc_basename in
12699       KCC*)
12700         # Kuck and Associates, Inc. (KAI) C++ Compiler
12701
12702         # KCC will only create a shared library if the output file
12703         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12704         # to its proper name (with version) after linking.
12705         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'
12706
12707         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12708         hardcode_libdir_separator_CXX=:
12709
12710         # Archives containing C++ object files must be created using
12711         # the KAI C++ compiler.
12712         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12713         ;;
12714       RCC*)
12715         # Rational C++ 2.4.1
12716         # FIXME: insert proper C++ library support
12717         ld_shlibs_CXX=no
12718         ;;
12719       cxx*)
12720         allow_undefined_flag_CXX=' -expect_unresolved \*'
12721         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'
12722         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12723           echo "-hidden">> $lib.exp~
12724           $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~
12725           $rm $lib.exp'
12726
12727         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12728         hardcode_libdir_separator_CXX=:
12729
12730         # Commands to make compiler produce verbose output that lists
12731         # what "hidden" libraries, object files and flags are used when
12732         # linking a shared library.
12733         #
12734         # There doesn't appear to be a way to prevent this compiler from
12735         # explicitly linking system object files so we need to strip them
12736         # from the output so that they don't get included in the library
12737         # dependencies.
12738         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'
12739         ;;
12740       *)
12741         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12742           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12743          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'
12744
12745           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12746           hardcode_libdir_separator_CXX=:
12747
12748           # Commands to make compiler produce verbose output that lists
12749           # what "hidden" libraries, object files and flags are used when
12750           # linking a shared library.
12751           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12752
12753         else
12754           # FIXME: insert proper C++ library support
12755           ld_shlibs_CXX=no
12756         fi
12757         ;;
12758     esac
12759     ;;
12760   psos*)
12761     # FIXME: insert proper C++ library support
12762     ld_shlibs_CXX=no
12763     ;;
12764   sunos4*)
12765     case $cc_basename in
12766       CC*)
12767         # Sun C++ 4.x
12768         # FIXME: insert proper C++ library support
12769         ld_shlibs_CXX=no
12770         ;;
12771       lcc*)
12772         # Lucid
12773         # FIXME: insert proper C++ library support
12774         ld_shlibs_CXX=no
12775         ;;
12776       *)
12777         # FIXME: insert proper C++ library support
12778         ld_shlibs_CXX=no
12779         ;;
12780     esac
12781     ;;
12782   solaris*)
12783     case $cc_basename in
12784       CC*)
12785         # Sun C++ 4.2, 5.x and Centerline C++
12786         archive_cmds_need_lc_CXX=yes
12787         no_undefined_flag_CXX=' -zdefs'
12788         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12789         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12790         $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'
12791
12792         hardcode_libdir_flag_spec_CXX='-R$libdir'
12793         hardcode_shlibpath_var_CXX=no
12794         case $host_os in
12795           solaris2.[0-5] | solaris2.[0-5].*) ;;
12796           *)
12797             # The C++ compiler is used as linker so we must use $wl
12798             # flag to pass the commands to the underlying system
12799             # linker. We must also pass each convience library through
12800             # to the system linker between allextract/defaultextract.
12801             # The C++ compiler will combine linker options so we
12802             # cannot just pass the convience library names through
12803             # without $wl.
12804             # Supported since Solaris 2.6 (maybe 2.5.1?)
12805             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'
12806             ;;
12807         esac
12808         link_all_deplibs_CXX=yes
12809
12810         output_verbose_link_cmd='echo'
12811
12812         # Archives containing C++ object files must be created using
12813         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12814         # necessary to make sure instantiated templates are included
12815         # in the archive.
12816         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12817         ;;
12818       gcx*)
12819         # Green Hills C++ Compiler
12820         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12821
12822         # The C++ compiler must be used to create the archive.
12823         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12824         ;;
12825       *)
12826         # GNU C++ compiler with Solaris linker
12827         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12828           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12829           if $CC --version | grep -v '^2\.7' > /dev/null; then
12830             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12831             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12832                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12833
12834             # Commands to make compiler produce verbose output that lists
12835             # what "hidden" libraries, object files and flags are used when
12836             # linking a shared library.
12837             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12838           else
12839             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12840             # platform.
12841             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12842             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12844
12845             # Commands to make compiler produce verbose output that lists
12846             # what "hidden" libraries, object files and flags are used when
12847             # linking a shared library.
12848             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12849           fi
12850
12851           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12852         fi
12853         ;;
12854     esac
12855     ;;
12856   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12857     no_undefined_flag_CXX='${wl}-z,text'
12858     archive_cmds_need_lc_CXX=no
12859     hardcode_shlibpath_var_CXX=no
12860     runpath_var='LD_RUN_PATH'
12861
12862     case $cc_basename in
12863       CC*)
12864         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12865         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12866         ;;
12867       *)
12868         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12869         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12870         ;;
12871     esac
12872     ;;
12873   sysv5* | sco3.2v5* | sco5v6*)
12874     # Note: We can NOT use -z defs as we might desire, because we do not
12875     # link with -lc, and that would cause any symbols used from libc to
12876     # always be unresolved, which means just about no library would
12877     # ever link correctly.  If we're not using GNU ld we use -z text
12878     # though, which does catch some bad symbols but isn't as heavy-handed
12879     # as -z defs.
12880     # For security reasons, it is highly recommended that you always
12881     # use absolute paths for naming shared libraries, and exclude the
12882     # DT_RUNPATH tag from executables and libraries.  But doing so
12883     # requires that you compile everything twice, which is a pain.
12884     # So that behaviour is only enabled if SCOABSPATH is set to a
12885     # non-empty value in the environment.  Most likely only useful for
12886     # creating official distributions of packages.
12887     # This is a hack until libtool officially supports absolute path
12888     # names for shared libraries.
12889     no_undefined_flag_CXX='${wl}-z,text'
12890     allow_undefined_flag_CXX='${wl}-z,nodefs'
12891     archive_cmds_need_lc_CXX=no
12892     hardcode_shlibpath_var_CXX=no
12893     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12894     hardcode_libdir_separator_CXX=':'
12895     link_all_deplibs_CXX=yes
12896     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12897     runpath_var='LD_RUN_PATH'
12898
12899     case $cc_basename in
12900       CC*)
12901         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12902         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12903         ;;
12904       *)
12905         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12906         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12907         ;;
12908     esac
12909     ;;
12910   tandem*)
12911     case $cc_basename in
12912       NCC*)
12913         # NonStop-UX NCC 3.20
12914         # FIXME: insert proper C++ library support
12915         ld_shlibs_CXX=no
12916         ;;
12917       *)
12918         # FIXME: insert proper C++ library support
12919         ld_shlibs_CXX=no
12920         ;;
12921     esac
12922     ;;
12923   vxworks*)
12924     # FIXME: insert proper C++ library support
12925     ld_shlibs_CXX=no
12926     ;;
12927   *)
12928     # FIXME: insert proper C++ library support
12929     ld_shlibs_CXX=no
12930     ;;
12931 esac
12932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12934 test "$ld_shlibs_CXX" = no && can_build_shared=no
12935
12936 GCC_CXX="$GXX"
12937 LD_CXX="$LD"
12938
12939
12940 cat > conftest.$ac_ext <<EOF
12941 class Foo
12942 {
12943 public:
12944   Foo (void) { a = 0; }
12945 private:
12946   int a;
12947 };
12948 EOF
12949
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951   (eval $ac_compile) 2>&5
12952   ac_status=$?
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); }; then
12955   # Parse the compiler output and extract the necessary
12956   # objects, libraries and library flags.
12957
12958   # Sentinel used to keep track of whether or not we are before
12959   # the conftest object file.
12960   pre_test_object_deps_done=no
12961
12962   # The `*' in the case matches for architectures that use `case' in
12963   # $output_verbose_cmd can trigger glob expansion during the loop
12964   # eval without this substitution.
12965   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12966
12967   for p in `eval $output_verbose_link_cmd`; do
12968     case $p in
12969
12970     -L* | -R* | -l*)
12971        # Some compilers place space between "-{L,R}" and the path.
12972        # Remove the space.
12973        if test $p = "-L" \
12974           || test $p = "-R"; then
12975          prev=$p
12976          continue
12977        else
12978          prev=
12979        fi
12980
12981        if test "$pre_test_object_deps_done" = no; then
12982          case $p in
12983          -L* | -R*)
12984            # Internal compiler library paths should come after those
12985            # provided the user.  The postdeps already come after the
12986            # user supplied libs so there is no need to process them.
12987            if test -z "$compiler_lib_search_path_CXX"; then
12988              compiler_lib_search_path_CXX="${prev}${p}"
12989            else
12990              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12991            fi
12992            ;;
12993          # The "-l" case would never come before the object being
12994          # linked, so don't bother handling this case.
12995          esac
12996        else
12997          if test -z "$postdeps_CXX"; then
12998            postdeps_CXX="${prev}${p}"
12999          else
13000            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13001          fi
13002        fi
13003        ;;
13004
13005     *.$objext)
13006        # This assumes that the test object file only shows up
13007        # once in the compiler output.
13008        if test "$p" = "conftest.$objext"; then
13009          pre_test_object_deps_done=yes
13010          continue
13011        fi
13012
13013        if test "$pre_test_object_deps_done" = no; then
13014          if test -z "$predep_objects_CXX"; then
13015            predep_objects_CXX="$p"
13016          else
13017            predep_objects_CXX="$predep_objects_CXX $p"
13018          fi
13019        else
13020          if test -z "$postdep_objects_CXX"; then
13021            postdep_objects_CXX="$p"
13022          else
13023            postdep_objects_CXX="$postdep_objects_CXX $p"
13024          fi
13025        fi
13026        ;;
13027
13028     *) ;; # Ignore the rest.
13029
13030     esac
13031   done
13032
13033   # Clean up.
13034   rm -f a.out a.exe
13035 else
13036   echo "libtool.m4: error: problem compiling CXX test program"
13037 fi
13038
13039 $rm -f confest.$objext
13040
13041 # PORTME: override above test on systems where it is broken
13042 case $host_os in
13043 interix3*)
13044   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13045   # hack all around it, let's just trust "g++" to DTRT.
13046   predep_objects_CXX=
13047   postdep_objects_CXX=
13048   postdeps_CXX=
13049   ;;
13050
13051 solaris*)
13052   case $cc_basename in
13053   CC*)
13054     # Adding this requires a known-good setup of shared libraries for
13055     # Sun compiler versions before 5.6, else PIC objects from an old
13056     # archive will be linked into the output, leading to subtle bugs.
13057     postdeps_CXX='-lCstd -lCrun'
13058     ;;
13059   esac
13060   ;;
13061 esac
13062
13063
13064 case " $postdeps_CXX " in
13065 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13066 esac
13067
13068 lt_prog_compiler_wl_CXX=
13069 lt_prog_compiler_pic_CXX=
13070 lt_prog_compiler_static_CXX=
13071
13072 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13073 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13074
13075   # C++ specific cases for pic, static, wl, etc.
13076   if test "$GXX" = yes; then
13077     lt_prog_compiler_wl_CXX='-Wl,'
13078     lt_prog_compiler_static_CXX='-static'
13079
13080     case $host_os in
13081     aix*)
13082       # All AIX code is PIC.
13083       if test "$host_cpu" = ia64; then
13084         # AIX 5 now supports IA64 processor
13085         lt_prog_compiler_static_CXX='-Bstatic'
13086       fi
13087       ;;
13088     amigaos*)
13089       # FIXME: we need at least 68020 code to build shared libraries, but
13090       # adding the `-m68020' flag to GCC prevents building anything better,
13091       # like `-m68040'.
13092       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13093       ;;
13094     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13095       # PIC is the default for these OSes.
13096       ;;
13097     mingw* | os2* | pw32*)
13098       # This hack is so that the source file can tell whether it is being
13099       # built for inclusion in a dll (and should export symbols for example).
13100       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13101       ;;
13102     darwin* | rhapsody*)
13103       # PIC is the default on this platform
13104       # Common symbols not allowed in MH_DYLIB files
13105       lt_prog_compiler_pic_CXX='-fno-common'
13106       ;;
13107     *djgpp*)
13108       # DJGPP does not support shared libraries at all
13109       lt_prog_compiler_pic_CXX=
13110       ;;
13111     interix3*)
13112       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13113       # Instead, we relocate shared libraries at runtime.
13114       ;;
13115     sysv4*MP*)
13116       if test -d /usr/nec; then
13117         lt_prog_compiler_pic_CXX=-Kconform_pic
13118       fi
13119       ;;
13120     hpux*)
13121       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13122       # not for PA HP-UX.
13123       case $host_cpu in
13124       hppa*64*|ia64*)
13125         ;;
13126       *)
13127         lt_prog_compiler_pic_CXX='-fPIC'
13128         ;;
13129       esac
13130       ;;
13131     *)
13132       lt_prog_compiler_pic_CXX='-fPIC'
13133       ;;
13134     esac
13135   else
13136     case $host_os in
13137       aix4* | aix5*)
13138         # All AIX code is PIC.
13139         if test "$host_cpu" = ia64; then
13140           # AIX 5 now supports IA64 processor
13141           lt_prog_compiler_static_CXX='-Bstatic'
13142         else
13143           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13144         fi
13145         ;;
13146       chorus*)
13147         case $cc_basename in
13148         cxch68*)
13149           # Green Hills C++ Compiler
13150           # _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"
13151           ;;
13152         esac
13153         ;;
13154        darwin*)
13155          # PIC is the default on this platform
13156          # Common symbols not allowed in MH_DYLIB files
13157          case $cc_basename in
13158            xlc*)
13159            lt_prog_compiler_pic_CXX='-qnocommon'
13160            lt_prog_compiler_wl_CXX='-Wl,'
13161            ;;
13162          esac
13163        ;;
13164       dgux*)
13165         case $cc_basename in
13166           ec++*)
13167             lt_prog_compiler_pic_CXX='-KPIC'
13168             ;;
13169           ghcx*)
13170             # Green Hills C++ Compiler
13171             lt_prog_compiler_pic_CXX='-pic'
13172             ;;
13173           *)
13174             ;;
13175         esac
13176         ;;
13177       freebsd* | dragonfly*)
13178         # FreeBSD uses GNU C++
13179         ;;
13180       hpux9* | hpux10* | hpux11*)
13181         case $cc_basename in
13182           CC*)
13183             lt_prog_compiler_wl_CXX='-Wl,'
13184             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13185             if test "$host_cpu" != ia64; then
13186               lt_prog_compiler_pic_CXX='+Z'
13187             fi
13188             ;;
13189           aCC*)
13190             lt_prog_compiler_wl_CXX='-Wl,'
13191             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13192             case $host_cpu in
13193             hppa*64*|ia64*)
13194               # +Z the default
13195               ;;
13196             *)
13197               lt_prog_compiler_pic_CXX='+Z'
13198               ;;
13199             esac
13200             ;;
13201           *)
13202             ;;
13203         esac
13204         ;;
13205       interix*)
13206         # This is c89, which is MS Visual C++ (no shared libs)
13207         # Anyone wants to do a port?
13208         ;;
13209       irix5* | irix6* | nonstopux*)
13210         case $cc_basename in
13211           CC*)
13212             lt_prog_compiler_wl_CXX='-Wl,'
13213             lt_prog_compiler_static_CXX='-non_shared'
13214             # CC pic flag -KPIC is the default.
13215             ;;
13216           *)
13217             ;;
13218         esac
13219         ;;
13220       linux* | k*bsd*-gnu)
13221         case $cc_basename in
13222           KCC*)
13223             # KAI C++ Compiler
13224             lt_prog_compiler_wl_CXX='--backend -Wl,'
13225             lt_prog_compiler_pic_CXX='-fPIC'
13226             ;;
13227           icpc* | ecpc*)
13228             # Intel C++
13229             lt_prog_compiler_wl_CXX='-Wl,'
13230             lt_prog_compiler_pic_CXX='-KPIC'
13231             lt_prog_compiler_static_CXX='-static'
13232             ;;
13233           pgCC*)
13234             # Portland Group C++ compiler.
13235             lt_prog_compiler_wl_CXX='-Wl,'
13236             lt_prog_compiler_pic_CXX='-fpic'
13237             lt_prog_compiler_static_CXX='-Bstatic'
13238             ;;
13239           cxx*)
13240             # Compaq C++
13241             # Make sure the PIC flag is empty.  It appears that all Alpha
13242             # Linux and Compaq Tru64 Unix objects are PIC.
13243             lt_prog_compiler_pic_CXX=
13244             lt_prog_compiler_static_CXX='-non_shared'
13245             ;;
13246           *)
13247             ;;
13248         esac
13249         ;;
13250       lynxos*)
13251         ;;
13252       m88k*)
13253         ;;
13254       mvs*)
13255         case $cc_basename in
13256           cxx*)
13257             lt_prog_compiler_pic_CXX='-W c,exportall'
13258             ;;
13259           *)
13260             ;;
13261         esac
13262         ;;
13263       netbsd* | netbsdelf*-gnu)
13264         ;;
13265       osf3* | osf4* | osf5*)
13266         case $cc_basename in
13267           KCC*)
13268             lt_prog_compiler_wl_CXX='--backend -Wl,'
13269             ;;
13270           RCC*)
13271             # Rational C++ 2.4.1
13272             lt_prog_compiler_pic_CXX='-pic'
13273             ;;
13274           cxx*)
13275             # Digital/Compaq C++
13276             lt_prog_compiler_wl_CXX='-Wl,'
13277             # Make sure the PIC flag is empty.  It appears that all Alpha
13278             # Linux and Compaq Tru64 Unix objects are PIC.
13279             lt_prog_compiler_pic_CXX=
13280             lt_prog_compiler_static_CXX='-non_shared'
13281             ;;
13282           *)
13283             ;;
13284         esac
13285         ;;
13286       psos*)
13287         ;;
13288       solaris*)
13289         case $cc_basename in
13290           CC*)
13291             # Sun C++ 4.2, 5.x and Centerline C++
13292             lt_prog_compiler_pic_CXX='-KPIC'
13293             lt_prog_compiler_static_CXX='-Bstatic'
13294             lt_prog_compiler_wl_CXX='-Qoption ld '
13295             ;;
13296           gcx*)
13297             # Green Hills C++ Compiler
13298             lt_prog_compiler_pic_CXX='-PIC'
13299             ;;
13300           *)
13301             ;;
13302         esac
13303         ;;
13304       sunos4*)
13305         case $cc_basename in
13306           CC*)
13307             # Sun C++ 4.x
13308             lt_prog_compiler_pic_CXX='-pic'
13309             lt_prog_compiler_static_CXX='-Bstatic'
13310             ;;
13311           lcc*)
13312             # Lucid
13313             lt_prog_compiler_pic_CXX='-pic'
13314             ;;
13315           *)
13316             ;;
13317         esac
13318         ;;
13319       tandem*)
13320         case $cc_basename in
13321           NCC*)
13322             # NonStop-UX NCC 3.20
13323             lt_prog_compiler_pic_CXX='-KPIC'
13324             ;;
13325           *)
13326             ;;
13327         esac
13328         ;;
13329       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13330         case $cc_basename in
13331           CC*)
13332             lt_prog_compiler_wl_CXX='-Wl,'
13333             lt_prog_compiler_pic_CXX='-KPIC'
13334             lt_prog_compiler_static_CXX='-Bstatic'
13335             ;;
13336         esac
13337         ;;
13338       vxworks*)
13339         ;;
13340       *)
13341         lt_prog_compiler_can_build_shared_CXX=no
13342         ;;
13343     esac
13344   fi
13345
13346 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13347 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13348
13349 #
13350 # Check to make sure the PIC flag actually works.
13351 #
13352 if test -n "$lt_prog_compiler_pic_CXX"; then
13353
13354 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13355 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13356 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   lt_prog_compiler_pic_works_CXX=no
13360   ac_outfile=conftest.$ac_objext
13361    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13362    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13363    # Insert the option either (1) after the last *FLAGS variable, or
13364    # (2) before a word containing "conftest.", or (3) at the end.
13365    # Note that $ac_compile itself does not contain backslashes and begins
13366    # with a dollar sign (not a hyphen), so the echo should work correctly.
13367    # The option is referenced via a variable to avoid confusing sed.
13368    lt_compile=`echo "$ac_compile" | $SED \
13369    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13370    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13371    -e 's:$: $lt_compiler_flag:'`
13372    (eval echo "\"\$as_me:13372: $lt_compile\"" >&5)
13373    (eval "$lt_compile" 2>conftest.err)
13374    ac_status=$?
13375    cat conftest.err >&5
13376    echo "$as_me:13376: \$? = $ac_status" >&5
13377    if (exit $ac_status) && test -s "$ac_outfile"; then
13378      # The compiler can only warn and ignore the option if not recognized
13379      # So say no if there are warnings other than the usual output.
13380      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13381      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13382      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13383        lt_prog_compiler_pic_works_CXX=yes
13384      fi
13385    fi
13386    $rm conftest*
13387
13388 fi
13389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13390 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13391
13392 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13393     case $lt_prog_compiler_pic_CXX in
13394      "" | " "*) ;;
13395      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13396      esac
13397 else
13398     lt_prog_compiler_pic_CXX=
13399      lt_prog_compiler_can_build_shared_CXX=no
13400 fi
13401
13402 fi
13403 case $host_os in
13404   # For platforms which do not support PIC, -DPIC is meaningless:
13405   *djgpp*)
13406     lt_prog_compiler_pic_CXX=
13407     ;;
13408   *)
13409     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13410     ;;
13411 esac
13412
13413 #
13414 # Check to make sure the static flag actually works.
13415 #
13416 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13417 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13418 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13419 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   lt_prog_compiler_static_works_CXX=no
13423    save_LDFLAGS="$LDFLAGS"
13424    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13425    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13426    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13427      # The linker can only warn and ignore the option if not recognized
13428      # So say no if there are warnings
13429      if test -s conftest.err; then
13430        # Append any errors to the config.log.
13431        cat conftest.err 1>&5
13432        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13433        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13434        if diff conftest.exp conftest.er2 >/dev/null; then
13435          lt_prog_compiler_static_works_CXX=yes
13436        fi
13437      else
13438        lt_prog_compiler_static_works_CXX=yes
13439      fi
13440    fi
13441    $rm conftest*
13442    LDFLAGS="$save_LDFLAGS"
13443
13444 fi
13445 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13446 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13447
13448 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13449     :
13450 else
13451     lt_prog_compiler_static_CXX=
13452 fi
13453
13454
13455 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13456 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13457 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13458   echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460   lt_cv_prog_compiler_c_o_CXX=no
13461    $rm -r conftest 2>/dev/null
13462    mkdir conftest
13463    cd conftest
13464    mkdir out
13465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13466
13467    lt_compiler_flag="-o out/conftest2.$ac_objext"
13468    # Insert the option either (1) after the last *FLAGS variable, or
13469    # (2) before a word containing "conftest.", or (3) at the end.
13470    # Note that $ac_compile itself does not contain backslashes and begins
13471    # with a dollar sign (not a hyphen), so the echo should work correctly.
13472    lt_compile=`echo "$ac_compile" | $SED \
13473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13475    -e 's:$: $lt_compiler_flag:'`
13476    (eval echo "\"\$as_me:13476: $lt_compile\"" >&5)
13477    (eval "$lt_compile" 2>out/conftest.err)
13478    ac_status=$?
13479    cat out/conftest.err >&5
13480    echo "$as_me:13480: \$? = $ac_status" >&5
13481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13482    then
13483      # The compiler can only warn and ignore the option if not recognized
13484      # So say no if there are warnings
13485      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13486      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13487      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13488        lt_cv_prog_compiler_c_o_CXX=yes
13489      fi
13490    fi
13491    chmod u+w . 2>&5
13492    $rm conftest*
13493    # SGI C++ compiler will create directory out/ii_files/ for
13494    # template instantiation
13495    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496    $rm out/* && rmdir out
13497    cd ..
13498    rmdir conftest
13499    $rm conftest*
13500
13501 fi
13502 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13504
13505
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13508   # do not overwrite the value of need_locks provided by the user
13509   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13511   hard_links=yes
13512   $rm conftest*
13513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13514   touch conftest.a
13515   ln conftest.a conftest.b 2>&5 || hard_links=no
13516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517   { echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6; }
13519   if test "$hard_links" = no; then
13520     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13522     need_locks=warn
13523   fi
13524 else
13525   need_locks=no
13526 fi
13527
13528 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13530
13531   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13532   case $host_os in
13533   aix4* | aix5*)
13534     # If we're using GNU nm, then we don't want the "-C" option.
13535     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13536     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13537       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'
13538     else
13539       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'
13540     fi
13541     ;;
13542   pw32*)
13543     export_symbols_cmds_CXX="$ltdll_cmds"
13544   ;;
13545   cygwin* | mingw*)
13546     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'
13547   ;;
13548   linux* | k*bsd*-gnu)
13549     link_all_deplibs_CXX=no
13550   ;;
13551   *)
13552     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553   ;;
13554   esac
13555
13556 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13557 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13558 test "$ld_shlibs_CXX" = no && can_build_shared=no
13559
13560 #
13561 # Do we need to explicitly link libc?
13562 #
13563 case "x$archive_cmds_need_lc_CXX" in
13564 x|xyes)
13565   # Assume -lc should be added
13566   archive_cmds_need_lc_CXX=yes
13567
13568   if test "$enable_shared" = yes && test "$GCC" = yes; then
13569     case $archive_cmds_CXX in
13570     *'~'*)
13571       # FIXME: we may have to deal with multi-command sequences.
13572       ;;
13573     '$CC '*)
13574       # Test whether the compiler implicitly links with -lc since on some
13575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576       # to ld, don't add -lc before -lgcc.
13577       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13578 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13579       $rm conftest*
13580       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13581
13582       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583   (eval $ac_compile) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } 2>conftest.err; then
13587         soname=conftest
13588         lib=conftest
13589         libobjs=conftest.$ac_objext
13590         deplibs=
13591         wl=$lt_prog_compiler_wl_CXX
13592         pic_flag=$lt_prog_compiler_pic_CXX
13593         compiler_flags=-v
13594         linker_flags=-v
13595         verstring=
13596         output_objdir=.
13597         libname=conftest
13598         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13599         allow_undefined_flag_CXX=
13600         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13601   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }
13605         then
13606           archive_cmds_need_lc_CXX=no
13607         else
13608           archive_cmds_need_lc_CXX=yes
13609         fi
13610         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13611       else
13612         cat conftest.err 1>&5
13613       fi
13614       $rm conftest*
13615       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13616 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13617       ;;
13618     esac
13619   fi
13620   ;;
13621 esac
13622
13623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13625 library_names_spec=
13626 libname_spec='lib$name'
13627 soname_spec=
13628 shrext_cmds=".so"
13629 postinstall_cmds=
13630 postuninstall_cmds=
13631 finish_cmds=
13632 finish_eval=
13633 shlibpath_var=
13634 shlibpath_overrides_runpath=unknown
13635 version_type=none
13636 dynamic_linker="$host_os ld.so"
13637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13638 if test "$GCC" = yes; then
13639   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13640   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13641     # if the path contains ";" then we assume it to be the separator
13642     # otherwise default to the standard path separator (i.e. ":") - it is
13643     # assumed that no part of a normal pathname contains ";" but that should
13644     # okay in the real world where ";" in dirpaths is itself problematic.
13645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13646   else
13647     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13648   fi
13649 else
13650   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13651 fi
13652 need_lib_prefix=unknown
13653 hardcode_into_libs=no
13654
13655 # when you set need_version to no, make sure it does not cause -set_version
13656 # flags to be left without arguments
13657 need_version=unknown
13658
13659 case $host_os in
13660 aix3*)
13661   version_type=linux
13662   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13663   shlibpath_var=LIBPATH
13664
13665   # AIX 3 has no versioning support, so we append a major version to the name.
13666   soname_spec='${libname}${release}${shared_ext}$major'
13667   ;;
13668
13669 aix4* | aix5*)
13670   version_type=linux
13671   need_lib_prefix=no
13672   need_version=no
13673   hardcode_into_libs=yes
13674   if test "$host_cpu" = ia64; then
13675     # AIX 5 supports IA64
13676     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13677     shlibpath_var=LD_LIBRARY_PATH
13678   else
13679     # With GCC up to 2.95.x, collect2 would create an import file
13680     # for dependence libraries.  The import file would start with
13681     # the line `#! .'.  This would cause the generated library to
13682     # depend on `.', always an invalid library.  This was fixed in
13683     # development snapshots of GCC prior to 3.0.
13684     case $host_os in
13685       aix4 | aix4.[01] | aix4.[01].*)
13686       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13687            echo ' yes '
13688            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13689         :
13690       else
13691         can_build_shared=no
13692       fi
13693       ;;
13694     esac
13695     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13696     # soname into executable. Probably we can add versioning support to
13697     # collect2, so additional links can be useful in future.
13698     if test "$aix_use_runtimelinking" = yes; then
13699       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13700       # instead of lib<name>.a to let people know that these are not
13701       # typical AIX shared libraries.
13702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703     else
13704       # We preserve .a as extension for shared libraries through AIX4.2
13705       # and later when we are not doing run time linking.
13706       library_names_spec='${libname}${release}.a $libname.a'
13707       soname_spec='${libname}${release}${shared_ext}$major'
13708     fi
13709     shlibpath_var=LIBPATH
13710   fi
13711   ;;
13712
13713 amigaos*)
13714   library_names_spec='$libname.ixlibrary $libname.a'
13715   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13716   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'
13717   ;;
13718
13719 beos*)
13720   library_names_spec='${libname}${shared_ext}'
13721   dynamic_linker="$host_os ld.so"
13722   shlibpath_var=LIBRARY_PATH
13723   ;;
13724
13725 bsdi[45]*)
13726   version_type=linux
13727   need_version=no
13728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13729   soname_spec='${libname}${release}${shared_ext}$major'
13730   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13731   shlibpath_var=LD_LIBRARY_PATH
13732   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13733   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13734   # the default ld.so.conf also contains /usr/contrib/lib and
13735   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13736   # libtool to hard-code these into programs
13737   ;;
13738
13739 cygwin* | mingw* | pw32*)
13740   version_type=windows
13741   shrext_cmds=".dll"
13742   need_version=no
13743   need_lib_prefix=no
13744
13745   case $GCC,$host_os in
13746   yes,cygwin* | yes,mingw* | yes,pw32*)
13747     library_names_spec='$libname.dll.a'
13748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13749     postinstall_cmds='base_file=`basename \${file}`~
13750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13751       dldir=$destdir/`dirname \$dlpath`~
13752       test -d \$dldir || mkdir -p \$dldir~
13753       $install_prog $dir/$dlname \$dldir/$dlname~
13754       chmod a+x \$dldir/$dlname'
13755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13756       dlpath=$dir/\$dldll~
13757        $rm \$dlpath'
13758     shlibpath_overrides_runpath=yes
13759
13760     case $host_os in
13761     cygwin*)
13762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13765       ;;
13766     mingw*)
13767       # MinGW DLLs use traditional 'lib' prefix
13768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13771         # It is most probably a Windows format PATH printed by
13772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13773         # path with ; separators, and with drive letters. We can handle the
13774         # drive letters (cygwin fileutils understands them), so leave them,
13775         # especially as we might pass files found there to a mingw objdump,
13776         # which wouldn't understand a cygwinified path. Ahh.
13777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13778       else
13779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13780       fi
13781       ;;
13782     pw32*)
13783       # pw32 DLLs use 'pw' prefix rather than 'lib'
13784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13785       ;;
13786     esac
13787     ;;
13788
13789   *)
13790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13791     ;;
13792   esac
13793   dynamic_linker='Win32 ld.exe'
13794   # FIXME: first we should search . and the directory the executable is in
13795   shlibpath_var=PATH
13796   ;;
13797
13798 darwin* | rhapsody*)
13799   dynamic_linker="$host_os dyld"
13800   version_type=darwin
13801   need_lib_prefix=no
13802   need_version=no
13803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13804   soname_spec='${libname}${release}${major}$shared_ext'
13805   shlibpath_overrides_runpath=yes
13806   shlibpath_var=DYLD_LIBRARY_PATH
13807   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13809   if test "$GCC" = yes; then
13810     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"`
13811   else
13812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13813   fi
13814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13815   ;;
13816
13817 dgux*)
13818   version_type=linux
13819   need_lib_prefix=no
13820   need_version=no
13821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13822   soname_spec='${libname}${release}${shared_ext}$major'
13823   shlibpath_var=LD_LIBRARY_PATH
13824   ;;
13825
13826 freebsd1*)
13827   dynamic_linker=no
13828   ;;
13829
13830 freebsd* | dragonfly*)
13831   # DragonFly does not have aout.  When/if they implement a new
13832   # versioning mechanism, adjust this.
13833   if test -x /usr/bin/objformat; then
13834     objformat=`/usr/bin/objformat`
13835   else
13836     case $host_os in
13837     freebsd[123]*) objformat=aout ;;
13838     *) objformat=elf ;;
13839     esac
13840   fi
13841   version_type=freebsd-$objformat
13842   case $version_type in
13843     freebsd-elf*)
13844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13845       need_version=no
13846       need_lib_prefix=no
13847       ;;
13848     freebsd-*)
13849       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13850       need_version=yes
13851       ;;
13852   esac
13853   shlibpath_var=LD_LIBRARY_PATH
13854   case $host_os in
13855   freebsd2*)
13856     shlibpath_overrides_runpath=yes
13857     ;;
13858   freebsd3.[01]* | freebsdelf3.[01]*)
13859     shlibpath_overrides_runpath=yes
13860     hardcode_into_libs=yes
13861     ;;
13862   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13863   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13864     shlibpath_overrides_runpath=no
13865     hardcode_into_libs=yes
13866     ;;
13867   freebsd*) # from 4.6 on
13868     shlibpath_overrides_runpath=yes
13869     hardcode_into_libs=yes
13870     ;;
13871   esac
13872   ;;
13873
13874 gnu*)
13875   version_type=linux
13876   need_lib_prefix=no
13877   need_version=no
13878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13879   soname_spec='${libname}${release}${shared_ext}$major'
13880   shlibpath_var=LD_LIBRARY_PATH
13881   hardcode_into_libs=yes
13882   ;;
13883
13884 hpux9* | hpux10* | hpux11*)
13885   # Give a soname corresponding to the major version so that dld.sl refuses to
13886   # link against other versions.
13887   version_type=sunos
13888   need_lib_prefix=no
13889   need_version=no
13890   case $host_cpu in
13891   ia64*)
13892     shrext_cmds='.so'
13893     hardcode_into_libs=yes
13894     dynamic_linker="$host_os dld.so"
13895     shlibpath_var=LD_LIBRARY_PATH
13896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898     soname_spec='${libname}${release}${shared_ext}$major'
13899     if test "X$HPUX_IA64_MODE" = X32; then
13900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13901     else
13902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13903     fi
13904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13905     ;;
13906    hppa*64*)
13907      shrext_cmds='.sl'
13908      hardcode_into_libs=yes
13909      dynamic_linker="$host_os dld.sl"
13910      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13911      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13912      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13913      soname_spec='${libname}${release}${shared_ext}$major'
13914      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13915      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13916      ;;
13917    *)
13918     shrext_cmds='.sl'
13919     dynamic_linker="$host_os dld.sl"
13920     shlibpath_var=SHLIB_PATH
13921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923     soname_spec='${libname}${release}${shared_ext}$major'
13924     ;;
13925   esac
13926   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13927   postinstall_cmds='chmod 555 $lib'
13928   ;;
13929
13930 interix3*)
13931   version_type=linux
13932   need_lib_prefix=no
13933   need_version=no
13934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13935   soname_spec='${libname}${release}${shared_ext}$major'
13936   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13937   shlibpath_var=LD_LIBRARY_PATH
13938   shlibpath_overrides_runpath=no
13939   hardcode_into_libs=yes
13940   ;;
13941
13942 irix5* | irix6* | nonstopux*)
13943   case $host_os in
13944     nonstopux*) version_type=nonstopux ;;
13945     *)
13946         if test "$lt_cv_prog_gnu_ld" = yes; then
13947                 version_type=linux
13948         else
13949                 version_type=irix
13950         fi ;;
13951   esac
13952   need_lib_prefix=no
13953   need_version=no
13954   soname_spec='${libname}${release}${shared_ext}$major'
13955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13956   case $host_os in
13957   irix5* | nonstopux*)
13958     libsuff= shlibsuff=
13959     ;;
13960   *)
13961     case $LD in # libtool.m4 will add one of these switches to LD
13962     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13963       libsuff= shlibsuff= libmagic=32-bit;;
13964     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13965       libsuff=32 shlibsuff=N32 libmagic=N32;;
13966     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13967       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13968     *) libsuff= shlibsuff= libmagic=never-match;;
13969     esac
13970     ;;
13971   esac
13972   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13973   shlibpath_overrides_runpath=no
13974   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13975   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13976   hardcode_into_libs=yes
13977   ;;
13978
13979 # No shared lib support for Linux oldld, aout, or coff.
13980 linux*oldld* | linux*aout* | linux*coff*)
13981   dynamic_linker=no
13982   ;;
13983
13984 # This must be Linux ELF.
13985 linux* | k*bsd*-gnu)
13986   version_type=linux
13987   need_lib_prefix=no
13988   need_version=no
13989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990   soname_spec='${libname}${release}${shared_ext}$major'
13991   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13992   shlibpath_var=LD_LIBRARY_PATH
13993   shlibpath_overrides_runpath=no
13994   # This implies no fast_install, which is unacceptable.
13995   # Some rework will be needed to allow for fast_install
13996   # before this can be enabled.
13997   hardcode_into_libs=yes
13998
13999   # Append ld.so.conf contents to the search path
14000   if test -f /etc/ld.so.conf; then
14001     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' ' '`
14002     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14003   fi
14004
14005   # We used to test for /lib/ld.so.1 and disable shared libraries on
14006   # powerpc, because MkLinux only supported shared libraries with the
14007   # GNU dynamic linker.  Since this was broken with cross compilers,
14008   # most powerpc-linux boxes support dynamic linking these days and
14009   # people can always --disable-shared, the test was removed, and we
14010   # assume the GNU/Linux dynamic linker is in use.
14011   dynamic_linker='GNU/Linux ld.so'
14012   ;;
14013
14014 netbsdelf*-gnu)
14015   version_type=linux
14016   need_lib_prefix=no
14017   need_version=no
14018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14019   soname_spec='${libname}${release}${shared_ext}$major'
14020   shlibpath_var=LD_LIBRARY_PATH
14021   shlibpath_overrides_runpath=no
14022   hardcode_into_libs=yes
14023   dynamic_linker='NetBSD ld.elf_so'
14024   ;;
14025
14026 netbsd*)
14027   version_type=sunos
14028   need_lib_prefix=no
14029   need_version=no
14030   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14032     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14033     dynamic_linker='NetBSD (a.out) ld.so'
14034   else
14035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14036     soname_spec='${libname}${release}${shared_ext}$major'
14037     dynamic_linker='NetBSD ld.elf_so'
14038   fi
14039   shlibpath_var=LD_LIBRARY_PATH
14040   shlibpath_overrides_runpath=yes
14041   hardcode_into_libs=yes
14042   ;;
14043
14044 newsos6)
14045   version_type=linux
14046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047   shlibpath_var=LD_LIBRARY_PATH
14048   shlibpath_overrides_runpath=yes
14049   ;;
14050
14051 nto-qnx*)
14052   version_type=linux
14053   need_lib_prefix=no
14054   need_version=no
14055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056   soname_spec='${libname}${release}${shared_ext}$major'
14057   shlibpath_var=LD_LIBRARY_PATH
14058   shlibpath_overrides_runpath=yes
14059   ;;
14060
14061 openbsd*)
14062   version_type=sunos
14063   sys_lib_dlsearch_path_spec="/usr/lib"
14064   need_lib_prefix=no
14065   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14066   case $host_os in
14067     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14068     *)                         need_version=no  ;;
14069   esac
14070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14072   shlibpath_var=LD_LIBRARY_PATH
14073   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14074     case $host_os in
14075       openbsd2.[89] | openbsd2.[89].*)
14076         shlibpath_overrides_runpath=no
14077         ;;
14078       *)
14079         shlibpath_overrides_runpath=yes
14080         ;;
14081       esac
14082   else
14083     shlibpath_overrides_runpath=yes
14084   fi
14085   ;;
14086
14087 os2*)
14088   libname_spec='$name'
14089   shrext_cmds=".dll"
14090   need_lib_prefix=no
14091   library_names_spec='$libname${shared_ext} $libname.a'
14092   dynamic_linker='OS/2 ld.exe'
14093   shlibpath_var=LIBPATH
14094   ;;
14095
14096 osf3* | osf4* | osf5*)
14097   version_type=osf
14098   need_lib_prefix=no
14099   need_version=no
14100   soname_spec='${libname}${release}${shared_ext}$major'
14101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102   shlibpath_var=LD_LIBRARY_PATH
14103   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14104   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14105   ;;
14106
14107 solaris*)
14108   version_type=linux
14109   need_lib_prefix=no
14110   need_version=no
14111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112   soname_spec='${libname}${release}${shared_ext}$major'
14113   shlibpath_var=LD_LIBRARY_PATH
14114   shlibpath_overrides_runpath=yes
14115   hardcode_into_libs=yes
14116   # ldd complains unless libraries are executable
14117   postinstall_cmds='chmod +x $lib'
14118   ;;
14119
14120 sunos4*)
14121   version_type=sunos
14122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14123   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14124   shlibpath_var=LD_LIBRARY_PATH
14125   shlibpath_overrides_runpath=yes
14126   if test "$with_gnu_ld" = yes; then
14127     need_lib_prefix=no
14128   fi
14129   need_version=yes
14130   ;;
14131
14132 sysv4 | sysv4.3*)
14133   version_type=linux
14134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135   soname_spec='${libname}${release}${shared_ext}$major'
14136   shlibpath_var=LD_LIBRARY_PATH
14137   case $host_vendor in
14138     sni)
14139       shlibpath_overrides_runpath=no
14140       need_lib_prefix=no
14141       export_dynamic_flag_spec='${wl}-Blargedynsym'
14142       runpath_var=LD_RUN_PATH
14143       ;;
14144     siemens)
14145       need_lib_prefix=no
14146       ;;
14147     motorola)
14148       need_lib_prefix=no
14149       need_version=no
14150       shlibpath_overrides_runpath=no
14151       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14152       ;;
14153   esac
14154   ;;
14155
14156 sysv4*MP*)
14157   if test -d /usr/nec ;then
14158     version_type=linux
14159     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14160     soname_spec='$libname${shared_ext}.$major'
14161     shlibpath_var=LD_LIBRARY_PATH
14162   fi
14163   ;;
14164
14165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14166   version_type=freebsd-elf
14167   need_lib_prefix=no
14168   need_version=no
14169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14170   soname_spec='${libname}${release}${shared_ext}$major'
14171   shlibpath_var=LD_LIBRARY_PATH
14172   hardcode_into_libs=yes
14173   if test "$with_gnu_ld" = yes; then
14174     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14175     shlibpath_overrides_runpath=no
14176   else
14177     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14178     shlibpath_overrides_runpath=yes
14179     case $host_os in
14180       sco3.2v5*)
14181         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14182         ;;
14183     esac
14184   fi
14185   sys_lib_dlsearch_path_spec='/usr/lib'
14186   ;;
14187
14188 uts4*)
14189   version_type=linux
14190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191   soname_spec='${libname}${release}${shared_ext}$major'
14192   shlibpath_var=LD_LIBRARY_PATH
14193   ;;
14194
14195 *)
14196   dynamic_linker=no
14197   ;;
14198 esac
14199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14200 echo "${ECHO_T}$dynamic_linker" >&6; }
14201 test "$dynamic_linker" = no && can_build_shared=no
14202
14203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14204 if test "$GCC" = yes; then
14205   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14206 fi
14207
14208 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14209 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14210 hardcode_action_CXX=
14211 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14212    test -n "$runpath_var_CXX" || \
14213    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14214
14215   # We can hardcode non-existant directories.
14216   if test "$hardcode_direct_CXX" != no &&
14217      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14218      # have to relink, otherwise we might link with an installed library
14219      # when we should be linking with a yet-to-be-installed one
14220      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14221      test "$hardcode_minus_L_CXX" != no; then
14222     # Linking always hardcodes the temporary library directory.
14223     hardcode_action_CXX=relink
14224   else
14225     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14226     hardcode_action_CXX=immediate
14227   fi
14228 else
14229   # We cannot hardcode anything, or else we can only hardcode existing
14230   # directories.
14231   hardcode_action_CXX=unsupported
14232 fi
14233 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14234 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14235
14236 if test "$hardcode_action_CXX" = relink; then
14237   # Fast installation is not supported
14238   enable_fast_install=no
14239 elif test "$shlibpath_overrides_runpath" = yes ||
14240      test "$enable_shared" = no; then
14241   # Fast installation is not necessary
14242   enable_fast_install=needless
14243 fi
14244
14245
14246 # The else clause should only fire when bootstrapping the
14247 # libtool distribution, otherwise you forgot to ship ltmain.sh
14248 # with your package, and you will get complaints that there are
14249 # no rules to generate ltmain.sh.
14250 if test -f "$ltmain"; then
14251   # See if we are running on zsh, and set the options which allow our commands through
14252   # without removal of \ escapes.
14253   if test -n "${ZSH_VERSION+set}" ; then
14254     setopt NO_GLOB_SUBST
14255   fi
14256   # Now quote all the things that may contain metacharacters while being
14257   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14258   # variables and quote the copies for generation of the libtool script.
14259   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14260     SED SHELL STRIP \
14261     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14262     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14263     deplibs_check_method reload_flag reload_cmds need_locks \
14264     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14265     lt_cv_sys_global_symbol_to_c_name_address \
14266     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14267     old_postinstall_cmds old_postuninstall_cmds \
14268     compiler_CXX \
14269     CC_CXX \
14270     LD_CXX \
14271     lt_prog_compiler_wl_CXX \
14272     lt_prog_compiler_pic_CXX \
14273     lt_prog_compiler_static_CXX \
14274     lt_prog_compiler_no_builtin_flag_CXX \
14275     export_dynamic_flag_spec_CXX \
14276     thread_safe_flag_spec_CXX \
14277     whole_archive_flag_spec_CXX \
14278     enable_shared_with_static_runtimes_CXX \
14279     old_archive_cmds_CXX \
14280     old_archive_from_new_cmds_CXX \
14281     predep_objects_CXX \
14282     postdep_objects_CXX \
14283     predeps_CXX \
14284     postdeps_CXX \
14285     compiler_lib_search_path_CXX \
14286     archive_cmds_CXX \
14287     archive_expsym_cmds_CXX \
14288     postinstall_cmds_CXX \
14289     postuninstall_cmds_CXX \
14290     old_archive_from_expsyms_cmds_CXX \
14291     allow_undefined_flag_CXX \
14292     no_undefined_flag_CXX \
14293     export_symbols_cmds_CXX \
14294     hardcode_libdir_flag_spec_CXX \
14295     hardcode_libdir_flag_spec_ld_CXX \
14296     hardcode_libdir_separator_CXX \
14297     hardcode_automatic_CXX \
14298     module_cmds_CXX \
14299     module_expsym_cmds_CXX \
14300     lt_cv_prog_compiler_c_o_CXX \
14301     exclude_expsyms_CXX \
14302     include_expsyms_CXX; do
14303
14304     case $var in
14305     old_archive_cmds_CXX | \
14306     old_archive_from_new_cmds_CXX | \
14307     archive_cmds_CXX | \
14308     archive_expsym_cmds_CXX | \
14309     module_cmds_CXX | \
14310     module_expsym_cmds_CXX | \
14311     old_archive_from_expsyms_cmds_CXX | \
14312     export_symbols_cmds_CXX | \
14313     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14314     postinstall_cmds | postuninstall_cmds | \
14315     old_postinstall_cmds | old_postuninstall_cmds | \
14316     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14317       # Double-quote double-evaled strings.
14318       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14319       ;;
14320     *)
14321       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14322       ;;
14323     esac
14324   done
14325
14326   case $lt_echo in
14327   *'\$0 --fallback-echo"')
14328     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14329     ;;
14330   esac
14331
14332 cfgfile="$ofile"
14333
14334   cat <<__EOF__ >> "$cfgfile"
14335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14336
14337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14338
14339 # Shell to use when invoking shell scripts.
14340 SHELL=$lt_SHELL
14341
14342 # Whether or not to build shared libraries.
14343 build_libtool_libs=$enable_shared
14344
14345 # Whether or not to build static libraries.
14346 build_old_libs=$enable_static
14347
14348 # Whether or not to add -lc for building shared libraries.
14349 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14350
14351 # Whether or not to disallow shared libs when runtime libs are static
14352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14353
14354 # Whether or not to optimize for fast installation.
14355 fast_install=$enable_fast_install
14356
14357 # The host system.
14358 host_alias=$host_alias
14359 host=$host
14360 host_os=$host_os
14361
14362 # The build system.
14363 build_alias=$build_alias
14364 build=$build
14365 build_os=$build_os
14366
14367 # An echo program that does not interpret backslashes.
14368 echo=$lt_echo
14369
14370 # The archiver.
14371 AR=$lt_AR
14372 AR_FLAGS=$lt_AR_FLAGS
14373
14374 # A C compiler.
14375 LTCC=$lt_LTCC
14376
14377 # LTCC compiler flags.
14378 LTCFLAGS=$lt_LTCFLAGS
14379
14380 # A language-specific compiler.
14381 CC=$lt_compiler_CXX
14382
14383 # Is the compiler the GNU C compiler?
14384 with_gcc=$GCC_CXX
14385
14386 # An ERE matcher.
14387 EGREP=$lt_EGREP
14388
14389 # The linker used to build libraries.
14390 LD=$lt_LD_CXX
14391
14392 # Whether we need hard or soft links.
14393 LN_S=$lt_LN_S
14394
14395 # A BSD-compatible nm program.
14396 NM=$lt_NM
14397
14398 # A symbol stripping program
14399 STRIP=$lt_STRIP
14400
14401 # Used to examine libraries when file_magic_cmd begins "file"
14402 MAGIC_CMD=$MAGIC_CMD
14403
14404 # Used on cygwin: DLL creation program.
14405 DLLTOOL="$DLLTOOL"
14406
14407 # Used on cygwin: object dumper.
14408 OBJDUMP="$OBJDUMP"
14409
14410 # Used on cygwin: assembler.
14411 AS="$AS"
14412
14413 # The name of the directory that contains temporary libtool files.
14414 objdir=$objdir
14415
14416 # How to create reloadable object files.
14417 reload_flag=$lt_reload_flag
14418 reload_cmds=$lt_reload_cmds
14419
14420 # How to pass a linker flag through the compiler.
14421 wl=$lt_lt_prog_compiler_wl_CXX
14422
14423 # Object file suffix (normally "o").
14424 objext="$ac_objext"
14425
14426 # Old archive suffix (normally "a").
14427 libext="$libext"
14428
14429 # Shared library suffix (normally ".so").
14430 shrext_cmds='$shrext_cmds'
14431
14432 # Executable file suffix (normally "").
14433 exeext="$exeext"
14434
14435 # Additional compiler flags for building library objects.
14436 pic_flag=$lt_lt_prog_compiler_pic_CXX
14437 pic_mode=$pic_mode
14438
14439 # What is the maximum length of a command?
14440 max_cmd_len=$lt_cv_sys_max_cmd_len
14441
14442 # Does compiler simultaneously support -c and -o options?
14443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14444
14445 # Must we lock files when doing compilation?
14446 need_locks=$lt_need_locks
14447
14448 # Do we need the lib prefix for modules?
14449 need_lib_prefix=$need_lib_prefix
14450
14451 # Do we need a version for libraries?
14452 need_version=$need_version
14453
14454 # Whether dlopen is supported.
14455 dlopen_support=$enable_dlopen
14456
14457 # Whether dlopen of programs is supported.
14458 dlopen_self=$enable_dlopen_self
14459
14460 # Whether dlopen of statically linked programs is supported.
14461 dlopen_self_static=$enable_dlopen_self_static
14462
14463 # Compiler flag to prevent dynamic linking.
14464 link_static_flag=$lt_lt_prog_compiler_static_CXX
14465
14466 # Compiler flag to turn off builtin functions.
14467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14468
14469 # Compiler flag to allow reflexive dlopens.
14470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14471
14472 # Compiler flag to generate shared objects directly from archives.
14473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14474
14475 # Compiler flag to generate thread-safe objects.
14476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14477
14478 # Library versioning type.
14479 version_type=$version_type
14480
14481 # Format of library name prefix.
14482 libname_spec=$lt_libname_spec
14483
14484 # List of archive names.  First name is the real one, the rest are links.
14485 # The last name is the one that the linker finds with -lNAME.
14486 library_names_spec=$lt_library_names_spec
14487
14488 # The coded name of the library, if different from the real name.
14489 soname_spec=$lt_soname_spec
14490
14491 # Commands used to build and install an old-style archive.
14492 RANLIB=$lt_RANLIB
14493 old_archive_cmds=$lt_old_archive_cmds_CXX
14494 old_postinstall_cmds=$lt_old_postinstall_cmds
14495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14496
14497 # Create an old-style archive from a shared archive.
14498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14499
14500 # Create a temporary old-style archive to link instead of a shared archive.
14501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14502
14503 # Commands used to build and install a shared archive.
14504 archive_cmds=$lt_archive_cmds_CXX
14505 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14506 postinstall_cmds=$lt_postinstall_cmds
14507 postuninstall_cmds=$lt_postuninstall_cmds
14508
14509 # Commands used to build a loadable module (assumed same as above if empty)
14510 module_cmds=$lt_module_cmds_CXX
14511 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14512
14513 # Commands to strip libraries.
14514 old_striplib=$lt_old_striplib
14515 striplib=$lt_striplib
14516
14517 # Dependencies to place before the objects being linked to create a
14518 # shared library.
14519 predep_objects=$lt_predep_objects_CXX
14520
14521 # Dependencies to place after the objects being linked to create a
14522 # shared library.
14523 postdep_objects=$lt_postdep_objects_CXX
14524
14525 # Dependencies to place before the objects being linked to create a
14526 # shared library.
14527 predeps=$lt_predeps_CXX
14528
14529 # Dependencies to place after the objects being linked to create a
14530 # shared library.
14531 postdeps=$lt_postdeps_CXX
14532
14533 # The library search path used internally by the compiler when linking
14534 # a shared library.
14535 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14536
14537 # Method to check whether dependent libraries are shared objects.
14538 deplibs_check_method=$lt_deplibs_check_method
14539
14540 # Command to use when deplibs_check_method == file_magic.
14541 file_magic_cmd=$lt_file_magic_cmd
14542
14543 # Flag that allows shared libraries with undefined symbols to be built.
14544 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14545
14546 # Flag that forces no undefined symbols.
14547 no_undefined_flag=$lt_no_undefined_flag_CXX
14548
14549 # Commands used to finish a libtool library installation in a directory.
14550 finish_cmds=$lt_finish_cmds
14551
14552 # Same as above, but a single script fragment to be evaled but not shown.
14553 finish_eval=$lt_finish_eval
14554
14555 # Take the output of nm and produce a listing of raw symbols and C names.
14556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14557
14558 # Transform the output of nm in a proper C declaration
14559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14560
14561 # Transform the output of nm in a C name address pair
14562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14563
14564 # This is the shared library runtime path variable.
14565 runpath_var=$runpath_var
14566
14567 # This is the shared library path variable.
14568 shlibpath_var=$shlibpath_var
14569
14570 # Is shlibpath searched before the hard-coded library search path?
14571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14572
14573 # How to hardcode a shared library path into an executable.
14574 hardcode_action=$hardcode_action_CXX
14575
14576 # Whether we should hardcode library paths into libraries.
14577 hardcode_into_libs=$hardcode_into_libs
14578
14579 # Flag to hardcode \$libdir into a binary during linking.
14580 # This must work even if \$libdir does not exist.
14581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14582
14583 # If ld is used when linking, flag to hardcode \$libdir into
14584 # a binary during linking. This must work even if \$libdir does
14585 # not exist.
14586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14587
14588 # Whether we need a single -rpath flag with a separated argument.
14589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14590
14591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14592 # resulting binary.
14593 hardcode_direct=$hardcode_direct_CXX
14594
14595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14596 # resulting binary.
14597 hardcode_minus_L=$hardcode_minus_L_CXX
14598
14599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14600 # the resulting binary.
14601 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14602
14603 # Set to yes if building a shared library automatically hardcodes DIR into the library
14604 # and all subsequent libraries and executables linked against it.
14605 hardcode_automatic=$hardcode_automatic_CXX
14606
14607 # Variables whose values should be saved in libtool wrapper scripts and
14608 # restored at relink time.
14609 variables_saved_for_relink="$variables_saved_for_relink"
14610
14611 # Whether libtool must link a program against all its dependency libraries.
14612 link_all_deplibs=$link_all_deplibs_CXX
14613
14614 # Compile-time system search path for libraries
14615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14616
14617 # Run-time system search path for libraries
14618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14619
14620 # Fix the shell variable \$srcfile for the compiler.
14621 fix_srcfile_path="$fix_srcfile_path_CXX"
14622
14623 # Set to yes if exported symbols are required.
14624 always_export_symbols=$always_export_symbols_CXX
14625
14626 # The commands to list exported symbols.
14627 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14628
14629 # The commands to extract the exported symbol list from a shared archive.
14630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14631
14632 # Symbols that should not be listed in the preloaded symbols.
14633 exclude_expsyms=$lt_exclude_expsyms_CXX
14634
14635 # Symbols that must always be exported.
14636 include_expsyms=$lt_include_expsyms_CXX
14637
14638 # ### END LIBTOOL TAG CONFIG: $tagname
14639
14640 __EOF__
14641
14642
14643 else
14644   # If there is no Makefile yet, we rely on a make rule to execute
14645   # `config.status --recheck' to rerun these tests and create the
14646   # libtool script then.
14647   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14648   if test -f "$ltmain_in"; then
14649     test -f Makefile && make "$ltmain"
14650   fi
14651 fi
14652
14653
14654 ac_ext=c
14655 ac_cpp='$CPP $CPPFLAGS'
14656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14659
14660 CC=$lt_save_CC
14661 LDCXX=$LD
14662 LD=$lt_save_LD
14663 GCC=$lt_save_GCC
14664 with_gnu_ldcxx=$with_gnu_ld
14665 with_gnu_ld=$lt_save_with_gnu_ld
14666 lt_cv_path_LDCXX=$lt_cv_path_LD
14667 lt_cv_path_LD=$lt_save_path_LD
14668 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14669 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14670
14671         else
14672           tagname=""
14673         fi
14674         ;;
14675
14676       F77)
14677         if test -n "$F77" && test "X$F77" != "Xno"; then
14678
14679 ac_ext=f
14680 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14681 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14682 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14683
14684
14685 archive_cmds_need_lc_F77=no
14686 allow_undefined_flag_F77=
14687 always_export_symbols_F77=no
14688 archive_expsym_cmds_F77=
14689 export_dynamic_flag_spec_F77=
14690 hardcode_direct_F77=no
14691 hardcode_libdir_flag_spec_F77=
14692 hardcode_libdir_flag_spec_ld_F77=
14693 hardcode_libdir_separator_F77=
14694 hardcode_minus_L_F77=no
14695 hardcode_automatic_F77=no
14696 module_cmds_F77=
14697 module_expsym_cmds_F77=
14698 link_all_deplibs_F77=unknown
14699 old_archive_cmds_F77=$old_archive_cmds
14700 no_undefined_flag_F77=
14701 whole_archive_flag_spec_F77=
14702 enable_shared_with_static_runtimes_F77=no
14703
14704 # Source file extension for f77 test sources.
14705 ac_ext=f
14706
14707 # Object file extension for compiled f77 test sources.
14708 objext=o
14709 objext_F77=$objext
14710
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14713
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code="      program t\n      end\n"
14716
14717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14718
14719 # If no C compiler was specified, use CC.
14720 LTCC=${LTCC-"$CC"}
14721
14722 # If no C compiler flags were specified, use CFLAGS.
14723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14724
14725 # Allow CC to be a program name with arguments.
14726 compiler=$CC
14727
14728
14729 # save warnings/boilerplate of simple test code
14730 ac_outfile=conftest.$ac_objext
14731 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14732 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14733 _lt_compiler_boilerplate=`cat conftest.err`
14734 $rm conftest*
14735
14736 ac_outfile=conftest.$ac_objext
14737 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14738 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14739 _lt_linker_boilerplate=`cat conftest.err`
14740 $rm conftest*
14741
14742
14743 # Allow CC to be a program name with arguments.
14744 lt_save_CC="$CC"
14745 CC=${F77-"f77"}
14746 compiler=$CC
14747 compiler_F77=$CC
14748 for cc_temp in $compiler""; do
14749   case $cc_temp in
14750     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14751     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14752     \-*) ;;
14753     *) break;;
14754   esac
14755 done
14756 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14757
14758
14759 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14760 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14761 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14762 echo "${ECHO_T}$can_build_shared" >&6; }
14763
14764 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14765 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14766 test "$can_build_shared" = "no" && enable_shared=no
14767
14768 # On AIX, shared libraries and static libraries use the same namespace, and
14769 # are all built from PIC.
14770 case $host_os in
14771 aix3*)
14772   test "$enable_shared" = yes && enable_static=no
14773   if test -n "$RANLIB"; then
14774     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14775     postinstall_cmds='$RANLIB $lib'
14776   fi
14777   ;;
14778 aix4* | aix5*)
14779   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14780     test "$enable_shared" = yes && enable_static=no
14781   fi
14782   ;;
14783 esac
14784 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14785 echo "${ECHO_T}$enable_shared" >&6; }
14786
14787 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14788 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14789 # Make sure either enable_shared or enable_static is yes.
14790 test "$enable_shared" = yes || enable_static=yes
14791 { echo "$as_me:$LINENO: result: $enable_static" >&5
14792 echo "${ECHO_T}$enable_static" >&6; }
14793
14794 GCC_F77="$G77"
14795 LD_F77="$LD"
14796
14797 lt_prog_compiler_wl_F77=
14798 lt_prog_compiler_pic_F77=
14799 lt_prog_compiler_static_F77=
14800
14801 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14803
14804   if test "$GCC" = yes; then
14805     lt_prog_compiler_wl_F77='-Wl,'
14806     lt_prog_compiler_static_F77='-static'
14807
14808     case $host_os in
14809       aix*)
14810       # All AIX code is PIC.
14811       if test "$host_cpu" = ia64; then
14812         # AIX 5 now supports IA64 processor
14813         lt_prog_compiler_static_F77='-Bstatic'
14814       fi
14815       ;;
14816
14817     amigaos*)
14818       # FIXME: we need at least 68020 code to build shared libraries, but
14819       # adding the `-m68020' flag to GCC prevents building anything better,
14820       # like `-m68040'.
14821       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14822       ;;
14823
14824     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14825       # PIC is the default for these OSes.
14826       ;;
14827
14828     mingw* | pw32* | os2*)
14829       # This hack is so that the source file can tell whether it is being
14830       # built for inclusion in a dll (and should export symbols for example).
14831       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14832       ;;
14833
14834     darwin* | rhapsody*)
14835       # PIC is the default on this platform
14836       # Common symbols not allowed in MH_DYLIB files
14837       lt_prog_compiler_pic_F77='-fno-common'
14838       ;;
14839
14840     interix3*)
14841       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14842       # Instead, we relocate shared libraries at runtime.
14843       ;;
14844
14845     msdosdjgpp*)
14846       # Just because we use GCC doesn't mean we suddenly get shared libraries
14847       # on systems that don't support them.
14848       lt_prog_compiler_can_build_shared_F77=no
14849       enable_shared=no
14850       ;;
14851
14852     sysv4*MP*)
14853       if test -d /usr/nec; then
14854         lt_prog_compiler_pic_F77=-Kconform_pic
14855       fi
14856       ;;
14857
14858     hpux*)
14859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14860       # not for PA HP-UX.
14861       case $host_cpu in
14862       hppa*64*|ia64*)
14863         # +Z the default
14864         ;;
14865       *)
14866         lt_prog_compiler_pic_F77='-fPIC'
14867         ;;
14868       esac
14869       ;;
14870
14871     *)
14872       lt_prog_compiler_pic_F77='-fPIC'
14873       ;;
14874     esac
14875   else
14876     # PORTME Check for flag to pass linker flags through the system compiler.
14877     case $host_os in
14878     aix*)
14879       lt_prog_compiler_wl_F77='-Wl,'
14880       if test "$host_cpu" = ia64; then
14881         # AIX 5 now supports IA64 processor
14882         lt_prog_compiler_static_F77='-Bstatic'
14883       else
14884         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14885       fi
14886       ;;
14887       darwin*)
14888         # PIC is the default on this platform
14889         # Common symbols not allowed in MH_DYLIB files
14890        case $cc_basename in
14891          xlc*)
14892          lt_prog_compiler_pic_F77='-qnocommon'
14893          lt_prog_compiler_wl_F77='-Wl,'
14894          ;;
14895        esac
14896        ;;
14897
14898     mingw* | pw32* | os2*)
14899       # This hack is so that the source file can tell whether it is being
14900       # built for inclusion in a dll (and should export symbols for example).
14901       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14902       ;;
14903
14904     hpux9* | hpux10* | hpux11*)
14905       lt_prog_compiler_wl_F77='-Wl,'
14906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14907       # not for PA HP-UX.
14908       case $host_cpu in
14909       hppa*64*|ia64*)
14910         # +Z the default
14911         ;;
14912       *)
14913         lt_prog_compiler_pic_F77='+Z'
14914         ;;
14915       esac
14916       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14917       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14918       ;;
14919
14920     irix5* | irix6* | nonstopux*)
14921       lt_prog_compiler_wl_F77='-Wl,'
14922       # PIC (with -KPIC) is the default.
14923       lt_prog_compiler_static_F77='-non_shared'
14924       ;;
14925
14926     newsos6)
14927       lt_prog_compiler_pic_F77='-KPIC'
14928       lt_prog_compiler_static_F77='-Bstatic'
14929       ;;
14930
14931     linux* | k*bsd*-gnu)
14932       case $cc_basename in
14933       icc* | ecc*)
14934         lt_prog_compiler_wl_F77='-Wl,'
14935         lt_prog_compiler_pic_F77='-KPIC'
14936         lt_prog_compiler_static_F77='-static'
14937         ;;
14938       pgcc* | pgf77* | pgf90* | pgf95*)
14939         # Portland Group compilers (*not* the Pentium gcc compiler,
14940         # which looks to be a dead project)
14941         lt_prog_compiler_wl_F77='-Wl,'
14942         lt_prog_compiler_pic_F77='-fpic'
14943         lt_prog_compiler_static_F77='-Bstatic'
14944         ;;
14945       ccc*)
14946         lt_prog_compiler_wl_F77='-Wl,'
14947         # All Alpha code is PIC.
14948         lt_prog_compiler_static_F77='-non_shared'
14949         ;;
14950       esac
14951       ;;
14952
14953     osf3* | osf4* | osf5*)
14954       lt_prog_compiler_wl_F77='-Wl,'
14955       # All OSF/1 code is PIC.
14956       lt_prog_compiler_static_F77='-non_shared'
14957       ;;
14958
14959     solaris*)
14960       lt_prog_compiler_pic_F77='-KPIC'
14961       lt_prog_compiler_static_F77='-Bstatic'
14962       case $cc_basename in
14963       f77* | f90* | f95*)
14964         lt_prog_compiler_wl_F77='-Qoption ld ';;
14965       *)
14966         lt_prog_compiler_wl_F77='-Wl,';;
14967       esac
14968       ;;
14969
14970     sunos4*)
14971       lt_prog_compiler_wl_F77='-Qoption ld '
14972       lt_prog_compiler_pic_F77='-PIC'
14973       lt_prog_compiler_static_F77='-Bstatic'
14974       ;;
14975
14976     sysv4 | sysv4.2uw2* | sysv4.3*)
14977       lt_prog_compiler_wl_F77='-Wl,'
14978       lt_prog_compiler_pic_F77='-KPIC'
14979       lt_prog_compiler_static_F77='-Bstatic'
14980       ;;
14981
14982     sysv4*MP*)
14983       if test -d /usr/nec ;then
14984         lt_prog_compiler_pic_F77='-Kconform_pic'
14985         lt_prog_compiler_static_F77='-Bstatic'
14986       fi
14987       ;;
14988
14989     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14990       lt_prog_compiler_wl_F77='-Wl,'
14991       lt_prog_compiler_pic_F77='-KPIC'
14992       lt_prog_compiler_static_F77='-Bstatic'
14993       ;;
14994
14995     unicos*)
14996       lt_prog_compiler_wl_F77='-Wl,'
14997       lt_prog_compiler_can_build_shared_F77=no
14998       ;;
14999
15000     uts4*)
15001       lt_prog_compiler_pic_F77='-pic'
15002       lt_prog_compiler_static_F77='-Bstatic'
15003       ;;
15004
15005     *)
15006       lt_prog_compiler_can_build_shared_F77=no
15007       ;;
15008     esac
15009   fi
15010
15011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15012 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15013
15014 #
15015 # Check to make sure the PIC flag actually works.
15016 #
15017 if test -n "$lt_prog_compiler_pic_F77"; then
15018
15019 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15020 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15021 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024   lt_prog_compiler_pic_works_F77=no
15025   ac_outfile=conftest.$ac_objext
15026    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15027    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15028    # Insert the option either (1) after the last *FLAGS variable, or
15029    # (2) before a word containing "conftest.", or (3) at the end.
15030    # Note that $ac_compile itself does not contain backslashes and begins
15031    # with a dollar sign (not a hyphen), so the echo should work correctly.
15032    # The option is referenced via a variable to avoid confusing sed.
15033    lt_compile=`echo "$ac_compile" | $SED \
15034    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15036    -e 's:$: $lt_compiler_flag:'`
15037    (eval echo "\"\$as_me:15037: $lt_compile\"" >&5)
15038    (eval "$lt_compile" 2>conftest.err)
15039    ac_status=$?
15040    cat conftest.err >&5
15041    echo "$as_me:15041: \$? = $ac_status" >&5
15042    if (exit $ac_status) && test -s "$ac_outfile"; then
15043      # The compiler can only warn and ignore the option if not recognized
15044      # So say no if there are warnings other than the usual output.
15045      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15046      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15047      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15048        lt_prog_compiler_pic_works_F77=yes
15049      fi
15050    fi
15051    $rm conftest*
15052
15053 fi
15054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15055 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15056
15057 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15058     case $lt_prog_compiler_pic_F77 in
15059      "" | " "*) ;;
15060      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15061      esac
15062 else
15063     lt_prog_compiler_pic_F77=
15064      lt_prog_compiler_can_build_shared_F77=no
15065 fi
15066
15067 fi
15068 case $host_os in
15069   # For platforms which do not support PIC, -DPIC is meaningless:
15070   *djgpp*)
15071     lt_prog_compiler_pic_F77=
15072     ;;
15073   *)
15074     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15075     ;;
15076 esac
15077
15078 #
15079 # Check to make sure the static flag actually works.
15080 #
15081 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15082 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15083 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15084 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   lt_prog_compiler_static_works_F77=no
15088    save_LDFLAGS="$LDFLAGS"
15089    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15090    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15091    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15092      # The linker can only warn and ignore the option if not recognized
15093      # So say no if there are warnings
15094      if test -s conftest.err; then
15095        # Append any errors to the config.log.
15096        cat conftest.err 1>&5
15097        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15098        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15099        if diff conftest.exp conftest.er2 >/dev/null; then
15100          lt_prog_compiler_static_works_F77=yes
15101        fi
15102      else
15103        lt_prog_compiler_static_works_F77=yes
15104      fi
15105    fi
15106    $rm conftest*
15107    LDFLAGS="$save_LDFLAGS"
15108
15109 fi
15110 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15111 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15112
15113 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15114     :
15115 else
15116     lt_prog_compiler_static_F77=
15117 fi
15118
15119
15120 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15121 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15122 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   lt_cv_prog_compiler_c_o_F77=no
15126    $rm -r conftest 2>/dev/null
15127    mkdir conftest
15128    cd conftest
15129    mkdir out
15130    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15131
15132    lt_compiler_flag="-o out/conftest2.$ac_objext"
15133    # Insert the option either (1) after the last *FLAGS variable, or
15134    # (2) before a word containing "conftest.", or (3) at the end.
15135    # Note that $ac_compile itself does not contain backslashes and begins
15136    # with a dollar sign (not a hyphen), so the echo should work correctly.
15137    lt_compile=`echo "$ac_compile" | $SED \
15138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15140    -e 's:$: $lt_compiler_flag:'`
15141    (eval echo "\"\$as_me:15141: $lt_compile\"" >&5)
15142    (eval "$lt_compile" 2>out/conftest.err)
15143    ac_status=$?
15144    cat out/conftest.err >&5
15145    echo "$as_me:15145: \$? = $ac_status" >&5
15146    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15147    then
15148      # The compiler can only warn and ignore the option if not recognized
15149      # So say no if there are warnings
15150      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15151      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15152      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15153        lt_cv_prog_compiler_c_o_F77=yes
15154      fi
15155    fi
15156    chmod u+w . 2>&5
15157    $rm conftest*
15158    # SGI C++ compiler will create directory out/ii_files/ for
15159    # template instantiation
15160    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15161    $rm out/* && rmdir out
15162    cd ..
15163    rmdir conftest
15164    $rm conftest*
15165
15166 fi
15167 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15168 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15169
15170
15171 hard_links="nottested"
15172 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15173   # do not overwrite the value of need_locks provided by the user
15174   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15175 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15176   hard_links=yes
15177   $rm conftest*
15178   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15179   touch conftest.a
15180   ln conftest.a conftest.b 2>&5 || hard_links=no
15181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15182   { echo "$as_me:$LINENO: result: $hard_links" >&5
15183 echo "${ECHO_T}$hard_links" >&6; }
15184   if test "$hard_links" = no; then
15185     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15186 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15187     need_locks=warn
15188   fi
15189 else
15190   need_locks=no
15191 fi
15192
15193 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15194 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15195
15196   runpath_var=
15197   allow_undefined_flag_F77=
15198   enable_shared_with_static_runtimes_F77=no
15199   archive_cmds_F77=
15200   archive_expsym_cmds_F77=
15201   old_archive_From_new_cmds_F77=
15202   old_archive_from_expsyms_cmds_F77=
15203   export_dynamic_flag_spec_F77=
15204   whole_archive_flag_spec_F77=
15205   thread_safe_flag_spec_F77=
15206   hardcode_libdir_flag_spec_F77=
15207   hardcode_libdir_flag_spec_ld_F77=
15208   hardcode_libdir_separator_F77=
15209   hardcode_direct_F77=no
15210   hardcode_minus_L_F77=no
15211   hardcode_shlibpath_var_F77=unsupported
15212   link_all_deplibs_F77=unknown
15213   hardcode_automatic_F77=no
15214   module_cmds_F77=
15215   module_expsym_cmds_F77=
15216   always_export_symbols_F77=no
15217   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15218   # include_expsyms should be a list of space-separated symbols to be *always*
15219   # included in the symbol list
15220   include_expsyms_F77=
15221   # exclude_expsyms can be an extended regexp of symbols to exclude
15222   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15223   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15224   # as well as any symbol that contains `d'.
15225   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15226   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15227   # platforms (ab)use it in PIC code, but their linkers get confused if
15228   # the symbol is explicitly referenced.  Since portable code cannot
15229   # rely on this symbol name, it's probably fine to never include it in
15230   # preloaded symbol tables.
15231   extract_expsyms_cmds=
15232   # Just being paranoid about ensuring that cc_basename is set.
15233   for cc_temp in $compiler""; do
15234   case $cc_temp in
15235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15237     \-*) ;;
15238     *) break;;
15239   esac
15240 done
15241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15242
15243   case $host_os in
15244   cygwin* | mingw* | pw32*)
15245     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15246     # When not using gcc, we currently assume that we are using
15247     # Microsoft Visual C++.
15248     if test "$GCC" != yes; then
15249       with_gnu_ld=no
15250     fi
15251     ;;
15252   interix*)
15253     # we just hope/assume this is gcc and not c89 (= MSVC++)
15254     with_gnu_ld=yes
15255     ;;
15256   openbsd*)
15257     with_gnu_ld=no
15258     ;;
15259   esac
15260
15261   ld_shlibs_F77=yes
15262   if test "$with_gnu_ld" = yes; then
15263     # If archive_cmds runs LD, not CC, wlarc should be empty
15264     wlarc='${wl}'
15265
15266     # Set some defaults for GNU ld with shared library support. These
15267     # are reset later if shared libraries are not supported. Putting them
15268     # here allows them to be overridden if necessary.
15269     runpath_var=LD_RUN_PATH
15270     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15271     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15272     # ancient GNU ld didn't support --whole-archive et. al.
15273     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15274         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15275       else
15276         whole_archive_flag_spec_F77=
15277     fi
15278     supports_anon_versioning=no
15279     case `$LD -v 2>/dev/null` in
15280       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15281       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15282       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15283       *\ 2.11.*) ;; # other 2.11 versions
15284       *) supports_anon_versioning=yes ;;
15285     esac
15286
15287     # See if GNU ld supports shared libraries.
15288     case $host_os in
15289     aix3* | aix4* | aix5*)
15290       # On AIX/PPC, the GNU linker is very broken
15291       if test "$host_cpu" != ia64; then
15292         ld_shlibs_F77=no
15293         cat <<EOF 1>&2
15294
15295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15296 *** to be unable to reliably create shared libraries on AIX.
15297 *** Therefore, libtool is disabling shared libraries support.  If you
15298 *** really care for shared libraries, you may want to modify your PATH
15299 *** so that a non-GNU linker is found, and then restart.
15300
15301 EOF
15302       fi
15303       ;;
15304
15305     amigaos*)
15306       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)'
15307       hardcode_libdir_flag_spec_F77='-L$libdir'
15308       hardcode_minus_L_F77=yes
15309
15310       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15311       # that the semantics of dynamic libraries on AmigaOS, at least up
15312       # to version 4, is to share data among multiple programs linked
15313       # with the same dynamic library.  Since this doesn't match the
15314       # behavior of shared libraries on other platforms, we can't use
15315       # them.
15316       ld_shlibs_F77=no
15317       ;;
15318
15319     beos*)
15320       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15321         allow_undefined_flag_F77=unsupported
15322         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15323         # support --undefined.  This deserves some investigation.  FIXME
15324         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15325       else
15326         ld_shlibs_F77=no
15327       fi
15328       ;;
15329
15330     cygwin* | mingw* | pw32*)
15331       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15332       # as there is no search path for DLLs.
15333       hardcode_libdir_flag_spec_F77='-L$libdir'
15334       allow_undefined_flag_F77=unsupported
15335       always_export_symbols_F77=no
15336       enable_shared_with_static_runtimes_F77=yes
15337       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15338
15339       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15340         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15341         # If the export-symbols file already is a .def file (1st line
15342         # is EXPORTS), use it as is; otherwise, prepend...
15343         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15344           cp $export_symbols $output_objdir/$soname.def;
15345         else
15346           echo EXPORTS > $output_objdir/$soname.def;
15347           cat $export_symbols >> $output_objdir/$soname.def;
15348         fi~
15349         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15350       else
15351         ld_shlibs_F77=no
15352       fi
15353       ;;
15354
15355     interix3*)
15356       hardcode_direct_F77=no
15357       hardcode_shlibpath_var_F77=no
15358       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15359       export_dynamic_flag_spec_F77='${wl}-E'
15360       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15361       # Instead, shared libraries are loaded at an image base (0x10000000 by
15362       # default) and relocated if they conflict, which is a slow very memory
15363       # consuming and fragmenting process.  To avoid this, we pick a random,
15364       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15365       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15366       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'
15367       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'
15368       ;;
15369
15370     linux* | k*bsd*-gnu)
15371       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15372         tmp_addflag=
15373         case $cc_basename,$host_cpu in
15374         pgcc*)                          # Portland Group C compiler
15375           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'
15376           tmp_addflag=' $pic_flag'
15377           ;;
15378         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15379           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'
15380           tmp_addflag=' $pic_flag -Mnomain' ;;
15381         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15382           tmp_addflag=' -i_dynamic' ;;
15383         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15384           tmp_addflag=' -i_dynamic -nofor_main' ;;
15385         ifc* | ifort*)                  # Intel Fortran compiler
15386           tmp_addflag=' -nofor_main' ;;
15387         esac
15388         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15389
15390         if test $supports_anon_versioning = yes; then
15391           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15392   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15393   $echo "local: *; };" >> $output_objdir/$libname.ver~
15394           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15395         fi
15396         link_all_deplibs_F77=no
15397       else
15398         ld_shlibs_F77=no
15399       fi
15400       ;;
15401
15402     netbsd* | netbsdelf*-gnu)
15403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15404         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15405         wlarc=
15406       else
15407         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15409       fi
15410       ;;
15411
15412     solaris*)
15413       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15414         ld_shlibs_F77=no
15415         cat <<EOF 1>&2
15416
15417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15418 *** create shared libraries on Solaris systems.  Therefore, libtool
15419 *** is disabling shared libraries support.  We urge you to upgrade GNU
15420 *** binutils to release 2.9.1 or newer.  Another option is to modify
15421 *** your PATH or compiler configuration so that the native linker is
15422 *** used, and then restart.
15423
15424 EOF
15425       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428       else
15429         ld_shlibs_F77=no
15430       fi
15431       ;;
15432
15433     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15434       case `$LD -v 2>&1` in
15435         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15436         ld_shlibs_F77=no
15437         cat <<_LT_EOF 1>&2
15438
15439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15440 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15441 *** is disabling shared libraries support.  We urge you to upgrade GNU
15442 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15443 *** your PATH or compiler configuration so that the native linker is
15444 *** used, and then restart.
15445
15446 _LT_EOF
15447         ;;
15448         *)
15449           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15450             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15451             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15452             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15453           else
15454             ld_shlibs_F77=no
15455           fi
15456         ;;
15457       esac
15458       ;;
15459
15460     sunos4*)
15461       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15462       wlarc=
15463       hardcode_direct_F77=yes
15464       hardcode_shlibpath_var_F77=no
15465       ;;
15466
15467     *)
15468       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15471       else
15472         ld_shlibs_F77=no
15473       fi
15474       ;;
15475     esac
15476
15477     if test "$ld_shlibs_F77" = no; then
15478       runpath_var=
15479       hardcode_libdir_flag_spec_F77=
15480       export_dynamic_flag_spec_F77=
15481       whole_archive_flag_spec_F77=
15482     fi
15483   else
15484     # PORTME fill in a description of your system's linker (not GNU ld)
15485     case $host_os in
15486     aix3*)
15487       allow_undefined_flag_F77=unsupported
15488       always_export_symbols_F77=yes
15489       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'
15490       # Note: this linker hardcodes the directories in LIBPATH if there
15491       # are no directories specified by -L.
15492       hardcode_minus_L_F77=yes
15493       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15494         # Neither direct hardcoding nor static linking is supported with a
15495         # broken collect2.
15496         hardcode_direct_F77=unsupported
15497       fi
15498       ;;
15499
15500     aix4* | aix5*)
15501       if test "$host_cpu" = ia64; then
15502         # On IA64, the linker does run time linking by default, so we don't
15503         # have to do anything special.
15504         aix_use_runtimelinking=no
15505         exp_sym_flag='-Bexport'
15506         no_entry_flag=""
15507       else
15508         # If we're using GNU nm, then we don't want the "-C" option.
15509         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15510         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15511           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'
15512         else
15513           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'
15514         fi
15515         aix_use_runtimelinking=no
15516
15517         # Test if we are trying to use run time linking or normal
15518         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15519         # need to do runtime linking.
15520         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15521           for ld_flag in $LDFLAGS; do
15522           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15523             aix_use_runtimelinking=yes
15524             break
15525           fi
15526           done
15527           ;;
15528         esac
15529
15530         exp_sym_flag='-bexport'
15531         no_entry_flag='-bnoentry'
15532       fi
15533
15534       # When large executables or shared objects are built, AIX ld can
15535       # have problems creating the table of contents.  If linking a library
15536       # or program results in "error TOC overflow" add -mminimal-toc to
15537       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15538       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15539
15540       archive_cmds_F77=''
15541       hardcode_direct_F77=yes
15542       hardcode_libdir_separator_F77=':'
15543       link_all_deplibs_F77=yes
15544
15545       if test "$GCC" = yes; then
15546         case $host_os in aix4.[012]|aix4.[012].*)
15547         # We only want to do this on AIX 4.2 and lower, the check
15548         # below for broken collect2 doesn't work under 4.3+
15549           collect2name=`${CC} -print-prog-name=collect2`
15550           if test -f "$collect2name" && \
15551            strings "$collect2name" | grep resolve_lib_name >/dev/null
15552           then
15553           # We have reworked collect2
15554           hardcode_direct_F77=yes
15555           else
15556           # We have old collect2
15557           hardcode_direct_F77=unsupported
15558           # It fails to find uninstalled libraries when the uninstalled
15559           # path is not listed in the libpath.  Setting hardcode_minus_L
15560           # to unsupported forces relinking
15561           hardcode_minus_L_F77=yes
15562           hardcode_libdir_flag_spec_F77='-L$libdir'
15563           hardcode_libdir_separator_F77=
15564           fi
15565           ;;
15566         esac
15567         shared_flag='-shared'
15568         if test "$aix_use_runtimelinking" = yes; then
15569           shared_flag="$shared_flag "'${wl}-G'
15570         fi
15571       else
15572         # not using gcc
15573         if test "$host_cpu" = ia64; then
15574         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15575         # chokes on -Wl,-G. The following line is correct:
15576           shared_flag='-G'
15577         else
15578           if test "$aix_use_runtimelinking" = yes; then
15579             shared_flag='${wl}-G'
15580           else
15581             shared_flag='${wl}-bM:SRE'
15582           fi
15583         fi
15584       fi
15585
15586       # It seems that -bexpall does not export symbols beginning with
15587       # underscore (_), so it is better to generate a list of symbols to export.
15588       always_export_symbols_F77=yes
15589       if test "$aix_use_runtimelinking" = yes; then
15590         # Warning - without using the other runtime loading flags (-brtl),
15591         # -berok will link without error, but may produce a broken library.
15592         allow_undefined_flag_F77='-berok'
15593        # Determine the default libpath from the value encoded in an empty executable.
15594        cat >conftest.$ac_ext <<_ACEOF
15595       program main
15596
15597       end
15598 _ACEOF
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601   (eval $ac_link) 2>conftest.er1
15602   ac_status=$?
15603   grep -v '^ *+' conftest.er1 >conftest.err
15604   rm -f conftest.er1
15605   cat conftest.err >&5
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610   (eval $ac_try) 2>&5
15611   ac_status=$?
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); }; } &&
15614          { ac_try='test -s conftest$ac_exeext'
15615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616   (eval $ac_try) 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620
15621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15622 }'`
15623 # Check for a 64-bit object if we didn't find anything.
15624 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; }
15625 }'`; fi
15626 else
15627   echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15629
15630
15631 fi
15632
15633 rm -f conftest.err conftest.$ac_objext \
15634       conftest$ac_exeext conftest.$ac_ext
15635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15636
15637        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15638         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"
15639        else
15640         if test "$host_cpu" = ia64; then
15641           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15642           allow_undefined_flag_F77="-z nodefs"
15643           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"
15644         else
15645          # Determine the default libpath from the value encoded in an empty executable.
15646          cat >conftest.$ac_ext <<_ACEOF
15647       program main
15648
15649       end
15650 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15653   (eval $ac_link) 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } &&
15660          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662   (eval $ac_try) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); }; } &&
15666          { ac_try='test -s conftest$ac_exeext'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; }; then
15672
15673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15674 }'`
15675 # Check for a 64-bit object if we didn't find anything.
15676 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; }
15677 }'`; fi
15678 else
15679   echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682
15683 fi
15684
15685 rm -f conftest.err conftest.$ac_objext \
15686       conftest$ac_exeext conftest.$ac_ext
15687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15688
15689          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15690           # Warning - without using the other run time loading flags,
15691           # -berok will link without error, but may produce a broken library.
15692           no_undefined_flag_F77=' ${wl}-bernotok'
15693           allow_undefined_flag_F77=' ${wl}-berok'
15694           # Exported symbols can be pulled into shared objects from archives
15695           whole_archive_flag_spec_F77='$convenience'
15696           archive_cmds_need_lc_F77=yes
15697           # This is similar to how AIX traditionally builds its shared libraries.
15698           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'
15699         fi
15700       fi
15701       ;;
15702
15703     amigaos*)
15704       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)'
15705       hardcode_libdir_flag_spec_F77='-L$libdir'
15706       hardcode_minus_L_F77=yes
15707       # see comment about different semantics on the GNU ld section
15708       ld_shlibs_F77=no
15709       ;;
15710
15711     bsdi[45]*)
15712       export_dynamic_flag_spec_F77=-rdynamic
15713       ;;
15714
15715     cygwin* | mingw* | pw32*)
15716       # When not using gcc, we currently assume that we are using
15717       # Microsoft Visual C++.
15718       # hardcode_libdir_flag_spec is actually meaningless, as there is
15719       # no search path for DLLs.
15720       hardcode_libdir_flag_spec_F77=' '
15721       allow_undefined_flag_F77=unsupported
15722       # Tell ltmain to make .lib files, not .a files.
15723       libext=lib
15724       # Tell ltmain to make .dll files, not .so files.
15725       shrext_cmds=".dll"
15726       # FIXME: Setting linknames here is a bad hack.
15727       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15728       # The linker will automatically build a .lib file if we build a DLL.
15729       old_archive_From_new_cmds_F77='true'
15730       # FIXME: Should let the user specify the lib program.
15731       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15732       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15733       enable_shared_with_static_runtimes_F77=yes
15734       ;;
15735
15736     darwin* | rhapsody*)
15737       case $host_os in
15738         rhapsody* | darwin1.[012])
15739          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15740          ;;
15741        *) # Darwin 1.3 on
15742          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15743            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15744          else
15745            case ${MACOSX_DEPLOYMENT_TARGET} in
15746              10.[012])
15747                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15748                ;;
15749              10.*)
15750                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15751                ;;
15752            esac
15753          fi
15754          ;;
15755       esac
15756       archive_cmds_need_lc_F77=no
15757       hardcode_direct_F77=no
15758       hardcode_automatic_F77=yes
15759       hardcode_shlibpath_var_F77=unsupported
15760       whole_archive_flag_spec_F77=''
15761       link_all_deplibs_F77=yes
15762     if test "$GCC" = yes ; then
15763         output_verbose_link_cmd='echo'
15764         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15765       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15766       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15767       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}'
15768       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}'
15769     else
15770       case $cc_basename in
15771         xlc*)
15772          output_verbose_link_cmd='echo'
15773          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15774          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15775           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15776          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}'
15777           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}'
15778           ;;
15779        *)
15780          ld_shlibs_F77=no
15781           ;;
15782       esac
15783     fi
15784       ;;
15785
15786     dgux*)
15787       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788       hardcode_libdir_flag_spec_F77='-L$libdir'
15789       hardcode_shlibpath_var_F77=no
15790       ;;
15791
15792     freebsd1*)
15793       ld_shlibs_F77=no
15794       ;;
15795
15796     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15797     # support.  Future versions do this automatically, but an explicit c++rt0.o
15798     # does not break anything, and helps significantly (at the cost of a little
15799     # extra space).
15800     freebsd2.2*)
15801       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15802       hardcode_libdir_flag_spec_F77='-R$libdir'
15803       hardcode_direct_F77=yes
15804       hardcode_shlibpath_var_F77=no
15805       ;;
15806
15807     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15808     freebsd2*)
15809       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15810       hardcode_direct_F77=yes
15811       hardcode_minus_L_F77=yes
15812       hardcode_shlibpath_var_F77=no
15813       ;;
15814
15815     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15816     freebsd* | dragonfly*)
15817       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15818       hardcode_libdir_flag_spec_F77='-R$libdir'
15819       hardcode_direct_F77=yes
15820       hardcode_shlibpath_var_F77=no
15821       ;;
15822
15823     hpux9*)
15824       if test "$GCC" = yes; then
15825         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'
15826       else
15827         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'
15828       fi
15829       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15830       hardcode_libdir_separator_F77=:
15831       hardcode_direct_F77=yes
15832
15833       # hardcode_minus_L: Not really in the search PATH,
15834       # but as the default location of the library.
15835       hardcode_minus_L_F77=yes
15836       export_dynamic_flag_spec_F77='${wl}-E'
15837       ;;
15838
15839     hpux10*)
15840       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15841         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15842       else
15843         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15844       fi
15845       if test "$with_gnu_ld" = no; then
15846         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15847         hardcode_libdir_separator_F77=:
15848
15849         hardcode_direct_F77=yes
15850         export_dynamic_flag_spec_F77='${wl}-E'
15851
15852         # hardcode_minus_L: Not really in the search PATH,
15853         # but as the default location of the library.
15854         hardcode_minus_L_F77=yes
15855       fi
15856       ;;
15857
15858     hpux11*)
15859       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15860         case $host_cpu in
15861         hppa*64*)
15862           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15863           ;;
15864         ia64*)
15865           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15866           ;;
15867         *)
15868           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15869           ;;
15870         esac
15871       else
15872         case $host_cpu in
15873         hppa*64*)
15874           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15875           ;;
15876         ia64*)
15877           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15878           ;;
15879         *)
15880           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15881           ;;
15882         esac
15883       fi
15884       if test "$with_gnu_ld" = no; then
15885         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15886         hardcode_libdir_separator_F77=:
15887
15888         case $host_cpu in
15889         hppa*64*|ia64*)
15890           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15891           hardcode_direct_F77=no
15892           hardcode_shlibpath_var_F77=no
15893           ;;
15894         *)
15895           hardcode_direct_F77=yes
15896           export_dynamic_flag_spec_F77='${wl}-E'
15897
15898           # hardcode_minus_L: Not really in the search PATH,
15899           # but as the default location of the library.
15900           hardcode_minus_L_F77=yes
15901           ;;
15902         esac
15903       fi
15904       ;;
15905
15906     irix5* | irix6* | nonstopux*)
15907       if test "$GCC" = yes; then
15908         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'
15909       else
15910         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'
15911         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15912       fi
15913       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15914       hardcode_libdir_separator_F77=:
15915       link_all_deplibs_F77=yes
15916       ;;
15917
15918     netbsd* | netbsdelf*-gnu)
15919       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15920         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15921       else
15922         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15923       fi
15924       hardcode_libdir_flag_spec_F77='-R$libdir'
15925       hardcode_direct_F77=yes
15926       hardcode_shlibpath_var_F77=no
15927       ;;
15928
15929     newsos6)
15930       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931       hardcode_direct_F77=yes
15932       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15933       hardcode_libdir_separator_F77=:
15934       hardcode_shlibpath_var_F77=no
15935       ;;
15936
15937     openbsd*)
15938       hardcode_direct_F77=yes
15939       hardcode_shlibpath_var_F77=no
15940       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15941         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15942         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15943         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15944         export_dynamic_flag_spec_F77='${wl}-E'
15945       else
15946        case $host_os in
15947          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15948            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15949            hardcode_libdir_flag_spec_F77='-R$libdir'
15950            ;;
15951          *)
15952            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15953            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15954            ;;
15955        esac
15956       fi
15957       ;;
15958
15959     os2*)
15960       hardcode_libdir_flag_spec_F77='-L$libdir'
15961       hardcode_minus_L_F77=yes
15962       allow_undefined_flag_F77=unsupported
15963       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'
15964       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15965       ;;
15966
15967     osf3*)
15968       if test "$GCC" = yes; then
15969         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15970         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'
15971       else
15972         allow_undefined_flag_F77=' -expect_unresolved \*'
15973         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'
15974       fi
15975       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15976       hardcode_libdir_separator_F77=:
15977       ;;
15978
15979     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15980       if test "$GCC" = yes; then
15981         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15982         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'
15983         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15984       else
15985         allow_undefined_flag_F77=' -expect_unresolved \*'
15986         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'
15987         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~
15988         $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'
15989
15990         # Both c and cxx compiler support -rpath directly
15991         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15992       fi
15993       hardcode_libdir_separator_F77=:
15994       ;;
15995
15996     solaris*)
15997       no_undefined_flag_F77=' -z text'
15998       if test "$GCC" = yes; then
15999         wlarc='${wl}'
16000         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16001         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16002           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16003       else
16004         wlarc=''
16005         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16006         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16007         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16008       fi
16009       hardcode_libdir_flag_spec_F77='-R$libdir'
16010       hardcode_shlibpath_var_F77=no
16011       case $host_os in
16012       solaris2.[0-5] | solaris2.[0-5].*) ;;
16013       *)
16014         # The compiler driver will combine linker options so we
16015         # cannot just pass the convience library names through
16016         # without $wl, iff we do not link with $LD.
16017         # Luckily, gcc supports the same syntax we need for Sun Studio.
16018         # Supported since Solaris 2.6 (maybe 2.5.1?)
16019         case $wlarc in
16020         '')
16021           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16022         *)
16023           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' ;;
16024         esac ;;
16025       esac
16026       link_all_deplibs_F77=yes
16027       ;;
16028
16029     sunos4*)
16030       if test "x$host_vendor" = xsequent; then
16031         # Use $CC to link under sequent, because it throws in some extra .o
16032         # files that make .init and .fini sections work.
16033         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16034       else
16035         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16036       fi
16037       hardcode_libdir_flag_spec_F77='-L$libdir'
16038       hardcode_direct_F77=yes
16039       hardcode_minus_L_F77=yes
16040       hardcode_shlibpath_var_F77=no
16041       ;;
16042
16043     sysv4)
16044       case $host_vendor in
16045         sni)
16046           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047           hardcode_direct_F77=yes # is this really true???
16048         ;;
16049         siemens)
16050           ## LD is ld it makes a PLAMLIB
16051           ## CC just makes a GrossModule.
16052           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16053           reload_cmds_F77='$CC -r -o $output$reload_objs'
16054           hardcode_direct_F77=no
16055         ;;
16056         motorola)
16057           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16059         ;;
16060       esac
16061       runpath_var='LD_RUN_PATH'
16062       hardcode_shlibpath_var_F77=no
16063       ;;
16064
16065     sysv4.3*)
16066       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067       hardcode_shlibpath_var_F77=no
16068       export_dynamic_flag_spec_F77='-Bexport'
16069       ;;
16070
16071     sysv4*MP*)
16072       if test -d /usr/nec; then
16073         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074         hardcode_shlibpath_var_F77=no
16075         runpath_var=LD_RUN_PATH
16076         hardcode_runpath_var=yes
16077         ld_shlibs_F77=yes
16078       fi
16079       ;;
16080
16081     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16082       no_undefined_flag_F77='${wl}-z,text'
16083       archive_cmds_need_lc_F77=no
16084       hardcode_shlibpath_var_F77=no
16085       runpath_var='LD_RUN_PATH'
16086
16087       if test "$GCC" = yes; then
16088         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16089         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16090       else
16091         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16093       fi
16094       ;;
16095
16096     sysv5* | sco3.2v5* | sco5v6*)
16097       # Note: We can NOT use -z defs as we might desire, because we do not
16098       # link with -lc, and that would cause any symbols used from libc to
16099       # always be unresolved, which means just about no library would
16100       # ever link correctly.  If we're not using GNU ld we use -z text
16101       # though, which does catch some bad symbols but isn't as heavy-handed
16102       # as -z defs.
16103       no_undefined_flag_F77='${wl}-z,text'
16104       allow_undefined_flag_F77='${wl}-z,nodefs'
16105       archive_cmds_need_lc_F77=no
16106       hardcode_shlibpath_var_F77=no
16107       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16108       hardcode_libdir_separator_F77=':'
16109       link_all_deplibs_F77=yes
16110       export_dynamic_flag_spec_F77='${wl}-Bexport'
16111       runpath_var='LD_RUN_PATH'
16112
16113       if test "$GCC" = yes; then
16114         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16115         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16116       else
16117         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119       fi
16120       ;;
16121
16122     uts4*)
16123       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124       hardcode_libdir_flag_spec_F77='-L$libdir'
16125       hardcode_shlibpath_var_F77=no
16126       ;;
16127
16128     *)
16129       ld_shlibs_F77=no
16130       ;;
16131     esac
16132   fi
16133
16134 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16135 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16136 test "$ld_shlibs_F77" = no && can_build_shared=no
16137
16138 #
16139 # Do we need to explicitly link libc?
16140 #
16141 case "x$archive_cmds_need_lc_F77" in
16142 x|xyes)
16143   # Assume -lc should be added
16144   archive_cmds_need_lc_F77=yes
16145
16146   if test "$enable_shared" = yes && test "$GCC" = yes; then
16147     case $archive_cmds_F77 in
16148     *'~'*)
16149       # FIXME: we may have to deal with multi-command sequences.
16150       ;;
16151     '$CC '*)
16152       # Test whether the compiler implicitly links with -lc since on some
16153       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16154       # to ld, don't add -lc before -lgcc.
16155       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16156 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16157       $rm conftest*
16158       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16159
16160       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161   (eval $ac_compile) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } 2>conftest.err; then
16165         soname=conftest
16166         lib=conftest
16167         libobjs=conftest.$ac_objext
16168         deplibs=
16169         wl=$lt_prog_compiler_wl_F77
16170         pic_flag=$lt_prog_compiler_pic_F77
16171         compiler_flags=-v
16172         linker_flags=-v
16173         verstring=
16174         output_objdir=.
16175         libname=conftest
16176         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16177         allow_undefined_flag_F77=
16178         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16179   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }
16183         then
16184           archive_cmds_need_lc_F77=no
16185         else
16186           archive_cmds_need_lc_F77=yes
16187         fi
16188         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16189       else
16190         cat conftest.err 1>&5
16191       fi
16192       $rm conftest*
16193       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16194 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16195       ;;
16196     esac
16197   fi
16198   ;;
16199 esac
16200
16201 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16202 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16203 library_names_spec=
16204 libname_spec='lib$name'
16205 soname_spec=
16206 shrext_cmds=".so"
16207 postinstall_cmds=
16208 postuninstall_cmds=
16209 finish_cmds=
16210 finish_eval=
16211 shlibpath_var=
16212 shlibpath_overrides_runpath=unknown
16213 version_type=none
16214 dynamic_linker="$host_os ld.so"
16215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16216 if test "$GCC" = yes; then
16217   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16218   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16219     # if the path contains ";" then we assume it to be the separator
16220     # otherwise default to the standard path separator (i.e. ":") - it is
16221     # assumed that no part of a normal pathname contains ";" but that should
16222     # okay in the real world where ";" in dirpaths is itself problematic.
16223     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16224   else
16225     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16226   fi
16227 else
16228   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16229 fi
16230 need_lib_prefix=unknown
16231 hardcode_into_libs=no
16232
16233 # when you set need_version to no, make sure it does not cause -set_version
16234 # flags to be left without arguments
16235 need_version=unknown
16236
16237 case $host_os in
16238 aix3*)
16239   version_type=linux
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16241   shlibpath_var=LIBPATH
16242
16243   # AIX 3 has no versioning support, so we append a major version to the name.
16244   soname_spec='${libname}${release}${shared_ext}$major'
16245   ;;
16246
16247 aix4* | aix5*)
16248   version_type=linux
16249   need_lib_prefix=no
16250   need_version=no
16251   hardcode_into_libs=yes
16252   if test "$host_cpu" = ia64; then
16253     # AIX 5 supports IA64
16254     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16255     shlibpath_var=LD_LIBRARY_PATH
16256   else
16257     # With GCC up to 2.95.x, collect2 would create an import file
16258     # for dependence libraries.  The import file would start with
16259     # the line `#! .'.  This would cause the generated library to
16260     # depend on `.', always an invalid library.  This was fixed in
16261     # development snapshots of GCC prior to 3.0.
16262     case $host_os in
16263       aix4 | aix4.[01] | aix4.[01].*)
16264       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16265            echo ' yes '
16266            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16267         :
16268       else
16269         can_build_shared=no
16270       fi
16271       ;;
16272     esac
16273     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16274     # soname into executable. Probably we can add versioning support to
16275     # collect2, so additional links can be useful in future.
16276     if test "$aix_use_runtimelinking" = yes; then
16277       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16278       # instead of lib<name>.a to let people know that these are not
16279       # typical AIX shared libraries.
16280       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281     else
16282       # We preserve .a as extension for shared libraries through AIX4.2
16283       # and later when we are not doing run time linking.
16284       library_names_spec='${libname}${release}.a $libname.a'
16285       soname_spec='${libname}${release}${shared_ext}$major'
16286     fi
16287     shlibpath_var=LIBPATH
16288   fi
16289   ;;
16290
16291 amigaos*)
16292   library_names_spec='$libname.ixlibrary $libname.a'
16293   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16294   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'
16295   ;;
16296
16297 beos*)
16298   library_names_spec='${libname}${shared_ext}'
16299   dynamic_linker="$host_os ld.so"
16300   shlibpath_var=LIBRARY_PATH
16301   ;;
16302
16303 bsdi[45]*)
16304   version_type=linux
16305   need_version=no
16306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16307   soname_spec='${libname}${release}${shared_ext}$major'
16308   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16309   shlibpath_var=LD_LIBRARY_PATH
16310   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16311   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16312   # the default ld.so.conf also contains /usr/contrib/lib and
16313   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16314   # libtool to hard-code these into programs
16315   ;;
16316
16317 cygwin* | mingw* | pw32*)
16318   version_type=windows
16319   shrext_cmds=".dll"
16320   need_version=no
16321   need_lib_prefix=no
16322
16323   case $GCC,$host_os in
16324   yes,cygwin* | yes,mingw* | yes,pw32*)
16325     library_names_spec='$libname.dll.a'
16326     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16327     postinstall_cmds='base_file=`basename \${file}`~
16328       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16329       dldir=$destdir/`dirname \$dlpath`~
16330       test -d \$dldir || mkdir -p \$dldir~
16331       $install_prog $dir/$dlname \$dldir/$dlname~
16332       chmod a+x \$dldir/$dlname'
16333     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16334       dlpath=$dir/\$dldll~
16335        $rm \$dlpath'
16336     shlibpath_overrides_runpath=yes
16337
16338     case $host_os in
16339     cygwin*)
16340       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16341       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16342       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16343       ;;
16344     mingw*)
16345       # MinGW DLLs use traditional 'lib' prefix
16346       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16348       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16349         # It is most probably a Windows format PATH printed by
16350         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16351         # path with ; separators, and with drive letters. We can handle the
16352         # drive letters (cygwin fileutils understands them), so leave them,
16353         # especially as we might pass files found there to a mingw objdump,
16354         # which wouldn't understand a cygwinified path. Ahh.
16355         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16356       else
16357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16358       fi
16359       ;;
16360     pw32*)
16361       # pw32 DLLs use 'pw' prefix rather than 'lib'
16362       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16363       ;;
16364     esac
16365     ;;
16366
16367   *)
16368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16369     ;;
16370   esac
16371   dynamic_linker='Win32 ld.exe'
16372   # FIXME: first we should search . and the directory the executable is in
16373   shlibpath_var=PATH
16374   ;;
16375
16376 darwin* | rhapsody*)
16377   dynamic_linker="$host_os dyld"
16378   version_type=darwin
16379   need_lib_prefix=no
16380   need_version=no
16381   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16382   soname_spec='${libname}${release}${major}$shared_ext'
16383   shlibpath_overrides_runpath=yes
16384   shlibpath_var=DYLD_LIBRARY_PATH
16385   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16386   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16387   if test "$GCC" = yes; then
16388     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"`
16389   else
16390     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16391   fi
16392   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16393   ;;
16394
16395 dgux*)
16396   version_type=linux
16397   need_lib_prefix=no
16398   need_version=no
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16400   soname_spec='${libname}${release}${shared_ext}$major'
16401   shlibpath_var=LD_LIBRARY_PATH
16402   ;;
16403
16404 freebsd1*)
16405   dynamic_linker=no
16406   ;;
16407
16408 freebsd* | dragonfly*)
16409   # DragonFly does not have aout.  When/if they implement a new
16410   # versioning mechanism, adjust this.
16411   if test -x /usr/bin/objformat; then
16412     objformat=`/usr/bin/objformat`
16413   else
16414     case $host_os in
16415     freebsd[123]*) objformat=aout ;;
16416     *) objformat=elf ;;
16417     esac
16418   fi
16419   version_type=freebsd-$objformat
16420   case $version_type in
16421     freebsd-elf*)
16422       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16423       need_version=no
16424       need_lib_prefix=no
16425       ;;
16426     freebsd-*)
16427       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16428       need_version=yes
16429       ;;
16430   esac
16431   shlibpath_var=LD_LIBRARY_PATH
16432   case $host_os in
16433   freebsd2*)
16434     shlibpath_overrides_runpath=yes
16435     ;;
16436   freebsd3.[01]* | freebsdelf3.[01]*)
16437     shlibpath_overrides_runpath=yes
16438     hardcode_into_libs=yes
16439     ;;
16440   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16441   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16442     shlibpath_overrides_runpath=no
16443     hardcode_into_libs=yes
16444     ;;
16445   freebsd*) # from 4.6 on
16446     shlibpath_overrides_runpath=yes
16447     hardcode_into_libs=yes
16448     ;;
16449   esac
16450   ;;
16451
16452 gnu*)
16453   version_type=linux
16454   need_lib_prefix=no
16455   need_version=no
16456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16457   soname_spec='${libname}${release}${shared_ext}$major'
16458   shlibpath_var=LD_LIBRARY_PATH
16459   hardcode_into_libs=yes
16460   ;;
16461
16462 hpux9* | hpux10* | hpux11*)
16463   # Give a soname corresponding to the major version so that dld.sl refuses to
16464   # link against other versions.
16465   version_type=sunos
16466   need_lib_prefix=no
16467   need_version=no
16468   case $host_cpu in
16469   ia64*)
16470     shrext_cmds='.so'
16471     hardcode_into_libs=yes
16472     dynamic_linker="$host_os dld.so"
16473     shlibpath_var=LD_LIBRARY_PATH
16474     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476     soname_spec='${libname}${release}${shared_ext}$major'
16477     if test "X$HPUX_IA64_MODE" = X32; then
16478       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16479     else
16480       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16481     fi
16482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16483     ;;
16484    hppa*64*)
16485      shrext_cmds='.sl'
16486      hardcode_into_libs=yes
16487      dynamic_linker="$host_os dld.sl"
16488      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16489      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491      soname_spec='${libname}${release}${shared_ext}$major'
16492      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16493      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16494      ;;
16495    *)
16496     shrext_cmds='.sl'
16497     dynamic_linker="$host_os dld.sl"
16498     shlibpath_var=SHLIB_PATH
16499     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501     soname_spec='${libname}${release}${shared_ext}$major'
16502     ;;
16503   esac
16504   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16505   postinstall_cmds='chmod 555 $lib'
16506   ;;
16507
16508 interix3*)
16509   version_type=linux
16510   need_lib_prefix=no
16511   need_version=no
16512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16513   soname_spec='${libname}${release}${shared_ext}$major'
16514   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   shlibpath_overrides_runpath=no
16517   hardcode_into_libs=yes
16518   ;;
16519
16520 irix5* | irix6* | nonstopux*)
16521   case $host_os in
16522     nonstopux*) version_type=nonstopux ;;
16523     *)
16524         if test "$lt_cv_prog_gnu_ld" = yes; then
16525                 version_type=linux
16526         else
16527                 version_type=irix
16528         fi ;;
16529   esac
16530   need_lib_prefix=no
16531   need_version=no
16532   soname_spec='${libname}${release}${shared_ext}$major'
16533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16534   case $host_os in
16535   irix5* | nonstopux*)
16536     libsuff= shlibsuff=
16537     ;;
16538   *)
16539     case $LD in # libtool.m4 will add one of these switches to LD
16540     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16541       libsuff= shlibsuff= libmagic=32-bit;;
16542     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16543       libsuff=32 shlibsuff=N32 libmagic=N32;;
16544     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16545       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16546     *) libsuff= shlibsuff= libmagic=never-match;;
16547     esac
16548     ;;
16549   esac
16550   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16551   shlibpath_overrides_runpath=no
16552   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16553   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16554   hardcode_into_libs=yes
16555   ;;
16556
16557 # No shared lib support for Linux oldld, aout, or coff.
16558 linux*oldld* | linux*aout* | linux*coff*)
16559   dynamic_linker=no
16560   ;;
16561
16562 # This must be Linux ELF.
16563 linux* | k*bsd*-gnu)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=no
16572   # This implies no fast_install, which is unacceptable.
16573   # Some rework will be needed to allow for fast_install
16574   # before this can be enabled.
16575   hardcode_into_libs=yes
16576
16577   # Append ld.so.conf contents to the search path
16578   if test -f /etc/ld.so.conf; then
16579     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' ' '`
16580     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16581   fi
16582
16583   # We used to test for /lib/ld.so.1 and disable shared libraries on
16584   # powerpc, because MkLinux only supported shared libraries with the
16585   # GNU dynamic linker.  Since this was broken with cross compilers,
16586   # most powerpc-linux boxes support dynamic linking these days and
16587   # people can always --disable-shared, the test was removed, and we
16588   # assume the GNU/Linux dynamic linker is in use.
16589   dynamic_linker='GNU/Linux ld.so'
16590   ;;
16591
16592 netbsdelf*-gnu)
16593   version_type=linux
16594   need_lib_prefix=no
16595   need_version=no
16596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16597   soname_spec='${libname}${release}${shared_ext}$major'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   shlibpath_overrides_runpath=no
16600   hardcode_into_libs=yes
16601   dynamic_linker='NetBSD ld.elf_so'
16602   ;;
16603
16604 netbsd*)
16605   version_type=sunos
16606   need_lib_prefix=no
16607   need_version=no
16608   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16610     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16611     dynamic_linker='NetBSD (a.out) ld.so'
16612   else
16613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16614     soname_spec='${libname}${release}${shared_ext}$major'
16615     dynamic_linker='NetBSD ld.elf_so'
16616   fi
16617   shlibpath_var=LD_LIBRARY_PATH
16618   shlibpath_overrides_runpath=yes
16619   hardcode_into_libs=yes
16620   ;;
16621
16622 newsos6)
16623   version_type=linux
16624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=yes
16627   ;;
16628
16629 nto-qnx*)
16630   version_type=linux
16631   need_lib_prefix=no
16632   need_version=no
16633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634   soname_spec='${libname}${release}${shared_ext}$major'
16635   shlibpath_var=LD_LIBRARY_PATH
16636   shlibpath_overrides_runpath=yes
16637   ;;
16638
16639 openbsd*)
16640   version_type=sunos
16641   sys_lib_dlsearch_path_spec="/usr/lib"
16642   need_lib_prefix=no
16643   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16644   case $host_os in
16645     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16646     *)                         need_version=no  ;;
16647   esac
16648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16650   shlibpath_var=LD_LIBRARY_PATH
16651   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16652     case $host_os in
16653       openbsd2.[89] | openbsd2.[89].*)
16654         shlibpath_overrides_runpath=no
16655         ;;
16656       *)
16657         shlibpath_overrides_runpath=yes
16658         ;;
16659       esac
16660   else
16661     shlibpath_overrides_runpath=yes
16662   fi
16663   ;;
16664
16665 os2*)
16666   libname_spec='$name'
16667   shrext_cmds=".dll"
16668   need_lib_prefix=no
16669   library_names_spec='$libname${shared_ext} $libname.a'
16670   dynamic_linker='OS/2 ld.exe'
16671   shlibpath_var=LIBPATH
16672   ;;
16673
16674 osf3* | osf4* | osf5*)
16675   version_type=osf
16676   need_lib_prefix=no
16677   need_version=no
16678   soname_spec='${libname}${release}${shared_ext}$major'
16679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680   shlibpath_var=LD_LIBRARY_PATH
16681   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16682   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16683   ;;
16684
16685 solaris*)
16686   version_type=linux
16687   need_lib_prefix=no
16688   need_version=no
16689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690   soname_spec='${libname}${release}${shared_ext}$major'
16691   shlibpath_var=LD_LIBRARY_PATH
16692   shlibpath_overrides_runpath=yes
16693   hardcode_into_libs=yes
16694   # ldd complains unless libraries are executable
16695   postinstall_cmds='chmod +x $lib'
16696   ;;
16697
16698 sunos4*)
16699   version_type=sunos
16700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16701   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16702   shlibpath_var=LD_LIBRARY_PATH
16703   shlibpath_overrides_runpath=yes
16704   if test "$with_gnu_ld" = yes; then
16705     need_lib_prefix=no
16706   fi
16707   need_version=yes
16708   ;;
16709
16710 sysv4 | sysv4.3*)
16711   version_type=linux
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   case $host_vendor in
16716     sni)
16717       shlibpath_overrides_runpath=no
16718       need_lib_prefix=no
16719       export_dynamic_flag_spec='${wl}-Blargedynsym'
16720       runpath_var=LD_RUN_PATH
16721       ;;
16722     siemens)
16723       need_lib_prefix=no
16724       ;;
16725     motorola)
16726       need_lib_prefix=no
16727       need_version=no
16728       shlibpath_overrides_runpath=no
16729       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16730       ;;
16731   esac
16732   ;;
16733
16734 sysv4*MP*)
16735   if test -d /usr/nec ;then
16736     version_type=linux
16737     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16738     soname_spec='$libname${shared_ext}.$major'
16739     shlibpath_var=LD_LIBRARY_PATH
16740   fi
16741   ;;
16742
16743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16744   version_type=freebsd-elf
16745   need_lib_prefix=no
16746   need_version=no
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16748   soname_spec='${libname}${release}${shared_ext}$major'
16749   shlibpath_var=LD_LIBRARY_PATH
16750   hardcode_into_libs=yes
16751   if test "$with_gnu_ld" = yes; then
16752     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16753     shlibpath_overrides_runpath=no
16754   else
16755     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16756     shlibpath_overrides_runpath=yes
16757     case $host_os in
16758       sco3.2v5*)
16759         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16760         ;;
16761     esac
16762   fi
16763   sys_lib_dlsearch_path_spec='/usr/lib'
16764   ;;
16765
16766 uts4*)
16767   version_type=linux
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769   soname_spec='${libname}${release}${shared_ext}$major'
16770   shlibpath_var=LD_LIBRARY_PATH
16771   ;;
16772
16773 *)
16774   dynamic_linker=no
16775   ;;
16776 esac
16777 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16778 echo "${ECHO_T}$dynamic_linker" >&6; }
16779 test "$dynamic_linker" = no && can_build_shared=no
16780
16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16782 if test "$GCC" = yes; then
16783   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16784 fi
16785
16786 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16788 hardcode_action_F77=
16789 if test -n "$hardcode_libdir_flag_spec_F77" || \
16790    test -n "$runpath_var_F77" || \
16791    test "X$hardcode_automatic_F77" = "Xyes" ; then
16792
16793   # We can hardcode non-existant directories.
16794   if test "$hardcode_direct_F77" != no &&
16795      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16796      # have to relink, otherwise we might link with an installed library
16797      # when we should be linking with a yet-to-be-installed one
16798      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16799      test "$hardcode_minus_L_F77" != no; then
16800     # Linking always hardcodes the temporary library directory.
16801     hardcode_action_F77=relink
16802   else
16803     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16804     hardcode_action_F77=immediate
16805   fi
16806 else
16807   # We cannot hardcode anything, or else we can only hardcode existing
16808   # directories.
16809   hardcode_action_F77=unsupported
16810 fi
16811 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16812 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16813
16814 if test "$hardcode_action_F77" = relink; then
16815   # Fast installation is not supported
16816   enable_fast_install=no
16817 elif test "$shlibpath_overrides_runpath" = yes ||
16818      test "$enable_shared" = no; then
16819   # Fast installation is not necessary
16820   enable_fast_install=needless
16821 fi
16822
16823
16824 # The else clause should only fire when bootstrapping the
16825 # libtool distribution, otherwise you forgot to ship ltmain.sh
16826 # with your package, and you will get complaints that there are
16827 # no rules to generate ltmain.sh.
16828 if test -f "$ltmain"; then
16829   # See if we are running on zsh, and set the options which allow our commands through
16830   # without removal of \ escapes.
16831   if test -n "${ZSH_VERSION+set}" ; then
16832     setopt NO_GLOB_SUBST
16833   fi
16834   # Now quote all the things that may contain metacharacters while being
16835   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16836   # variables and quote the copies for generation of the libtool script.
16837   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16838     SED SHELL STRIP \
16839     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16840     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16841     deplibs_check_method reload_flag reload_cmds need_locks \
16842     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16843     lt_cv_sys_global_symbol_to_c_name_address \
16844     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16845     old_postinstall_cmds old_postuninstall_cmds \
16846     compiler_F77 \
16847     CC_F77 \
16848     LD_F77 \
16849     lt_prog_compiler_wl_F77 \
16850     lt_prog_compiler_pic_F77 \
16851     lt_prog_compiler_static_F77 \
16852     lt_prog_compiler_no_builtin_flag_F77 \
16853     export_dynamic_flag_spec_F77 \
16854     thread_safe_flag_spec_F77 \
16855     whole_archive_flag_spec_F77 \
16856     enable_shared_with_static_runtimes_F77 \
16857     old_archive_cmds_F77 \
16858     old_archive_from_new_cmds_F77 \
16859     predep_objects_F77 \
16860     postdep_objects_F77 \
16861     predeps_F77 \
16862     postdeps_F77 \
16863     compiler_lib_search_path_F77 \
16864     archive_cmds_F77 \
16865     archive_expsym_cmds_F77 \
16866     postinstall_cmds_F77 \
16867     postuninstall_cmds_F77 \
16868     old_archive_from_expsyms_cmds_F77 \
16869     allow_undefined_flag_F77 \
16870     no_undefined_flag_F77 \
16871     export_symbols_cmds_F77 \
16872     hardcode_libdir_flag_spec_F77 \
16873     hardcode_libdir_flag_spec_ld_F77 \
16874     hardcode_libdir_separator_F77 \
16875     hardcode_automatic_F77 \
16876     module_cmds_F77 \
16877     module_expsym_cmds_F77 \
16878     lt_cv_prog_compiler_c_o_F77 \
16879     exclude_expsyms_F77 \
16880     include_expsyms_F77; do
16881
16882     case $var in
16883     old_archive_cmds_F77 | \
16884     old_archive_from_new_cmds_F77 | \
16885     archive_cmds_F77 | \
16886     archive_expsym_cmds_F77 | \
16887     module_cmds_F77 | \
16888     module_expsym_cmds_F77 | \
16889     old_archive_from_expsyms_cmds_F77 | \
16890     export_symbols_cmds_F77 | \
16891     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16892     postinstall_cmds | postuninstall_cmds | \
16893     old_postinstall_cmds | old_postuninstall_cmds | \
16894     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16895       # Double-quote double-evaled strings.
16896       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16897       ;;
16898     *)
16899       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16900       ;;
16901     esac
16902   done
16903
16904   case $lt_echo in
16905   *'\$0 --fallback-echo"')
16906     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16907     ;;
16908   esac
16909
16910 cfgfile="$ofile"
16911
16912   cat <<__EOF__ >> "$cfgfile"
16913 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16914
16915 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16916
16917 # Shell to use when invoking shell scripts.
16918 SHELL=$lt_SHELL
16919
16920 # Whether or not to build shared libraries.
16921 build_libtool_libs=$enable_shared
16922
16923 # Whether or not to build static libraries.
16924 build_old_libs=$enable_static
16925
16926 # Whether or not to add -lc for building shared libraries.
16927 build_libtool_need_lc=$archive_cmds_need_lc_F77
16928
16929 # Whether or not to disallow shared libs when runtime libs are static
16930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16931
16932 # Whether or not to optimize for fast installation.
16933 fast_install=$enable_fast_install
16934
16935 # The host system.
16936 host_alias=$host_alias
16937 host=$host
16938 host_os=$host_os
16939
16940 # The build system.
16941 build_alias=$build_alias
16942 build=$build
16943 build_os=$build_os
16944
16945 # An echo program that does not interpret backslashes.
16946 echo=$lt_echo
16947
16948 # The archiver.
16949 AR=$lt_AR
16950 AR_FLAGS=$lt_AR_FLAGS
16951
16952 # A C compiler.
16953 LTCC=$lt_LTCC
16954
16955 # LTCC compiler flags.
16956 LTCFLAGS=$lt_LTCFLAGS
16957
16958 # A language-specific compiler.
16959 CC=$lt_compiler_F77
16960
16961 # Is the compiler the GNU C compiler?
16962 with_gcc=$GCC_F77
16963
16964 # An ERE matcher.
16965 EGREP=$lt_EGREP
16966
16967 # The linker used to build libraries.
16968 LD=$lt_LD_F77
16969
16970 # Whether we need hard or soft links.
16971 LN_S=$lt_LN_S
16972
16973 # A BSD-compatible nm program.
16974 NM=$lt_NM
16975
16976 # A symbol stripping program
16977 STRIP=$lt_STRIP
16978
16979 # Used to examine libraries when file_magic_cmd begins "file"
16980 MAGIC_CMD=$MAGIC_CMD
16981
16982 # Used on cygwin: DLL creation program.
16983 DLLTOOL="$DLLTOOL"
16984
16985 # Used on cygwin: object dumper.
16986 OBJDUMP="$OBJDUMP"
16987
16988 # Used on cygwin: assembler.
16989 AS="$AS"
16990
16991 # The name of the directory that contains temporary libtool files.
16992 objdir=$objdir
16993
16994 # How to create reloadable object files.
16995 reload_flag=$lt_reload_flag
16996 reload_cmds=$lt_reload_cmds
16997
16998 # How to pass a linker flag through the compiler.
16999 wl=$lt_lt_prog_compiler_wl_F77
17000
17001 # Object file suffix (normally "o").
17002 objext="$ac_objext"
17003
17004 # Old archive suffix (normally "a").
17005 libext="$libext"
17006
17007 # Shared library suffix (normally ".so").
17008 shrext_cmds='$shrext_cmds'
17009
17010 # Executable file suffix (normally "").
17011 exeext="$exeext"
17012
17013 # Additional compiler flags for building library objects.
17014 pic_flag=$lt_lt_prog_compiler_pic_F77
17015 pic_mode=$pic_mode
17016
17017 # What is the maximum length of a command?
17018 max_cmd_len=$lt_cv_sys_max_cmd_len
17019
17020 # Does compiler simultaneously support -c and -o options?
17021 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17022
17023 # Must we lock files when doing compilation?
17024 need_locks=$lt_need_locks
17025
17026 # Do we need the lib prefix for modules?
17027 need_lib_prefix=$need_lib_prefix
17028
17029 # Do we need a version for libraries?
17030 need_version=$need_version
17031
17032 # Whether dlopen is supported.
17033 dlopen_support=$enable_dlopen
17034
17035 # Whether dlopen of programs is supported.
17036 dlopen_self=$enable_dlopen_self
17037
17038 # Whether dlopen of statically linked programs is supported.
17039 dlopen_self_static=$enable_dlopen_self_static
17040
17041 # Compiler flag to prevent dynamic linking.
17042 link_static_flag=$lt_lt_prog_compiler_static_F77
17043
17044 # Compiler flag to turn off builtin functions.
17045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17046
17047 # Compiler flag to allow reflexive dlopens.
17048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17049
17050 # Compiler flag to generate shared objects directly from archives.
17051 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17052
17053 # Compiler flag to generate thread-safe objects.
17054 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17055
17056 # Library versioning type.
17057 version_type=$version_type
17058
17059 # Format of library name prefix.
17060 libname_spec=$lt_libname_spec
17061
17062 # List of archive names.  First name is the real one, the rest are links.
17063 # The last name is the one that the linker finds with -lNAME.
17064 library_names_spec=$lt_library_names_spec
17065
17066 # The coded name of the library, if different from the real name.
17067 soname_spec=$lt_soname_spec
17068
17069 # Commands used to build and install an old-style archive.
17070 RANLIB=$lt_RANLIB
17071 old_archive_cmds=$lt_old_archive_cmds_F77
17072 old_postinstall_cmds=$lt_old_postinstall_cmds
17073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17074
17075 # Create an old-style archive from a shared archive.
17076 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17077
17078 # Create a temporary old-style archive to link instead of a shared archive.
17079 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17080
17081 # Commands used to build and install a shared archive.
17082 archive_cmds=$lt_archive_cmds_F77
17083 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17084 postinstall_cmds=$lt_postinstall_cmds
17085 postuninstall_cmds=$lt_postuninstall_cmds
17086
17087 # Commands used to build a loadable module (assumed same as above if empty)
17088 module_cmds=$lt_module_cmds_F77
17089 module_expsym_cmds=$lt_module_expsym_cmds_F77
17090
17091 # Commands to strip libraries.
17092 old_striplib=$lt_old_striplib
17093 striplib=$lt_striplib
17094
17095 # Dependencies to place before the objects being linked to create a
17096 # shared library.
17097 predep_objects=$lt_predep_objects_F77
17098
17099 # Dependencies to place after the objects being linked to create a
17100 # shared library.
17101 postdep_objects=$lt_postdep_objects_F77
17102
17103 # Dependencies to place before the objects being linked to create a
17104 # shared library.
17105 predeps=$lt_predeps_F77
17106
17107 # Dependencies to place after the objects being linked to create a
17108 # shared library.
17109 postdeps=$lt_postdeps_F77
17110
17111 # The library search path used internally by the compiler when linking
17112 # a shared library.
17113 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17114
17115 # Method to check whether dependent libraries are shared objects.
17116 deplibs_check_method=$lt_deplibs_check_method
17117
17118 # Command to use when deplibs_check_method == file_magic.
17119 file_magic_cmd=$lt_file_magic_cmd
17120
17121 # Flag that allows shared libraries with undefined symbols to be built.
17122 allow_undefined_flag=$lt_allow_undefined_flag_F77
17123
17124 # Flag that forces no undefined symbols.
17125 no_undefined_flag=$lt_no_undefined_flag_F77
17126
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17129
17130 # Same as above, but a single script fragment to be evaled but not shown.
17131 finish_eval=$lt_finish_eval
17132
17133 # Take the output of nm and produce a listing of raw symbols and C names.
17134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17135
17136 # Transform the output of nm in a proper C declaration
17137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17138
17139 # Transform the output of nm in a C name address pair
17140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17141
17142 # This is the shared library runtime path variable.
17143 runpath_var=$runpath_var
17144
17145 # This is the shared library path variable.
17146 shlibpath_var=$shlibpath_var
17147
17148 # Is shlibpath searched before the hard-coded library search path?
17149 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17150
17151 # How to hardcode a shared library path into an executable.
17152 hardcode_action=$hardcode_action_F77
17153
17154 # Whether we should hardcode library paths into libraries.
17155 hardcode_into_libs=$hardcode_into_libs
17156
17157 # Flag to hardcode \$libdir into a binary during linking.
17158 # This must work even if \$libdir does not exist.
17159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17160
17161 # If ld is used when linking, flag to hardcode \$libdir into
17162 # a binary during linking. This must work even if \$libdir does
17163 # not exist.
17164 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17165
17166 # Whether we need a single -rpath flag with a separated argument.
17167 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17168
17169 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17170 # resulting binary.
17171 hardcode_direct=$hardcode_direct_F77
17172
17173 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17174 # resulting binary.
17175 hardcode_minus_L=$hardcode_minus_L_F77
17176
17177 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17178 # the resulting binary.
17179 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17180
17181 # Set to yes if building a shared library automatically hardcodes DIR into the library
17182 # and all subsequent libraries and executables linked against it.
17183 hardcode_automatic=$hardcode_automatic_F77
17184
17185 # Variables whose values should be saved in libtool wrapper scripts and
17186 # restored at relink time.
17187 variables_saved_for_relink="$variables_saved_for_relink"
17188
17189 # Whether libtool must link a program against all its dependency libraries.
17190 link_all_deplibs=$link_all_deplibs_F77
17191
17192 # Compile-time system search path for libraries
17193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17194
17195 # Run-time system search path for libraries
17196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17197
17198 # Fix the shell variable \$srcfile for the compiler.
17199 fix_srcfile_path="$fix_srcfile_path_F77"
17200
17201 # Set to yes if exported symbols are required.
17202 always_export_symbols=$always_export_symbols_F77
17203
17204 # The commands to list exported symbols.
17205 export_symbols_cmds=$lt_export_symbols_cmds_F77
17206
17207 # The commands to extract the exported symbol list from a shared archive.
17208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17209
17210 # Symbols that should not be listed in the preloaded symbols.
17211 exclude_expsyms=$lt_exclude_expsyms_F77
17212
17213 # Symbols that must always be exported.
17214 include_expsyms=$lt_include_expsyms_F77
17215
17216 # ### END LIBTOOL TAG CONFIG: $tagname
17217
17218 __EOF__
17219
17220
17221 else
17222   # If there is no Makefile yet, we rely on a make rule to execute
17223   # `config.status --recheck' to rerun these tests and create the
17224   # libtool script then.
17225   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17226   if test -f "$ltmain_in"; then
17227     test -f Makefile && make "$ltmain"
17228   fi
17229 fi
17230
17231
17232 ac_ext=c
17233 ac_cpp='$CPP $CPPFLAGS'
17234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17237
17238 CC="$lt_save_CC"
17239
17240         else
17241           tagname=""
17242         fi
17243         ;;
17244
17245       GCJ)
17246         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17247
17248
17249 # Source file extension for Java test sources.
17250 ac_ext=java
17251
17252 # Object file extension for compiled Java test sources.
17253 objext=o
17254 objext_GCJ=$objext
17255
17256 # Code to be used in simple compile tests
17257 lt_simple_compile_test_code="class foo {}\n"
17258
17259 # Code to be used in simple link tests
17260 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17261
17262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17263
17264 # If no C compiler was specified, use CC.
17265 LTCC=${LTCC-"$CC"}
17266
17267 # If no C compiler flags were specified, use CFLAGS.
17268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17269
17270 # Allow CC to be a program name with arguments.
17271 compiler=$CC
17272
17273
17274 # save warnings/boilerplate of simple test code
17275 ac_outfile=conftest.$ac_objext
17276 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17278 _lt_compiler_boilerplate=`cat conftest.err`
17279 $rm conftest*
17280
17281 ac_outfile=conftest.$ac_objext
17282 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17284 _lt_linker_boilerplate=`cat conftest.err`
17285 $rm conftest*
17286
17287
17288 # Allow CC to be a program name with arguments.
17289 lt_save_CC="$CC"
17290 CC=${GCJ-"gcj"}
17291 compiler=$CC
17292 compiler_GCJ=$CC
17293 for cc_temp in $compiler""; do
17294   case $cc_temp in
17295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17297     \-*) ;;
17298     *) break;;
17299   esac
17300 done
17301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17302
17303
17304 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17305 archive_cmds_need_lc_GCJ=no
17306
17307 old_archive_cmds_GCJ=$old_archive_cmds
17308
17309
17310 lt_prog_compiler_no_builtin_flag_GCJ=
17311
17312 if test "$GCC" = yes; then
17313   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17314
17315
17316 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17317 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17318 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   lt_cv_prog_compiler_rtti_exceptions=no
17322   ac_outfile=conftest.$ac_objext
17323    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17324    lt_compiler_flag="-fno-rtti -fno-exceptions"
17325    # Insert the option either (1) after the last *FLAGS variable, or
17326    # (2) before a word containing "conftest.", or (3) at the end.
17327    # Note that $ac_compile itself does not contain backslashes and begins
17328    # with a dollar sign (not a hyphen), so the echo should work correctly.
17329    # The option is referenced via a variable to avoid confusing sed.
17330    lt_compile=`echo "$ac_compile" | $SED \
17331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17333    -e 's:$: $lt_compiler_flag:'`
17334    (eval echo "\"\$as_me:17334: $lt_compile\"" >&5)
17335    (eval "$lt_compile" 2>conftest.err)
17336    ac_status=$?
17337    cat conftest.err >&5
17338    echo "$as_me:17338: \$? = $ac_status" >&5
17339    if (exit $ac_status) && test -s "$ac_outfile"; then
17340      # The compiler can only warn and ignore the option if not recognized
17341      # So say no if there are warnings other than the usual output.
17342      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17343      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17344      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17345        lt_cv_prog_compiler_rtti_exceptions=yes
17346      fi
17347    fi
17348    $rm conftest*
17349
17350 fi
17351 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17352 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17353
17354 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17355     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17356 else
17357     :
17358 fi
17359
17360 fi
17361
17362 lt_prog_compiler_wl_GCJ=
17363 lt_prog_compiler_pic_GCJ=
17364 lt_prog_compiler_static_GCJ=
17365
17366 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17367 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17368
17369   if test "$GCC" = yes; then
17370     lt_prog_compiler_wl_GCJ='-Wl,'
17371     lt_prog_compiler_static_GCJ='-static'
17372
17373     case $host_os in
17374       aix*)
17375       # All AIX code is PIC.
17376       if test "$host_cpu" = ia64; then
17377         # AIX 5 now supports IA64 processor
17378         lt_prog_compiler_static_GCJ='-Bstatic'
17379       fi
17380       ;;
17381
17382     amigaos*)
17383       # FIXME: we need at least 68020 code to build shared libraries, but
17384       # adding the `-m68020' flag to GCC prevents building anything better,
17385       # like `-m68040'.
17386       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17387       ;;
17388
17389     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17390       # PIC is the default for these OSes.
17391       ;;
17392
17393     mingw* | pw32* | os2*)
17394       # This hack is so that the source file can tell whether it is being
17395       # built for inclusion in a dll (and should export symbols for example).
17396       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17397       ;;
17398
17399     darwin* | rhapsody*)
17400       # PIC is the default on this platform
17401       # Common symbols not allowed in MH_DYLIB files
17402       lt_prog_compiler_pic_GCJ='-fno-common'
17403       ;;
17404
17405     interix3*)
17406       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17407       # Instead, we relocate shared libraries at runtime.
17408       ;;
17409
17410     msdosdjgpp*)
17411       # Just because we use GCC doesn't mean we suddenly get shared libraries
17412       # on systems that don't support them.
17413       lt_prog_compiler_can_build_shared_GCJ=no
17414       enable_shared=no
17415       ;;
17416
17417     sysv4*MP*)
17418       if test -d /usr/nec; then
17419         lt_prog_compiler_pic_GCJ=-Kconform_pic
17420       fi
17421       ;;
17422
17423     hpux*)
17424       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17425       # not for PA HP-UX.
17426       case $host_cpu in
17427       hppa*64*|ia64*)
17428         # +Z the default
17429         ;;
17430       *)
17431         lt_prog_compiler_pic_GCJ='-fPIC'
17432         ;;
17433       esac
17434       ;;
17435
17436     *)
17437       lt_prog_compiler_pic_GCJ='-fPIC'
17438       ;;
17439     esac
17440   else
17441     # PORTME Check for flag to pass linker flags through the system compiler.
17442     case $host_os in
17443     aix*)
17444       lt_prog_compiler_wl_GCJ='-Wl,'
17445       if test "$host_cpu" = ia64; then
17446         # AIX 5 now supports IA64 processor
17447         lt_prog_compiler_static_GCJ='-Bstatic'
17448       else
17449         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17450       fi
17451       ;;
17452       darwin*)
17453         # PIC is the default on this platform
17454         # Common symbols not allowed in MH_DYLIB files
17455        case $cc_basename in
17456          xlc*)
17457          lt_prog_compiler_pic_GCJ='-qnocommon'
17458          lt_prog_compiler_wl_GCJ='-Wl,'
17459          ;;
17460        esac
17461        ;;
17462
17463     mingw* | pw32* | os2*)
17464       # This hack is so that the source file can tell whether it is being
17465       # built for inclusion in a dll (and should export symbols for example).
17466       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17467       ;;
17468
17469     hpux9* | hpux10* | hpux11*)
17470       lt_prog_compiler_wl_GCJ='-Wl,'
17471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17472       # not for PA HP-UX.
17473       case $host_cpu in
17474       hppa*64*|ia64*)
17475         # +Z the default
17476         ;;
17477       *)
17478         lt_prog_compiler_pic_GCJ='+Z'
17479         ;;
17480       esac
17481       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17482       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17483       ;;
17484
17485     irix5* | irix6* | nonstopux*)
17486       lt_prog_compiler_wl_GCJ='-Wl,'
17487       # PIC (with -KPIC) is the default.
17488       lt_prog_compiler_static_GCJ='-non_shared'
17489       ;;
17490
17491     newsos6)
17492       lt_prog_compiler_pic_GCJ='-KPIC'
17493       lt_prog_compiler_static_GCJ='-Bstatic'
17494       ;;
17495
17496     linux* | k*bsd*-gnu)
17497       case $cc_basename in
17498       icc* | ecc*)
17499         lt_prog_compiler_wl_GCJ='-Wl,'
17500         lt_prog_compiler_pic_GCJ='-KPIC'
17501         lt_prog_compiler_static_GCJ='-static'
17502         ;;
17503       pgcc* | pgf77* | pgf90* | pgf95*)
17504         # Portland Group compilers (*not* the Pentium gcc compiler,
17505         # which looks to be a dead project)
17506         lt_prog_compiler_wl_GCJ='-Wl,'
17507         lt_prog_compiler_pic_GCJ='-fpic'
17508         lt_prog_compiler_static_GCJ='-Bstatic'
17509         ;;
17510       ccc*)
17511         lt_prog_compiler_wl_GCJ='-Wl,'
17512         # All Alpha code is PIC.
17513         lt_prog_compiler_static_GCJ='-non_shared'
17514         ;;
17515       esac
17516       ;;
17517
17518     osf3* | osf4* | osf5*)
17519       lt_prog_compiler_wl_GCJ='-Wl,'
17520       # All OSF/1 code is PIC.
17521       lt_prog_compiler_static_GCJ='-non_shared'
17522       ;;
17523
17524     solaris*)
17525       lt_prog_compiler_pic_GCJ='-KPIC'
17526       lt_prog_compiler_static_GCJ='-Bstatic'
17527       case $cc_basename in
17528       f77* | f90* | f95*)
17529         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17530       *)
17531         lt_prog_compiler_wl_GCJ='-Wl,';;
17532       esac
17533       ;;
17534
17535     sunos4*)
17536       lt_prog_compiler_wl_GCJ='-Qoption ld '
17537       lt_prog_compiler_pic_GCJ='-PIC'
17538       lt_prog_compiler_static_GCJ='-Bstatic'
17539       ;;
17540
17541     sysv4 | sysv4.2uw2* | sysv4.3*)
17542       lt_prog_compiler_wl_GCJ='-Wl,'
17543       lt_prog_compiler_pic_GCJ='-KPIC'
17544       lt_prog_compiler_static_GCJ='-Bstatic'
17545       ;;
17546
17547     sysv4*MP*)
17548       if test -d /usr/nec ;then
17549         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17550         lt_prog_compiler_static_GCJ='-Bstatic'
17551       fi
17552       ;;
17553
17554     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17555       lt_prog_compiler_wl_GCJ='-Wl,'
17556       lt_prog_compiler_pic_GCJ='-KPIC'
17557       lt_prog_compiler_static_GCJ='-Bstatic'
17558       ;;
17559
17560     unicos*)
17561       lt_prog_compiler_wl_GCJ='-Wl,'
17562       lt_prog_compiler_can_build_shared_GCJ=no
17563       ;;
17564
17565     uts4*)
17566       lt_prog_compiler_pic_GCJ='-pic'
17567       lt_prog_compiler_static_GCJ='-Bstatic'
17568       ;;
17569
17570     *)
17571       lt_prog_compiler_can_build_shared_GCJ=no
17572       ;;
17573     esac
17574   fi
17575
17576 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17577 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17578
17579 #
17580 # Check to make sure the PIC flag actually works.
17581 #
17582 if test -n "$lt_prog_compiler_pic_GCJ"; then
17583
17584 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17586 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   lt_prog_compiler_pic_works_GCJ=no
17590   ac_outfile=conftest.$ac_objext
17591    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17592    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17593    # Insert the option either (1) after the last *FLAGS variable, or
17594    # (2) before a word containing "conftest.", or (3) at the end.
17595    # Note that $ac_compile itself does not contain backslashes and begins
17596    # with a dollar sign (not a hyphen), so the echo should work correctly.
17597    # The option is referenced via a variable to avoid confusing sed.
17598    lt_compile=`echo "$ac_compile" | $SED \
17599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17601    -e 's:$: $lt_compiler_flag:'`
17602    (eval echo "\"\$as_me:17602: $lt_compile\"" >&5)
17603    (eval "$lt_compile" 2>conftest.err)
17604    ac_status=$?
17605    cat conftest.err >&5
17606    echo "$as_me:17606: \$? = $ac_status" >&5
17607    if (exit $ac_status) && test -s "$ac_outfile"; then
17608      # The compiler can only warn and ignore the option if not recognized
17609      # So say no if there are warnings other than the usual output.
17610      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17611      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17612      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17613        lt_prog_compiler_pic_works_GCJ=yes
17614      fi
17615    fi
17616    $rm conftest*
17617
17618 fi
17619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17620 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17621
17622 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17623     case $lt_prog_compiler_pic_GCJ in
17624      "" | " "*) ;;
17625      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17626      esac
17627 else
17628     lt_prog_compiler_pic_GCJ=
17629      lt_prog_compiler_can_build_shared_GCJ=no
17630 fi
17631
17632 fi
17633 case $host_os in
17634   # For platforms which do not support PIC, -DPIC is meaningless:
17635   *djgpp*)
17636     lt_prog_compiler_pic_GCJ=
17637     ;;
17638   *)
17639     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17640     ;;
17641 esac
17642
17643 #
17644 # Check to make sure the static flag actually works.
17645 #
17646 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17647 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17648 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17649 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17650   echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652   lt_prog_compiler_static_works_GCJ=no
17653    save_LDFLAGS="$LDFLAGS"
17654    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17655    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17656    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17657      # The linker can only warn and ignore the option if not recognized
17658      # So say no if there are warnings
17659      if test -s conftest.err; then
17660        # Append any errors to the config.log.
17661        cat conftest.err 1>&5
17662        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17663        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17664        if diff conftest.exp conftest.er2 >/dev/null; then
17665          lt_prog_compiler_static_works_GCJ=yes
17666        fi
17667      else
17668        lt_prog_compiler_static_works_GCJ=yes
17669      fi
17670    fi
17671    $rm conftest*
17672    LDFLAGS="$save_LDFLAGS"
17673
17674 fi
17675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17676 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17677
17678 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17679     :
17680 else
17681     lt_prog_compiler_static_GCJ=
17682 fi
17683
17684
17685 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17686 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17687 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690   lt_cv_prog_compiler_c_o_GCJ=no
17691    $rm -r conftest 2>/dev/null
17692    mkdir conftest
17693    cd conftest
17694    mkdir out
17695    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17696
17697    lt_compiler_flag="-o out/conftest2.$ac_objext"
17698    # Insert the option either (1) after the last *FLAGS variable, or
17699    # (2) before a word containing "conftest.", or (3) at the end.
17700    # Note that $ac_compile itself does not contain backslashes and begins
17701    # with a dollar sign (not a hyphen), so the echo should work correctly.
17702    lt_compile=`echo "$ac_compile" | $SED \
17703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17705    -e 's:$: $lt_compiler_flag:'`
17706    (eval echo "\"\$as_me:17706: $lt_compile\"" >&5)
17707    (eval "$lt_compile" 2>out/conftest.err)
17708    ac_status=$?
17709    cat out/conftest.err >&5
17710    echo "$as_me:17710: \$? = $ac_status" >&5
17711    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17712    then
17713      # The compiler can only warn and ignore the option if not recognized
17714      # So say no if there are warnings
17715      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17716      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17717      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17718        lt_cv_prog_compiler_c_o_GCJ=yes
17719      fi
17720    fi
17721    chmod u+w . 2>&5
17722    $rm conftest*
17723    # SGI C++ compiler will create directory out/ii_files/ for
17724    # template instantiation
17725    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17726    $rm out/* && rmdir out
17727    cd ..
17728    rmdir conftest
17729    $rm conftest*
17730
17731 fi
17732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17733 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17734
17735
17736 hard_links="nottested"
17737 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17738   # do not overwrite the value of need_locks provided by the user
17739   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17740 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17741   hard_links=yes
17742   $rm conftest*
17743   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17744   touch conftest.a
17745   ln conftest.a conftest.b 2>&5 || hard_links=no
17746   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17747   { echo "$as_me:$LINENO: result: $hard_links" >&5
17748 echo "${ECHO_T}$hard_links" >&6; }
17749   if test "$hard_links" = no; then
17750     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17751 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17752     need_locks=warn
17753   fi
17754 else
17755   need_locks=no
17756 fi
17757
17758 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17759 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17760
17761   runpath_var=
17762   allow_undefined_flag_GCJ=
17763   enable_shared_with_static_runtimes_GCJ=no
17764   archive_cmds_GCJ=
17765   archive_expsym_cmds_GCJ=
17766   old_archive_From_new_cmds_GCJ=
17767   old_archive_from_expsyms_cmds_GCJ=
17768   export_dynamic_flag_spec_GCJ=
17769   whole_archive_flag_spec_GCJ=
17770   thread_safe_flag_spec_GCJ=
17771   hardcode_libdir_flag_spec_GCJ=
17772   hardcode_libdir_flag_spec_ld_GCJ=
17773   hardcode_libdir_separator_GCJ=
17774   hardcode_direct_GCJ=no
17775   hardcode_minus_L_GCJ=no
17776   hardcode_shlibpath_var_GCJ=unsupported
17777   link_all_deplibs_GCJ=unknown
17778   hardcode_automatic_GCJ=no
17779   module_cmds_GCJ=
17780   module_expsym_cmds_GCJ=
17781   always_export_symbols_GCJ=no
17782   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17783   # include_expsyms should be a list of space-separated symbols to be *always*
17784   # included in the symbol list
17785   include_expsyms_GCJ=
17786   # exclude_expsyms can be an extended regexp of symbols to exclude
17787   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17788   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17789   # as well as any symbol that contains `d'.
17790   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17791   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17792   # platforms (ab)use it in PIC code, but their linkers get confused if
17793   # the symbol is explicitly referenced.  Since portable code cannot
17794   # rely on this symbol name, it's probably fine to never include it in
17795   # preloaded symbol tables.
17796   extract_expsyms_cmds=
17797   # Just being paranoid about ensuring that cc_basename is set.
17798   for cc_temp in $compiler""; do
17799   case $cc_temp in
17800     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17801     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17802     \-*) ;;
17803     *) break;;
17804   esac
17805 done
17806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17807
17808   case $host_os in
17809   cygwin* | mingw* | pw32*)
17810     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17811     # When not using gcc, we currently assume that we are using
17812     # Microsoft Visual C++.
17813     if test "$GCC" != yes; then
17814       with_gnu_ld=no
17815     fi
17816     ;;
17817   interix*)
17818     # we just hope/assume this is gcc and not c89 (= MSVC++)
17819     with_gnu_ld=yes
17820     ;;
17821   openbsd*)
17822     with_gnu_ld=no
17823     ;;
17824   esac
17825
17826   ld_shlibs_GCJ=yes
17827   if test "$with_gnu_ld" = yes; then
17828     # If archive_cmds runs LD, not CC, wlarc should be empty
17829     wlarc='${wl}'
17830
17831     # Set some defaults for GNU ld with shared library support. These
17832     # are reset later if shared libraries are not supported. Putting them
17833     # here allows them to be overridden if necessary.
17834     runpath_var=LD_RUN_PATH
17835     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17836     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17837     # ancient GNU ld didn't support --whole-archive et. al.
17838     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17839         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17840       else
17841         whole_archive_flag_spec_GCJ=
17842     fi
17843     supports_anon_versioning=no
17844     case `$LD -v 2>/dev/null` in
17845       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17846       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17847       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17848       *\ 2.11.*) ;; # other 2.11 versions
17849       *) supports_anon_versioning=yes ;;
17850     esac
17851
17852     # See if GNU ld supports shared libraries.
17853     case $host_os in
17854     aix3* | aix4* | aix5*)
17855       # On AIX/PPC, the GNU linker is very broken
17856       if test "$host_cpu" != ia64; then
17857         ld_shlibs_GCJ=no
17858         cat <<EOF 1>&2
17859
17860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17861 *** to be unable to reliably create shared libraries on AIX.
17862 *** Therefore, libtool is disabling shared libraries support.  If you
17863 *** really care for shared libraries, you may want to modify your PATH
17864 *** so that a non-GNU linker is found, and then restart.
17865
17866 EOF
17867       fi
17868       ;;
17869
17870     amigaos*)
17871       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)'
17872       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17873       hardcode_minus_L_GCJ=yes
17874
17875       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17876       # that the semantics of dynamic libraries on AmigaOS, at least up
17877       # to version 4, is to share data among multiple programs linked
17878       # with the same dynamic library.  Since this doesn't match the
17879       # behavior of shared libraries on other platforms, we can't use
17880       # them.
17881       ld_shlibs_GCJ=no
17882       ;;
17883
17884     beos*)
17885       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17886         allow_undefined_flag_GCJ=unsupported
17887         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17888         # support --undefined.  This deserves some investigation.  FIXME
17889         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890       else
17891         ld_shlibs_GCJ=no
17892       fi
17893       ;;
17894
17895     cygwin* | mingw* | pw32*)
17896       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17897       # as there is no search path for DLLs.
17898       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899       allow_undefined_flag_GCJ=unsupported
17900       always_export_symbols_GCJ=no
17901       enable_shared_with_static_runtimes_GCJ=yes
17902       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17903
17904       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17905         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17906         # If the export-symbols file already is a .def file (1st line
17907         # is EXPORTS), use it as is; otherwise, prepend...
17908         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17909           cp $export_symbols $output_objdir/$soname.def;
17910         else
17911           echo EXPORTS > $output_objdir/$soname.def;
17912           cat $export_symbols >> $output_objdir/$soname.def;
17913         fi~
17914         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17915       else
17916         ld_shlibs_GCJ=no
17917       fi
17918       ;;
17919
17920     interix3*)
17921       hardcode_direct_GCJ=no
17922       hardcode_shlibpath_var_GCJ=no
17923       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17924       export_dynamic_flag_spec_GCJ='${wl}-E'
17925       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17926       # Instead, shared libraries are loaded at an image base (0x10000000 by
17927       # default) and relocated if they conflict, which is a slow very memory
17928       # consuming and fragmenting process.  To avoid this, we pick a random,
17929       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17930       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17931       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'
17932       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'
17933       ;;
17934
17935     linux* | k*bsd*-gnu)
17936       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17937         tmp_addflag=
17938         case $cc_basename,$host_cpu in
17939         pgcc*)                          # Portland Group C compiler
17940           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'
17941           tmp_addflag=' $pic_flag'
17942           ;;
17943         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17944           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'
17945           tmp_addflag=' $pic_flag -Mnomain' ;;
17946         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17947           tmp_addflag=' -i_dynamic' ;;
17948         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17949           tmp_addflag=' -i_dynamic -nofor_main' ;;
17950         ifc* | ifort*)                  # Intel Fortran compiler
17951           tmp_addflag=' -nofor_main' ;;
17952         esac
17953         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17954
17955         if test $supports_anon_versioning = yes; then
17956           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17957   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17958   $echo "local: *; };" >> $output_objdir/$libname.ver~
17959           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17960         fi
17961         link_all_deplibs_GCJ=no
17962       else
17963         ld_shlibs_GCJ=no
17964       fi
17965       ;;
17966
17967     netbsd* | netbsdelf*-gnu)
17968       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17969         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17970         wlarc=
17971       else
17972         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17973         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17974       fi
17975       ;;
17976
17977     solaris*)
17978       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17979         ld_shlibs_GCJ=no
17980         cat <<EOF 1>&2
17981
17982 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17983 *** create shared libraries on Solaris systems.  Therefore, libtool
17984 *** is disabling shared libraries support.  We urge you to upgrade GNU
17985 *** binutils to release 2.9.1 or newer.  Another option is to modify
17986 *** your PATH or compiler configuration so that the native linker is
17987 *** used, and then restart.
17988
17989 EOF
17990       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17991         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17993       else
17994         ld_shlibs_GCJ=no
17995       fi
17996       ;;
17997
17998     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17999       case `$LD -v 2>&1` in
18000         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18001         ld_shlibs_GCJ=no
18002         cat <<_LT_EOF 1>&2
18003
18004 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18005 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18006 *** is disabling shared libraries support.  We urge you to upgrade GNU
18007 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18008 *** your PATH or compiler configuration so that the native linker is
18009 *** used, and then restart.
18010
18011 _LT_EOF
18012         ;;
18013         *)
18014           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18015             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18016             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18017             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18018           else
18019             ld_shlibs_GCJ=no
18020           fi
18021         ;;
18022       esac
18023       ;;
18024
18025     sunos4*)
18026       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18027       wlarc=
18028       hardcode_direct_GCJ=yes
18029       hardcode_shlibpath_var_GCJ=no
18030       ;;
18031
18032     *)
18033       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18034         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18035         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18036       else
18037         ld_shlibs_GCJ=no
18038       fi
18039       ;;
18040     esac
18041
18042     if test "$ld_shlibs_GCJ" = no; then
18043       runpath_var=
18044       hardcode_libdir_flag_spec_GCJ=
18045       export_dynamic_flag_spec_GCJ=
18046       whole_archive_flag_spec_GCJ=
18047     fi
18048   else
18049     # PORTME fill in a description of your system's linker (not GNU ld)
18050     case $host_os in
18051     aix3*)
18052       allow_undefined_flag_GCJ=unsupported
18053       always_export_symbols_GCJ=yes
18054       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'
18055       # Note: this linker hardcodes the directories in LIBPATH if there
18056       # are no directories specified by -L.
18057       hardcode_minus_L_GCJ=yes
18058       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18059         # Neither direct hardcoding nor static linking is supported with a
18060         # broken collect2.
18061         hardcode_direct_GCJ=unsupported
18062       fi
18063       ;;
18064
18065     aix4* | aix5*)
18066       if test "$host_cpu" = ia64; then
18067         # On IA64, the linker does run time linking by default, so we don't
18068         # have to do anything special.
18069         aix_use_runtimelinking=no
18070         exp_sym_flag='-Bexport'
18071         no_entry_flag=""
18072       else
18073         # If we're using GNU nm, then we don't want the "-C" option.
18074         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18075         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18076           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'
18077         else
18078           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'
18079         fi
18080         aix_use_runtimelinking=no
18081
18082         # Test if we are trying to use run time linking or normal
18083         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18084         # need to do runtime linking.
18085         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18086           for ld_flag in $LDFLAGS; do
18087           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18088             aix_use_runtimelinking=yes
18089             break
18090           fi
18091           done
18092           ;;
18093         esac
18094
18095         exp_sym_flag='-bexport'
18096         no_entry_flag='-bnoentry'
18097       fi
18098
18099       # When large executables or shared objects are built, AIX ld can
18100       # have problems creating the table of contents.  If linking a library
18101       # or program results in "error TOC overflow" add -mminimal-toc to
18102       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18103       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18104
18105       archive_cmds_GCJ=''
18106       hardcode_direct_GCJ=yes
18107       hardcode_libdir_separator_GCJ=':'
18108       link_all_deplibs_GCJ=yes
18109
18110       if test "$GCC" = yes; then
18111         case $host_os in aix4.[012]|aix4.[012].*)
18112         # We only want to do this on AIX 4.2 and lower, the check
18113         # below for broken collect2 doesn't work under 4.3+
18114           collect2name=`${CC} -print-prog-name=collect2`
18115           if test -f "$collect2name" && \
18116            strings "$collect2name" | grep resolve_lib_name >/dev/null
18117           then
18118           # We have reworked collect2
18119           hardcode_direct_GCJ=yes
18120           else
18121           # We have old collect2
18122           hardcode_direct_GCJ=unsupported
18123           # It fails to find uninstalled libraries when the uninstalled
18124           # path is not listed in the libpath.  Setting hardcode_minus_L
18125           # to unsupported forces relinking
18126           hardcode_minus_L_GCJ=yes
18127           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18128           hardcode_libdir_separator_GCJ=
18129           fi
18130           ;;
18131         esac
18132         shared_flag='-shared'
18133         if test "$aix_use_runtimelinking" = yes; then
18134           shared_flag="$shared_flag "'${wl}-G'
18135         fi
18136       else
18137         # not using gcc
18138         if test "$host_cpu" = ia64; then
18139         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18140         # chokes on -Wl,-G. The following line is correct:
18141           shared_flag='-G'
18142         else
18143           if test "$aix_use_runtimelinking" = yes; then
18144             shared_flag='${wl}-G'
18145           else
18146             shared_flag='${wl}-bM:SRE'
18147           fi
18148         fi
18149       fi
18150
18151       # It seems that -bexpall does not export symbols beginning with
18152       # underscore (_), so it is better to generate a list of symbols to export.
18153       always_export_symbols_GCJ=yes
18154       if test "$aix_use_runtimelinking" = yes; then
18155         # Warning - without using the other runtime loading flags (-brtl),
18156         # -berok will link without error, but may produce a broken library.
18157         allow_undefined_flag_GCJ='-berok'
18158        # Determine the default libpath from the value encoded in an empty executable.
18159        cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h.  */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h.  */
18165
18166 int
18167 main ()
18168 {
18169
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176   (eval $ac_link) 2>conftest.er1
18177   ac_status=$?
18178   grep -v '^ *+' conftest.er1 >conftest.err
18179   rm -f conftest.er1
18180   cat conftest.err >&5
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); } &&
18183          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest$ac_exeext'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; }; then
18195
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18197 }'`
18198 # Check for a 64-bit object if we didn't find anything.
18199 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; }
18200 }'`; fi
18201 else
18202   echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18204
18205
18206 fi
18207
18208 rm -f conftest.err conftest.$ac_objext \
18209       conftest$ac_exeext conftest.$ac_ext
18210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18211
18212        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18213         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"
18214        else
18215         if test "$host_cpu" = ia64; then
18216           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18217           allow_undefined_flag_GCJ="-z nodefs"
18218           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"
18219         else
18220          # Determine the default libpath from the value encoded in an empty executable.
18221          cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 int
18229 main ()
18230 {
18231
18232   ;
18233   return 0;
18234 }
18235 _ACEOF
18236 rm -f conftest.$ac_objext conftest$ac_exeext
18237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18238   (eval $ac_link) 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } &&
18245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; } &&
18251          { ac_try='test -s conftest$ac_exeext'
18252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253   (eval $ac_try) 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; }; then
18257
18258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18259 }'`
18260 # Check for a 64-bit object if we didn't find anything.
18261 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; }
18262 }'`; fi
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267
18268 fi
18269
18270 rm -f conftest.err conftest.$ac_objext \
18271       conftest$ac_exeext conftest.$ac_ext
18272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18273
18274          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18275           # Warning - without using the other run time loading flags,
18276           # -berok will link without error, but may produce a broken library.
18277           no_undefined_flag_GCJ=' ${wl}-bernotok'
18278           allow_undefined_flag_GCJ=' ${wl}-berok'
18279           # Exported symbols can be pulled into shared objects from archives
18280           whole_archive_flag_spec_GCJ='$convenience'
18281           archive_cmds_need_lc_GCJ=yes
18282           # This is similar to how AIX traditionally builds its shared libraries.
18283           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'
18284         fi
18285       fi
18286       ;;
18287
18288     amigaos*)
18289       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)'
18290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291       hardcode_minus_L_GCJ=yes
18292       # see comment about different semantics on the GNU ld section
18293       ld_shlibs_GCJ=no
18294       ;;
18295
18296     bsdi[45]*)
18297       export_dynamic_flag_spec_GCJ=-rdynamic
18298       ;;
18299
18300     cygwin* | mingw* | pw32*)
18301       # When not using gcc, we currently assume that we are using
18302       # Microsoft Visual C++.
18303       # hardcode_libdir_flag_spec is actually meaningless, as there is
18304       # no search path for DLLs.
18305       hardcode_libdir_flag_spec_GCJ=' '
18306       allow_undefined_flag_GCJ=unsupported
18307       # Tell ltmain to make .lib files, not .a files.
18308       libext=lib
18309       # Tell ltmain to make .dll files, not .so files.
18310       shrext_cmds=".dll"
18311       # FIXME: Setting linknames here is a bad hack.
18312       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18313       # The linker will automatically build a .lib file if we build a DLL.
18314       old_archive_From_new_cmds_GCJ='true'
18315       # FIXME: Should let the user specify the lib program.
18316       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18317       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18318       enable_shared_with_static_runtimes_GCJ=yes
18319       ;;
18320
18321     darwin* | rhapsody*)
18322       case $host_os in
18323         rhapsody* | darwin1.[012])
18324          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18325          ;;
18326        *) # Darwin 1.3 on
18327          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18328            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18329          else
18330            case ${MACOSX_DEPLOYMENT_TARGET} in
18331              10.[012])
18332                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18333                ;;
18334              10.*)
18335                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18336                ;;
18337            esac
18338          fi
18339          ;;
18340       esac
18341       archive_cmds_need_lc_GCJ=no
18342       hardcode_direct_GCJ=no
18343       hardcode_automatic_GCJ=yes
18344       hardcode_shlibpath_var_GCJ=unsupported
18345       whole_archive_flag_spec_GCJ=''
18346       link_all_deplibs_GCJ=yes
18347     if test "$GCC" = yes ; then
18348         output_verbose_link_cmd='echo'
18349         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18350       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18351       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18352       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}'
18353       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}'
18354     else
18355       case $cc_basename in
18356         xlc*)
18357          output_verbose_link_cmd='echo'
18358          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18359          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18360           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18361          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}'
18362           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}'
18363           ;;
18364        *)
18365          ld_shlibs_GCJ=no
18366           ;;
18367       esac
18368     fi
18369       ;;
18370
18371     dgux*)
18372       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18373       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18374       hardcode_shlibpath_var_GCJ=no
18375       ;;
18376
18377     freebsd1*)
18378       ld_shlibs_GCJ=no
18379       ;;
18380
18381     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18382     # support.  Future versions do this automatically, but an explicit c++rt0.o
18383     # does not break anything, and helps significantly (at the cost of a little
18384     # extra space).
18385     freebsd2.2*)
18386       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18387       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18388       hardcode_direct_GCJ=yes
18389       hardcode_shlibpath_var_GCJ=no
18390       ;;
18391
18392     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18393     freebsd2*)
18394       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18395       hardcode_direct_GCJ=yes
18396       hardcode_minus_L_GCJ=yes
18397       hardcode_shlibpath_var_GCJ=no
18398       ;;
18399
18400     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18401     freebsd* | dragonfly*)
18402       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18403       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18404       hardcode_direct_GCJ=yes
18405       hardcode_shlibpath_var_GCJ=no
18406       ;;
18407
18408     hpux9*)
18409       if test "$GCC" = yes; then
18410         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'
18411       else
18412         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'
18413       fi
18414       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18415       hardcode_libdir_separator_GCJ=:
18416       hardcode_direct_GCJ=yes
18417
18418       # hardcode_minus_L: Not really in the search PATH,
18419       # but as the default location of the library.
18420       hardcode_minus_L_GCJ=yes
18421       export_dynamic_flag_spec_GCJ='${wl}-E'
18422       ;;
18423
18424     hpux10*)
18425       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18426         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18427       else
18428         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18429       fi
18430       if test "$with_gnu_ld" = no; then
18431         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18432         hardcode_libdir_separator_GCJ=:
18433
18434         hardcode_direct_GCJ=yes
18435         export_dynamic_flag_spec_GCJ='${wl}-E'
18436
18437         # hardcode_minus_L: Not really in the search PATH,
18438         # but as the default location of the library.
18439         hardcode_minus_L_GCJ=yes
18440       fi
18441       ;;
18442
18443     hpux11*)
18444       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18445         case $host_cpu in
18446         hppa*64*)
18447           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18448           ;;
18449         ia64*)
18450           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18451           ;;
18452         *)
18453           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18454           ;;
18455         esac
18456       else
18457         case $host_cpu in
18458         hppa*64*)
18459           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18460           ;;
18461         ia64*)
18462           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18463           ;;
18464         *)
18465           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18466           ;;
18467         esac
18468       fi
18469       if test "$with_gnu_ld" = no; then
18470         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18471         hardcode_libdir_separator_GCJ=:
18472
18473         case $host_cpu in
18474         hppa*64*|ia64*)
18475           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18476           hardcode_direct_GCJ=no
18477           hardcode_shlibpath_var_GCJ=no
18478           ;;
18479         *)
18480           hardcode_direct_GCJ=yes
18481           export_dynamic_flag_spec_GCJ='${wl}-E'
18482
18483           # hardcode_minus_L: Not really in the search PATH,
18484           # but as the default location of the library.
18485           hardcode_minus_L_GCJ=yes
18486           ;;
18487         esac
18488       fi
18489       ;;
18490
18491     irix5* | irix6* | nonstopux*)
18492       if test "$GCC" = yes; then
18493         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'
18494       else
18495         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'
18496         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18497       fi
18498       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499       hardcode_libdir_separator_GCJ=:
18500       link_all_deplibs_GCJ=yes
18501       ;;
18502
18503     netbsd* | netbsdelf*-gnu)
18504       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18505         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18506       else
18507         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18508       fi
18509       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18510       hardcode_direct_GCJ=yes
18511       hardcode_shlibpath_var_GCJ=no
18512       ;;
18513
18514     newsos6)
18515       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18516       hardcode_direct_GCJ=yes
18517       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18518       hardcode_libdir_separator_GCJ=:
18519       hardcode_shlibpath_var_GCJ=no
18520       ;;
18521
18522     openbsd*)
18523       hardcode_direct_GCJ=yes
18524       hardcode_shlibpath_var_GCJ=no
18525       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18526         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18527         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18528         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18529         export_dynamic_flag_spec_GCJ='${wl}-E'
18530       else
18531        case $host_os in
18532          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18533            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18534            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535            ;;
18536          *)
18537            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18538            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18539            ;;
18540        esac
18541       fi
18542       ;;
18543
18544     os2*)
18545       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18546       hardcode_minus_L_GCJ=yes
18547       allow_undefined_flag_GCJ=unsupported
18548       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'
18549       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18550       ;;
18551
18552     osf3*)
18553       if test "$GCC" = yes; then
18554         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18555         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'
18556       else
18557         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18558         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'
18559       fi
18560       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18561       hardcode_libdir_separator_GCJ=:
18562       ;;
18563
18564     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18565       if test "$GCC" = yes; then
18566         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18567         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'
18568         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18569       else
18570         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18571         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'
18572         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~
18573         $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'
18574
18575         # Both c and cxx compiler support -rpath directly
18576         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18577       fi
18578       hardcode_libdir_separator_GCJ=:
18579       ;;
18580
18581     solaris*)
18582       no_undefined_flag_GCJ=' -z text'
18583       if test "$GCC" = yes; then
18584         wlarc='${wl}'
18585         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18586         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18587           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18588       else
18589         wlarc=''
18590         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18591         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18592         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18593       fi
18594       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18595       hardcode_shlibpath_var_GCJ=no
18596       case $host_os in
18597       solaris2.[0-5] | solaris2.[0-5].*) ;;
18598       *)
18599         # The compiler driver will combine linker options so we
18600         # cannot just pass the convience library names through
18601         # without $wl, iff we do not link with $LD.
18602         # Luckily, gcc supports the same syntax we need for Sun Studio.
18603         # Supported since Solaris 2.6 (maybe 2.5.1?)
18604         case $wlarc in
18605         '')
18606           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18607         *)
18608           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' ;;
18609         esac ;;
18610       esac
18611       link_all_deplibs_GCJ=yes
18612       ;;
18613
18614     sunos4*)
18615       if test "x$host_vendor" = xsequent; then
18616         # Use $CC to link under sequent, because it throws in some extra .o
18617         # files that make .init and .fini sections work.
18618         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18619       else
18620         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18621       fi
18622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18623       hardcode_direct_GCJ=yes
18624       hardcode_minus_L_GCJ=yes
18625       hardcode_shlibpath_var_GCJ=no
18626       ;;
18627
18628     sysv4)
18629       case $host_vendor in
18630         sni)
18631           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18632           hardcode_direct_GCJ=yes # is this really true???
18633         ;;
18634         siemens)
18635           ## LD is ld it makes a PLAMLIB
18636           ## CC just makes a GrossModule.
18637           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18638           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18639           hardcode_direct_GCJ=no
18640         ;;
18641         motorola)
18642           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18644         ;;
18645       esac
18646       runpath_var='LD_RUN_PATH'
18647       hardcode_shlibpath_var_GCJ=no
18648       ;;
18649
18650     sysv4.3*)
18651       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18652       hardcode_shlibpath_var_GCJ=no
18653       export_dynamic_flag_spec_GCJ='-Bexport'
18654       ;;
18655
18656     sysv4*MP*)
18657       if test -d /usr/nec; then
18658         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18659         hardcode_shlibpath_var_GCJ=no
18660         runpath_var=LD_RUN_PATH
18661         hardcode_runpath_var=yes
18662         ld_shlibs_GCJ=yes
18663       fi
18664       ;;
18665
18666     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18667       no_undefined_flag_GCJ='${wl}-z,text'
18668       archive_cmds_need_lc_GCJ=no
18669       hardcode_shlibpath_var_GCJ=no
18670       runpath_var='LD_RUN_PATH'
18671
18672       if test "$GCC" = yes; then
18673         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18674         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18675       else
18676         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18678       fi
18679       ;;
18680
18681     sysv5* | sco3.2v5* | sco5v6*)
18682       # Note: We can NOT use -z defs as we might desire, because we do not
18683       # link with -lc, and that would cause any symbols used from libc to
18684       # always be unresolved, which means just about no library would
18685       # ever link correctly.  If we're not using GNU ld we use -z text
18686       # though, which does catch some bad symbols but isn't as heavy-handed
18687       # as -z defs.
18688       no_undefined_flag_GCJ='${wl}-z,text'
18689       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18690       archive_cmds_need_lc_GCJ=no
18691       hardcode_shlibpath_var_GCJ=no
18692       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18693       hardcode_libdir_separator_GCJ=':'
18694       link_all_deplibs_GCJ=yes
18695       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18696       runpath_var='LD_RUN_PATH'
18697
18698       if test "$GCC" = yes; then
18699         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18700         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701       else
18702         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18703         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18704       fi
18705       ;;
18706
18707     uts4*)
18708       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18710       hardcode_shlibpath_var_GCJ=no
18711       ;;
18712
18713     *)
18714       ld_shlibs_GCJ=no
18715       ;;
18716     esac
18717   fi
18718
18719 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18720 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18721 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18722
18723 #
18724 # Do we need to explicitly link libc?
18725 #
18726 case "x$archive_cmds_need_lc_GCJ" in
18727 x|xyes)
18728   # Assume -lc should be added
18729   archive_cmds_need_lc_GCJ=yes
18730
18731   if test "$enable_shared" = yes && test "$GCC" = yes; then
18732     case $archive_cmds_GCJ in
18733     *'~'*)
18734       # FIXME: we may have to deal with multi-command sequences.
18735       ;;
18736     '$CC '*)
18737       # Test whether the compiler implicitly links with -lc since on some
18738       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18739       # to ld, don't add -lc before -lgcc.
18740       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18741 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18742       $rm conftest*
18743       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18744
18745       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18746   (eval $ac_compile) 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); } 2>conftest.err; then
18750         soname=conftest
18751         lib=conftest
18752         libobjs=conftest.$ac_objext
18753         deplibs=
18754         wl=$lt_prog_compiler_wl_GCJ
18755         pic_flag=$lt_prog_compiler_pic_GCJ
18756         compiler_flags=-v
18757         linker_flags=-v
18758         verstring=
18759         output_objdir=.
18760         libname=conftest
18761         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18762         allow_undefined_flag_GCJ=
18763         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18764   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18765   ac_status=$?
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); }
18768         then
18769           archive_cmds_need_lc_GCJ=no
18770         else
18771           archive_cmds_need_lc_GCJ=yes
18772         fi
18773         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18774       else
18775         cat conftest.err 1>&5
18776       fi
18777       $rm conftest*
18778       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18779 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18780       ;;
18781     esac
18782   fi
18783   ;;
18784 esac
18785
18786 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18787 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18788 library_names_spec=
18789 libname_spec='lib$name'
18790 soname_spec=
18791 shrext_cmds=".so"
18792 postinstall_cmds=
18793 postuninstall_cmds=
18794 finish_cmds=
18795 finish_eval=
18796 shlibpath_var=
18797 shlibpath_overrides_runpath=unknown
18798 version_type=none
18799 dynamic_linker="$host_os ld.so"
18800 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18801 if test "$GCC" = yes; then
18802   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18803   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18804     # if the path contains ";" then we assume it to be the separator
18805     # otherwise default to the standard path separator (i.e. ":") - it is
18806     # assumed that no part of a normal pathname contains ";" but that should
18807     # okay in the real world where ";" in dirpaths is itself problematic.
18808     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18809   else
18810     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18811   fi
18812 else
18813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18814 fi
18815 need_lib_prefix=unknown
18816 hardcode_into_libs=no
18817
18818 # when you set need_version to no, make sure it does not cause -set_version
18819 # flags to be left without arguments
18820 need_version=unknown
18821
18822 case $host_os in
18823 aix3*)
18824   version_type=linux
18825   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18826   shlibpath_var=LIBPATH
18827
18828   # AIX 3 has no versioning support, so we append a major version to the name.
18829   soname_spec='${libname}${release}${shared_ext}$major'
18830   ;;
18831
18832 aix4* | aix5*)
18833   version_type=linux
18834   need_lib_prefix=no
18835   need_version=no
18836   hardcode_into_libs=yes
18837   if test "$host_cpu" = ia64; then
18838     # AIX 5 supports IA64
18839     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18840     shlibpath_var=LD_LIBRARY_PATH
18841   else
18842     # With GCC up to 2.95.x, collect2 would create an import file
18843     # for dependence libraries.  The import file would start with
18844     # the line `#! .'.  This would cause the generated library to
18845     # depend on `.', always an invalid library.  This was fixed in
18846     # development snapshots of GCC prior to 3.0.
18847     case $host_os in
18848       aix4 | aix4.[01] | aix4.[01].*)
18849       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18850            echo ' yes '
18851            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18852         :
18853       else
18854         can_build_shared=no
18855       fi
18856       ;;
18857     esac
18858     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18859     # soname into executable. Probably we can add versioning support to
18860     # collect2, so additional links can be useful in future.
18861     if test "$aix_use_runtimelinking" = yes; then
18862       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18863       # instead of lib<name>.a to let people know that these are not
18864       # typical AIX shared libraries.
18865       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866     else
18867       # We preserve .a as extension for shared libraries through AIX4.2
18868       # and later when we are not doing run time linking.
18869       library_names_spec='${libname}${release}.a $libname.a'
18870       soname_spec='${libname}${release}${shared_ext}$major'
18871     fi
18872     shlibpath_var=LIBPATH
18873   fi
18874   ;;
18875
18876 amigaos*)
18877   library_names_spec='$libname.ixlibrary $libname.a'
18878   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18879   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'
18880   ;;
18881
18882 beos*)
18883   library_names_spec='${libname}${shared_ext}'
18884   dynamic_linker="$host_os ld.so"
18885   shlibpath_var=LIBRARY_PATH
18886   ;;
18887
18888 bsdi[45]*)
18889   version_type=linux
18890   need_version=no
18891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892   soname_spec='${libname}${release}${shared_ext}$major'
18893   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18894   shlibpath_var=LD_LIBRARY_PATH
18895   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18896   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18897   # the default ld.so.conf also contains /usr/contrib/lib and
18898   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18899   # libtool to hard-code these into programs
18900   ;;
18901
18902 cygwin* | mingw* | pw32*)
18903   version_type=windows
18904   shrext_cmds=".dll"
18905   need_version=no
18906   need_lib_prefix=no
18907
18908   case $GCC,$host_os in
18909   yes,cygwin* | yes,mingw* | yes,pw32*)
18910     library_names_spec='$libname.dll.a'
18911     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18912     postinstall_cmds='base_file=`basename \${file}`~
18913       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18914       dldir=$destdir/`dirname \$dlpath`~
18915       test -d \$dldir || mkdir -p \$dldir~
18916       $install_prog $dir/$dlname \$dldir/$dlname~
18917       chmod a+x \$dldir/$dlname'
18918     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18919       dlpath=$dir/\$dldll~
18920        $rm \$dlpath'
18921     shlibpath_overrides_runpath=yes
18922
18923     case $host_os in
18924     cygwin*)
18925       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18926       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18927       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18928       ;;
18929     mingw*)
18930       # MinGW DLLs use traditional 'lib' prefix
18931       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18932       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18933       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18934         # It is most probably a Windows format PATH printed by
18935         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18936         # path with ; separators, and with drive letters. We can handle the
18937         # drive letters (cygwin fileutils understands them), so leave them,
18938         # especially as we might pass files found there to a mingw objdump,
18939         # which wouldn't understand a cygwinified path. Ahh.
18940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18941       else
18942         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18943       fi
18944       ;;
18945     pw32*)
18946       # pw32 DLLs use 'pw' prefix rather than 'lib'
18947       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18948       ;;
18949     esac
18950     ;;
18951
18952   *)
18953     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18954     ;;
18955   esac
18956   dynamic_linker='Win32 ld.exe'
18957   # FIXME: first we should search . and the directory the executable is in
18958   shlibpath_var=PATH
18959   ;;
18960
18961 darwin* | rhapsody*)
18962   dynamic_linker="$host_os dyld"
18963   version_type=darwin
18964   need_lib_prefix=no
18965   need_version=no
18966   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18967   soname_spec='${libname}${release}${major}$shared_ext'
18968   shlibpath_overrides_runpath=yes
18969   shlibpath_var=DYLD_LIBRARY_PATH
18970   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18971   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18972   if test "$GCC" = yes; then
18973     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"`
18974   else
18975     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18976   fi
18977   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18978   ;;
18979
18980 dgux*)
18981   version_type=linux
18982   need_lib_prefix=no
18983   need_version=no
18984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18985   soname_spec='${libname}${release}${shared_ext}$major'
18986   shlibpath_var=LD_LIBRARY_PATH
18987   ;;
18988
18989 freebsd1*)
18990   dynamic_linker=no
18991   ;;
18992
18993 freebsd* | dragonfly*)
18994   # DragonFly does not have aout.  When/if they implement a new
18995   # versioning mechanism, adjust this.
18996   if test -x /usr/bin/objformat; then
18997     objformat=`/usr/bin/objformat`
18998   else
18999     case $host_os in
19000     freebsd[123]*) objformat=aout ;;
19001     *) objformat=elf ;;
19002     esac
19003   fi
19004   version_type=freebsd-$objformat
19005   case $version_type in
19006     freebsd-elf*)
19007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19008       need_version=no
19009       need_lib_prefix=no
19010       ;;
19011     freebsd-*)
19012       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19013       need_version=yes
19014       ;;
19015   esac
19016   shlibpath_var=LD_LIBRARY_PATH
19017   case $host_os in
19018   freebsd2*)
19019     shlibpath_overrides_runpath=yes
19020     ;;
19021   freebsd3.[01]* | freebsdelf3.[01]*)
19022     shlibpath_overrides_runpath=yes
19023     hardcode_into_libs=yes
19024     ;;
19025   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19026   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19027     shlibpath_overrides_runpath=no
19028     hardcode_into_libs=yes
19029     ;;
19030   freebsd*) # from 4.6 on
19031     shlibpath_overrides_runpath=yes
19032     hardcode_into_libs=yes
19033     ;;
19034   esac
19035   ;;
19036
19037 gnu*)
19038   version_type=linux
19039   need_lib_prefix=no
19040   need_version=no
19041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19042   soname_spec='${libname}${release}${shared_ext}$major'
19043   shlibpath_var=LD_LIBRARY_PATH
19044   hardcode_into_libs=yes
19045   ;;
19046
19047 hpux9* | hpux10* | hpux11*)
19048   # Give a soname corresponding to the major version so that dld.sl refuses to
19049   # link against other versions.
19050   version_type=sunos
19051   need_lib_prefix=no
19052   need_version=no
19053   case $host_cpu in
19054   ia64*)
19055     shrext_cmds='.so'
19056     hardcode_into_libs=yes
19057     dynamic_linker="$host_os dld.so"
19058     shlibpath_var=LD_LIBRARY_PATH
19059     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061     soname_spec='${libname}${release}${shared_ext}$major'
19062     if test "X$HPUX_IA64_MODE" = X32; then
19063       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19064     else
19065       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19066     fi
19067     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19068     ;;
19069    hppa*64*)
19070      shrext_cmds='.sl'
19071      hardcode_into_libs=yes
19072      dynamic_linker="$host_os dld.sl"
19073      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19074      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19076      soname_spec='${libname}${release}${shared_ext}$major'
19077      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19078      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19079      ;;
19080    *)
19081     shrext_cmds='.sl'
19082     dynamic_linker="$host_os dld.sl"
19083     shlibpath_var=SHLIB_PATH
19084     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086     soname_spec='${libname}${release}${shared_ext}$major'
19087     ;;
19088   esac
19089   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19090   postinstall_cmds='chmod 555 $lib'
19091   ;;
19092
19093 interix3*)
19094   version_type=linux
19095   need_lib_prefix=no
19096   need_version=no
19097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19098   soname_spec='${libname}${release}${shared_ext}$major'
19099   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19100   shlibpath_var=LD_LIBRARY_PATH
19101   shlibpath_overrides_runpath=no
19102   hardcode_into_libs=yes
19103   ;;
19104
19105 irix5* | irix6* | nonstopux*)
19106   case $host_os in
19107     nonstopux*) version_type=nonstopux ;;
19108     *)
19109         if test "$lt_cv_prog_gnu_ld" = yes; then
19110                 version_type=linux
19111         else
19112                 version_type=irix
19113         fi ;;
19114   esac
19115   need_lib_prefix=no
19116   need_version=no
19117   soname_spec='${libname}${release}${shared_ext}$major'
19118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19119   case $host_os in
19120   irix5* | nonstopux*)
19121     libsuff= shlibsuff=
19122     ;;
19123   *)
19124     case $LD in # libtool.m4 will add one of these switches to LD
19125     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19126       libsuff= shlibsuff= libmagic=32-bit;;
19127     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19128       libsuff=32 shlibsuff=N32 libmagic=N32;;
19129     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19130       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19131     *) libsuff= shlibsuff= libmagic=never-match;;
19132     esac
19133     ;;
19134   esac
19135   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19136   shlibpath_overrides_runpath=no
19137   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19138   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19139   hardcode_into_libs=yes
19140   ;;
19141
19142 # No shared lib support for Linux oldld, aout, or coff.
19143 linux*oldld* | linux*aout* | linux*coff*)
19144   dynamic_linker=no
19145   ;;
19146
19147 # This must be Linux ELF.
19148 linux* | k*bsd*-gnu)
19149   version_type=linux
19150   need_lib_prefix=no
19151   need_version=no
19152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19153   soname_spec='${libname}${release}${shared_ext}$major'
19154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19155   shlibpath_var=LD_LIBRARY_PATH
19156   shlibpath_overrides_runpath=no
19157   # This implies no fast_install, which is unacceptable.
19158   # Some rework will be needed to allow for fast_install
19159   # before this can be enabled.
19160   hardcode_into_libs=yes
19161
19162   # Append ld.so.conf contents to the search path
19163   if test -f /etc/ld.so.conf; then
19164     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' ' '`
19165     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19166   fi
19167
19168   # We used to test for /lib/ld.so.1 and disable shared libraries on
19169   # powerpc, because MkLinux only supported shared libraries with the
19170   # GNU dynamic linker.  Since this was broken with cross compilers,
19171   # most powerpc-linux boxes support dynamic linking these days and
19172   # people can always --disable-shared, the test was removed, and we
19173   # assume the GNU/Linux dynamic linker is in use.
19174   dynamic_linker='GNU/Linux ld.so'
19175   ;;
19176
19177 netbsdelf*-gnu)
19178   version_type=linux
19179   need_lib_prefix=no
19180   need_version=no
19181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19182   soname_spec='${libname}${release}${shared_ext}$major'
19183   shlibpath_var=LD_LIBRARY_PATH
19184   shlibpath_overrides_runpath=no
19185   hardcode_into_libs=yes
19186   dynamic_linker='NetBSD ld.elf_so'
19187   ;;
19188
19189 netbsd*)
19190   version_type=sunos
19191   need_lib_prefix=no
19192   need_version=no
19193   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19195     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19196     dynamic_linker='NetBSD (a.out) ld.so'
19197   else
19198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19199     soname_spec='${libname}${release}${shared_ext}$major'
19200     dynamic_linker='NetBSD ld.elf_so'
19201   fi
19202   shlibpath_var=LD_LIBRARY_PATH
19203   shlibpath_overrides_runpath=yes
19204   hardcode_into_libs=yes
19205   ;;
19206
19207 newsos6)
19208   version_type=linux
19209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19210   shlibpath_var=LD_LIBRARY_PATH
19211   shlibpath_overrides_runpath=yes
19212   ;;
19213
19214 nto-qnx*)
19215   version_type=linux
19216   need_lib_prefix=no
19217   need_version=no
19218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219   soname_spec='${libname}${release}${shared_ext}$major'
19220   shlibpath_var=LD_LIBRARY_PATH
19221   shlibpath_overrides_runpath=yes
19222   ;;
19223
19224 openbsd*)
19225   version_type=sunos
19226   sys_lib_dlsearch_path_spec="/usr/lib"
19227   need_lib_prefix=no
19228   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19229   case $host_os in
19230     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19231     *)                         need_version=no  ;;
19232   esac
19233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235   shlibpath_var=LD_LIBRARY_PATH
19236   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237     case $host_os in
19238       openbsd2.[89] | openbsd2.[89].*)
19239         shlibpath_overrides_runpath=no
19240         ;;
19241       *)
19242         shlibpath_overrides_runpath=yes
19243         ;;
19244       esac
19245   else
19246     shlibpath_overrides_runpath=yes
19247   fi
19248   ;;
19249
19250 os2*)
19251   libname_spec='$name'
19252   shrext_cmds=".dll"
19253   need_lib_prefix=no
19254   library_names_spec='$libname${shared_ext} $libname.a'
19255   dynamic_linker='OS/2 ld.exe'
19256   shlibpath_var=LIBPATH
19257   ;;
19258
19259 osf3* | osf4* | osf5*)
19260   version_type=osf
19261   need_lib_prefix=no
19262   need_version=no
19263   soname_spec='${libname}${release}${shared_ext}$major'
19264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265   shlibpath_var=LD_LIBRARY_PATH
19266   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19267   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19268   ;;
19269
19270 solaris*)
19271   version_type=linux
19272   need_lib_prefix=no
19273   need_version=no
19274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275   soname_spec='${libname}${release}${shared_ext}$major'
19276   shlibpath_var=LD_LIBRARY_PATH
19277   shlibpath_overrides_runpath=yes
19278   hardcode_into_libs=yes
19279   # ldd complains unless libraries are executable
19280   postinstall_cmds='chmod +x $lib'
19281   ;;
19282
19283 sunos4*)
19284   version_type=sunos
19285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19287   shlibpath_var=LD_LIBRARY_PATH
19288   shlibpath_overrides_runpath=yes
19289   if test "$with_gnu_ld" = yes; then
19290     need_lib_prefix=no
19291   fi
19292   need_version=yes
19293   ;;
19294
19295 sysv4 | sysv4.3*)
19296   version_type=linux
19297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298   soname_spec='${libname}${release}${shared_ext}$major'
19299   shlibpath_var=LD_LIBRARY_PATH
19300   case $host_vendor in
19301     sni)
19302       shlibpath_overrides_runpath=no
19303       need_lib_prefix=no
19304       export_dynamic_flag_spec='${wl}-Blargedynsym'
19305       runpath_var=LD_RUN_PATH
19306       ;;
19307     siemens)
19308       need_lib_prefix=no
19309       ;;
19310     motorola)
19311       need_lib_prefix=no
19312       need_version=no
19313       shlibpath_overrides_runpath=no
19314       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19315       ;;
19316   esac
19317   ;;
19318
19319 sysv4*MP*)
19320   if test -d /usr/nec ;then
19321     version_type=linux
19322     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19323     soname_spec='$libname${shared_ext}.$major'
19324     shlibpath_var=LD_LIBRARY_PATH
19325   fi
19326   ;;
19327
19328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19329   version_type=freebsd-elf
19330   need_lib_prefix=no
19331   need_version=no
19332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19333   soname_spec='${libname}${release}${shared_ext}$major'
19334   shlibpath_var=LD_LIBRARY_PATH
19335   hardcode_into_libs=yes
19336   if test "$with_gnu_ld" = yes; then
19337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19338     shlibpath_overrides_runpath=no
19339   else
19340     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19341     shlibpath_overrides_runpath=yes
19342     case $host_os in
19343       sco3.2v5*)
19344         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19345         ;;
19346     esac
19347   fi
19348   sys_lib_dlsearch_path_spec='/usr/lib'
19349   ;;
19350
19351 uts4*)
19352   version_type=linux
19353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354   soname_spec='${libname}${release}${shared_ext}$major'
19355   shlibpath_var=LD_LIBRARY_PATH
19356   ;;
19357
19358 *)
19359   dynamic_linker=no
19360   ;;
19361 esac
19362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19363 echo "${ECHO_T}$dynamic_linker" >&6; }
19364 test "$dynamic_linker" = no && can_build_shared=no
19365
19366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19367 if test "$GCC" = yes; then
19368   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19369 fi
19370
19371 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19373 hardcode_action_GCJ=
19374 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19375    test -n "$runpath_var_GCJ" || \
19376    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19377
19378   # We can hardcode non-existant directories.
19379   if test "$hardcode_direct_GCJ" != no &&
19380      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19381      # have to relink, otherwise we might link with an installed library
19382      # when we should be linking with a yet-to-be-installed one
19383      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19384      test "$hardcode_minus_L_GCJ" != no; then
19385     # Linking always hardcodes the temporary library directory.
19386     hardcode_action_GCJ=relink
19387   else
19388     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19389     hardcode_action_GCJ=immediate
19390   fi
19391 else
19392   # We cannot hardcode anything, or else we can only hardcode existing
19393   # directories.
19394   hardcode_action_GCJ=unsupported
19395 fi
19396 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19397 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19398
19399 if test "$hardcode_action_GCJ" = relink; then
19400   # Fast installation is not supported
19401   enable_fast_install=no
19402 elif test "$shlibpath_overrides_runpath" = yes ||
19403      test "$enable_shared" = no; then
19404   # Fast installation is not necessary
19405   enable_fast_install=needless
19406 fi
19407
19408
19409 # The else clause should only fire when bootstrapping the
19410 # libtool distribution, otherwise you forgot to ship ltmain.sh
19411 # with your package, and you will get complaints that there are
19412 # no rules to generate ltmain.sh.
19413 if test -f "$ltmain"; then
19414   # See if we are running on zsh, and set the options which allow our commands through
19415   # without removal of \ escapes.
19416   if test -n "${ZSH_VERSION+set}" ; then
19417     setopt NO_GLOB_SUBST
19418   fi
19419   # Now quote all the things that may contain metacharacters while being
19420   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19421   # variables and quote the copies for generation of the libtool script.
19422   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19423     SED SHELL STRIP \
19424     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19425     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19426     deplibs_check_method reload_flag reload_cmds need_locks \
19427     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19428     lt_cv_sys_global_symbol_to_c_name_address \
19429     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19430     old_postinstall_cmds old_postuninstall_cmds \
19431     compiler_GCJ \
19432     CC_GCJ \
19433     LD_GCJ \
19434     lt_prog_compiler_wl_GCJ \
19435     lt_prog_compiler_pic_GCJ \
19436     lt_prog_compiler_static_GCJ \
19437     lt_prog_compiler_no_builtin_flag_GCJ \
19438     export_dynamic_flag_spec_GCJ \
19439     thread_safe_flag_spec_GCJ \
19440     whole_archive_flag_spec_GCJ \
19441     enable_shared_with_static_runtimes_GCJ \
19442     old_archive_cmds_GCJ \
19443     old_archive_from_new_cmds_GCJ \
19444     predep_objects_GCJ \
19445     postdep_objects_GCJ \
19446     predeps_GCJ \
19447     postdeps_GCJ \
19448     compiler_lib_search_path_GCJ \
19449     archive_cmds_GCJ \
19450     archive_expsym_cmds_GCJ \
19451     postinstall_cmds_GCJ \
19452     postuninstall_cmds_GCJ \
19453     old_archive_from_expsyms_cmds_GCJ \
19454     allow_undefined_flag_GCJ \
19455     no_undefined_flag_GCJ \
19456     export_symbols_cmds_GCJ \
19457     hardcode_libdir_flag_spec_GCJ \
19458     hardcode_libdir_flag_spec_ld_GCJ \
19459     hardcode_libdir_separator_GCJ \
19460     hardcode_automatic_GCJ \
19461     module_cmds_GCJ \
19462     module_expsym_cmds_GCJ \
19463     lt_cv_prog_compiler_c_o_GCJ \
19464     exclude_expsyms_GCJ \
19465     include_expsyms_GCJ; do
19466
19467     case $var in
19468     old_archive_cmds_GCJ | \
19469     old_archive_from_new_cmds_GCJ | \
19470     archive_cmds_GCJ | \
19471     archive_expsym_cmds_GCJ | \
19472     module_cmds_GCJ | \
19473     module_expsym_cmds_GCJ | \
19474     old_archive_from_expsyms_cmds_GCJ | \
19475     export_symbols_cmds_GCJ | \
19476     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19477     postinstall_cmds | postuninstall_cmds | \
19478     old_postinstall_cmds | old_postuninstall_cmds | \
19479     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19480       # Double-quote double-evaled strings.
19481       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19482       ;;
19483     *)
19484       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19485       ;;
19486     esac
19487   done
19488
19489   case $lt_echo in
19490   *'\$0 --fallback-echo"')
19491     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19492     ;;
19493   esac
19494
19495 cfgfile="$ofile"
19496
19497   cat <<__EOF__ >> "$cfgfile"
19498 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19499
19500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19501
19502 # Shell to use when invoking shell scripts.
19503 SHELL=$lt_SHELL
19504
19505 # Whether or not to build shared libraries.
19506 build_libtool_libs=$enable_shared
19507
19508 # Whether or not to build static libraries.
19509 build_old_libs=$enable_static
19510
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19513
19514 # Whether or not to disallow shared libs when runtime libs are static
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19516
19517 # Whether or not to optimize for fast installation.
19518 fast_install=$enable_fast_install
19519
19520 # The host system.
19521 host_alias=$host_alias
19522 host=$host
19523 host_os=$host_os
19524
19525 # The build system.
19526 build_alias=$build_alias
19527 build=$build
19528 build_os=$build_os
19529
19530 # An echo program that does not interpret backslashes.
19531 echo=$lt_echo
19532
19533 # The archiver.
19534 AR=$lt_AR
19535 AR_FLAGS=$lt_AR_FLAGS
19536
19537 # A C compiler.
19538 LTCC=$lt_LTCC
19539
19540 # LTCC compiler flags.
19541 LTCFLAGS=$lt_LTCFLAGS
19542
19543 # A language-specific compiler.
19544 CC=$lt_compiler_GCJ
19545
19546 # Is the compiler the GNU C compiler?
19547 with_gcc=$GCC_GCJ
19548
19549 # An ERE matcher.
19550 EGREP=$lt_EGREP
19551
19552 # The linker used to build libraries.
19553 LD=$lt_LD_GCJ
19554
19555 # Whether we need hard or soft links.
19556 LN_S=$lt_LN_S
19557
19558 # A BSD-compatible nm program.
19559 NM=$lt_NM
19560
19561 # A symbol stripping program
19562 STRIP=$lt_STRIP
19563
19564 # Used to examine libraries when file_magic_cmd begins "file"
19565 MAGIC_CMD=$MAGIC_CMD
19566
19567 # Used on cygwin: DLL creation program.
19568 DLLTOOL="$DLLTOOL"
19569
19570 # Used on cygwin: object dumper.
19571 OBJDUMP="$OBJDUMP"
19572
19573 # Used on cygwin: assembler.
19574 AS="$AS"
19575
19576 # The name of the directory that contains temporary libtool files.
19577 objdir=$objdir
19578
19579 # How to create reloadable object files.
19580 reload_flag=$lt_reload_flag
19581 reload_cmds=$lt_reload_cmds
19582
19583 # How to pass a linker flag through the compiler.
19584 wl=$lt_lt_prog_compiler_wl_GCJ
19585
19586 # Object file suffix (normally "o").
19587 objext="$ac_objext"
19588
19589 # Old archive suffix (normally "a").
19590 libext="$libext"
19591
19592 # Shared library suffix (normally ".so").
19593 shrext_cmds='$shrext_cmds'
19594
19595 # Executable file suffix (normally "").
19596 exeext="$exeext"
19597
19598 # Additional compiler flags for building library objects.
19599 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19600 pic_mode=$pic_mode
19601
19602 # What is the maximum length of a command?
19603 max_cmd_len=$lt_cv_sys_max_cmd_len
19604
19605 # Does compiler simultaneously support -c and -o options?
19606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19607
19608 # Must we lock files when doing compilation?
19609 need_locks=$lt_need_locks
19610
19611 # Do we need the lib prefix for modules?
19612 need_lib_prefix=$need_lib_prefix
19613
19614 # Do we need a version for libraries?
19615 need_version=$need_version
19616
19617 # Whether dlopen is supported.
19618 dlopen_support=$enable_dlopen
19619
19620 # Whether dlopen of programs is supported.
19621 dlopen_self=$enable_dlopen_self
19622
19623 # Whether dlopen of statically linked programs is supported.
19624 dlopen_self_static=$enable_dlopen_self_static
19625
19626 # Compiler flag to prevent dynamic linking.
19627 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19628
19629 # Compiler flag to turn off builtin functions.
19630 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19631
19632 # Compiler flag to allow reflexive dlopens.
19633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19634
19635 # Compiler flag to generate shared objects directly from archives.
19636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19637
19638 # Compiler flag to generate thread-safe objects.
19639 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19640
19641 # Library versioning type.
19642 version_type=$version_type
19643
19644 # Format of library name prefix.
19645 libname_spec=$lt_libname_spec
19646
19647 # List of archive names.  First name is the real one, the rest are links.
19648 # The last name is the one that the linker finds with -lNAME.
19649 library_names_spec=$lt_library_names_spec
19650
19651 # The coded name of the library, if different from the real name.
19652 soname_spec=$lt_soname_spec
19653
19654 # Commands used to build and install an old-style archive.
19655 RANLIB=$lt_RANLIB
19656 old_archive_cmds=$lt_old_archive_cmds_GCJ
19657 old_postinstall_cmds=$lt_old_postinstall_cmds
19658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19659
19660 # Create an old-style archive from a shared archive.
19661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19662
19663 # Create a temporary old-style archive to link instead of a shared archive.
19664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19665
19666 # Commands used to build and install a shared archive.
19667 archive_cmds=$lt_archive_cmds_GCJ
19668 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19669 postinstall_cmds=$lt_postinstall_cmds
19670 postuninstall_cmds=$lt_postuninstall_cmds
19671
19672 # Commands used to build a loadable module (assumed same as above if empty)
19673 module_cmds=$lt_module_cmds_GCJ
19674 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19675
19676 # Commands to strip libraries.
19677 old_striplib=$lt_old_striplib
19678 striplib=$lt_striplib
19679
19680 # Dependencies to place before the objects being linked to create a
19681 # shared library.
19682 predep_objects=$lt_predep_objects_GCJ
19683
19684 # Dependencies to place after the objects being linked to create a
19685 # shared library.
19686 postdep_objects=$lt_postdep_objects_GCJ
19687
19688 # Dependencies to place before the objects being linked to create a
19689 # shared library.
19690 predeps=$lt_predeps_GCJ
19691
19692 # Dependencies to place after the objects being linked to create a
19693 # shared library.
19694 postdeps=$lt_postdeps_GCJ
19695
19696 # The library search path used internally by the compiler when linking
19697 # a shared library.
19698 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19699
19700 # Method to check whether dependent libraries are shared objects.
19701 deplibs_check_method=$lt_deplibs_check_method
19702
19703 # Command to use when deplibs_check_method == file_magic.
19704 file_magic_cmd=$lt_file_magic_cmd
19705
19706 # Flag that allows shared libraries with undefined symbols to be built.
19707 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19708
19709 # Flag that forces no undefined symbols.
19710 no_undefined_flag=$lt_no_undefined_flag_GCJ
19711
19712 # Commands used to finish a libtool library installation in a directory.
19713 finish_cmds=$lt_finish_cmds
19714
19715 # Same as above, but a single script fragment to be evaled but not shown.
19716 finish_eval=$lt_finish_eval
19717
19718 # Take the output of nm and produce a listing of raw symbols and C names.
19719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19720
19721 # Transform the output of nm in a proper C declaration
19722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19723
19724 # Transform the output of nm in a C name address pair
19725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19726
19727 # This is the shared library runtime path variable.
19728 runpath_var=$runpath_var
19729
19730 # This is the shared library path variable.
19731 shlibpath_var=$shlibpath_var
19732
19733 # Is shlibpath searched before the hard-coded library search path?
19734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19735
19736 # How to hardcode a shared library path into an executable.
19737 hardcode_action=$hardcode_action_GCJ
19738
19739 # Whether we should hardcode library paths into libraries.
19740 hardcode_into_libs=$hardcode_into_libs
19741
19742 # Flag to hardcode \$libdir into a binary during linking.
19743 # This must work even if \$libdir does not exist.
19744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19745
19746 # If ld is used when linking, flag to hardcode \$libdir into
19747 # a binary during linking. This must work even if \$libdir does
19748 # not exist.
19749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19750
19751 # Whether we need a single -rpath flag with a separated argument.
19752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19753
19754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19755 # resulting binary.
19756 hardcode_direct=$hardcode_direct_GCJ
19757
19758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19759 # resulting binary.
19760 hardcode_minus_L=$hardcode_minus_L_GCJ
19761
19762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19763 # the resulting binary.
19764 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19765
19766 # Set to yes if building a shared library automatically hardcodes DIR into the library
19767 # and all subsequent libraries and executables linked against it.
19768 hardcode_automatic=$hardcode_automatic_GCJ
19769
19770 # Variables whose values should be saved in libtool wrapper scripts and
19771 # restored at relink time.
19772 variables_saved_for_relink="$variables_saved_for_relink"
19773
19774 # Whether libtool must link a program against all its dependency libraries.
19775 link_all_deplibs=$link_all_deplibs_GCJ
19776
19777 # Compile-time system search path for libraries
19778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19779
19780 # Run-time system search path for libraries
19781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19782
19783 # Fix the shell variable \$srcfile for the compiler.
19784 fix_srcfile_path="$fix_srcfile_path_GCJ"
19785
19786 # Set to yes if exported symbols are required.
19787 always_export_symbols=$always_export_symbols_GCJ
19788
19789 # The commands to list exported symbols.
19790 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19791
19792 # The commands to extract the exported symbol list from a shared archive.
19793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19794
19795 # Symbols that should not be listed in the preloaded symbols.
19796 exclude_expsyms=$lt_exclude_expsyms_GCJ
19797
19798 # Symbols that must always be exported.
19799 include_expsyms=$lt_include_expsyms_GCJ
19800
19801 # ### END LIBTOOL TAG CONFIG: $tagname
19802
19803 __EOF__
19804
19805
19806 else
19807   # If there is no Makefile yet, we rely on a make rule to execute
19808   # `config.status --recheck' to rerun these tests and create the
19809   # libtool script then.
19810   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19811   if test -f "$ltmain_in"; then
19812     test -f Makefile && make "$ltmain"
19813   fi
19814 fi
19815
19816
19817 ac_ext=c
19818 ac_cpp='$CPP $CPPFLAGS'
19819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822
19823 CC="$lt_save_CC"
19824
19825         else
19826           tagname=""
19827         fi
19828         ;;
19829
19830       RC)
19831
19832
19833 # Source file extension for RC test sources.
19834 ac_ext=rc
19835
19836 # Object file extension for compiled RC test sources.
19837 objext=o
19838 objext_RC=$objext
19839
19840 # Code to be used in simple compile tests
19841 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19842
19843 # Code to be used in simple link tests
19844 lt_simple_link_test_code="$lt_simple_compile_test_code"
19845
19846 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19847
19848 # If no C compiler was specified, use CC.
19849 LTCC=${LTCC-"$CC"}
19850
19851 # If no C compiler flags were specified, use CFLAGS.
19852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19853
19854 # Allow CC to be a program name with arguments.
19855 compiler=$CC
19856
19857
19858 # save warnings/boilerplate of simple test code
19859 ac_outfile=conftest.$ac_objext
19860 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19862 _lt_compiler_boilerplate=`cat conftest.err`
19863 $rm conftest*
19864
19865 ac_outfile=conftest.$ac_objext
19866 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19868 _lt_linker_boilerplate=`cat conftest.err`
19869 $rm conftest*
19870
19871
19872 # Allow CC to be a program name with arguments.
19873 lt_save_CC="$CC"
19874 CC=${RC-"windres"}
19875 compiler=$CC
19876 compiler_RC=$CC
19877 for cc_temp in $compiler""; do
19878   case $cc_temp in
19879     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19880     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19881     \-*) ;;
19882     *) break;;
19883   esac
19884 done
19885 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19886
19887 lt_cv_prog_compiler_c_o_RC=yes
19888
19889 # The else clause should only fire when bootstrapping the
19890 # libtool distribution, otherwise you forgot to ship ltmain.sh
19891 # with your package, and you will get complaints that there are
19892 # no rules to generate ltmain.sh.
19893 if test -f "$ltmain"; then
19894   # See if we are running on zsh, and set the options which allow our commands through
19895   # without removal of \ escapes.
19896   if test -n "${ZSH_VERSION+set}" ; then
19897     setopt NO_GLOB_SUBST
19898   fi
19899   # Now quote all the things that may contain metacharacters while being
19900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19901   # variables and quote the copies for generation of the libtool script.
19902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19903     SED SHELL STRIP \
19904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19906     deplibs_check_method reload_flag reload_cmds need_locks \
19907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19908     lt_cv_sys_global_symbol_to_c_name_address \
19909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19910     old_postinstall_cmds old_postuninstall_cmds \
19911     compiler_RC \
19912     CC_RC \
19913     LD_RC \
19914     lt_prog_compiler_wl_RC \
19915     lt_prog_compiler_pic_RC \
19916     lt_prog_compiler_static_RC \
19917     lt_prog_compiler_no_builtin_flag_RC \
19918     export_dynamic_flag_spec_RC \
19919     thread_safe_flag_spec_RC \
19920     whole_archive_flag_spec_RC \
19921     enable_shared_with_static_runtimes_RC \
19922     old_archive_cmds_RC \
19923     old_archive_from_new_cmds_RC \
19924     predep_objects_RC \
19925     postdep_objects_RC \
19926     predeps_RC \
19927     postdeps_RC \
19928     compiler_lib_search_path_RC \
19929     archive_cmds_RC \
19930     archive_expsym_cmds_RC \
19931     postinstall_cmds_RC \
19932     postuninstall_cmds_RC \
19933     old_archive_from_expsyms_cmds_RC \
19934     allow_undefined_flag_RC \
19935     no_undefined_flag_RC \
19936     export_symbols_cmds_RC \
19937     hardcode_libdir_flag_spec_RC \
19938     hardcode_libdir_flag_spec_ld_RC \
19939     hardcode_libdir_separator_RC \
19940     hardcode_automatic_RC \
19941     module_cmds_RC \
19942     module_expsym_cmds_RC \
19943     lt_cv_prog_compiler_c_o_RC \
19944     exclude_expsyms_RC \
19945     include_expsyms_RC; do
19946
19947     case $var in
19948     old_archive_cmds_RC | \
19949     old_archive_from_new_cmds_RC | \
19950     archive_cmds_RC | \
19951     archive_expsym_cmds_RC | \
19952     module_cmds_RC | \
19953     module_expsym_cmds_RC | \
19954     old_archive_from_expsyms_cmds_RC | \
19955     export_symbols_cmds_RC | \
19956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19957     postinstall_cmds | postuninstall_cmds | \
19958     old_postinstall_cmds | old_postuninstall_cmds | \
19959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19960       # Double-quote double-evaled strings.
19961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19962       ;;
19963     *)
19964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19965       ;;
19966     esac
19967   done
19968
19969   case $lt_echo in
19970   *'\$0 --fallback-echo"')
19971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19972     ;;
19973   esac
19974
19975 cfgfile="$ofile"
19976
19977   cat <<__EOF__ >> "$cfgfile"
19978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19979
19980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19981
19982 # Shell to use when invoking shell scripts.
19983 SHELL=$lt_SHELL
19984
19985 # Whether or not to build shared libraries.
19986 build_libtool_libs=$enable_shared
19987
19988 # Whether or not to build static libraries.
19989 build_old_libs=$enable_static
19990
19991 # Whether or not to add -lc for building shared libraries.
19992 build_libtool_need_lc=$archive_cmds_need_lc_RC
19993
19994 # Whether or not to disallow shared libs when runtime libs are static
19995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19996
19997 # Whether or not to optimize for fast installation.
19998 fast_install=$enable_fast_install
19999
20000 # The host system.
20001 host_alias=$host_alias
20002 host=$host
20003 host_os=$host_os
20004
20005 # The build system.
20006 build_alias=$build_alias
20007 build=$build
20008 build_os=$build_os
20009
20010 # An echo program that does not interpret backslashes.
20011 echo=$lt_echo
20012
20013 # The archiver.
20014 AR=$lt_AR
20015 AR_FLAGS=$lt_AR_FLAGS
20016
20017 # A C compiler.
20018 LTCC=$lt_LTCC
20019
20020 # LTCC compiler flags.
20021 LTCFLAGS=$lt_LTCFLAGS
20022
20023 # A language-specific compiler.
20024 CC=$lt_compiler_RC
20025
20026 # Is the compiler the GNU C compiler?
20027 with_gcc=$GCC_RC
20028
20029 # An ERE matcher.
20030 EGREP=$lt_EGREP
20031
20032 # The linker used to build libraries.
20033 LD=$lt_LD_RC
20034
20035 # Whether we need hard or soft links.
20036 LN_S=$lt_LN_S
20037
20038 # A BSD-compatible nm program.
20039 NM=$lt_NM
20040
20041 # A symbol stripping program
20042 STRIP=$lt_STRIP
20043
20044 # Used to examine libraries when file_magic_cmd begins "file"
20045 MAGIC_CMD=$MAGIC_CMD
20046
20047 # Used on cygwin: DLL creation program.
20048 DLLTOOL="$DLLTOOL"
20049
20050 # Used on cygwin: object dumper.
20051 OBJDUMP="$OBJDUMP"
20052
20053 # Used on cygwin: assembler.
20054 AS="$AS"
20055
20056 # The name of the directory that contains temporary libtool files.
20057 objdir=$objdir
20058
20059 # How to create reloadable object files.
20060 reload_flag=$lt_reload_flag
20061 reload_cmds=$lt_reload_cmds
20062
20063 # How to pass a linker flag through the compiler.
20064 wl=$lt_lt_prog_compiler_wl_RC
20065
20066 # Object file suffix (normally "o").
20067 objext="$ac_objext"
20068
20069 # Old archive suffix (normally "a").
20070 libext="$libext"
20071
20072 # Shared library suffix (normally ".so").
20073 shrext_cmds='$shrext_cmds'
20074
20075 # Executable file suffix (normally "").
20076 exeext="$exeext"
20077
20078 # Additional compiler flags for building library objects.
20079 pic_flag=$lt_lt_prog_compiler_pic_RC
20080 pic_mode=$pic_mode
20081
20082 # What is the maximum length of a command?
20083 max_cmd_len=$lt_cv_sys_max_cmd_len
20084
20085 # Does compiler simultaneously support -c and -o options?
20086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20087
20088 # Must we lock files when doing compilation?
20089 need_locks=$lt_need_locks
20090
20091 # Do we need the lib prefix for modules?
20092 need_lib_prefix=$need_lib_prefix
20093
20094 # Do we need a version for libraries?
20095 need_version=$need_version
20096
20097 # Whether dlopen is supported.
20098 dlopen_support=$enable_dlopen
20099
20100 # Whether dlopen of programs is supported.
20101 dlopen_self=$enable_dlopen_self
20102
20103 # Whether dlopen of statically linked programs is supported.
20104 dlopen_self_static=$enable_dlopen_self_static
20105
20106 # Compiler flag to prevent dynamic linking.
20107 link_static_flag=$lt_lt_prog_compiler_static_RC
20108
20109 # Compiler flag to turn off builtin functions.
20110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20111
20112 # Compiler flag to allow reflexive dlopens.
20113 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20114
20115 # Compiler flag to generate shared objects directly from archives.
20116 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20117
20118 # Compiler flag to generate thread-safe objects.
20119 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20120
20121 # Library versioning type.
20122 version_type=$version_type
20123
20124 # Format of library name prefix.
20125 libname_spec=$lt_libname_spec
20126
20127 # List of archive names.  First name is the real one, the rest are links.
20128 # The last name is the one that the linker finds with -lNAME.
20129 library_names_spec=$lt_library_names_spec
20130
20131 # The coded name of the library, if different from the real name.
20132 soname_spec=$lt_soname_spec
20133
20134 # Commands used to build and install an old-style archive.
20135 RANLIB=$lt_RANLIB
20136 old_archive_cmds=$lt_old_archive_cmds_RC
20137 old_postinstall_cmds=$lt_old_postinstall_cmds
20138 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20139
20140 # Create an old-style archive from a shared archive.
20141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20142
20143 # Create a temporary old-style archive to link instead of a shared archive.
20144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20145
20146 # Commands used to build and install a shared archive.
20147 archive_cmds=$lt_archive_cmds_RC
20148 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20149 postinstall_cmds=$lt_postinstall_cmds
20150 postuninstall_cmds=$lt_postuninstall_cmds
20151
20152 # Commands used to build a loadable module (assumed same as above if empty)
20153 module_cmds=$lt_module_cmds_RC
20154 module_expsym_cmds=$lt_module_expsym_cmds_RC
20155
20156 # Commands to strip libraries.
20157 old_striplib=$lt_old_striplib
20158 striplib=$lt_striplib
20159
20160 # Dependencies to place before the objects being linked to create a
20161 # shared library.
20162 predep_objects=$lt_predep_objects_RC
20163
20164 # Dependencies to place after the objects being linked to create a
20165 # shared library.
20166 postdep_objects=$lt_postdep_objects_RC
20167
20168 # Dependencies to place before the objects being linked to create a
20169 # shared library.
20170 predeps=$lt_predeps_RC
20171
20172 # Dependencies to place after the objects being linked to create a
20173 # shared library.
20174 postdeps=$lt_postdeps_RC
20175
20176 # The library search path used internally by the compiler when linking
20177 # a shared library.
20178 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20179
20180 # Method to check whether dependent libraries are shared objects.
20181 deplibs_check_method=$lt_deplibs_check_method
20182
20183 # Command to use when deplibs_check_method == file_magic.
20184 file_magic_cmd=$lt_file_magic_cmd
20185
20186 # Flag that allows shared libraries with undefined symbols to be built.
20187 allow_undefined_flag=$lt_allow_undefined_flag_RC
20188
20189 # Flag that forces no undefined symbols.
20190 no_undefined_flag=$lt_no_undefined_flag_RC
20191
20192 # Commands used to finish a libtool library installation in a directory.
20193 finish_cmds=$lt_finish_cmds
20194
20195 # Same as above, but a single script fragment to be evaled but not shown.
20196 finish_eval=$lt_finish_eval
20197
20198 # Take the output of nm and produce a listing of raw symbols and C names.
20199 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20200
20201 # Transform the output of nm in a proper C declaration
20202 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20203
20204 # Transform the output of nm in a C name address pair
20205 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20206
20207 # This is the shared library runtime path variable.
20208 runpath_var=$runpath_var
20209
20210 # This is the shared library path variable.
20211 shlibpath_var=$shlibpath_var
20212
20213 # Is shlibpath searched before the hard-coded library search path?
20214 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20215
20216 # How to hardcode a shared library path into an executable.
20217 hardcode_action=$hardcode_action_RC
20218
20219 # Whether we should hardcode library paths into libraries.
20220 hardcode_into_libs=$hardcode_into_libs
20221
20222 # Flag to hardcode \$libdir into a binary during linking.
20223 # This must work even if \$libdir does not exist.
20224 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20225
20226 # If ld is used when linking, flag to hardcode \$libdir into
20227 # a binary during linking. This must work even if \$libdir does
20228 # not exist.
20229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20230
20231 # Whether we need a single -rpath flag with a separated argument.
20232 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20233
20234 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20235 # resulting binary.
20236 hardcode_direct=$hardcode_direct_RC
20237
20238 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20239 # resulting binary.
20240 hardcode_minus_L=$hardcode_minus_L_RC
20241
20242 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20243 # the resulting binary.
20244 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20245
20246 # Set to yes if building a shared library automatically hardcodes DIR into the library
20247 # and all subsequent libraries and executables linked against it.
20248 hardcode_automatic=$hardcode_automatic_RC
20249
20250 # Variables whose values should be saved in libtool wrapper scripts and
20251 # restored at relink time.
20252 variables_saved_for_relink="$variables_saved_for_relink"
20253
20254 # Whether libtool must link a program against all its dependency libraries.
20255 link_all_deplibs=$link_all_deplibs_RC
20256
20257 # Compile-time system search path for libraries
20258 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20259
20260 # Run-time system search path for libraries
20261 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20262
20263 # Fix the shell variable \$srcfile for the compiler.
20264 fix_srcfile_path="$fix_srcfile_path_RC"
20265
20266 # Set to yes if exported symbols are required.
20267 always_export_symbols=$always_export_symbols_RC
20268
20269 # The commands to list exported symbols.
20270 export_symbols_cmds=$lt_export_symbols_cmds_RC
20271
20272 # The commands to extract the exported symbol list from a shared archive.
20273 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20274
20275 # Symbols that should not be listed in the preloaded symbols.
20276 exclude_expsyms=$lt_exclude_expsyms_RC
20277
20278 # Symbols that must always be exported.
20279 include_expsyms=$lt_include_expsyms_RC
20280
20281 # ### END LIBTOOL TAG CONFIG: $tagname
20282
20283 __EOF__
20284
20285
20286 else
20287   # If there is no Makefile yet, we rely on a make rule to execute
20288   # `config.status --recheck' to rerun these tests and create the
20289   # libtool script then.
20290   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20291   if test -f "$ltmain_in"; then
20292     test -f Makefile && make "$ltmain"
20293   fi
20294 fi
20295
20296
20297 ac_ext=c
20298 ac_cpp='$CPP $CPPFLAGS'
20299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20302
20303 CC="$lt_save_CC"
20304
20305         ;;
20306
20307       *)
20308         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20309 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20310    { (exit 1); exit 1; }; }
20311         ;;
20312       esac
20313
20314       # Append the new tag name to the list of available tags.
20315       if test -n "$tagname" ; then
20316       available_tags="$available_tags $tagname"
20317     fi
20318     fi
20319   done
20320   IFS="$lt_save_ifs"
20321
20322   # Now substitute the updated list of available tags.
20323   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20324     mv "${ofile}T" "$ofile"
20325     chmod +x "$ofile"
20326   else
20327     rm -f "${ofile}T"
20328     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20329 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20330    { (exit 1); exit 1; }; }
20331   fi
20332 fi
20333
20334
20335
20336 # This can be used to rebuild libtool when needed
20337 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20338
20339 # Always use our own libtool.
20340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20341
20342 # Prevent multiple expansion
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364 if test "x$cross_compiling" = "xno"; then
20365         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20366 else
20367         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20368 fi
20369
20370
20371
20372 if test -n "$ac_tool_prefix"; then
20373   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20374 set dummy ${ac_tool_prefix}ar; ac_word=$2
20375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20377 if test "${ac_cv_prog_AR+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   if test -n "$AR"; then
20381   ac_cv_prog_AR="$AR" # Let the user override the test.
20382 else
20383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20384 for as_dir in $PATH
20385 do
20386   IFS=$as_save_IFS
20387   test -z "$as_dir" && as_dir=.
20388   for ac_exec_ext in '' $ac_executable_extensions; do
20389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20390     ac_cv_prog_AR="${ac_tool_prefix}ar"
20391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20392     break 2
20393   fi
20394 done
20395 done
20396 IFS=$as_save_IFS
20397
20398 fi
20399 fi
20400 AR=$ac_cv_prog_AR
20401 if test -n "$AR"; then
20402   { echo "$as_me:$LINENO: result: $AR" >&5
20403 echo "${ECHO_T}$AR" >&6; }
20404 else
20405   { echo "$as_me:$LINENO: result: no" >&5
20406 echo "${ECHO_T}no" >&6; }
20407 fi
20408
20409
20410 fi
20411 if test -z "$ac_cv_prog_AR"; then
20412   ac_ct_AR=$AR
20413   # Extract the first word of "ar", so it can be a program name with args.
20414 set dummy ar; ac_word=$2
20415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20417 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420   if test -n "$ac_ct_AR"; then
20421   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20422 else
20423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20424 for as_dir in $PATH
20425 do
20426   IFS=$as_save_IFS
20427   test -z "$as_dir" && as_dir=.
20428   for ac_exec_ext in '' $ac_executable_extensions; do
20429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20430     ac_cv_prog_ac_ct_AR="ar"
20431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20432     break 2
20433   fi
20434 done
20435 done
20436 IFS=$as_save_IFS
20437
20438 fi
20439 fi
20440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20441 if test -n "$ac_ct_AR"; then
20442   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20443 echo "${ECHO_T}$ac_ct_AR" >&6; }
20444 else
20445   { echo "$as_me:$LINENO: result: no" >&5
20446 echo "${ECHO_T}no" >&6; }
20447 fi
20448
20449   if test "x$ac_ct_AR" = x; then
20450     AR=""
20451   else
20452     case $cross_compiling:$ac_tool_warned in
20453 yes:)
20454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20455 whose name does not start with the host triplet.  If you think this
20456 configuration is useful to you, please write to autoconf@gnu.org." >&5
20457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20458 whose name does not start with the host triplet.  If you think this
20459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20460 ac_tool_warned=yes ;;
20461 esac
20462     AR=$ac_ct_AR
20463   fi
20464 else
20465   AR="$ac_cv_prog_AR"
20466 fi
20467
20468 if test -n "$ac_tool_prefix"; then
20469   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20470 set dummy ${ac_tool_prefix}ld; ac_word=$2
20471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20473 if test "${ac_cv_prog_LD+set}" = set; then
20474   echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476   if test -n "$LD"; then
20477   ac_cv_prog_LD="$LD" # Let the user override the test.
20478 else
20479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20481 do
20482   IFS=$as_save_IFS
20483   test -z "$as_dir" && as_dir=.
20484   for ac_exec_ext in '' $ac_executable_extensions; do
20485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20486     ac_cv_prog_LD="${ac_tool_prefix}ld"
20487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20488     break 2
20489   fi
20490 done
20491 done
20492 IFS=$as_save_IFS
20493
20494 fi
20495 fi
20496 LD=$ac_cv_prog_LD
20497 if test -n "$LD"; then
20498   { echo "$as_me:$LINENO: result: $LD" >&5
20499 echo "${ECHO_T}$LD" >&6; }
20500 else
20501   { echo "$as_me:$LINENO: result: no" >&5
20502 echo "${ECHO_T}no" >&6; }
20503 fi
20504
20505
20506 fi
20507 if test -z "$ac_cv_prog_LD"; then
20508   ac_ct_LD=$LD
20509   # Extract the first word of "ld", so it can be a program name with args.
20510 set dummy ld; ac_word=$2
20511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20513 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   if test -n "$ac_ct_LD"; then
20517   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20518 else
20519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20520 for as_dir in $PATH
20521 do
20522   IFS=$as_save_IFS
20523   test -z "$as_dir" && as_dir=.
20524   for ac_exec_ext in '' $ac_executable_extensions; do
20525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20526     ac_cv_prog_ac_ct_LD="ld"
20527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20528     break 2
20529   fi
20530 done
20531 done
20532 IFS=$as_save_IFS
20533
20534 fi
20535 fi
20536 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20537 if test -n "$ac_ct_LD"; then
20538   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20539 echo "${ECHO_T}$ac_ct_LD" >&6; }
20540 else
20541   { echo "$as_me:$LINENO: result: no" >&5
20542 echo "${ECHO_T}no" >&6; }
20543 fi
20544
20545   if test "x$ac_ct_LD" = x; then
20546     LD=""
20547   else
20548     case $cross_compiling:$ac_tool_warned in
20549 yes:)
20550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20551 whose name does not start with the host triplet.  If you think this
20552 configuration is useful to you, please write to autoconf@gnu.org." >&5
20553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20554 whose name does not start with the host triplet.  If you think this
20555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20556 ac_tool_warned=yes ;;
20557 esac
20558     LD=$ac_ct_LD
20559   fi
20560 else
20561   LD="$ac_cv_prog_LD"
20562 fi
20563
20564
20565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20567 if test "${ac_cv_header_stdc+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20576 #include <stdlib.h>
20577 #include <stdarg.h>
20578 #include <string.h>
20579 #include <float.h>
20580
20581 int
20582 main ()
20583 {
20584
20585   ;
20586   return 0;
20587 }
20588 _ACEOF
20589 rm -f conftest.$ac_objext
20590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20591   (eval $ac_compile) 2>conftest.er1
20592   ac_status=$?
20593   grep -v '^ *+' conftest.er1 >conftest.err
20594   rm -f conftest.er1
20595   cat conftest.err >&5
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); } &&
20598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; } &&
20604          { ac_try='test -s conftest.$ac_objext'
20605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606   (eval $ac_try) 2>&5
20607   ac_status=$?
20608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609   (exit $ac_status); }; }; then
20610   ac_cv_header_stdc=yes
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615         ac_cv_header_stdc=no
20616 fi
20617
20618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20619
20620 if test $ac_cv_header_stdc = yes; then
20621   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <string.h>
20629
20630 _ACEOF
20631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20632   $EGREP "memchr" >/dev/null 2>&1; then
20633   :
20634 else
20635   ac_cv_header_stdc=no
20636 fi
20637 rm -f conftest*
20638
20639 fi
20640
20641 if test $ac_cv_header_stdc = yes; then
20642   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20643   cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 #include <stdlib.h>
20650
20651 _ACEOF
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653   $EGREP "free" >/dev/null 2>&1; then
20654   :
20655 else
20656   ac_cv_header_stdc=no
20657 fi
20658 rm -f conftest*
20659
20660 fi
20661
20662 if test $ac_cv_header_stdc = yes; then
20663   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20664   if test "$cross_compiling" = yes; then
20665   :
20666 else
20667   cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673 #include <ctype.h>
20674 #include <stdlib.h>
20675 #if ((' ' & 0x0FF) == 0x020)
20676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20678 #else
20679 # define ISLOWER(c) \
20680                    (('a' <= (c) && (c) <= 'i') \
20681                      || ('j' <= (c) && (c) <= 'r') \
20682                      || ('s' <= (c) && (c) <= 'z'))
20683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20684 #endif
20685
20686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20687 int
20688 main ()
20689 {
20690   int i;
20691   for (i = 0; i < 256; i++)
20692     if (XOR (islower (i), ISLOWER (i))
20693         || toupper (i) != TOUPPER (i))
20694       return 2;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest$ac_exeext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20700   (eval $ac_link) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; }; then
20709   :
20710 else
20711   echo "$as_me: program exited with status $ac_status" >&5
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20714
20715 ( exit $ac_status )
20716 ac_cv_header_stdc=no
20717 fi
20718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20719 fi
20720
20721
20722 fi
20723 fi
20724 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20725 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20726 if test $ac_cv_header_stdc = yes; then
20727
20728 cat >>confdefs.h <<\_ACEOF
20729 #define STDC_HEADERS 1
20730 _ACEOF
20731
20732 fi
20733
20734
20735   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20736 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20737   if test "${knfsd_cv_glibc2+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746
20747       #include <features.h>
20748       #if !defined(__GLIBC__)
20749       # error Nope
20750       #endif
20751
20752 _ACEOF
20753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } >/dev/null; then
20761   if test -s conftest.err; then
20762     ac_cpp_err=$ac_c_preproc_warn_flag
20763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20764   else
20765     ac_cpp_err=
20766   fi
20767 else
20768   ac_cpp_err=yes
20769 fi
20770 if test -z "$ac_cpp_err"; then
20771   knfsd_cv_glibc2=yes
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776   knfsd_cv_glibc2=no
20777 fi
20778
20779 rm -f conftest.err conftest.$ac_ext
20780 fi
20781
20782   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20783 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20784   if test $knfsd_cv_glibc2 = yes; then
20785     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20786     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20787   fi
20788
20789
20790   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20791 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20792   if test "${knfsd_cv_bsd_signals+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   if test "$cross_compiling" = yes; then
20796   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20797 See \`config.log' for more details." >&5
20798 echo "$as_me: error: cannot run test program while cross compiling
20799 See \`config.log' for more details." >&2;}
20800    { (exit 1); exit 1; }; }
20801 else
20802   cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809         #include <signal.h>
20810         #include <unistd.h>
20811         #include <sys/wait.h>
20812
20813         static int counter = 0;
20814         static RETSIGTYPE handler(int num) { counter++; }
20815
20816         int main()
20817         {
20818                 int     s;
20819                 if ((s = fork()) < 0) return 1;
20820                 if (s != 0) {
20821                         if (wait(&s) < 0) return 1;
20822                         return WIFSIGNALED(s)? 1 : 0;
20823                 }
20824
20825                 signal(SIGHUP, handler);
20826                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20827                 return (counter == 2)? 0 : 1;
20828         }
20829
20830 _ACEOF
20831 rm -f conftest$ac_exeext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20833   (eval $ac_link) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838   (eval $ac_try) 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   knfsd_cv_bsd_signals=yes
20843 else
20844   echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ( exit $ac_status )
20849 knfsd_cv_bsd_signals=no
20850 fi
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853
20854
20855 fi
20856      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20857 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20858     test $knfsd_cv_bsd_signals = yes &&
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_BSD_SIGNALS 1
20861 _ACEOF
20862
20863
20864
20865 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20866 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
20867 if test "${ac_cv_lib_socket_main+set}" = set; then
20868   echo $ECHO_N "(cached) $ECHO_C" >&6
20869 else
20870   ac_check_lib_save_LIBS=$LIBS
20871 LIBS="-lsocket  $LIBS"
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878
20879
20880 int
20881 main ()
20882 {
20883 return main ();
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890   (eval $ac_link) 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; } &&
20903          { ac_try='test -s conftest$ac_exeext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_cv_lib_socket_main=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_cv_lib_socket_main=no
20915 fi
20916
20917 rm -f conftest.err conftest.$ac_objext \
20918       conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20920 fi
20921 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20922 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
20923 if test $ac_cv_lib_socket_main = yes; then
20924   LIBSOCKET="-lnsl"
20925 fi
20926
20927 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20928 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
20929 if test "${ac_cv_lib_nsl_main+set}" = set; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   ac_check_lib_save_LIBS=$LIBS
20933 LIBS="-lnsl  $LIBS"
20934 cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940
20941
20942 int
20943 main ()
20944 {
20945 return main ();
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20952   (eval $ac_link) 2>conftest.er1
20953   ac_status=$?
20954   grep -v '^ *+' conftest.er1 >conftest.err
20955   rm -f conftest.er1
20956   cat conftest.err >&5
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } &&
20959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; } &&
20965          { ac_try='test -s conftest$ac_exeext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_cv_lib_nsl_main=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976         ac_cv_lib_nsl_main=no
20977 fi
20978
20979 rm -f conftest.err conftest.$ac_objext \
20980       conftest$ac_exeext conftest.$ac_ext
20981 LIBS=$ac_check_lib_save_LIBS
20982 fi
20983 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20984 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
20985 if test $ac_cv_lib_nsl_main = yes; then
20986   LIBNSL="-lnsl"
20987 fi
20988
20989 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20990 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-lcrypt  $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002
21003 /* Override any GCC internal prototype to avoid an error.
21004    Use char because int might match the return type of a GCC
21005    builtin and then its argument prototype would still apply.  */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char crypt ();
21010 int
21011 main ()
21012 {
21013 return crypt ();
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020   (eval $ac_link) 2>conftest.er1
21021   ac_status=$?
21022   grep -v '^ *+' conftest.er1 >conftest.err
21023   rm -f conftest.er1
21024   cat conftest.err >&5
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); } &&
21027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029   (eval $ac_try) 2>&5
21030   ac_status=$?
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); }; } &&
21033          { ac_try='test -s conftest$ac_exeext'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039   ac_cv_lib_crypt_crypt=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         ac_cv_lib_crypt_crypt=no
21045 fi
21046
21047 rm -f conftest.err conftest.$ac_objext \
21048       conftest$ac_exeext conftest.$ac_ext
21049 LIBS=$ac_check_lib_save_LIBS
21050 fi
21051 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21052 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21053 if test $ac_cv_lib_crypt_crypt = yes; then
21054   LIBCRYPT="-lcrypt"
21055 fi
21056
21057 if test "$enable_nfsv4" = yes; then
21058     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21059 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21060 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21061   echo $ECHO_N "(cached) $ECHO_C" >&6
21062 else
21063   ac_check_lib_save_LIBS=$LIBS
21064 LIBS="-levent  $LIBS"
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071
21072 /* Override any GCC internal prototype to avoid an error.
21073    Use char because int might match the return type of a GCC
21074    builtin and then its argument prototype would still apply.  */
21075 #ifdef __cplusplus
21076 extern "C"
21077 #endif
21078 char event_dispatch ();
21079 int
21080 main ()
21081 {
21082 return event_dispatch ();
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089   (eval $ac_link) 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; } &&
21102          { ac_try='test -s conftest$ac_exeext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_lib_event_event_dispatch=yes
21109 else
21110   echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113         ac_cv_lib_event_event_dispatch=no
21114 fi
21115
21116 rm -f conftest.err conftest.$ac_objext \
21117       conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21119 fi
21120 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21121 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21122 if test $ac_cv_lib_event_event_dispatch = yes; then
21123   libevent=1
21124 else
21125   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21126 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21127    { (exit 1); exit 1; }; }
21128 fi
21129
21130     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21131 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21132 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135   ac_check_lib_save_LIBS=$LIBS
21136 LIBS="-lnfsidmap  $LIBS"
21137 cat >conftest.$ac_ext <<_ACEOF
21138 /* confdefs.h.  */
21139 _ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h.  */
21143
21144 /* Override any GCC internal prototype to avoid an error.
21145    Use char because int might match the return type of a GCC
21146    builtin and then its argument prototype would still apply.  */
21147 #ifdef __cplusplus
21148 extern "C"
21149 #endif
21150 char nfs4_init_name_mapping ();
21151 int
21152 main ()
21153 {
21154 return nfs4_init_name_mapping ();
21155   ;
21156   return 0;
21157 }
21158 _ACEOF
21159 rm -f conftest.$ac_objext conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161   (eval $ac_link) 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } &&
21168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; } &&
21174          { ac_try='test -s conftest$ac_exeext'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; }; then
21180   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21186 fi
21187
21188 rm -f conftest.err conftest.$ac_objext \
21189       conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21191 fi
21192 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21193 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21194 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21195   libnfsidmap=1
21196 else
21197   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21198 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21199    { (exit 1); exit 1; }; }
21200 fi
21201
21202
21203 for ac_header in event.h
21204 do
21205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210   echo $ECHO_N "(cached) $ECHO_C" >&6
21211 fi
21212 ac_res=`eval echo '${'$as_ac_Header'}'`
21213                { echo "$as_me:$LINENO: result: $ac_res" >&5
21214 echo "${ECHO_T}$ac_res" >&6; }
21215 else
21216   # Is the header compilable?
21217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21219 cat >conftest.$ac_ext <<_ACEOF
21220 /* confdefs.h.  */
21221 _ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h.  */
21225 $ac_includes_default
21226 #include <$ac_header>
21227 _ACEOF
21228 rm -f conftest.$ac_objext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230   (eval $ac_compile) 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; } &&
21243          { ac_try='test -s conftest.$ac_objext'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; }; then
21249   ac_header_compiler=yes
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254         ac_header_compiler=no
21255 fi
21256
21257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21259 echo "${ECHO_T}$ac_header_compiler" >&6; }
21260
21261 # Is the header present?
21262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 #include <$ac_header>
21271 _ACEOF
21272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } >/dev/null; then
21280   if test -s conftest.err; then
21281     ac_cpp_err=$ac_c_preproc_warn_flag
21282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21283   else
21284     ac_cpp_err=
21285   fi
21286 else
21287   ac_cpp_err=yes
21288 fi
21289 if test -z "$ac_cpp_err"; then
21290   ac_header_preproc=yes
21291 else
21292   echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295   ac_header_preproc=no
21296 fi
21297
21298 rm -f conftest.err conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21300 echo "${ECHO_T}$ac_header_preproc" >&6; }
21301
21302 # So?  What about this header?
21303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21304   yes:no: )
21305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21309     ac_header_preproc=yes
21310     ;;
21311   no:yes:* )
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21314     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21315 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21316     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21318     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21319 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21322     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21324     ( cat <<\_ASBOX
21325 ## ------------------------------- ##
21326 ## Report this to nfs@lists.sf.net ##
21327 ## ------------------------------- ##
21328 _ASBOX
21329      ) | sed "s/^/$as_me: WARNING:     /" >&2
21330     ;;
21331 esac
21332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337   eval "$as_ac_Header=\$ac_header_preproc"
21338 fi
21339 ac_res=`eval echo '${'$as_ac_Header'}'`
21340                { echo "$as_me:$LINENO: result: $ac_res" >&5
21341 echo "${ECHO_T}$ac_res" >&6; }
21342
21343 fi
21344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21345   cat >>confdefs.h <<_ACEOF
21346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21347 _ACEOF
21348
21349 else
21350   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21351 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21352    { (exit 1); exit 1; }; }
21353 fi
21354
21355 done
21356
21357
21358 for ac_header in nfsidmap.h
21359 do
21360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365   echo $ECHO_N "(cached) $ECHO_C" >&6
21366 fi
21367 ac_res=`eval echo '${'$as_ac_Header'}'`
21368                { echo "$as_me:$LINENO: result: $ac_res" >&5
21369 echo "${ECHO_T}$ac_res" >&6; }
21370 else
21371   # Is the header compilable?
21372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21374 cat >conftest.$ac_ext <<_ACEOF
21375 /* confdefs.h.  */
21376 _ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h.  */
21380 $ac_includes_default
21381 #include <$ac_header>
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21385   (eval $ac_compile) 2>conftest.er1
21386   ac_status=$?
21387   grep -v '^ *+' conftest.er1 >conftest.err
21388   rm -f conftest.er1
21389   cat conftest.err >&5
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } &&
21392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394   (eval $ac_try) 2>&5
21395   ac_status=$?
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); }; } &&
21398          { ac_try='test -s conftest.$ac_objext'
21399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; }; then
21404   ac_header_compiler=yes
21405 else
21406   echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409         ac_header_compiler=no
21410 fi
21411
21412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21414 echo "${ECHO_T}$ac_header_compiler" >&6; }
21415
21416 # Is the header present?
21417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21419 cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #include <$ac_header>
21426 _ACEOF
21427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } >/dev/null; then
21435   if test -s conftest.err; then
21436     ac_cpp_err=$ac_c_preproc_warn_flag
21437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21438   else
21439     ac_cpp_err=
21440   fi
21441 else
21442   ac_cpp_err=yes
21443 fi
21444 if test -z "$ac_cpp_err"; then
21445   ac_header_preproc=yes
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450   ac_header_preproc=no
21451 fi
21452
21453 rm -f conftest.err conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21455 echo "${ECHO_T}$ac_header_preproc" >&6; }
21456
21457 # So?  What about this header?
21458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21459   yes:no: )
21460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21464     ac_header_preproc=yes
21465     ;;
21466   no:yes:* )
21467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21479     ( cat <<\_ASBOX
21480 ## ------------------------------- ##
21481 ## Report this to nfs@lists.sf.net ##
21482 ## ------------------------------- ##
21483 _ASBOX
21484      ) | sed "s/^/$as_me: WARNING:     /" >&2
21485     ;;
21486 esac
21487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21490   echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492   eval "$as_ac_Header=\$ac_header_preproc"
21493 fi
21494 ac_res=`eval echo '${'$as_ac_Header'}'`
21495                { echo "$as_me:$LINENO: result: $ac_res" >&5
21496 echo "${ECHO_T}$ac_res" >&6; }
21497
21498 fi
21499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21500   cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21502 _ACEOF
21503
21504 else
21505   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21506 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21507    { (exit 1); exit 1; }; }
21508 fi
21509
21510 done
21511
21512             if test "$enable_gss" = yes; then
21513
21514
21515 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21516         if test -n "$ac_tool_prefix"; then
21517   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21518 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21521 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21522   echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524   case $PKG_CONFIG in
21525   [\\/]* | ?:[\\/]*)
21526   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21527   ;;
21528   *)
21529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21530 for as_dir in $PATH
21531 do
21532   IFS=$as_save_IFS
21533   test -z "$as_dir" && as_dir=.
21534   for ac_exec_ext in '' $ac_executable_extensions; do
21535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21536     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21538     break 2
21539   fi
21540 done
21541 done
21542 IFS=$as_save_IFS
21543
21544   ;;
21545 esac
21546 fi
21547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21548 if test -n "$PKG_CONFIG"; then
21549   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21550 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21551 else
21552   { echo "$as_me:$LINENO: result: no" >&5
21553 echo "${ECHO_T}no" >&6; }
21554 fi
21555
21556
21557 fi
21558 if test -z "$ac_cv_path_PKG_CONFIG"; then
21559   ac_pt_PKG_CONFIG=$PKG_CONFIG
21560   # Extract the first word of "pkg-config", so it can be a program name with args.
21561 set dummy pkg-config; ac_word=$2
21562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21564 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21565   echo $ECHO_N "(cached) $ECHO_C" >&6
21566 else
21567   case $ac_pt_PKG_CONFIG in
21568   [\\/]* | ?:[\\/]*)
21569   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21570   ;;
21571   *)
21572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21573 for as_dir in $PATH
21574 do
21575   IFS=$as_save_IFS
21576   test -z "$as_dir" && as_dir=.
21577   for ac_exec_ext in '' $ac_executable_extensions; do
21578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21579     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21581     break 2
21582   fi
21583 done
21584 done
21585 IFS=$as_save_IFS
21586
21587   ;;
21588 esac
21589 fi
21590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21591 if test -n "$ac_pt_PKG_CONFIG"; then
21592   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21593 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21594 else
21595   { echo "$as_me:$LINENO: result: no" >&5
21596 echo "${ECHO_T}no" >&6; }
21597 fi
21598
21599   if test "x$ac_pt_PKG_CONFIG" = x; then
21600     PKG_CONFIG=""
21601   else
21602     case $cross_compiling:$ac_tool_warned in
21603 yes:)
21604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21605 whose name does not start with the host triplet.  If you think this
21606 configuration is useful to you, please write to autoconf@gnu.org." >&5
21607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21608 whose name does not start with the host triplet.  If you think this
21609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21610 ac_tool_warned=yes ;;
21611 esac
21612     PKG_CONFIG=$ac_pt_PKG_CONFIG
21613   fi
21614 else
21615   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21616 fi
21617
21618 fi
21619 if test -n "$PKG_CONFIG"; then
21620         _pkg_min_version=0.9.0
21621         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21622 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21623         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21624                 { echo "$as_me:$LINENO: result: yes" >&5
21625 echo "${ECHO_T}yes" >&6; }
21626         else
21627                 { echo "$as_me:$LINENO: result: no" >&5
21628 echo "${ECHO_T}no" >&6; }
21629                 PKG_CONFIG=""
21630         fi
21631
21632 fi
21633
21634 pkg_failed=no
21635 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21636 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21637
21638 if test -n "$PKG_CONFIG"; then
21639     if test -n "$RPCSECGSS_CFLAGS"; then
21640         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21641     else
21642         if test -n "$PKG_CONFIG" && \
21643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21644   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21645   ac_status=$?
21646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647   (exit $ac_status); }; then
21648   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21649 else
21650   pkg_failed=yes
21651 fi
21652     fi
21653 else
21654         pkg_failed=untried
21655 fi
21656 if test -n "$PKG_CONFIG"; then
21657     if test -n "$RPCSECGSS_LIBS"; then
21658         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21659     else
21660         if test -n "$PKG_CONFIG" && \
21661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21662   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21663   ac_status=$?
21664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665   (exit $ac_status); }; then
21666   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21667 else
21668   pkg_failed=yes
21669 fi
21670     fi
21671 else
21672         pkg_failed=untried
21673 fi
21674
21675
21676
21677 if test $pkg_failed = yes; then
21678
21679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21680         _pkg_short_errors_supported=yes
21681 else
21682         _pkg_short_errors_supported=no
21683 fi
21684         if test $_pkg_short_errors_supported = yes; then
21685                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21686         else
21687                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21688         fi
21689         # Put the nasty error message in config.log where it belongs
21690         echo "$RPCSECGSS_PKG_ERRORS" >&5
21691
21692         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
21693        If you have pkgconfig installed, you might try setting environment
21694        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21695 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21696        If you have pkgconfig installed, you might try setting environment
21697        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21698    { (exit 1); exit 1; }; }
21699
21700
21701 elif test $pkg_failed = untried; then
21702         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
21703        If you have pkgconfig installed, you might try setting environment
21704        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21705 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21706        If you have pkgconfig installed, you might try setting environment
21707        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21708    { (exit 1); exit 1; }; }
21709
21710
21711 else
21712         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21713         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21714         { echo "$as_me:$LINENO: result: yes" >&5
21715 echo "${ECHO_T}yes" >&6; }
21716         :
21717 fi
21718
21719 pkg_failed=no
21720 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21721 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21722
21723 if test -n "$PKG_CONFIG"; then
21724     if test -n "$GSSAPI_CFLAGS"; then
21725         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21726     else
21727         if test -n "$PKG_CONFIG" && \
21728     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21729   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21730   ac_status=$?
21731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732   (exit $ac_status); }; then
21733   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21734 else
21735   pkg_failed=yes
21736 fi
21737     fi
21738 else
21739         pkg_failed=untried
21740 fi
21741 if test -n "$PKG_CONFIG"; then
21742     if test -n "$GSSAPI_LIBS"; then
21743         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21744     else
21745         if test -n "$PKG_CONFIG" && \
21746     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21747   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; then
21751   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21752 else
21753   pkg_failed=yes
21754 fi
21755     fi
21756 else
21757         pkg_failed=untried
21758 fi
21759
21760
21761
21762 if test $pkg_failed = yes; then
21763
21764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21765         _pkg_short_errors_supported=yes
21766 else
21767         _pkg_short_errors_supported=no
21768 fi
21769         if test $_pkg_short_errors_supported = yes; then
21770                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21771         else
21772                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21773         fi
21774         # Put the nasty error message in config.log where it belongs
21775         echo "$GSSAPI_PKG_ERRORS" >&5
21776
21777         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21778
21779 $GSSAPI_PKG_ERRORS
21780
21781 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21782 installed software in a non-standard prefix.
21783
21784 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21785 and GSSAPI_LIBS to avoid the need to call pkg-config.
21786 See the pkg-config man page for more details.
21787 " >&5
21788 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21789
21790 $GSSAPI_PKG_ERRORS
21791
21792 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21793 installed software in a non-standard prefix.
21794
21795 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21796 and GSSAPI_LIBS to avoid the need to call pkg-config.
21797 See the pkg-config man page for more details.
21798 " >&2;}
21799    { (exit 1); exit 1; }; }
21800 elif test $pkg_failed = untried; then
21801         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21802 is in your PATH or set the PKG_CONFIG environment variable to the full
21803 path to pkg-config.
21804
21805 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21806 and GSSAPI_LIBS to avoid the need to call pkg-config.
21807 See the pkg-config man page for more details.
21808
21809 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21810 See \`config.log' for more details." >&5
21811 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21812 is in your PATH or set the PKG_CONFIG environment variable to the full
21813 path to pkg-config.
21814
21815 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21816 and GSSAPI_LIBS to avoid the need to call pkg-config.
21817 See the pkg-config man page for more details.
21818
21819 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21820 See \`config.log' for more details." >&2;}
21821    { (exit 1); exit 1; }; }
21822 else
21823         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21824         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21825         { echo "$as_me:$LINENO: result: yes" >&5
21826 echo "${ECHO_T}yes" >&6; }
21827         :
21828 fi
21829     fi
21830
21831 fi
21832 if test "$knfsd_cv_glibc2" = no; then
21833     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21834 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
21835 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   ac_check_lib_save_LIBS=$LIBS
21839 LIBS="-lbsd  $LIBS"
21840 cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846
21847 /* Override any GCC internal prototype to avoid an error.
21848    Use char because int might match the return type of a GCC
21849    builtin and then its argument prototype would still apply.  */
21850 #ifdef __cplusplus
21851 extern "C"
21852 #endif
21853 char daemon ();
21854 int
21855 main ()
21856 {
21857 return daemon ();
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21864   (eval $ac_link) 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } &&
21871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; } &&
21877          { ac_try='test -s conftest$ac_exeext'
21878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); }; }; then
21883   ac_cv_lib_bsd_daemon=yes
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888         ac_cv_lib_bsd_daemon=no
21889 fi
21890
21891 rm -f conftest.err conftest.$ac_objext \
21892       conftest$ac_exeext conftest.$ac_ext
21893 LIBS=$ac_check_lib_save_LIBS
21894 fi
21895 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21896 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
21897 if test $ac_cv_lib_bsd_daemon = yes; then
21898   LIBBSD="-lbsd"
21899 fi
21900
21901 fi
21902
21903
21904
21905
21906
21907 if test "$enable_gss" = yes; then
21908
21909 for ac_header in nfsidmap.h
21910 do
21911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 fi
21918 ac_res=`eval echo '${'$as_ac_Header'}'`
21919                { echo "$as_me:$LINENO: result: $ac_res" >&5
21920 echo "${ECHO_T}$ac_res" >&6; }
21921 else
21922   # Is the header compilable?
21923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 $ac_includes_default
21932 #include <$ac_header>
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21936   (eval $ac_compile) 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } &&
21943          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945   (eval $ac_try) 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; } &&
21949          { ac_try='test -s conftest.$ac_objext'
21950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951   (eval $ac_try) 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; }; then
21955   ac_header_compiler=yes
21956 else
21957   echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21959
21960         ac_header_compiler=no
21961 fi
21962
21963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21965 echo "${ECHO_T}$ac_header_compiler" >&6; }
21966
21967 # Is the header present?
21968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 #include <$ac_header>
21977 _ACEOF
21978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } >/dev/null; then
21986   if test -s conftest.err; then
21987     ac_cpp_err=$ac_c_preproc_warn_flag
21988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21989   else
21990     ac_cpp_err=
21991   fi
21992 else
21993   ac_cpp_err=yes
21994 fi
21995 if test -z "$ac_cpp_err"; then
21996   ac_header_preproc=yes
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001   ac_header_preproc=no
22002 fi
22003
22004 rm -f conftest.err conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22006 echo "${ECHO_T}$ac_header_preproc" >&6; }
22007
22008 # So?  What about this header?
22009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22010   yes:no: )
22011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22015     ac_header_preproc=yes
22016     ;;
22017   no:yes:* )
22018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22030     ( cat <<\_ASBOX
22031 ## ------------------------------- ##
22032 ## Report this to nfs@lists.sf.net ##
22033 ## ------------------------------- ##
22034 _ASBOX
22035      ) | sed "s/^/$as_me: WARNING:     /" >&2
22036     ;;
22037 esac
22038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   eval "$as_ac_Header=\$ac_header_preproc"
22044 fi
22045 ac_res=`eval echo '${'$as_ac_Header'}'`
22046                { echo "$as_me:$LINENO: result: $ac_res" >&5
22047 echo "${ECHO_T}$ac_res" >&6; }
22048
22049 fi
22050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22051   cat >>confdefs.h <<_ACEOF
22052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22053 _ACEOF
22054
22055 else
22056   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22057 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22058    { (exit 1); exit 1; }; }
22059 fi
22060
22061 done
22062
22063
22064 for ac_header in spkm3.h
22065 do
22066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22068   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22071   echo $ECHO_N "(cached) $ECHO_C" >&6
22072 fi
22073 ac_res=`eval echo '${'$as_ac_Header'}'`
22074                { echo "$as_me:$LINENO: result: $ac_res" >&5
22075 echo "${ECHO_T}$ac_res" >&6; }
22076 else
22077   # Is the header compilable?
22078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 $ac_includes_default
22087 #include <$ac_header>
22088 _ACEOF
22089 rm -f conftest.$ac_objext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22091   (eval $ac_compile) 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } &&
22098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100   (eval $ac_try) 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; } &&
22104          { ac_try='test -s conftest.$ac_objext'
22105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106   (eval $ac_try) 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); }; }; then
22110   ac_header_compiler=yes
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_header_compiler=no
22116 fi
22117
22118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22120 echo "${ECHO_T}$ac_header_compiler" >&6; }
22121
22122 # Is the header present?
22123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 #include <$ac_header>
22132 _ACEOF
22133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } >/dev/null; then
22141   if test -s conftest.err; then
22142     ac_cpp_err=$ac_c_preproc_warn_flag
22143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22144   else
22145     ac_cpp_err=
22146   fi
22147 else
22148   ac_cpp_err=yes
22149 fi
22150 if test -z "$ac_cpp_err"; then
22151   ac_header_preproc=yes
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156   ac_header_preproc=no
22157 fi
22158
22159 rm -f conftest.err conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22161 echo "${ECHO_T}$ac_header_preproc" >&6; }
22162
22163 # So?  What about this header?
22164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22165   yes:no: )
22166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22170     ac_header_preproc=yes
22171     ;;
22172   no:yes:* )
22173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22185     ( cat <<\_ASBOX
22186 ## ------------------------------- ##
22187 ## Report this to nfs@lists.sf.net ##
22188 ## ------------------------------- ##
22189 _ASBOX
22190      ) | sed "s/^/$as_me: WARNING:     /" >&2
22191     ;;
22192 esac
22193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22196   echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198   eval "$as_ac_Header=\$ac_header_preproc"
22199 fi
22200 ac_res=`eval echo '${'$as_ac_Header'}'`
22201                { echo "$as_me:$LINENO: result: $ac_res" >&5
22202 echo "${ECHO_T}$ac_res" >&6; }
22203
22204 fi
22205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22206   cat >>confdefs.h <<_ACEOF
22207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22208 _ACEOF
22209
22210 else
22211   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22212 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22213 fi
22214
22215 done
22216
22217
22218
22219   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22220 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22221
22222 # Check whether --with-krb5 was given.
22223 if test "${with_krb5+set}" = set; then
22224   withval=$with_krb5;  case "$withval" in
22225     yes|no)
22226        krb5_with=""
22227        ;;
22228     *)
22229        krb5_with="$withval"
22230        ;;
22231     esac
22232
22233 fi
22234
22235
22236   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22237              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22238             K5CONFIG=""
22239     if test -f $dir/bin/krb5-config; then
22240       K5CONFIG=$dir/bin/krb5-config
22241     elif test -f "/usr/kerberos/bin/krb5-config"; then
22242       K5CONFIG="/usr/kerberos/bin/krb5-config"
22243     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22244       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22245     fi
22246     if test "$K5CONFIG" != ""; then
22247       KRBCFLAGS=`$K5CONFIG --cflags`
22248       KRBLIBS=`$K5CONFIG --libs gssapi`
22249       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22250
22251 cat >>confdefs.h <<_ACEOF
22252 #define KRB5_VERSION $K5VERS
22253 _ACEOF
22254
22255       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22256                 \( -f $dir/lib/libgssapi_krb5.a -o \
22257                    -f $dir/lib/libgssapi_krb5.so \) ; then
22258
22259 cat >>confdefs.h <<\_ACEOF
22260 #define HAVE_KRB5 1
22261 _ACEOF
22262
22263          KRBDIR="$dir"
22264                      if test $K5VERS -le 131; then
22265
22266 cat >>confdefs.h <<\_ACEOF
22267 #define USE_GSS_KRB5_CCACHE_NAME 1
22268 _ACEOF
22269
22270          fi
22271          gssapi_lib=gssapi_krb5
22272          break
22273                   elif test \( -f $dir/include/heim_err.h -o\
22274                  -f $dir/include/heimdal/heim_err.h \) -a \
22275                 -f $dir/lib/libroken.a; then
22276
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_HEIMDAL 1
22279 _ACEOF
22280
22281          KRBDIR="$dir"
22282          gssapi_lib=gssapi
22283         break
22284       fi
22285     fi
22286   done
22287     if test "x$KRBDIR" = "x"; then
22288     if test "x$krb5_with" = "x"; then
22289       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22290 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22291    { (exit 1); exit 1; }; }
22292     else
22293       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22294 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22295    { (exit 1); exit 1; }; }
22296     fi
22297   fi
22298   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22299 echo "${ECHO_T}$KRBDIR" >&6; }
22300
22301     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22302 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22303 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22304 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22305   echo $ECHO_N "(cached) $ECHO_C" >&6
22306 else
22307   ac_check_lib_save_LIBS=$LIBS
22308 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315
22316 /* Override any GCC internal prototype to avoid an error.
22317    Use char because int might match the return type of a GCC
22318    builtin and then its argument prototype would still apply.  */
22319 #ifdef __cplusplus
22320 extern "C"
22321 #endif
22322 char gss_krb5_export_lucid_sec_context ();
22323 int
22324 main ()
22325 {
22326 return gss_krb5_export_lucid_sec_context ();
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext conftest$ac_exeext
22332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22333   (eval $ac_link) 2>conftest.er1
22334   ac_status=$?
22335   grep -v '^ *+' conftest.er1 >conftest.err
22336   rm -f conftest.er1
22337   cat conftest.err >&5
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } &&
22340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342   (eval $ac_try) 2>&5
22343   ac_status=$?
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); }; } &&
22346          { ac_try='test -s conftest$ac_exeext'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; }; then
22352   eval "$as_ac_Lib=yes"
22353 else
22354   echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357         eval "$as_ac_Lib=no"
22358 fi
22359
22360 rm -f conftest.err conftest.$ac_objext \
22361       conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22363 fi
22364 ac_res=`eval echo '${'$as_ac_Lib'}'`
22365                { echo "$as_me:$LINENO: result: $ac_res" >&5
22366 echo "${ECHO_T}$ac_res" >&6; }
22367 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22368
22369 cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22371 _ACEOF
22372
22373 fi
22374
22375   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22376 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22377 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22378 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381   ac_check_lib_save_LIBS=$LIBS
22382 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389
22390 /* Override any GCC internal prototype to avoid an error.
22391    Use char because int might match the return type of a GCC
22392    builtin and then its argument prototype would still apply.  */
22393 #ifdef __cplusplus
22394 extern "C"
22395 #endif
22396 char gss_krb5_set_allowable_enctypes ();
22397 int
22398 main ()
22399 {
22400 return gss_krb5_set_allowable_enctypes ();
22401   ;
22402   return 0;
22403 }
22404 _ACEOF
22405 rm -f conftest.$ac_objext conftest$ac_exeext
22406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22407   (eval $ac_link) 2>conftest.er1
22408   ac_status=$?
22409   grep -v '^ *+' conftest.er1 >conftest.err
22410   rm -f conftest.er1
22411   cat conftest.err >&5
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); } &&
22414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416   (eval $ac_try) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; } &&
22420          { ac_try='test -s conftest$ac_exeext'
22421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422   (eval $ac_try) 2>&5
22423   ac_status=$?
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); }; }; then
22426   eval "$as_ac_Lib=yes"
22427 else
22428   echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431         eval "$as_ac_Lib=no"
22432 fi
22433
22434 rm -f conftest.err conftest.$ac_objext \
22435       conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22437 fi
22438 ac_res=`eval echo '${'$as_ac_Lib'}'`
22439                { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22441 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22442
22443 cat >>confdefs.h <<\_ACEOF
22444 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22445 _ACEOF
22446
22447 fi
22448
22449   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22450 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22451 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22452 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455   ac_check_lib_save_LIBS=$LIBS
22456 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463
22464 /* Override any GCC internal prototype to avoid an error.
22465    Use char because int might match the return type of a GCC
22466    builtin and then its argument prototype would still apply.  */
22467 #ifdef __cplusplus
22468 extern "C"
22469 #endif
22470 char gss_krb5_ccache_name ();
22471 int
22472 main ()
22473 {
22474 return gss_krb5_ccache_name ();
22475   ;
22476   return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22481   (eval $ac_link) 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } &&
22488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490   (eval $ac_try) 2>&5
22491   ac_status=$?
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); }; } &&
22494          { ac_try='test -s conftest$ac_exeext'
22495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496   (eval $ac_try) 2>&5
22497   ac_status=$?
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); }; }; then
22500   eval "$as_ac_Lib=yes"
22501 else
22502   echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505         eval "$as_ac_Lib=no"
22506 fi
22507
22508 rm -f conftest.err conftest.$ac_objext \
22509       conftest$ac_exeext conftest.$ac_ext
22510 LIBS=$ac_check_lib_save_LIBS
22511 fi
22512 ac_res=`eval echo '${'$as_ac_Lib'}'`
22513                { echo "$as_me:$LINENO: result: $ac_res" >&5
22514 echo "${ECHO_T}$ac_res" >&6; }
22515 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22516
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22519 _ACEOF
22520
22521 fi
22522
22523
22524     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22525     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22526 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22527   fi
22528
22529
22530
22531
22532
22533
22534
22535
22536       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22537 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22538 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541   ac_check_lib_save_LIBS=$LIBS
22542 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549
22550 /* Override any GCC internal prototype to avoid an error.
22551    Use char because int might match the return type of a GCC
22552    builtin and then its argument prototype would still apply.  */
22553 #ifdef __cplusplus
22554 extern "C"
22555 #endif
22556 char authgss_create_default ();
22557 int
22558 main ()
22559 {
22560 return authgss_create_default ();
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext conftest$ac_exeext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567   (eval $ac_link) 2>conftest.er1
22568   ac_status=$?
22569   grep -v '^ *+' conftest.er1 >conftest.err
22570   rm -f conftest.er1
22571   cat conftest.err >&5
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } &&
22574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; } &&
22580          { ac_try='test -s conftest$ac_exeext'
22581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582   (eval $ac_try) 2>&5
22583   ac_status=$?
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); }; }; then
22586   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591         ac_cv_lib_rpcsecgss_authgss_create_default=no
22592 fi
22593
22594 rm -f conftest.err conftest.$ac_objext \
22595       conftest$ac_exeext conftest.$ac_ext
22596 LIBS=$ac_check_lib_save_LIBS
22597 fi
22598 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22599 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22600 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22601   librpcsecgss=1
22602 else
22603   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22604 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22605    { (exit 1); exit 1; }; }
22606 fi
22607
22608   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22609 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22610 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22611   echo $ECHO_N "(cached) $ECHO_C" >&6
22612 else
22613   ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22615 cat >conftest.$ac_ext <<_ACEOF
22616 /* confdefs.h.  */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h.  */
22621
22622 /* Override any GCC internal prototype to avoid an error.
22623    Use char because int might match the return type of a GCC
22624    builtin and then its argument prototype would still apply.  */
22625 #ifdef __cplusplus
22626 extern "C"
22627 #endif
22628 char authgss_set_debug_level ();
22629 int
22630 main ()
22631 {
22632 return authgss_set_debug_level ();
22633   ;
22634   return 0;
22635 }
22636 _ACEOF
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22639   (eval $ac_link) 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } &&
22646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; } &&
22652          { ac_try='test -s conftest$ac_exeext'
22653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22654   (eval $ac_try) 2>&5
22655   ac_status=$?
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); }; }; then
22658   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22659 else
22660   echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22664 fi
22665
22666 rm -f conftest.err conftest.$ac_objext \
22667       conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22669 fi
22670 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22671 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22672 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22673
22674 cat >>confdefs.h <<\_ACEOF
22675 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22676 _ACEOF
22677
22678 fi
22679
22680
22681 fi
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22706                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22707                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22708                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22709                  syslog.h unistd.h com_err.h et/com_err.h
22710 do
22711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 fi
22718 ac_res=`eval echo '${'$as_ac_Header'}'`
22719                { echo "$as_me:$LINENO: result: $ac_res" >&5
22720 echo "${ECHO_T}$ac_res" >&6; }
22721 else
22722   # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 $ac_includes_default
22732 #include <$ac_header>
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22736   (eval $ac_compile) 2>conftest.er1
22737   ac_status=$?
22738   grep -v '^ *+' conftest.er1 >conftest.err
22739   rm -f conftest.er1
22740   cat conftest.err >&5
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); } &&
22743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745   (eval $ac_try) 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; } &&
22749          { ac_try='test -s conftest.$ac_objext'
22750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751   (eval $ac_try) 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); }; }; then
22755   ac_header_compiler=yes
22756 else
22757   echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760         ac_header_compiler=no
22761 fi
22762
22763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22765 echo "${ECHO_T}$ac_header_compiler" >&6; }
22766
22767 # Is the header present?
22768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h.  */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h.  */
22776 #include <$ac_header>
22777 _ACEOF
22778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } >/dev/null; then
22786   if test -s conftest.err; then
22787     ac_cpp_err=$ac_c_preproc_warn_flag
22788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22789   else
22790     ac_cpp_err=
22791   fi
22792 else
22793   ac_cpp_err=yes
22794 fi
22795 if test -z "$ac_cpp_err"; then
22796   ac_header_preproc=yes
22797 else
22798   echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22800
22801   ac_header_preproc=no
22802 fi
22803
22804 rm -f conftest.err conftest.$ac_ext
22805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22806 echo "${ECHO_T}$ac_header_preproc" >&6; }
22807
22808 # So?  What about this header?
22809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22810   yes:no: )
22811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22815     ac_header_preproc=yes
22816     ;;
22817   no:yes:* )
22818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22830     ( cat <<\_ASBOX
22831 ## ------------------------------- ##
22832 ## Report this to nfs@lists.sf.net ##
22833 ## ------------------------------- ##
22834 _ASBOX
22835      ) | sed "s/^/$as_me: WARNING:     /" >&2
22836     ;;
22837 esac
22838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22841   echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843   eval "$as_ac_Header=\$ac_header_preproc"
22844 fi
22845 ac_res=`eval echo '${'$as_ac_Header'}'`
22846                { echo "$as_me:$LINENO: result: $ac_res" >&5
22847 echo "${ECHO_T}$ac_res" >&6; }
22848
22849 fi
22850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22851   cat >>confdefs.h <<_ACEOF
22852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22853 _ACEOF
22854
22855 fi
22856
22857 done
22858
22859
22860 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22861 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22862 if test "${ac_cv_c_const+set}" = set; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h.  */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h.  */
22871
22872 int
22873 main ()
22874 {
22875 /* FIXME: Include the comments suggested by Paul. */
22876 #ifndef __cplusplus
22877   /* Ultrix mips cc rejects this.  */
22878   typedef int charset[2];
22879   const charset x;
22880   /* SunOS 4.1.1 cc rejects this.  */
22881   char const *const *ccp;
22882   char **p;
22883   /* NEC SVR4.0.2 mips cc rejects this.  */
22884   struct point {int x, y;};
22885   static struct point const zero = {0,0};
22886   /* AIX XL C 1.02.0.0 rejects this.
22887      It does not let you subtract one const X* pointer from another in
22888      an arm of an if-expression whose if-part is not a constant
22889      expression */
22890   const char *g = "string";
22891   ccp = &g + (g ? g-g : 0);
22892   /* HPUX 7.0 cc rejects these. */
22893   ++ccp;
22894   p = (char**) ccp;
22895   ccp = (char const *const *) p;
22896   { /* SCO 3.2v4 cc rejects this.  */
22897     char *t;
22898     char const *s = 0 ? (char *) 0 : (char const *) 0;
22899
22900     *t++ = 0;
22901     if (s) return 0;
22902   }
22903   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22904     int x[] = {25, 17};
22905     const int *foo = &x[0];
22906     ++foo;
22907   }
22908   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22909     typedef const int *iptr;
22910     iptr p = 0;
22911     ++p;
22912   }
22913   { /* AIX XL C 1.02.0.0 rejects this saying
22914        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22915     struct s { int j; const int *ap[3]; };
22916     struct s *b; b->j = 5;
22917   }
22918   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22919     const int foo = 10;
22920     if (!foo) return 0;
22921   }
22922   return !x[0] && !zero.x;
22923 #endif
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22931   (eval $ac_compile) 2>conftest.er1
22932   ac_status=$?
22933   grep -v '^ *+' conftest.er1 >conftest.err
22934   rm -f conftest.er1
22935   cat conftest.err >&5
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); } &&
22938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22940   (eval $ac_try) 2>&5
22941   ac_status=$?
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); }; } &&
22944          { ac_try='test -s conftest.$ac_objext'
22945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); }; }; then
22950   ac_cv_c_const=yes
22951 else
22952   echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22954
22955         ac_cv_c_const=no
22956 fi
22957
22958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22959 fi
22960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22962 if test $ac_cv_c_const = no; then
22963
22964 cat >>confdefs.h <<\_ACEOF
22965 #define const
22966 _ACEOF
22967
22968 fi
22969
22970 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22971 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22972 if test "${ac_cv_type_uid_t+set}" = set; then
22973   echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975   cat >conftest.$ac_ext <<_ACEOF
22976 /* confdefs.h.  */
22977 _ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h.  */
22981 #include <sys/types.h>
22982
22983 _ACEOF
22984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22985   $EGREP "uid_t" >/dev/null 2>&1; then
22986   ac_cv_type_uid_t=yes
22987 else
22988   ac_cv_type_uid_t=no
22989 fi
22990 rm -f conftest*
22991
22992 fi
22993 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22994 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22995 if test $ac_cv_type_uid_t = no; then
22996
22997 cat >>confdefs.h <<\_ACEOF
22998 #define uid_t int
22999 _ACEOF
23000
23001
23002 cat >>confdefs.h <<\_ACEOF
23003 #define gid_t int
23004 _ACEOF
23005
23006 fi
23007
23008 { echo "$as_me:$LINENO: checking for inline" >&5
23009 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23010 if test "${ac_cv_c_inline+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013   ac_cv_c_inline=no
23014 for ac_kw in inline __inline__ __inline; do
23015   cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021 #ifndef __cplusplus
23022 typedef int foo_t;
23023 static $ac_kw foo_t static_foo () {return 0; }
23024 $ac_kw foo_t foo () {return 0; }
23025 #endif
23026
23027 _ACEOF
23028 rm -f conftest.$ac_objext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23030   (eval $ac_compile) 2>conftest.er1
23031   ac_status=$?
23032   grep -v '^ *+' conftest.er1 >conftest.err
23033   rm -f conftest.er1
23034   cat conftest.err >&5
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); } &&
23037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039   (eval $ac_try) 2>&5
23040   ac_status=$?
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); }; } &&
23043          { ac_try='test -s conftest.$ac_objext'
23044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045   (eval $ac_try) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; }; then
23049   ac_cv_c_inline=$ac_kw
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054
23055 fi
23056
23057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23058   test "$ac_cv_c_inline" != no && break
23059 done
23060
23061 fi
23062 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23063 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23064
23065
23066 case $ac_cv_c_inline in
23067   inline | yes) ;;
23068   *)
23069     case $ac_cv_c_inline in
23070       no) ac_val=;;
23071       *) ac_val=$ac_cv_c_inline;;
23072     esac
23073     cat >>confdefs.h <<_ACEOF
23074 #ifndef __cplusplus
23075 #define inline $ac_val
23076 #endif
23077 _ACEOF
23078     ;;
23079 esac
23080
23081 { echo "$as_me:$LINENO: checking for off_t" >&5
23082 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23083 if test "${ac_cv_type_off_t+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086   cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092 $ac_includes_default
23093 typedef off_t ac__type_new_;
23094 int
23095 main ()
23096 {
23097 if ((ac__type_new_ *) 0)
23098   return 0;
23099 if (sizeof (ac__type_new_))
23100   return 0;
23101   ;
23102   return 0;
23103 }
23104 _ACEOF
23105 rm -f conftest.$ac_objext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23107   (eval $ac_compile) 2>conftest.er1
23108   ac_status=$?
23109   grep -v '^ *+' conftest.er1 >conftest.err
23110   rm -f conftest.er1
23111   cat conftest.err >&5
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); } &&
23114          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116   (eval $ac_try) 2>&5
23117   ac_status=$?
23118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119   (exit $ac_status); }; } &&
23120          { ac_try='test -s conftest.$ac_objext'
23121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122   (eval $ac_try) 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; }; then
23126   ac_cv_type_off_t=yes
23127 else
23128   echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.$ac_ext >&5
23130
23131         ac_cv_type_off_t=no
23132 fi
23133
23134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23135 fi
23136 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23137 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23138 if test $ac_cv_type_off_t = yes; then
23139   :
23140 else
23141
23142 cat >>confdefs.h <<_ACEOF
23143 #define off_t long int
23144 _ACEOF
23145
23146 fi
23147
23148 { echo "$as_me:$LINENO: checking for pid_t" >&5
23149 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23150 if test "${ac_cv_type_pid_t+set}" = set; then
23151   echo $ECHO_N "(cached) $ECHO_C" >&6
23152 else
23153   cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159 $ac_includes_default
23160 typedef pid_t ac__type_new_;
23161 int
23162 main ()
23163 {
23164 if ((ac__type_new_ *) 0)
23165   return 0;
23166 if (sizeof (ac__type_new_))
23167   return 0;
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174   (eval $ac_compile) 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } &&
23181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183   (eval $ac_try) 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; } &&
23187          { ac_try='test -s conftest.$ac_objext'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }; then
23193   ac_cv_type_pid_t=yes
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         ac_cv_type_pid_t=no
23199 fi
23200
23201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23202 fi
23203 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23204 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23205 if test $ac_cv_type_pid_t = yes; then
23206   :
23207 else
23208
23209 cat >>confdefs.h <<_ACEOF
23210 #define pid_t int
23211 _ACEOF
23212
23213 fi
23214
23215 { echo "$as_me:$LINENO: checking for size_t" >&5
23216 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23217 if test "${ac_cv_type_size_t+set}" = set; then
23218   echo $ECHO_N "(cached) $ECHO_C" >&6
23219 else
23220   cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 $ac_includes_default
23227 typedef size_t ac__type_new_;
23228 int
23229 main ()
23230 {
23231 if ((ac__type_new_ *) 0)
23232   return 0;
23233 if (sizeof (ac__type_new_))
23234   return 0;
23235   ;
23236   return 0;
23237 }
23238 _ACEOF
23239 rm -f conftest.$ac_objext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23241   (eval $ac_compile) 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } &&
23248          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; } &&
23254          { ac_try='test -s conftest.$ac_objext'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; }; then
23260   ac_cv_type_size_t=yes
23261 else
23262   echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23264
23265         ac_cv_type_size_t=no
23266 fi
23267
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23269 fi
23270 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23271 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23272 if test $ac_cv_type_size_t = yes; then
23273   :
23274 else
23275
23276 cat >>confdefs.h <<_ACEOF
23277 #define size_t unsigned int
23278 _ACEOF
23279
23280 fi
23281
23282 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23284 if test "${ac_cv_header_time+set}" = set; then
23285   echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287   cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h.  */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h.  */
23293 #include <sys/types.h>
23294 #include <sys/time.h>
23295 #include <time.h>
23296
23297 int
23298 main ()
23299 {
23300 if ((struct tm *) 0)
23301 return 0;
23302   ;
23303   return 0;
23304 }
23305 _ACEOF
23306 rm -f conftest.$ac_objext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23308   (eval $ac_compile) 2>conftest.er1
23309   ac_status=$?
23310   grep -v '^ *+' conftest.er1 >conftest.err
23311   rm -f conftest.er1
23312   cat conftest.err >&5
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); } &&
23315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317   (eval $ac_try) 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); }; } &&
23321          { ac_try='test -s conftest.$ac_objext'
23322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323   (eval $ac_try) 2>&5
23324   ac_status=$?
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); }; }; then
23327   ac_cv_header_time=yes
23328 else
23329   echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23331
23332         ac_cv_header_time=no
23333 fi
23334
23335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23336 fi
23337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23339 if test $ac_cv_header_time = yes; then
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define TIME_WITH_SYS_TIME 1
23343 _ACEOF
23344
23345 fi
23346
23347 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23348 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23349 if test "${ac_cv_struct_tm+set}" = set; then
23350   echo $ECHO_N "(cached) $ECHO_C" >&6
23351 else
23352   cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h.  */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h.  */
23358 #include <sys/types.h>
23359 #include <time.h>
23360
23361 int
23362 main ()
23363 {
23364 struct tm *tp; tp->tm_sec;
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371   (eval $ac_compile) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; } &&
23384          { ac_try='test -s conftest.$ac_objext'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }; then
23390   ac_cv_struct_tm=time.h
23391 else
23392   echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395         ac_cv_struct_tm=sys/time.h
23396 fi
23397
23398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23399 fi
23400 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23401 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23402 if test $ac_cv_struct_tm = sys/time.h; then
23403
23404 cat >>confdefs.h <<\_ACEOF
23405 #define TM_IN_SYS_TIME 1
23406 _ACEOF
23407
23408 fi
23409
23410
23411 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23412 # for constant arguments.  Useless!
23413 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23414 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23415 if test "${ac_cv_working_alloca_h+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 #include <alloca.h>
23425 int
23426 main ()
23427 {
23428 char *p = (char *) alloca (2 * sizeof (int));
23429   ;
23430   return 0;
23431 }
23432 _ACEOF
23433 rm -f conftest.$ac_objext conftest$ac_exeext
23434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23435   (eval $ac_link) 2>conftest.er1
23436   ac_status=$?
23437   grep -v '^ *+' conftest.er1 >conftest.err
23438   rm -f conftest.er1
23439   cat conftest.err >&5
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); } &&
23442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; } &&
23448          { ac_try='test -s conftest$ac_exeext'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; }; then
23454   ac_cv_working_alloca_h=yes
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459         ac_cv_working_alloca_h=no
23460 fi
23461
23462 rm -f conftest.err conftest.$ac_objext \
23463       conftest$ac_exeext conftest.$ac_ext
23464 fi
23465 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23466 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23467 if test $ac_cv_working_alloca_h = yes; then
23468
23469 cat >>confdefs.h <<\_ACEOF
23470 #define HAVE_ALLOCA_H 1
23471 _ACEOF
23472
23473 fi
23474
23475 { echo "$as_me:$LINENO: checking for alloca" >&5
23476 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23477 if test "${ac_cv_func_alloca_works+set}" = set; then
23478   echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23480   cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h.  */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h.  */
23486 #ifdef __GNUC__
23487 # define alloca __builtin_alloca
23488 #else
23489 # ifdef _MSC_VER
23490 #  include <malloc.h>
23491 #  define alloca _alloca
23492 # else
23493 #  if HAVE_ALLOCA_H
23494 #   include <alloca.h>
23495 #  else
23496 #   ifdef _AIX
23497  #pragma alloca
23498 #   else
23499 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23500 char *alloca ();
23501 #    endif
23502 #   endif
23503 #  endif
23504 # endif
23505 #endif
23506
23507 int
23508 main ()
23509 {
23510 char *p = (char *) alloca (1);
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext conftest$ac_exeext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23517   (eval $ac_link) 2>conftest.er1
23518   ac_status=$?
23519   grep -v '^ *+' conftest.er1 >conftest.err
23520   rm -f conftest.er1
23521   cat conftest.err >&5
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); } &&
23524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526   (eval $ac_try) 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); }; } &&
23530          { ac_try='test -s conftest$ac_exeext'
23531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532   (eval $ac_try) 2>&5
23533   ac_status=$?
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); }; }; then
23536   ac_cv_func_alloca_works=yes
23537 else
23538   echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541         ac_cv_func_alloca_works=no
23542 fi
23543
23544 rm -f conftest.err conftest.$ac_objext \
23545       conftest$ac_exeext conftest.$ac_ext
23546 fi
23547 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23548 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23549
23550 if test $ac_cv_func_alloca_works = yes; then
23551
23552 cat >>confdefs.h <<\_ACEOF
23553 #define HAVE_ALLOCA 1
23554 _ACEOF
23555
23556 else
23557   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23558 # that cause trouble.  Some versions do not even contain alloca or
23559 # contain a buggy version.  If you still want to use their alloca,
23560 # use ar to extract alloca.o from them instead of compiling alloca.c.
23561
23562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23563
23564 cat >>confdefs.h <<\_ACEOF
23565 #define C_ALLOCA 1
23566 _ACEOF
23567
23568
23569 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23570 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23571 if test "${ac_cv_os_cray+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574   cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 #if defined CRAY && ! defined CRAY2
23581 webecray
23582 #else
23583 wenotbecray
23584 #endif
23585
23586 _ACEOF
23587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23588   $EGREP "webecray" >/dev/null 2>&1; then
23589   ac_cv_os_cray=yes
23590 else
23591   ac_cv_os_cray=no
23592 fi
23593 rm -f conftest*
23594
23595 fi
23596 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23597 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23598 if test $ac_cv_os_cray = yes; then
23599   for ac_func in _getb67 GETB67 getb67; do
23600     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606   cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h.  */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h.  */
23612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23614 #define $ac_func innocuous_$ac_func
23615
23616 /* System header to define __stub macros and hopefully few prototypes,
23617     which can conflict with char $ac_func (); below.
23618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23619     <limits.h> exists even on freestanding compilers.  */
23620
23621 #ifdef __STDC__
23622 # include <limits.h>
23623 #else
23624 # include <assert.h>
23625 #endif
23626
23627 #undef $ac_func
23628
23629 /* Override any GCC internal prototype to avoid an error.
23630    Use char because int might match the return type of a GCC
23631    builtin and then its argument prototype would still apply.  */
23632 #ifdef __cplusplus
23633 extern "C"
23634 #endif
23635 char $ac_func ();
23636 /* The GNU C library defines this for functions which it implements
23637     to always fail with ENOSYS.  Some functions are actually named
23638     something starting with __ and the normal name is an alias.  */
23639 #if defined __stub_$ac_func || defined __stub___$ac_func
23640 choke me
23641 #endif
23642
23643 int
23644 main ()
23645 {
23646 return $ac_func ();
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>conftest.er1
23654   ac_status=$?
23655   grep -v '^ *+' conftest.er1 >conftest.err
23656   rm -f conftest.er1
23657   cat conftest.err >&5
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); } &&
23660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; } &&
23666          { ac_try='test -s conftest$ac_exeext'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   eval "$as_ac_var=yes"
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677         eval "$as_ac_var=no"
23678 fi
23679
23680 rm -f conftest.err conftest.$ac_objext \
23681       conftest$ac_exeext conftest.$ac_ext
23682 fi
23683 ac_res=`eval echo '${'$as_ac_var'}'`
23684                { echo "$as_me:$LINENO: result: $ac_res" >&5
23685 echo "${ECHO_T}$ac_res" >&6; }
23686 if test `eval echo '${'$as_ac_var'}'` = yes; then
23687
23688 cat >>confdefs.h <<_ACEOF
23689 #define CRAY_STACKSEG_END $ac_func
23690 _ACEOF
23691
23692     break
23693 fi
23694
23695   done
23696 fi
23697
23698 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23699 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23700 if test "${ac_cv_c_stack_direction+set}" = set; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   if test "$cross_compiling" = yes; then
23704   ac_cv_c_stack_direction=0
23705 else
23706   cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712 $ac_includes_default
23713 int
23714 find_stack_direction ()
23715 {
23716   static char *addr = 0;
23717   auto char dummy;
23718   if (addr == 0)
23719     {
23720       addr = &dummy;
23721       return find_stack_direction ();
23722     }
23723   else
23724     return (&dummy > addr) ? 1 : -1;
23725 }
23726
23727 int
23728 main ()
23729 {
23730   return find_stack_direction () < 0;
23731 }
23732 _ACEOF
23733 rm -f conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735   (eval $ac_link) 2>&5
23736   ac_status=$?
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; }; then
23744   ac_cv_c_stack_direction=1
23745 else
23746   echo "$as_me: program exited with status $ac_status" >&5
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750 ( exit $ac_status )
23751 ac_cv_c_stack_direction=-1
23752 fi
23753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23754 fi
23755
23756
23757 fi
23758 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23759 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23760
23761 cat >>confdefs.h <<_ACEOF
23762 #define STACK_DIRECTION $ac_cv_c_stack_direction
23763 _ACEOF
23764
23765
23766 fi
23767
23768
23769
23770
23771
23772
23773 ac_header_dirent=no
23774 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23775   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23776 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23777 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23779   echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781   cat >conftest.$ac_ext <<_ACEOF
23782 /* confdefs.h.  */
23783 _ACEOF
23784 cat confdefs.h >>conftest.$ac_ext
23785 cat >>conftest.$ac_ext <<_ACEOF
23786 /* end confdefs.h.  */
23787 #include <sys/types.h>
23788 #include <$ac_hdr>
23789
23790 int
23791 main ()
23792 {
23793 if ((DIR *) 0)
23794 return 0;
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23801   (eval $ac_compile) 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } &&
23808          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810   (eval $ac_try) 2>&5
23811   ac_status=$?
23812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813   (exit $ac_status); }; } &&
23814          { ac_try='test -s conftest.$ac_objext'
23815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816   (eval $ac_try) 2>&5
23817   ac_status=$?
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); }; }; then
23820   eval "$as_ac_Header=yes"
23821 else
23822   echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.$ac_ext >&5
23824
23825         eval "$as_ac_Header=no"
23826 fi
23827
23828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23829 fi
23830 ac_res=`eval echo '${'$as_ac_Header'}'`
23831                { echo "$as_me:$LINENO: result: $ac_res" >&5
23832 echo "${ECHO_T}$ac_res" >&6; }
23833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23834   cat >>confdefs.h <<_ACEOF
23835 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23836 _ACEOF
23837
23838 ac_header_dirent=$ac_hdr; break
23839 fi
23840
23841 done
23842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23843 if test $ac_header_dirent = dirent.h; then
23844   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23846 if test "${ac_cv_search_opendir+set}" = set; then
23847   echo $ECHO_N "(cached) $ECHO_C" >&6
23848 else
23849   ac_func_search_save_LIBS=$LIBS
23850 cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856
23857 /* Override any GCC internal prototype to avoid an error.
23858    Use char because int might match the return type of a GCC
23859    builtin and then its argument prototype would still apply.  */
23860 #ifdef __cplusplus
23861 extern "C"
23862 #endif
23863 char opendir ();
23864 int
23865 main ()
23866 {
23867 return opendir ();
23868   ;
23869   return 0;
23870 }
23871 _ACEOF
23872 for ac_lib in '' dir; do
23873   if test -z "$ac_lib"; then
23874     ac_res="none required"
23875   else
23876     ac_res=-l$ac_lib
23877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23878   fi
23879   rm -f conftest.$ac_objext conftest$ac_exeext
23880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23881   (eval $ac_link) 2>conftest.er1
23882   ac_status=$?
23883   grep -v '^ *+' conftest.er1 >conftest.err
23884   rm -f conftest.er1
23885   cat conftest.err >&5
23886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); } &&
23888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890   (eval $ac_try) 2>&5
23891   ac_status=$?
23892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893   (exit $ac_status); }; } &&
23894          { ac_try='test -s conftest$ac_exeext'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; }; then
23900   ac_cv_search_opendir=$ac_res
23901 else
23902   echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23904
23905
23906 fi
23907
23908 rm -f conftest.err conftest.$ac_objext \
23909       conftest$ac_exeext
23910   if test "${ac_cv_search_opendir+set}" = set; then
23911   break
23912 fi
23913 done
23914 if test "${ac_cv_search_opendir+set}" = set; then
23915   :
23916 else
23917   ac_cv_search_opendir=no
23918 fi
23919 rm conftest.$ac_ext
23920 LIBS=$ac_func_search_save_LIBS
23921 fi
23922 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23923 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
23924 ac_res=$ac_cv_search_opendir
23925 if test "$ac_res" != no; then
23926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23927
23928 fi
23929
23930 else
23931   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
23932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
23933 if test "${ac_cv_search_opendir+set}" = set; then
23934   echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936   ac_func_search_save_LIBS=$LIBS
23937 cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h.  */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h.  */
23943
23944 /* Override any GCC internal prototype to avoid an error.
23945    Use char because int might match the return type of a GCC
23946    builtin and then its argument prototype would still apply.  */
23947 #ifdef __cplusplus
23948 extern "C"
23949 #endif
23950 char opendir ();
23951 int
23952 main ()
23953 {
23954 return opendir ();
23955   ;
23956   return 0;
23957 }
23958 _ACEOF
23959 for ac_lib in '' x; do
23960   if test -z "$ac_lib"; then
23961     ac_res="none required"
23962   else
23963     ac_res=-l$ac_lib
23964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23965   fi
23966   rm -f conftest.$ac_objext conftest$ac_exeext
23967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23968   (eval $ac_link) 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } &&
23975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; } &&
23981          { ac_try='test -s conftest$ac_exeext'
23982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983   (eval $ac_try) 2>&5
23984   ac_status=$?
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); }; }; then
23987   ac_cv_search_opendir=$ac_res
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992
23993 fi
23994
23995 rm -f conftest.err conftest.$ac_objext \
23996       conftest$ac_exeext
23997   if test "${ac_cv_search_opendir+set}" = set; then
23998   break
23999 fi
24000 done
24001 if test "${ac_cv_search_opendir+set}" = set; then
24002   :
24003 else
24004   ac_cv_search_opendir=no
24005 fi
24006 rm conftest.$ac_ext
24007 LIBS=$ac_func_search_save_LIBS
24008 fi
24009 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24010 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24011 ac_res=$ac_cv_search_opendir
24012 if test "$ac_res" != no; then
24013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24014
24015 fi
24016
24017 fi
24018
24019 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24020 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24021 if test "${ac_cv_func_closedir_void+set}" = set; then
24022   echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024   if test "$cross_compiling" = yes; then
24025   ac_cv_func_closedir_void=yes
24026 else
24027   cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h.  */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h.  */
24033 $ac_includes_default
24034 #include <$ac_header_dirent>
24035 #ifndef __cplusplus
24036 int closedir ();
24037 #endif
24038
24039 int
24040 main ()
24041 {
24042 return closedir (opendir (".")) != 0;
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 rm -f conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049   (eval $ac_link) 2>&5
24050   ac_status=$?
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054   (eval $ac_try) 2>&5
24055   ac_status=$?
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); }; }; then
24058   ac_cv_func_closedir_void=no
24059 else
24060   echo "$as_me: program exited with status $ac_status" >&5
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ( exit $ac_status )
24065 ac_cv_func_closedir_void=yes
24066 fi
24067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24068 fi
24069
24070
24071 fi
24072 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24073 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24074 if test $ac_cv_func_closedir_void = yes; then
24075
24076 cat >>confdefs.h <<\_ACEOF
24077 #define CLOSEDIR_VOID 1
24078 _ACEOF
24079
24080 fi
24081
24082 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24083 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24084 if test "${ac_cv_lib_error_at_line+set}" = set; then
24085   echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087   cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093 $ac_includes_default
24094 int
24095 main ()
24096 {
24097 error_at_line (0, 0, "", 0, "");
24098   ;
24099   return 0;
24100 }
24101 _ACEOF
24102 rm -f conftest.$ac_objext conftest$ac_exeext
24103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24104   (eval $ac_link) 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } &&
24111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; } &&
24117          { ac_try='test -s conftest$ac_exeext'
24118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); }; }; then
24123   ac_cv_lib_error_at_line=yes
24124 else
24125   echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24127
24128         ac_cv_lib_error_at_line=no
24129 fi
24130
24131 rm -f conftest.err conftest.$ac_objext \
24132       conftest$ac_exeext conftest.$ac_ext
24133 fi
24134 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24135 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24136 if test $ac_cv_lib_error_at_line = no; then
24137   case " $LIBOBJS " in
24138   *" error.$ac_objext "* ) ;;
24139   *) LIBOBJS="$LIBOBJS error.$ac_objext"
24140  ;;
24141 esac
24142
24143 fi
24144
24145
24146 for ac_header in vfork.h
24147 do
24148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24153   echo $ECHO_N "(cached) $ECHO_C" >&6
24154 fi
24155 ac_res=`eval echo '${'$as_ac_Header'}'`
24156                { echo "$as_me:$LINENO: result: $ac_res" >&5
24157 echo "${ECHO_T}$ac_res" >&6; }
24158 else
24159   # Is the header compilable?
24160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24162 cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168 $ac_includes_default
24169 #include <$ac_header>
24170 _ACEOF
24171 rm -f conftest.$ac_objext
24172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24173   (eval $ac_compile) 2>conftest.er1
24174   ac_status=$?
24175   grep -v '^ *+' conftest.er1 >conftest.err
24176   rm -f conftest.er1
24177   cat conftest.err >&5
24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179   (exit $ac_status); } &&
24180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182   (eval $ac_try) 2>&5
24183   ac_status=$?
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); }; } &&
24186          { ac_try='test -s conftest.$ac_objext'
24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188   (eval $ac_try) 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; }; then
24192   ac_header_compiler=yes
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197         ac_header_compiler=no
24198 fi
24199
24200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24202 echo "${ECHO_T}$ac_header_compiler" >&6; }
24203
24204 # Is the header present?
24205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213 #include <$ac_header>
24214 _ACEOF
24215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24217   ac_status=$?
24218   grep -v '^ *+' conftest.er1 >conftest.err
24219   rm -f conftest.er1
24220   cat conftest.err >&5
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } >/dev/null; then
24223   if test -s conftest.err; then
24224     ac_cpp_err=$ac_c_preproc_warn_flag
24225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24226   else
24227     ac_cpp_err=
24228   fi
24229 else
24230   ac_cpp_err=yes
24231 fi
24232 if test -z "$ac_cpp_err"; then
24233   ac_header_preproc=yes
24234 else
24235   echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238   ac_header_preproc=no
24239 fi
24240
24241 rm -f conftest.err conftest.$ac_ext
24242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24243 echo "${ECHO_T}$ac_header_preproc" >&6; }
24244
24245 # So?  What about this header?
24246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24247   yes:no: )
24248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24252     ac_header_preproc=yes
24253     ;;
24254   no:yes:* )
24255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24267     ( cat <<\_ASBOX
24268 ## ------------------------------- ##
24269 ## Report this to nfs@lists.sf.net ##
24270 ## ------------------------------- ##
24271 _ASBOX
24272      ) | sed "s/^/$as_me: WARNING:     /" >&2
24273     ;;
24274 esac
24275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24278   echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280   eval "$as_ac_Header=\$ac_header_preproc"
24281 fi
24282 ac_res=`eval echo '${'$as_ac_Header'}'`
24283                { echo "$as_me:$LINENO: result: $ac_res" >&5
24284 echo "${ECHO_T}$ac_res" >&6; }
24285
24286 fi
24287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24288   cat >>confdefs.h <<_ACEOF
24289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24290 _ACEOF
24291
24292 fi
24293
24294 done
24295
24296
24297
24298 for ac_func in fork vfork
24299 do
24300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24304   echo $ECHO_N "(cached) $ECHO_C" >&6
24305 else
24306   cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24314 #define $ac_func innocuous_$ac_func
24315
24316 /* System header to define __stub macros and hopefully few prototypes,
24317     which can conflict with char $ac_func (); below.
24318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24319     <limits.h> exists even on freestanding compilers.  */
24320
24321 #ifdef __STDC__
24322 # include <limits.h>
24323 #else
24324 # include <assert.h>
24325 #endif
24326
24327 #undef $ac_func
24328
24329 /* Override any GCC internal prototype to avoid an error.
24330    Use char because int might match the return type of a GCC
24331    builtin and then its argument prototype would still apply.  */
24332 #ifdef __cplusplus
24333 extern "C"
24334 #endif
24335 char $ac_func ();
24336 /* The GNU C library defines this for functions which it implements
24337     to always fail with ENOSYS.  Some functions are actually named
24338     something starting with __ and the normal name is an alias.  */
24339 #if defined __stub_$ac_func || defined __stub___$ac_func
24340 choke me
24341 #endif
24342
24343 int
24344 main ()
24345 {
24346 return $ac_func ();
24347   ;
24348   return 0;
24349 }
24350 _ACEOF
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24353   (eval $ac_link) 2>conftest.er1
24354   ac_status=$?
24355   grep -v '^ *+' conftest.er1 >conftest.err
24356   rm -f conftest.er1
24357   cat conftest.err >&5
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); } &&
24360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362   (eval $ac_try) 2>&5
24363   ac_status=$?
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); }; } &&
24366          { ac_try='test -s conftest$ac_exeext'
24367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368   (eval $ac_try) 2>&5
24369   ac_status=$?
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); }; }; then
24372   eval "$as_ac_var=yes"
24373 else
24374   echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24376
24377         eval "$as_ac_var=no"
24378 fi
24379
24380 rm -f conftest.err conftest.$ac_objext \
24381       conftest$ac_exeext conftest.$ac_ext
24382 fi
24383 ac_res=`eval echo '${'$as_ac_var'}'`
24384                { echo "$as_me:$LINENO: result: $ac_res" >&5
24385 echo "${ECHO_T}$ac_res" >&6; }
24386 if test `eval echo '${'$as_ac_var'}'` = yes; then
24387   cat >>confdefs.h <<_ACEOF
24388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24389 _ACEOF
24390
24391 fi
24392 done
24393
24394 if test "x$ac_cv_func_fork" = xyes; then
24395   { echo "$as_me:$LINENO: checking for working fork" >&5
24396 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24397 if test "${ac_cv_func_fork_works+set}" = set; then
24398   echo $ECHO_N "(cached) $ECHO_C" >&6
24399 else
24400   if test "$cross_compiling" = yes; then
24401   ac_cv_func_fork_works=cross
24402 else
24403   cat >conftest.$ac_ext <<_ACEOF
24404 /* confdefs.h.  */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h.  */
24409 $ac_includes_default
24410 int
24411 main ()
24412 {
24413
24414           /* By Ruediger Kuhlmann. */
24415           return fork () < 0;
24416
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 rm -f conftest$ac_exeext
24422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24423   (eval $ac_link) 2>&5
24424   ac_status=$?
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   ac_cv_func_fork_works=yes
24433 else
24434   echo "$as_me: program exited with status $ac_status" >&5
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24437
24438 ( exit $ac_status )
24439 ac_cv_func_fork_works=no
24440 fi
24441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24442 fi
24443
24444
24445 fi
24446 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24447 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24448
24449 else
24450   ac_cv_func_fork_works=$ac_cv_func_fork
24451 fi
24452 if test "x$ac_cv_func_fork_works" = xcross; then
24453   case $host in
24454     *-*-amigaos* | *-*-msdosdjgpp*)
24455       # Override, as these systems have only a dummy fork() stub
24456       ac_cv_func_fork_works=no
24457       ;;
24458     *)
24459       ac_cv_func_fork_works=yes
24460       ;;
24461   esac
24462   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24463 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24464 fi
24465 ac_cv_func_vfork_works=$ac_cv_func_vfork
24466 if test "x$ac_cv_func_vfork" = xyes; then
24467   { echo "$as_me:$LINENO: checking for working vfork" >&5
24468 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24469 if test "${ac_cv_func_vfork_works+set}" = set; then
24470   echo $ECHO_N "(cached) $ECHO_C" >&6
24471 else
24472   if test "$cross_compiling" = yes; then
24473   ac_cv_func_vfork_works=cross
24474 else
24475   cat >conftest.$ac_ext <<_ACEOF
24476 /* confdefs.h.  */
24477 _ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h.  */
24481 /* Thanks to Paul Eggert for this test.  */
24482 $ac_includes_default
24483 #include <sys/wait.h>
24484 #if HAVE_VFORK_H
24485 # include <vfork.h>
24486 #endif
24487 /* On some sparc systems, changes by the child to local and incoming
24488    argument registers are propagated back to the parent.  The compiler
24489    is told about this with #include <vfork.h>, but some compilers
24490    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24491    static variable whose address is put into a register that is
24492    clobbered by the vfork.  */
24493 static void
24494 #ifdef __cplusplus
24495 sparc_address_test (int arg)
24496 # else
24497 sparc_address_test (arg) int arg;
24498 #endif
24499 {
24500   static pid_t child;
24501   if (!child) {
24502     child = vfork ();
24503     if (child < 0) {
24504       perror ("vfork");
24505       _exit(2);
24506     }
24507     if (!child) {
24508       arg = getpid();
24509       write(-1, "", 0);
24510       _exit (arg);
24511     }
24512   }
24513 }
24514
24515 int
24516 main ()
24517 {
24518   pid_t parent = getpid ();
24519   pid_t child;
24520
24521   sparc_address_test (0);
24522
24523   child = vfork ();
24524
24525   if (child == 0) {
24526     /* Here is another test for sparc vfork register problems.  This
24527        test uses lots of local variables, at least as many local
24528        variables as main has allocated so far including compiler
24529        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24530        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24531        reuse the register of parent for one of the local variables,
24532        since it will think that parent can't possibly be used any more
24533        in this routine.  Assigning to the local variable will thus
24534        munge parent in the parent process.  */
24535     pid_t
24536       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24537       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24538     /* Convince the compiler that p..p7 are live; otherwise, it might
24539        use the same hardware register for all 8 local variables.  */
24540     if (p != p1 || p != p2 || p != p3 || p != p4
24541         || p != p5 || p != p6 || p != p7)
24542       _exit(1);
24543
24544     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24545        from child file descriptors.  If the child closes a descriptor
24546        before it execs or exits, this munges the parent's descriptor
24547        as well.  Test for this by closing stdout in the child.  */
24548     _exit(close(fileno(stdout)) != 0);
24549   } else {
24550     int status;
24551     struct stat st;
24552
24553     while (wait(&status) != child)
24554       ;
24555     return (
24556          /* Was there some problem with vforking?  */
24557          child < 0
24558
24559          /* Did the child fail?  (This shouldn't happen.)  */
24560          || status
24561
24562          /* Did the vfork/compiler bug occur?  */
24563          || parent != getpid()
24564
24565          /* Did the file descriptor bug occur?  */
24566          || fstat(fileno(stdout), &st) != 0
24567          );
24568   }
24569 }
24570 _ACEOF
24571 rm -f conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573   (eval $ac_link) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578   (eval $ac_try) 2>&5
24579   ac_status=$?
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); }; }; then
24582   ac_cv_func_vfork_works=yes
24583 else
24584   echo "$as_me: program exited with status $ac_status" >&5
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588 ( exit $ac_status )
24589 ac_cv_func_vfork_works=no
24590 fi
24591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24592 fi
24593
24594
24595 fi
24596 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24597 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24598
24599 fi;
24600 if test "x$ac_cv_func_fork_works" = xcross; then
24601   ac_cv_func_vfork_works=$ac_cv_func_vfork
24602   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24603 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24604 fi
24605
24606 if test "x$ac_cv_func_vfork_works" = xyes; then
24607
24608 cat >>confdefs.h <<\_ACEOF
24609 #define HAVE_WORKING_VFORK 1
24610 _ACEOF
24611
24612 else
24613
24614 cat >>confdefs.h <<\_ACEOF
24615 #define vfork fork
24616 _ACEOF
24617
24618 fi
24619 if test "x$ac_cv_func_fork_works" = xyes; then
24620
24621 cat >>confdefs.h <<\_ACEOF
24622 #define HAVE_WORKING_FORK 1
24623 _ACEOF
24624
24625 fi
24626
24627 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24628 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24629 if test "${ac_cv_type_getgroups+set}" = set; then
24630   echo $ECHO_N "(cached) $ECHO_C" >&6
24631 else
24632   if test "$cross_compiling" = yes; then
24633   ac_cv_type_getgroups=cross
24634 else
24635   cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641 /* Thanks to Mike Rendell for this test.  */
24642 $ac_includes_default
24643 #define NGID 256
24644 #undef MAX
24645 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24646
24647 int
24648 main ()
24649 {
24650   gid_t gidset[NGID];
24651   int i, n;
24652   union { gid_t gval; long int lval; }  val;
24653
24654   val.lval = -1;
24655   for (i = 0; i < NGID; i++)
24656     gidset[i] = val.gval;
24657   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24658                  gidset);
24659   /* Exit non-zero if getgroups seems to require an array of ints.  This
24660      happens when gid_t is short int but getgroups modifies an array
24661      of ints.  */
24662   return n > 0 && gidset[n] != val.gval;
24663 }
24664 _ACEOF
24665 rm -f conftest$ac_exeext
24666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24667   (eval $ac_link) 2>&5
24668   ac_status=$?
24669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672   (eval $ac_try) 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); }; }; then
24676   ac_cv_type_getgroups=gid_t
24677 else
24678   echo "$as_me: program exited with status $ac_status" >&5
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682 ( exit $ac_status )
24683 ac_cv_type_getgroups=int
24684 fi
24685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24686 fi
24687
24688
24689 if test $ac_cv_type_getgroups = cross; then
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 #include <unistd.h>
24697
24698 _ACEOF
24699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24700   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24701   ac_cv_type_getgroups=gid_t
24702 else
24703   ac_cv_type_getgroups=int
24704 fi
24705 rm -f conftest*
24706
24707 fi
24708 fi
24709 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24710 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24711
24712 cat >>confdefs.h <<_ACEOF
24713 #define GETGROUPS_T $ac_cv_type_getgroups
24714 _ACEOF
24715
24716
24717 { echo "$as_me:$LINENO: checking for getgroups" >&5
24718 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24719 if test "${ac_cv_func_getgroups+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24730 #define getgroups innocuous_getgroups
24731
24732 /* System header to define __stub macros and hopefully few prototypes,
24733     which can conflict with char getgroups (); below.
24734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24735     <limits.h> exists even on freestanding compilers.  */
24736
24737 #ifdef __STDC__
24738 # include <limits.h>
24739 #else
24740 # include <assert.h>
24741 #endif
24742
24743 #undef getgroups
24744
24745 /* Override any GCC internal prototype to avoid an error.
24746    Use char because int might match the return type of a GCC
24747    builtin and then its argument prototype would still apply.  */
24748 #ifdef __cplusplus
24749 extern "C"
24750 #endif
24751 char getgroups ();
24752 /* The GNU C library defines this for functions which it implements
24753     to always fail with ENOSYS.  Some functions are actually named
24754     something starting with __ and the normal name is an alias.  */
24755 #if defined __stub_getgroups || defined __stub___getgroups
24756 choke me
24757 #endif
24758
24759 int
24760 main ()
24761 {
24762 return getgroups ();
24763   ;
24764   return 0;
24765 }
24766 _ACEOF
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24769   (eval $ac_link) 2>conftest.er1
24770   ac_status=$?
24771   grep -v '^ *+' conftest.er1 >conftest.err
24772   rm -f conftest.er1
24773   cat conftest.err >&5
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); } &&
24776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778   (eval $ac_try) 2>&5
24779   ac_status=$?
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); }; } &&
24782          { ac_try='test -s conftest$ac_exeext'
24783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784   (eval $ac_try) 2>&5
24785   ac_status=$?
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); }; }; then
24788   ac_cv_func_getgroups=yes
24789 else
24790   echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24792
24793         ac_cv_func_getgroups=no
24794 fi
24795
24796 rm -f conftest.err conftest.$ac_objext \
24797       conftest$ac_exeext conftest.$ac_ext
24798 fi
24799 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24800 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
24801
24802
24803 # If we don't yet have getgroups, see if it's in -lbsd.
24804 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24805 ac_save_LIBS=$LIBS
24806 if test $ac_cv_func_getgroups = no; then
24807   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24808 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
24809 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lbsd  $LIBS"
24814 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h.  */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h.  */
24820
24821 /* Override any GCC internal prototype to avoid an error.
24822    Use char because int might match the return type of a GCC
24823    builtin and then its argument prototype would still apply.  */
24824 #ifdef __cplusplus
24825 extern "C"
24826 #endif
24827 char getgroups ();
24828 int
24829 main ()
24830 {
24831 return getgroups ();
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838   (eval $ac_link) 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } &&
24845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847   (eval $ac_try) 2>&5
24848   ac_status=$?
24849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850   (exit $ac_status); }; } &&
24851          { ac_try='test -s conftest$ac_exeext'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; }; then
24857   ac_cv_lib_bsd_getgroups=yes
24858 else
24859   echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24861
24862         ac_cv_lib_bsd_getgroups=no
24863 fi
24864
24865 rm -f conftest.err conftest.$ac_objext \
24866       conftest$ac_exeext conftest.$ac_ext
24867 LIBS=$ac_check_lib_save_LIBS
24868 fi
24869 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24870 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
24871 if test $ac_cv_lib_bsd_getgroups = yes; then
24872   GETGROUPS_LIB=-lbsd
24873 fi
24874
24875 fi
24876
24877 # Run the program to test the functionality of the system-supplied
24878 # getgroups function only if there is such a function.
24879 if test $ac_cv_func_getgroups = yes; then
24880   { echo "$as_me:$LINENO: checking for working getgroups" >&5
24881 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
24882 if test "${ac_cv_func_getgroups_works+set}" = set; then
24883   echo $ECHO_N "(cached) $ECHO_C" >&6
24884 else
24885   if test "$cross_compiling" = yes; then
24886   ac_cv_func_getgroups_works=no
24887 else
24888   cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894 $ac_includes_default
24895 int
24896 main ()
24897 {
24898 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24899        return getgroups (0, 0) == -1;
24900   ;
24901   return 0;
24902 }
24903 _ACEOF
24904 rm -f conftest$ac_exeext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906   (eval $ac_link) 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ac_cv_func_getgroups_works=yes
24916 else
24917   echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921 ( exit $ac_status )
24922 ac_cv_func_getgroups_works=no
24923 fi
24924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24925 fi
24926
24927
24928
24929 fi
24930 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24931 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
24932   if test $ac_cv_func_getgroups_works = yes; then
24933
24934 cat >>confdefs.h <<\_ACEOF
24935 #define HAVE_GETGROUPS 1
24936 _ACEOF
24937
24938   fi
24939 fi
24940 LIBS=$ac_save_LIBS
24941
24942 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
24943 # -lseq on Dynix/PTX, -lgen on Unixware.
24944 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
24945 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
24946 if test "${ac_cv_search_getmntent+set}" = set; then
24947   echo $ECHO_N "(cached) $ECHO_C" >&6
24948 else
24949   ac_func_search_save_LIBS=$LIBS
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956
24957 /* Override any GCC internal prototype to avoid an error.
24958    Use char because int might match the return type of a GCC
24959    builtin and then its argument prototype would still apply.  */
24960 #ifdef __cplusplus
24961 extern "C"
24962 #endif
24963 char getmntent ();
24964 int
24965 main ()
24966 {
24967 return getmntent ();
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 for ac_lib in '' sun seq gen; do
24973   if test -z "$ac_lib"; then
24974     ac_res="none required"
24975   else
24976     ac_res=-l$ac_lib
24977     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24978   fi
24979   rm -f conftest.$ac_objext conftest$ac_exeext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24981   (eval $ac_link) 2>conftest.er1
24982   ac_status=$?
24983   grep -v '^ *+' conftest.er1 >conftest.err
24984   rm -f conftest.er1
24985   cat conftest.err >&5
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); } &&
24988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; } &&
24994          { ac_try='test -s conftest$ac_exeext'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; }; then
25000   ac_cv_search_getmntent=$ac_res
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005
25006 fi
25007
25008 rm -f conftest.err conftest.$ac_objext \
25009       conftest$ac_exeext
25010   if test "${ac_cv_search_getmntent+set}" = set; then
25011   break
25012 fi
25013 done
25014 if test "${ac_cv_search_getmntent+set}" = set; then
25015   :
25016 else
25017   ac_cv_search_getmntent=no
25018 fi
25019 rm conftest.$ac_ext
25020 LIBS=$ac_func_search_save_LIBS
25021 fi
25022 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25023 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25024 ac_res=$ac_cv_search_getmntent
25025 if test "$ac_res" != no; then
25026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25027
25028 for ac_func in getmntent
25029 do
25030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25034   echo $ECHO_N "(cached) $ECHO_C" >&6
25035 else
25036   cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h.  */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h.  */
25042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25044 #define $ac_func innocuous_$ac_func
25045
25046 /* System header to define __stub macros and hopefully few prototypes,
25047     which can conflict with char $ac_func (); below.
25048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25049     <limits.h> exists even on freestanding compilers.  */
25050
25051 #ifdef __STDC__
25052 # include <limits.h>
25053 #else
25054 # include <assert.h>
25055 #endif
25056
25057 #undef $ac_func
25058
25059 /* Override any GCC internal prototype to avoid an error.
25060    Use char because int might match the return type of a GCC
25061    builtin and then its argument prototype would still apply.  */
25062 #ifdef __cplusplus
25063 extern "C"
25064 #endif
25065 char $ac_func ();
25066 /* The GNU C library defines this for functions which it implements
25067     to always fail with ENOSYS.  Some functions are actually named
25068     something starting with __ and the normal name is an alias.  */
25069 #if defined __stub_$ac_func || defined __stub___$ac_func
25070 choke me
25071 #endif
25072
25073 int
25074 main ()
25075 {
25076 return $ac_func ();
25077   ;
25078   return 0;
25079 }
25080 _ACEOF
25081 rm -f conftest.$ac_objext conftest$ac_exeext
25082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25083   (eval $ac_link) 2>conftest.er1
25084   ac_status=$?
25085   grep -v '^ *+' conftest.er1 >conftest.err
25086   rm -f conftest.er1
25087   cat conftest.err >&5
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); } &&
25090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092   (eval $ac_try) 2>&5
25093   ac_status=$?
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); }; } &&
25096          { ac_try='test -s conftest$ac_exeext'
25097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098   (eval $ac_try) 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   eval "$as_ac_var=yes"
25103 else
25104   echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25106
25107         eval "$as_ac_var=no"
25108 fi
25109
25110 rm -f conftest.err conftest.$ac_objext \
25111       conftest$ac_exeext conftest.$ac_ext
25112 fi
25113 ac_res=`eval echo '${'$as_ac_var'}'`
25114                { echo "$as_me:$LINENO: result: $ac_res" >&5
25115 echo "${ECHO_T}$ac_res" >&6; }
25116 if test `eval echo '${'$as_ac_var'}'` = yes; then
25117   cat >>confdefs.h <<_ACEOF
25118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25119 _ACEOF
25120
25121 fi
25122 done
25123
25124 fi
25125
25126
25127 if test $ac_cv_c_compiler_gnu = yes; then
25128     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25131   echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133     ac_pattern="Autoconf.*'x'"
25134   cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140 #include <sgtty.h>
25141 Autoconf TIOCGETP
25142 _ACEOF
25143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25144   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25145   ac_cv_prog_gcc_traditional=yes
25146 else
25147   ac_cv_prog_gcc_traditional=no
25148 fi
25149 rm -f conftest*
25150
25151
25152   if test $ac_cv_prog_gcc_traditional = no; then
25153     cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159 #include <termio.h>
25160 Autoconf TCGETA
25161 _ACEOF
25162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25163   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25164   ac_cv_prog_gcc_traditional=yes
25165 fi
25166 rm -f conftest*
25167
25168   fi
25169 fi
25170 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25172   if test $ac_cv_prog_gcc_traditional = yes; then
25173     CC="$CC -traditional"
25174   fi
25175 fi
25176
25177 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25178 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25179 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   rm -f conftest.sym conftest.file
25183 echo >conftest.file
25184 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25185   if test "$cross_compiling" = yes; then
25186   ac_cv_func_lstat_dereferences_slashed_symlink=no
25187 else
25188   cat >conftest.$ac_ext <<_ACEOF
25189 /* confdefs.h.  */
25190 _ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h.  */
25194 $ac_includes_default
25195 int
25196 main ()
25197 {
25198 struct stat sbuf;
25199      /* Linux will dereference the symlink and fail.
25200         That is better in the sense that it means we will not
25201         have to compile and use the lstat wrapper.  */
25202      return lstat ("conftest.sym/", &sbuf) != 0;
25203   ;
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209   (eval $ac_link) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214   (eval $ac_try) 2>&5
25215   ac_status=$?
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); }; }; then
25218   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25219 else
25220   echo "$as_me: program exited with status $ac_status" >&5
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25223
25224 ( exit $ac_status )
25225 ac_cv_func_lstat_dereferences_slashed_symlink=no
25226 fi
25227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25228 fi
25229
25230
25231 else
25232   # If the `ln -s' command failed, then we probably don't even
25233   # have an lstat function.
25234   ac_cv_func_lstat_dereferences_slashed_symlink=no
25235 fi
25236 rm -f conftest.sym conftest.file
25237
25238 fi
25239 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25240 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25241
25242 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25243
25244 cat >>confdefs.h <<_ACEOF
25245 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25246 _ACEOF
25247
25248
25249 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25250   case " $LIBOBJS " in
25251   *" lstat.$ac_objext "* ) ;;
25252   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25253  ;;
25254 esac
25255
25256 fi
25257
25258 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25259 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25260 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25261   echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263   if test "$cross_compiling" = yes; then
25264   ac_cv_func_lstat_empty_string_bug=yes
25265 else
25266   cat >conftest.$ac_ext <<_ACEOF
25267 /* confdefs.h.  */
25268 _ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h.  */
25272 $ac_includes_default
25273 int
25274 main ()
25275 {
25276 struct stat sbuf;
25277   return lstat ("", &sbuf) == 0;
25278   ;
25279   return 0;
25280 }
25281 _ACEOF
25282 rm -f conftest$ac_exeext
25283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25284   (eval $ac_link) 2>&5
25285   ac_status=$?
25286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289   (eval $ac_try) 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; }; then
25293   ac_cv_func_lstat_empty_string_bug=no
25294 else
25295   echo "$as_me: program exited with status $ac_status" >&5
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 ( exit $ac_status )
25300 ac_cv_func_lstat_empty_string_bug=yes
25301 fi
25302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25303 fi
25304
25305
25306 fi
25307 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25308 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25309 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25310   case " $LIBOBJS " in
25311   *" lstat.$ac_objext "* ) ;;
25312   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25313  ;;
25314 esac
25315
25316
25317 cat >>confdefs.h <<_ACEOF
25318 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25319 _ACEOF
25320
25321 fi
25322
25323 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25324 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25325 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25326   echo $ECHO_N "(cached) $ECHO_C" >&6
25327 else
25328   rm -f conftest.sym conftest.file
25329 echo >conftest.file
25330 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25331   if test "$cross_compiling" = yes; then
25332   ac_cv_func_lstat_dereferences_slashed_symlink=no
25333 else
25334   cat >conftest.$ac_ext <<_ACEOF
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 $ac_includes_default
25341 int
25342 main ()
25343 {
25344 struct stat sbuf;
25345      /* Linux will dereference the symlink and fail.
25346         That is better in the sense that it means we will not
25347         have to compile and use the lstat wrapper.  */
25348      return lstat ("conftest.sym/", &sbuf) != 0;
25349   ;
25350   return 0;
25351 }
25352 _ACEOF
25353 rm -f conftest$ac_exeext
25354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25355   (eval $ac_link) 2>&5
25356   ac_status=$?
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; }; then
25364   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25365 else
25366   echo "$as_me: program exited with status $ac_status" >&5
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370 ( exit $ac_status )
25371 ac_cv_func_lstat_dereferences_slashed_symlink=no
25372 fi
25373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25374 fi
25375
25376
25377 else
25378   # If the `ln -s' command failed, then we probably don't even
25379   # have an lstat function.
25380   ac_cv_func_lstat_dereferences_slashed_symlink=no
25381 fi
25382 rm -f conftest.sym conftest.file
25383
25384 fi
25385 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25386 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25387
25388 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25389
25390 cat >>confdefs.h <<_ACEOF
25391 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25392 _ACEOF
25393
25394
25395 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25396   case " $LIBOBJS " in
25397   *" lstat.$ac_objext "* ) ;;
25398   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25399  ;;
25400 esac
25401
25402 fi
25403
25404 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25405 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25406 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25407   echo $ECHO_N "(cached) $ECHO_C" >&6
25408 else
25409   cat >conftest.$ac_ext <<_ACEOF
25410 /* confdefs.h.  */
25411 _ACEOF
25412 cat confdefs.h >>conftest.$ac_ext
25413 cat >>conftest.$ac_ext <<_ACEOF
25414 /* end confdefs.h.  */
25415 #include <sys/types.h>
25416 int
25417 main ()
25418 {
25419 return makedev(0, 0);
25420   ;
25421   return 0;
25422 }
25423 _ACEOF
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426   (eval $ac_link) 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } &&
25433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25435   (eval $ac_try) 2>&5
25436   ac_status=$?
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); }; } &&
25439          { ac_try='test -s conftest$ac_exeext'
25440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441   (eval $ac_try) 2>&5
25442   ac_status=$?
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); }; }; then
25445   ac_cv_header_sys_types_h_makedev=yes
25446 else
25447   echo "$as_me: failed program was:" >&5
25448 sed 's/^/| /' conftest.$ac_ext >&5
25449
25450         ac_cv_header_sys_types_h_makedev=no
25451 fi
25452
25453 rm -f conftest.err conftest.$ac_objext \
25454       conftest$ac_exeext conftest.$ac_ext
25455
25456 fi
25457 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25458 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25459
25460 if test $ac_cv_header_sys_types_h_makedev = no; then
25461 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25462   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25463 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25464 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25465   echo $ECHO_N "(cached) $ECHO_C" >&6
25466 fi
25467 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25468 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25469 else
25470   # Is the header compilable?
25471 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25472 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 $ac_includes_default
25480 #include <sys/mkdev.h>
25481 _ACEOF
25482 rm -f conftest.$ac_objext
25483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484   (eval $ac_compile) 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } &&
25491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; } &&
25497          { ac_try='test -s conftest.$ac_objext'
25498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499   (eval $ac_try) 2>&5
25500   ac_status=$?
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); }; }; then
25503   ac_header_compiler=yes
25504 else
25505   echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508         ac_header_compiler=no
25509 fi
25510
25511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25513 echo "${ECHO_T}$ac_header_compiler" >&6; }
25514
25515 # Is the header present?
25516 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25517 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25518 cat >conftest.$ac_ext <<_ACEOF
25519 /* confdefs.h.  */
25520 _ACEOF
25521 cat confdefs.h >>conftest.$ac_ext
25522 cat >>conftest.$ac_ext <<_ACEOF
25523 /* end confdefs.h.  */
25524 #include <sys/mkdev.h>
25525 _ACEOF
25526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } >/dev/null; then
25534   if test -s conftest.err; then
25535     ac_cpp_err=$ac_c_preproc_warn_flag
25536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25537   else
25538     ac_cpp_err=
25539   fi
25540 else
25541   ac_cpp_err=yes
25542 fi
25543 if test -z "$ac_cpp_err"; then
25544   ac_header_preproc=yes
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549   ac_header_preproc=no
25550 fi
25551
25552 rm -f conftest.err conftest.$ac_ext
25553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25554 echo "${ECHO_T}$ac_header_preproc" >&6; }
25555
25556 # So?  What about this header?
25557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25558   yes:no: )
25559     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25560 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25561     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25562 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25563     ac_header_preproc=yes
25564     ;;
25565   no:yes:* )
25566     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25567 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25568     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25569 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25570     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25571 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25572     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25573 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25574     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25575 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25576     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25577 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25578     ( cat <<\_ASBOX
25579 ## ------------------------------- ##
25580 ## Report this to nfs@lists.sf.net ##
25581 ## ------------------------------- ##
25582 _ASBOX
25583      ) | sed "s/^/$as_me: WARNING:     /" >&2
25584     ;;
25585 esac
25586 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25587 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25588 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25589   echo $ECHO_N "(cached) $ECHO_C" >&6
25590 else
25591   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25592 fi
25593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25594 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25595
25596 fi
25597 if test $ac_cv_header_sys_mkdev_h = yes; then
25598
25599 cat >>confdefs.h <<\_ACEOF
25600 #define MAJOR_IN_MKDEV 1
25601 _ACEOF
25602
25603 fi
25604
25605
25606
25607   if test $ac_cv_header_sys_mkdev_h = no; then
25608     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25609   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25610 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25611 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25612   echo $ECHO_N "(cached) $ECHO_C" >&6
25613 fi
25614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25615 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25616 else
25617   # Is the header compilable?
25618 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25619 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25620 cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h.  */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h.  */
25626 $ac_includes_default
25627 #include <sys/sysmacros.h>
25628 _ACEOF
25629 rm -f conftest.$ac_objext
25630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25631   (eval $ac_compile) 2>conftest.er1
25632   ac_status=$?
25633   grep -v '^ *+' conftest.er1 >conftest.err
25634   rm -f conftest.er1
25635   cat conftest.err >&5
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); } &&
25638          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640   (eval $ac_try) 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; } &&
25644          { ac_try='test -s conftest.$ac_objext'
25645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646   (eval $ac_try) 2>&5
25647   ac_status=$?
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); }; }; then
25650   ac_header_compiler=yes
25651 else
25652   echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655         ac_header_compiler=no
25656 fi
25657
25658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6; }
25661
25662 # Is the header present?
25663 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25664 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671 #include <sys/sysmacros.h>
25672 _ACEOF
25673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25674   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25675   ac_status=$?
25676   grep -v '^ *+' conftest.er1 >conftest.err
25677   rm -f conftest.er1
25678   cat conftest.err >&5
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); } >/dev/null; then
25681   if test -s conftest.err; then
25682     ac_cpp_err=$ac_c_preproc_warn_flag
25683     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25684   else
25685     ac_cpp_err=
25686   fi
25687 else
25688   ac_cpp_err=yes
25689 fi
25690 if test -z "$ac_cpp_err"; then
25691   ac_header_preproc=yes
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696   ac_header_preproc=no
25697 fi
25698
25699 rm -f conftest.err conftest.$ac_ext
25700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25701 echo "${ECHO_T}$ac_header_preproc" >&6; }
25702
25703 # So?  What about this header?
25704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25705   yes:no: )
25706     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25707 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25708     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25709 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25710     ac_header_preproc=yes
25711     ;;
25712   no:yes:* )
25713     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25714 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25715     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25716 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25717     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25718 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25719     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25720 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25721     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25723     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25724 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25725     ( cat <<\_ASBOX
25726 ## ------------------------------- ##
25727 ## Report this to nfs@lists.sf.net ##
25728 ## ------------------------------- ##
25729 _ASBOX
25730      ) | sed "s/^/$as_me: WARNING:     /" >&2
25731     ;;
25732 esac
25733 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25734 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25735 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25739 fi
25740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25741 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25742
25743 fi
25744 if test $ac_cv_header_sys_sysmacros_h = yes; then
25745
25746 cat >>confdefs.h <<\_ACEOF
25747 #define MAJOR_IN_SYSMACROS 1
25748 _ACEOF
25749
25750 fi
25751
25752
25753   fi
25754 fi
25755
25756 #AC_FUNC_MALLOC
25757 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25758 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25759 if test "${ac_cv_func_memcmp_working+set}" = set; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   if test "$cross_compiling" = yes; then
25763   ac_cv_func_memcmp_working=no
25764 else
25765   cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771 $ac_includes_default
25772 int
25773 main ()
25774 {
25775
25776   /* Some versions of memcmp are not 8-bit clean.  */
25777   char c0 = '\100', c1 = '\200', c2 = '\201';
25778   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25779     return 1;
25780
25781   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25782      or more and with at least one buffer not starting on a 4-byte boundary.
25783      William Lewis provided this test program.   */
25784   {
25785     char foo[21];
25786     char bar[21];
25787     int i;
25788     for (i = 0; i < 4; i++)
25789       {
25790         char *a = foo + i;
25791         char *b = bar + i;
25792         strcpy (a, "--------01111111");
25793         strcpy (b, "--------10000000");
25794         if (memcmp (a, b, 16) >= 0)
25795           return 1;
25796       }
25797     return 0;
25798   }
25799
25800   ;
25801   return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806   (eval $ac_link) 2>&5
25807   ac_status=$?
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811   (eval $ac_try) 2>&5
25812   ac_status=$?
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); }; }; then
25815   ac_cv_func_memcmp_working=yes
25816 else
25817   echo "$as_me: program exited with status $ac_status" >&5
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821 ( exit $ac_status )
25822 ac_cv_func_memcmp_working=no
25823 fi
25824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25825 fi
25826
25827
25828 fi
25829 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25830 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25831 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25832   *" memcmp.$ac_objext "* ) ;;
25833   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25834  ;;
25835 esac
25836
25837
25838 #AC_FUNC_REALLOC
25839
25840
25841 for ac_header in sys/select.h sys/socket.h
25842 do
25843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 fi
25850 ac_res=`eval echo '${'$as_ac_Header'}'`
25851                { echo "$as_me:$LINENO: result: $ac_res" >&5
25852 echo "${ECHO_T}$ac_res" >&6; }
25853 else
25854   # Is the header compilable?
25855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h.  */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h.  */
25863 $ac_includes_default
25864 #include <$ac_header>
25865 _ACEOF
25866 rm -f conftest.$ac_objext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25868   (eval $ac_compile) 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } &&
25875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; } &&
25881          { ac_try='test -s conftest.$ac_objext'
25882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883   (eval $ac_try) 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); }; }; then
25887   ac_header_compiler=yes
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892         ac_header_compiler=no
25893 fi
25894
25895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25897 echo "${ECHO_T}$ac_header_compiler" >&6; }
25898
25899 # Is the header present?
25900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25902 cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908 #include <$ac_header>
25909 _ACEOF
25910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25912   ac_status=$?
25913   grep -v '^ *+' conftest.er1 >conftest.err
25914   rm -f conftest.er1
25915   cat conftest.err >&5
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); } >/dev/null; then
25918   if test -s conftest.err; then
25919     ac_cpp_err=$ac_c_preproc_warn_flag
25920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25921   else
25922     ac_cpp_err=
25923   fi
25924 else
25925   ac_cpp_err=yes
25926 fi
25927 if test -z "$ac_cpp_err"; then
25928   ac_header_preproc=yes
25929 else
25930   echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933   ac_header_preproc=no
25934 fi
25935
25936 rm -f conftest.err conftest.$ac_ext
25937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25938 echo "${ECHO_T}$ac_header_preproc" >&6; }
25939
25940 # So?  What about this header?
25941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25942   yes:no: )
25943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25947     ac_header_preproc=yes
25948     ;;
25949   no:yes:* )
25950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25962     ( cat <<\_ASBOX
25963 ## ------------------------------- ##
25964 ## Report this to nfs@lists.sf.net ##
25965 ## ------------------------------- ##
25966 _ASBOX
25967      ) | sed "s/^/$as_me: WARNING:     /" >&2
25968     ;;
25969 esac
25970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25973   echo $ECHO_N "(cached) $ECHO_C" >&6
25974 else
25975   eval "$as_ac_Header=\$ac_header_preproc"
25976 fi
25977 ac_res=`eval echo '${'$as_ac_Header'}'`
25978                { echo "$as_me:$LINENO: result: $ac_res" >&5
25979 echo "${ECHO_T}$ac_res" >&6; }
25980
25981 fi
25982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25983   cat >>confdefs.h <<_ACEOF
25984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25985 _ACEOF
25986
25987 fi
25988
25989 done
25990
25991 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
25992 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
25993 if test "${ac_cv_func_select_args+set}" = set; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25997  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25998   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25999    cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005 $ac_includes_default
26006 #if HAVE_SYS_SELECT_H
26007 # include <sys/select.h>
26008 #endif
26009 #if HAVE_SYS_SOCKET_H
26010 # include <sys/socket.h>
26011 #endif
26012
26013 int
26014 main ()
26015 {
26016 extern int select ($ac_arg1,
26017                                             $ac_arg234, $ac_arg234, $ac_arg234,
26018                                             $ac_arg5);
26019   ;
26020   return 0;
26021 }
26022 _ACEOF
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025   (eval $ac_compile) 2>conftest.er1
26026   ac_status=$?
26027   grep -v '^ *+' conftest.er1 >conftest.err
26028   rm -f conftest.er1
26029   cat conftest.err >&5
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); } &&
26032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034   (eval $ac_try) 2>&5
26035   ac_status=$?
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); }; } &&
26038          { ac_try='test -s conftest.$ac_objext'
26039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040   (eval $ac_try) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; }; then
26044   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049
26050 fi
26051
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053   done
26054  done
26055 done
26056 # Provide a safe default value.
26057 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26058
26059 fi
26060 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26061 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26062 ac_save_IFS=$IFS; IFS=','
26063 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26064 IFS=$ac_save_IFS
26065 shift
26066
26067 cat >>confdefs.h <<_ACEOF
26068 #define SELECT_TYPE_ARG1 $1
26069 _ACEOF
26070
26071
26072 cat >>confdefs.h <<_ACEOF
26073 #define SELECT_TYPE_ARG234 ($2)
26074 _ACEOF
26075
26076
26077 cat >>confdefs.h <<_ACEOF
26078 #define SELECT_TYPE_ARG5 ($3)
26079 _ACEOF
26080
26081 rm -f conftest*
26082
26083 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26084 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26085 if test "${ac_cv_type_signal+set}" = set; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088   cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094 #include <sys/types.h>
26095 #include <signal.h>
26096
26097 int
26098 main ()
26099 {
26100 return *(signal (0, 0)) (0) == 1;
26101   ;
26102   return 0;
26103 }
26104 _ACEOF
26105 rm -f conftest.$ac_objext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107   (eval $ac_compile) 2>conftest.er1
26108   ac_status=$?
26109   grep -v '^ *+' conftest.er1 >conftest.err
26110   rm -f conftest.er1
26111   cat conftest.err >&5
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); } &&
26114          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116   (eval $ac_try) 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); }; } &&
26120          { ac_try='test -s conftest.$ac_objext'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; }; then
26126   ac_cv_type_signal=int
26127 else
26128   echo "$as_me: failed program was:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26130
26131         ac_cv_type_signal=void
26132 fi
26133
26134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26135 fi
26136 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26137 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26138
26139 cat >>confdefs.h <<_ACEOF
26140 #define RETSIGTYPE $ac_cv_type_signal
26141 _ACEOF
26142
26143
26144 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26145 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26146 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26147   echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149   if test "$cross_compiling" = yes; then
26150   ac_cv_func_stat_empty_string_bug=yes
26151 else
26152   cat >conftest.$ac_ext <<_ACEOF
26153 /* confdefs.h.  */
26154 _ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h.  */
26158 $ac_includes_default
26159 int
26160 main ()
26161 {
26162 struct stat sbuf;
26163   return stat ("", &sbuf) == 0;
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest$ac_exeext
26169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26170   (eval $ac_link) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26175   (eval $ac_try) 2>&5
26176   ac_status=$?
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); }; }; then
26179   ac_cv_func_stat_empty_string_bug=no
26180 else
26181   echo "$as_me: program exited with status $ac_status" >&5
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185 ( exit $ac_status )
26186 ac_cv_func_stat_empty_string_bug=yes
26187 fi
26188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26189 fi
26190
26191
26192 fi
26193 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26194 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26195 if test $ac_cv_func_stat_empty_string_bug = yes; then
26196   case " $LIBOBJS " in
26197   *" stat.$ac_objext "* ) ;;
26198   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26199  ;;
26200 esac
26201
26202
26203 cat >>confdefs.h <<_ACEOF
26204 #define HAVE_STAT_EMPTY_STRING_BUG 1
26205 _ACEOF
26206
26207 fi
26208
26209
26210 for ac_func in vprintf
26211 do
26212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26216   echo $ECHO_N "(cached) $ECHO_C" >&6
26217 else
26218   cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26226 #define $ac_func innocuous_$ac_func
26227
26228 /* System header to define __stub macros and hopefully few prototypes,
26229     which can conflict with char $ac_func (); below.
26230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26231     <limits.h> exists even on freestanding compilers.  */
26232
26233 #ifdef __STDC__
26234 # include <limits.h>
26235 #else
26236 # include <assert.h>
26237 #endif
26238
26239 #undef $ac_func
26240
26241 /* Override any GCC internal prototype to avoid an error.
26242    Use char because int might match the return type of a GCC
26243    builtin and then its argument prototype would still apply.  */
26244 #ifdef __cplusplus
26245 extern "C"
26246 #endif
26247 char $ac_func ();
26248 /* The GNU C library defines this for functions which it implements
26249     to always fail with ENOSYS.  Some functions are actually named
26250     something starting with __ and the normal name is an alias.  */
26251 #if defined __stub_$ac_func || defined __stub___$ac_func
26252 choke me
26253 #endif
26254
26255 int
26256 main ()
26257 {
26258 return $ac_func ();
26259   ;
26260   return 0;
26261 }
26262 _ACEOF
26263 rm -f conftest.$ac_objext conftest$ac_exeext
26264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265   (eval $ac_link) 2>conftest.er1
26266   ac_status=$?
26267   grep -v '^ *+' conftest.er1 >conftest.err
26268   rm -f conftest.er1
26269   cat conftest.err >&5
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); } &&
26272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274   (eval $ac_try) 2>&5
26275   ac_status=$?
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); }; } &&
26278          { ac_try='test -s conftest$ac_exeext'
26279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280   (eval $ac_try) 2>&5
26281   ac_status=$?
26282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283   (exit $ac_status); }; }; then
26284   eval "$as_ac_var=yes"
26285 else
26286   echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26288
26289         eval "$as_ac_var=no"
26290 fi
26291
26292 rm -f conftest.err conftest.$ac_objext \
26293       conftest$ac_exeext conftest.$ac_ext
26294 fi
26295 ac_res=`eval echo '${'$as_ac_var'}'`
26296                { echo "$as_me:$LINENO: result: $ac_res" >&5
26297 echo "${ECHO_T}$ac_res" >&6; }
26298 if test `eval echo '${'$as_ac_var'}'` = yes; then
26299   cat >>confdefs.h <<_ACEOF
26300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26301 _ACEOF
26302
26303 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26304 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26305 if test "${ac_cv_func__doprnt+set}" = set; then
26306   echo $ECHO_N "(cached) $ECHO_C" >&6
26307 else
26308   cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26316 #define _doprnt innocuous__doprnt
26317
26318 /* System header to define __stub macros and hopefully few prototypes,
26319     which can conflict with char _doprnt (); below.
26320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26321     <limits.h> exists even on freestanding compilers.  */
26322
26323 #ifdef __STDC__
26324 # include <limits.h>
26325 #else
26326 # include <assert.h>
26327 #endif
26328
26329 #undef _doprnt
26330
26331 /* Override any GCC internal prototype to avoid an error.
26332    Use char because int might match the return type of a GCC
26333    builtin and then its argument prototype would still apply.  */
26334 #ifdef __cplusplus
26335 extern "C"
26336 #endif
26337 char _doprnt ();
26338 /* The GNU C library defines this for functions which it implements
26339     to always fail with ENOSYS.  Some functions are actually named
26340     something starting with __ and the normal name is an alias.  */
26341 #if defined __stub__doprnt || defined __stub____doprnt
26342 choke me
26343 #endif
26344
26345 int
26346 main ()
26347 {
26348 return _doprnt ();
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 rm -f conftest.$ac_objext conftest$ac_exeext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26355   (eval $ac_link) 2>conftest.er1
26356   ac_status=$?
26357   grep -v '^ *+' conftest.er1 >conftest.err
26358   rm -f conftest.er1
26359   cat conftest.err >&5
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); } &&
26362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; } &&
26368          { ac_try='test -s conftest$ac_exeext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374   ac_cv_func__doprnt=yes
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379         ac_cv_func__doprnt=no
26380 fi
26381
26382 rm -f conftest.err conftest.$ac_objext \
26383       conftest$ac_exeext conftest.$ac_ext
26384 fi
26385 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26386 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26387 if test $ac_cv_func__doprnt = yes; then
26388
26389 cat >>confdefs.h <<\_ACEOF
26390 #define HAVE_DOPRNT 1
26391 _ACEOF
26392
26393 fi
26394
26395 fi
26396 done
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26428                gethostbyaddr gethostbyname gethostname getmntent \
26429                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26430                realpath rmdir select socket strcasecmp strchr strdup \
26431                strerror strrchr strtol strtoul
26432 do
26433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439   cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26447 #define $ac_func innocuous_$ac_func
26448
26449 /* System header to define __stub macros and hopefully few prototypes,
26450     which can conflict with char $ac_func (); below.
26451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452     <limits.h> exists even on freestanding compilers.  */
26453
26454 #ifdef __STDC__
26455 # include <limits.h>
26456 #else
26457 # include <assert.h>
26458 #endif
26459
26460 #undef $ac_func
26461
26462 /* Override any GCC internal prototype to avoid an error.
26463    Use char because int might match the return type of a GCC
26464    builtin and then its argument prototype would still apply.  */
26465 #ifdef __cplusplus
26466 extern "C"
26467 #endif
26468 char $ac_func ();
26469 /* The GNU C library defines this for functions which it implements
26470     to always fail with ENOSYS.  Some functions are actually named
26471     something starting with __ and the normal name is an alias.  */
26472 #if defined __stub_$ac_func || defined __stub___$ac_func
26473 choke me
26474 #endif
26475
26476 int
26477 main ()
26478 {
26479 return $ac_func ();
26480   ;
26481   return 0;
26482 }
26483 _ACEOF
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486   (eval $ac_link) 2>conftest.er1
26487   ac_status=$?
26488   grep -v '^ *+' conftest.er1 >conftest.err
26489   rm -f conftest.er1
26490   cat conftest.err >&5
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); } &&
26493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495   (eval $ac_try) 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; } &&
26499          { ac_try='test -s conftest$ac_exeext'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; }; then
26505   eval "$as_ac_var=yes"
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510         eval "$as_ac_var=no"
26511 fi
26512
26513 rm -f conftest.err conftest.$ac_objext \
26514       conftest$ac_exeext conftest.$ac_ext
26515 fi
26516 ac_res=`eval echo '${'$as_ac_var'}'`
26517                { echo "$as_me:$LINENO: result: $ac_res" >&5
26518 echo "${ECHO_T}$ac_res" >&6; }
26519 if test `eval echo '${'$as_ac_var'}'` = yes; then
26520   cat >>confdefs.h <<_ACEOF
26521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26522 _ACEOF
26523
26524 fi
26525 done
26526
26527
26528
26529 { echo "$as_me:$LINENO: checking for short" >&5
26530 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26531 if test "${ac_cv_type_short+set}" = set; then
26532   echo $ECHO_N "(cached) $ECHO_C" >&6
26533 else
26534   cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540 $ac_includes_default
26541 typedef short ac__type_new_;
26542 int
26543 main ()
26544 {
26545 if ((ac__type_new_ *) 0)
26546   return 0;
26547 if (sizeof (ac__type_new_))
26548   return 0;
26549   ;
26550   return 0;
26551 }
26552 _ACEOF
26553 rm -f conftest.$ac_objext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26555   (eval $ac_compile) 2>conftest.er1
26556   ac_status=$?
26557   grep -v '^ *+' conftest.er1 >conftest.err
26558   rm -f conftest.er1
26559   cat conftest.err >&5
26560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561   (exit $ac_status); } &&
26562          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564   (eval $ac_try) 2>&5
26565   ac_status=$?
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; } &&
26568          { ac_try='test -s conftest.$ac_objext'
26569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570   (eval $ac_try) 2>&5
26571   ac_status=$?
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); }; }; then
26574   ac_cv_type_short=yes
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579         ac_cv_type_short=no
26580 fi
26581
26582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26583 fi
26584 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26585 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26586
26587 { echo "$as_me:$LINENO: checking size of short" >&5
26588 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26589 if test "${ac_cv_sizeof_short+set}" = set; then
26590   echo $ECHO_N "(cached) $ECHO_C" >&6
26591 else
26592   if test "$ac_cv_type_short" = yes; then
26593   # The cast to long int works around a bug in the HP C Compiler
26594   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26595   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26596   # This bug is HP SR number 8606223364.
26597   if test "$cross_compiling" = yes; then
26598   # Depending upon the size, compute the lo and hi bounds.
26599 cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 $ac_includes_default
26606                    typedef short ac__type_sizeof_;
26607 int
26608 main ()
26609 {
26610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26611 test_array [0] = 0
26612
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26619   (eval $ac_compile) 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } &&
26626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26628   (eval $ac_try) 2>&5
26629   ac_status=$?
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); }; } &&
26632          { ac_try='test -s conftest.$ac_objext'
26633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26634   (eval $ac_try) 2>&5
26635   ac_status=$?
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); }; }; then
26638   ac_lo=0 ac_mid=0
26639   while :; do
26640     cat >conftest.$ac_ext <<_ACEOF
26641 /* confdefs.h.  */
26642 _ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h.  */
26646 $ac_includes_default
26647                    typedef short ac__type_sizeof_;
26648 int
26649 main ()
26650 {
26651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26652 test_array [0] = 0
26653
26654   ;
26655   return 0;
26656 }
26657 _ACEOF
26658 rm -f conftest.$ac_objext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26660   (eval $ac_compile) 2>conftest.er1
26661   ac_status=$?
26662   grep -v '^ *+' conftest.er1 >conftest.err
26663   rm -f conftest.er1
26664   cat conftest.err >&5
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); } &&
26667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669   (eval $ac_try) 2>&5
26670   ac_status=$?
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); }; } &&
26673          { ac_try='test -s conftest.$ac_objext'
26674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26675   (eval $ac_try) 2>&5
26676   ac_status=$?
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); }; }; then
26679   ac_hi=$ac_mid; break
26680 else
26681   echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26683
26684         ac_lo=`expr $ac_mid + 1`
26685                         if test $ac_lo -le $ac_mid; then
26686                           ac_lo= ac_hi=
26687                           break
26688                         fi
26689                         ac_mid=`expr 2 '*' $ac_mid + 1`
26690 fi
26691
26692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26693   done
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698         cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 $ac_includes_default
26705                    typedef short ac__type_sizeof_;
26706 int
26707 main ()
26708 {
26709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26710 test_array [0] = 0
26711
26712   ;
26713   return 0;
26714 }
26715 _ACEOF
26716 rm -f conftest.$ac_objext
26717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26718   (eval $ac_compile) 2>conftest.er1
26719   ac_status=$?
26720   grep -v '^ *+' conftest.er1 >conftest.err
26721   rm -f conftest.er1
26722   cat conftest.err >&5
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); } &&
26725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26727   (eval $ac_try) 2>&5
26728   ac_status=$?
26729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); }; } &&
26731          { ac_try='test -s conftest.$ac_objext'
26732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733   (eval $ac_try) 2>&5
26734   ac_status=$?
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); }; }; then
26737   ac_hi=-1 ac_mid=-1
26738   while :; do
26739     cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 $ac_includes_default
26746                    typedef short ac__type_sizeof_;
26747 int
26748 main ()
26749 {
26750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26751 test_array [0] = 0
26752
26753   ;
26754   return 0;
26755 }
26756 _ACEOF
26757 rm -f conftest.$ac_objext
26758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26759   (eval $ac_compile) 2>conftest.er1
26760   ac_status=$?
26761   grep -v '^ *+' conftest.er1 >conftest.err
26762   rm -f conftest.er1
26763   cat conftest.err >&5
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } &&
26766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; } &&
26772          { ac_try='test -s conftest.$ac_objext'
26773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774   (eval $ac_try) 2>&5
26775   ac_status=$?
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); }; }; then
26778   ac_lo=$ac_mid; break
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783         ac_hi=`expr '(' $ac_mid ')' - 1`
26784                         if test $ac_mid -le $ac_hi; then
26785                           ac_lo= ac_hi=
26786                           break
26787                         fi
26788                         ac_mid=`expr 2 '*' $ac_mid`
26789 fi
26790
26791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26792   done
26793 else
26794   echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26796
26797         ac_lo= ac_hi=
26798 fi
26799
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801 fi
26802
26803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26804 # Binary search between lo and hi bounds.
26805 while test "x$ac_lo" != "x$ac_hi"; do
26806   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26807   cat >conftest.$ac_ext <<_ACEOF
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813 $ac_includes_default
26814                    typedef short ac__type_sizeof_;
26815 int
26816 main ()
26817 {
26818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26819 test_array [0] = 0
26820
26821   ;
26822   return 0;
26823 }
26824 _ACEOF
26825 rm -f conftest.$ac_objext
26826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26827   (eval $ac_compile) 2>conftest.er1
26828   ac_status=$?
26829   grep -v '^ *+' conftest.er1 >conftest.err
26830   rm -f conftest.er1
26831   cat conftest.err >&5
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); } &&
26834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836   (eval $ac_try) 2>&5
26837   ac_status=$?
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); }; } &&
26840          { ac_try='test -s conftest.$ac_objext'
26841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842   (eval $ac_try) 2>&5
26843   ac_status=$?
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); }; }; then
26846   ac_hi=$ac_mid
26847 else
26848   echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26850
26851         ac_lo=`expr '(' $ac_mid ')' + 1`
26852 fi
26853
26854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26855 done
26856 case $ac_lo in
26857 ?*) ac_cv_sizeof_short=$ac_lo;;
26858 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26859 See \`config.log' for more details." >&5
26860 echo "$as_me: error: cannot compute sizeof (short)
26861 See \`config.log' for more details." >&2;}
26862    { (exit 77); exit 77; }; } ;;
26863 esac
26864 else
26865   cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 $ac_includes_default
26872                    typedef short ac__type_sizeof_;
26873 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26874 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26875 #include <stdio.h>
26876 #include <stdlib.h>
26877 int
26878 main ()
26879 {
26880
26881   FILE *f = fopen ("conftest.val", "w");
26882   if (! f)
26883     return 1;
26884   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26885     {
26886       long int i = longval ();
26887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26888         return 1;
26889       fprintf (f, "%ld\n", i);
26890     }
26891   else
26892     {
26893       unsigned long int i = ulongval ();
26894       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26895         return 1;
26896       fprintf (f, "%lu\n", i);
26897     }
26898   return ferror (f) || fclose (f) != 0;
26899
26900   ;
26901   return 0;
26902 }
26903 _ACEOF
26904 rm -f conftest$ac_exeext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26906   (eval $ac_link) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911   (eval $ac_try) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); }; }; then
26915   ac_cv_sizeof_short=`cat conftest.val`
26916 else
26917   echo "$as_me: program exited with status $ac_status" >&5
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26920
26921 ( exit $ac_status )
26922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26923 See \`config.log' for more details." >&5
26924 echo "$as_me: error: cannot compute sizeof (short)
26925 See \`config.log' for more details." >&2;}
26926    { (exit 77); exit 77; }; }
26927 fi
26928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26929 fi
26930 rm -f conftest.val
26931 else
26932   ac_cv_sizeof_short=0
26933 fi
26934 fi
26935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26936 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26937 cat >>confdefs.h <<_ACEOF
26938 #define SIZEOF_SHORT $ac_cv_sizeof_short
26939 _ACEOF
26940
26941
26942 { echo "$as_me:$LINENO: checking for int" >&5
26943 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26944 if test "${ac_cv_type_int+set}" = set; then
26945   echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947   cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953 $ac_includes_default
26954 typedef int ac__type_new_;
26955 int
26956 main ()
26957 {
26958 if ((ac__type_new_ *) 0)
26959   return 0;
26960 if (sizeof (ac__type_new_))
26961   return 0;
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 rm -f conftest.$ac_objext
26967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26968   (eval $ac_compile) 2>conftest.er1
26969   ac_status=$?
26970   grep -v '^ *+' conftest.er1 >conftest.err
26971   rm -f conftest.er1
26972   cat conftest.err >&5
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); } &&
26975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977   (eval $ac_try) 2>&5
26978   ac_status=$?
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); }; } &&
26981          { ac_try='test -s conftest.$ac_objext'
26982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983   (eval $ac_try) 2>&5
26984   ac_status=$?
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); }; }; then
26987   ac_cv_type_int=yes
26988 else
26989   echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26991
26992         ac_cv_type_int=no
26993 fi
26994
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26996 fi
26997 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26998 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26999
27000 { echo "$as_me:$LINENO: checking size of int" >&5
27001 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27002 if test "${ac_cv_sizeof_int+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005   if test "$ac_cv_type_int" = yes; then
27006   # The cast to long int works around a bug in the HP C Compiler
27007   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27008   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27009   # This bug is HP SR number 8606223364.
27010   if test "$cross_compiling" = yes; then
27011   # Depending upon the size, compute the lo and hi bounds.
27012 cat >conftest.$ac_ext <<_ACEOF
27013 /* confdefs.h.  */
27014 _ACEOF
27015 cat confdefs.h >>conftest.$ac_ext
27016 cat >>conftest.$ac_ext <<_ACEOF
27017 /* end confdefs.h.  */
27018 $ac_includes_default
27019                    typedef int ac__type_sizeof_;
27020 int
27021 main ()
27022 {
27023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27024 test_array [0] = 0
27025
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext
27031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27032   (eval $ac_compile) 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } &&
27039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27041   (eval $ac_try) 2>&5
27042   ac_status=$?
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); }; } &&
27045          { ac_try='test -s conftest.$ac_objext'
27046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27047   (eval $ac_try) 2>&5
27048   ac_status=$?
27049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050   (exit $ac_status); }; }; then
27051   ac_lo=0 ac_mid=0
27052   while :; do
27053     cat >conftest.$ac_ext <<_ACEOF
27054 /* confdefs.h.  */
27055 _ACEOF
27056 cat confdefs.h >>conftest.$ac_ext
27057 cat >>conftest.$ac_ext <<_ACEOF
27058 /* end confdefs.h.  */
27059 $ac_includes_default
27060                    typedef int ac__type_sizeof_;
27061 int
27062 main ()
27063 {
27064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27065 test_array [0] = 0
27066
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27073   (eval $ac_compile) 2>conftest.er1
27074   ac_status=$?
27075   grep -v '^ *+' conftest.er1 >conftest.err
27076   rm -f conftest.er1
27077   cat conftest.err >&5
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } &&
27080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082   (eval $ac_try) 2>&5
27083   ac_status=$?
27084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085   (exit $ac_status); }; } &&
27086          { ac_try='test -s conftest.$ac_objext'
27087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088   (eval $ac_try) 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; }; then
27092   ac_hi=$ac_mid; break
27093 else
27094   echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27096
27097         ac_lo=`expr $ac_mid + 1`
27098                         if test $ac_lo -le $ac_mid; then
27099                           ac_lo= ac_hi=
27100                           break
27101                         fi
27102                         ac_mid=`expr 2 '*' $ac_mid + 1`
27103 fi
27104
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27106   done
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111         cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h.  */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h.  */
27117 $ac_includes_default
27118                    typedef int ac__type_sizeof_;
27119 int
27120 main ()
27121 {
27122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27123 test_array [0] = 0
27124
27125   ;
27126   return 0;
27127 }
27128 _ACEOF
27129 rm -f conftest.$ac_objext
27130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131   (eval $ac_compile) 2>conftest.er1
27132   ac_status=$?
27133   grep -v '^ *+' conftest.er1 >conftest.err
27134   rm -f conftest.er1
27135   cat conftest.err >&5
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); } &&
27138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140   (eval $ac_try) 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; } &&
27144          { ac_try='test -s conftest.$ac_objext'
27145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146   (eval $ac_try) 2>&5
27147   ac_status=$?
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); }; }; then
27150   ac_hi=-1 ac_mid=-1
27151   while :; do
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 $ac_includes_default
27159                    typedef int ac__type_sizeof_;
27160 int
27161 main ()
27162 {
27163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27164 test_array [0] = 0
27165
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172   (eval $ac_compile) 2>conftest.er1
27173   ac_status=$?
27174   grep -v '^ *+' conftest.er1 >conftest.err
27175   rm -f conftest.er1
27176   cat conftest.err >&5
27177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178   (exit $ac_status); } &&
27179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181   (eval $ac_try) 2>&5
27182   ac_status=$?
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); }; } &&
27185          { ac_try='test -s conftest.$ac_objext'
27186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187   (eval $ac_try) 2>&5
27188   ac_status=$?
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); }; }; then
27191   ac_lo=$ac_mid; break
27192 else
27193   echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27195
27196         ac_hi=`expr '(' $ac_mid ')' - 1`
27197                         if test $ac_mid -le $ac_hi; then
27198                           ac_lo= ac_hi=
27199                           break
27200                         fi
27201                         ac_mid=`expr 2 '*' $ac_mid`
27202 fi
27203
27204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27205   done
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27209
27210         ac_lo= ac_hi=
27211 fi
27212
27213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27214 fi
27215
27216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27217 # Binary search between lo and hi bounds.
27218 while test "x$ac_lo" != "x$ac_hi"; do
27219   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27220   cat >conftest.$ac_ext <<_ACEOF
27221 /* confdefs.h.  */
27222 _ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h.  */
27226 $ac_includes_default
27227                    typedef int ac__type_sizeof_;
27228 int
27229 main ()
27230 {
27231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27232 test_array [0] = 0
27233
27234   ;
27235   return 0;
27236 }
27237 _ACEOF
27238 rm -f conftest.$ac_objext
27239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27240   (eval $ac_compile) 2>conftest.er1
27241   ac_status=$?
27242   grep -v '^ *+' conftest.er1 >conftest.err
27243   rm -f conftest.er1
27244   cat conftest.err >&5
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); } &&
27247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249   (eval $ac_try) 2>&5
27250   ac_status=$?
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); }; } &&
27253          { ac_try='test -s conftest.$ac_objext'
27254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255   (eval $ac_try) 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); }; }; then
27259   ac_hi=$ac_mid
27260 else
27261   echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264         ac_lo=`expr '(' $ac_mid ')' + 1`
27265 fi
27266
27267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27268 done
27269 case $ac_lo in
27270 ?*) ac_cv_sizeof_int=$ac_lo;;
27271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27272 See \`config.log' for more details." >&5
27273 echo "$as_me: error: cannot compute sizeof (int)
27274 See \`config.log' for more details." >&2;}
27275    { (exit 77); exit 77; }; } ;;
27276 esac
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 $ac_includes_default
27285                    typedef int ac__type_sizeof_;
27286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27288 #include <stdio.h>
27289 #include <stdlib.h>
27290 int
27291 main ()
27292 {
27293
27294   FILE *f = fopen ("conftest.val", "w");
27295   if (! f)
27296     return 1;
27297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27298     {
27299       long int i = longval ();
27300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27301         return 1;
27302       fprintf (f, "%ld\n", i);
27303     }
27304   else
27305     {
27306       unsigned long int i = ulongval ();
27307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27308         return 1;
27309       fprintf (f, "%lu\n", i);
27310     }
27311   return ferror (f) || fclose (f) != 0;
27312
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest$ac_exeext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27319   (eval $ac_link) 2>&5
27320   ac_status=$?
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324   (eval $ac_try) 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; }; then
27328   ac_cv_sizeof_int=`cat conftest.val`
27329 else
27330   echo "$as_me: program exited with status $ac_status" >&5
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27333
27334 ( exit $ac_status )
27335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27336 See \`config.log' for more details." >&5
27337 echo "$as_me: error: cannot compute sizeof (int)
27338 See \`config.log' for more details." >&2;}
27339    { (exit 77); exit 77; }; }
27340 fi
27341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27342 fi
27343 rm -f conftest.val
27344 else
27345   ac_cv_sizeof_int=0
27346 fi
27347 fi
27348 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27349 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27350 cat >>confdefs.h <<_ACEOF
27351 #define SIZEOF_INT $ac_cv_sizeof_int
27352 _ACEOF
27353
27354
27355 { echo "$as_me:$LINENO: checking for long" >&5
27356 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27357 if test "${ac_cv_type_long+set}" = set; then
27358   echo $ECHO_N "(cached) $ECHO_C" >&6
27359 else
27360   cat >conftest.$ac_ext <<_ACEOF
27361 /* confdefs.h.  */
27362 _ACEOF
27363 cat confdefs.h >>conftest.$ac_ext
27364 cat >>conftest.$ac_ext <<_ACEOF
27365 /* end confdefs.h.  */
27366 $ac_includes_default
27367 typedef long ac__type_new_;
27368 int
27369 main ()
27370 {
27371 if ((ac__type_new_ *) 0)
27372   return 0;
27373 if (sizeof (ac__type_new_))
27374   return 0;
27375   ;
27376   return 0;
27377 }
27378 _ACEOF
27379 rm -f conftest.$ac_objext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27381   (eval $ac_compile) 2>conftest.er1
27382   ac_status=$?
27383   grep -v '^ *+' conftest.er1 >conftest.err
27384   rm -f conftest.er1
27385   cat conftest.err >&5
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); } &&
27388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390   (eval $ac_try) 2>&5
27391   ac_status=$?
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); }; } &&
27394          { ac_try='test -s conftest.$ac_objext'
27395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396   (eval $ac_try) 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); }; }; then
27400   ac_cv_type_long=yes
27401 else
27402   echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27404
27405         ac_cv_type_long=no
27406 fi
27407
27408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27409 fi
27410 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27411 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27412
27413 { echo "$as_me:$LINENO: checking size of long" >&5
27414 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27415 if test "${ac_cv_sizeof_long+set}" = set; then
27416   echo $ECHO_N "(cached) $ECHO_C" >&6
27417 else
27418   if test "$ac_cv_type_long" = yes; then
27419   # The cast to long int works around a bug in the HP C Compiler
27420   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27421   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27422   # This bug is HP SR number 8606223364.
27423   if test "$cross_compiling" = yes; then
27424   # Depending upon the size, compute the lo and hi bounds.
27425 cat >conftest.$ac_ext <<_ACEOF
27426 /* confdefs.h.  */
27427 _ACEOF
27428 cat confdefs.h >>conftest.$ac_ext
27429 cat >>conftest.$ac_ext <<_ACEOF
27430 /* end confdefs.h.  */
27431 $ac_includes_default
27432                    typedef long ac__type_sizeof_;
27433 int
27434 main ()
27435 {
27436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27437 test_array [0] = 0
27438
27439   ;
27440   return 0;
27441 }
27442 _ACEOF
27443 rm -f conftest.$ac_objext
27444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27445   (eval $ac_compile) 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } &&
27452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454   (eval $ac_try) 2>&5
27455   ac_status=$?
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); }; } &&
27458          { ac_try='test -s conftest.$ac_objext'
27459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460   (eval $ac_try) 2>&5
27461   ac_status=$?
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); }; }; then
27464   ac_lo=0 ac_mid=0
27465   while :; do
27466     cat >conftest.$ac_ext <<_ACEOF
27467 /* confdefs.h.  */
27468 _ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h.  */
27472 $ac_includes_default
27473                    typedef long ac__type_sizeof_;
27474 int
27475 main ()
27476 {
27477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27478 test_array [0] = 0
27479
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest.$ac_objext
27485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495   (eval $ac_try) 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; } &&
27499          { ac_try='test -s conftest.$ac_objext'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   ac_hi=$ac_mid; break
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510         ac_lo=`expr $ac_mid + 1`
27511                         if test $ac_lo -le $ac_mid; then
27512                           ac_lo= ac_hi=
27513                           break
27514                         fi
27515                         ac_mid=`expr 2 '*' $ac_mid + 1`
27516 fi
27517
27518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27519   done
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524         cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h.  */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h.  */
27530 $ac_includes_default
27531                    typedef long ac__type_sizeof_;
27532 int
27533 main ()
27534 {
27535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27536 test_array [0] = 0
27537
27538   ;
27539   return 0;
27540 }
27541 _ACEOF
27542 rm -f conftest.$ac_objext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27544   (eval $ac_compile) 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } &&
27551          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553   (eval $ac_try) 2>&5
27554   ac_status=$?
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); }; } &&
27557          { ac_try='test -s conftest.$ac_objext'
27558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559   (eval $ac_try) 2>&5
27560   ac_status=$?
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); }; }; then
27563   ac_hi=-1 ac_mid=-1
27564   while :; do
27565     cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 $ac_includes_default
27572                    typedef long ac__type_sizeof_;
27573 int
27574 main ()
27575 {
27576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27577 test_array [0] = 0
27578
27579   ;
27580   return 0;
27581 }
27582 _ACEOF
27583 rm -f conftest.$ac_objext
27584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27585   (eval $ac_compile) 2>conftest.er1
27586   ac_status=$?
27587   grep -v '^ *+' conftest.er1 >conftest.err
27588   rm -f conftest.er1
27589   cat conftest.err >&5
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); } &&
27592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27594   (eval $ac_try) 2>&5
27595   ac_status=$?
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); }; } &&
27598          { ac_try='test -s conftest.$ac_objext'
27599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27600   (eval $ac_try) 2>&5
27601   ac_status=$?
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); }; }; then
27604   ac_lo=$ac_mid; break
27605 else
27606   echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27608
27609         ac_hi=`expr '(' $ac_mid ')' - 1`
27610                         if test $ac_mid -le $ac_hi; then
27611                           ac_lo= ac_hi=
27612                           break
27613                         fi
27614                         ac_mid=`expr 2 '*' $ac_mid`
27615 fi
27616
27617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27618   done
27619 else
27620   echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27622
27623         ac_lo= ac_hi=
27624 fi
27625
27626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27627 fi
27628
27629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27630 # Binary search between lo and hi bounds.
27631 while test "x$ac_lo" != "x$ac_hi"; do
27632   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27633   cat >conftest.$ac_ext <<_ACEOF
27634 /* confdefs.h.  */
27635 _ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h.  */
27639 $ac_includes_default
27640                    typedef long ac__type_sizeof_;
27641 int
27642 main ()
27643 {
27644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27645 test_array [0] = 0
27646
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653   (eval $ac_compile) 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } &&
27660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662   (eval $ac_try) 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; } &&
27666          { ac_try='test -s conftest.$ac_objext'
27667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668   (eval $ac_try) 2>&5
27669   ac_status=$?
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); }; }; then
27672   ac_hi=$ac_mid
27673 else
27674   echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27676
27677         ac_lo=`expr '(' $ac_mid ')' + 1`
27678 fi
27679
27680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27681 done
27682 case $ac_lo in
27683 ?*) ac_cv_sizeof_long=$ac_lo;;
27684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27685 See \`config.log' for more details." >&5
27686 echo "$as_me: error: cannot compute sizeof (long)
27687 See \`config.log' for more details." >&2;}
27688    { (exit 77); exit 77; }; } ;;
27689 esac
27690 else
27691   cat >conftest.$ac_ext <<_ACEOF
27692 /* confdefs.h.  */
27693 _ACEOF
27694 cat confdefs.h >>conftest.$ac_ext
27695 cat >>conftest.$ac_ext <<_ACEOF
27696 /* end confdefs.h.  */
27697 $ac_includes_default
27698                    typedef long ac__type_sizeof_;
27699 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27700 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27701 #include <stdio.h>
27702 #include <stdlib.h>
27703 int
27704 main ()
27705 {
27706
27707   FILE *f = fopen ("conftest.val", "w");
27708   if (! f)
27709     return 1;
27710   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27711     {
27712       long int i = longval ();
27713       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27714         return 1;
27715       fprintf (f, "%ld\n", i);
27716     }
27717   else
27718     {
27719       unsigned long int i = ulongval ();
27720       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27721         return 1;
27722       fprintf (f, "%lu\n", i);
27723     }
27724   return ferror (f) || fclose (f) != 0;
27725
27726   ;
27727   return 0;
27728 }
27729 _ACEOF
27730 rm -f conftest$ac_exeext
27731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27732   (eval $ac_link) 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737   (eval $ac_try) 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; }; then
27741   ac_cv_sizeof_long=`cat conftest.val`
27742 else
27743   echo "$as_me: program exited with status $ac_status" >&5
27744 echo "$as_me: failed program was:" >&5
27745 sed 's/^/| /' conftest.$ac_ext >&5
27746
27747 ( exit $ac_status )
27748 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27749 See \`config.log' for more details." >&5
27750 echo "$as_me: error: cannot compute sizeof (long)
27751 See \`config.log' for more details." >&2;}
27752    { (exit 77); exit 77; }; }
27753 fi
27754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27755 fi
27756 rm -f conftest.val
27757 else
27758   ac_cv_sizeof_long=0
27759 fi
27760 fi
27761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27762 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27763 cat >>confdefs.h <<_ACEOF
27764 #define SIZEOF_LONG $ac_cv_sizeof_long
27765 _ACEOF
27766
27767
27768 { echo "$as_me:$LINENO: checking for size_t" >&5
27769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27770 if test "${ac_cv_type_size_t+set}" = set; then
27771   echo $ECHO_N "(cached) $ECHO_C" >&6
27772 else
27773   cat >conftest.$ac_ext <<_ACEOF
27774 /* confdefs.h.  */
27775 _ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h.  */
27779 $ac_includes_default
27780 typedef size_t ac__type_new_;
27781 int
27782 main ()
27783 {
27784 if ((ac__type_new_ *) 0)
27785   return 0;
27786 if (sizeof (ac__type_new_))
27787   return 0;
27788   ;
27789   return 0;
27790 }
27791 _ACEOF
27792 rm -f conftest.$ac_objext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27794   (eval $ac_compile) 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } &&
27801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803   (eval $ac_try) 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; } &&
27807          { ac_try='test -s conftest.$ac_objext'
27808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809   (eval $ac_try) 2>&5
27810   ac_status=$?
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); }; }; then
27813   ac_cv_type_size_t=yes
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818         ac_cv_type_size_t=no
27819 fi
27820
27821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27822 fi
27823 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27824 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27825
27826 { echo "$as_me:$LINENO: checking size of size_t" >&5
27827 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27828 if test "${ac_cv_sizeof_size_t+set}" = set; then
27829   echo $ECHO_N "(cached) $ECHO_C" >&6
27830 else
27831   if test "$ac_cv_type_size_t" = yes; then
27832   # The cast to long int works around a bug in the HP C Compiler
27833   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27834   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27835   # This bug is HP SR number 8606223364.
27836   if test "$cross_compiling" = yes; then
27837   # Depending upon the size, compute the lo and hi bounds.
27838 cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h.  */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h.  */
27844 $ac_includes_default
27845                    typedef size_t ac__type_sizeof_;
27846 int
27847 main ()
27848 {
27849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27850 test_array [0] = 0
27851
27852   ;
27853   return 0;
27854 }
27855 _ACEOF
27856 rm -f conftest.$ac_objext
27857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27858   (eval $ac_compile) 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } &&
27865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867   (eval $ac_try) 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; } &&
27871          { ac_try='test -s conftest.$ac_objext'
27872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873   (eval $ac_try) 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   ac_lo=0 ac_mid=0
27878   while :; do
27879     cat >conftest.$ac_ext <<_ACEOF
27880 /* confdefs.h.  */
27881 _ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h.  */
27885 $ac_includes_default
27886                    typedef size_t ac__type_sizeof_;
27887 int
27888 main ()
27889 {
27890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27891 test_array [0] = 0
27892
27893   ;
27894   return 0;
27895 }
27896 _ACEOF
27897 rm -f conftest.$ac_objext
27898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27899   (eval $ac_compile) 2>conftest.er1
27900   ac_status=$?
27901   grep -v '^ *+' conftest.er1 >conftest.err
27902   rm -f conftest.er1
27903   cat conftest.err >&5
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); } &&
27906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908   (eval $ac_try) 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); }; } &&
27912          { ac_try='test -s conftest.$ac_objext'
27913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914   (eval $ac_try) 2>&5
27915   ac_status=$?
27916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917   (exit $ac_status); }; }; then
27918   ac_hi=$ac_mid; break
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923         ac_lo=`expr $ac_mid + 1`
27924                         if test $ac_lo -le $ac_mid; then
27925                           ac_lo= ac_hi=
27926                           break
27927                         fi
27928                         ac_mid=`expr 2 '*' $ac_mid + 1`
27929 fi
27930
27931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27932   done
27933 else
27934   echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.$ac_ext >&5
27936
27937         cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943 $ac_includes_default
27944                    typedef size_t ac__type_sizeof_;
27945 int
27946 main ()
27947 {
27948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27949 test_array [0] = 0
27950
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957   (eval $ac_compile) 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } &&
27964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966   (eval $ac_try) 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; } &&
27970          { ac_try='test -s conftest.$ac_objext'
27971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972   (eval $ac_try) 2>&5
27973   ac_status=$?
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); }; }; then
27976   ac_hi=-1 ac_mid=-1
27977   while :; do
27978     cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 $ac_includes_default
27985                    typedef size_t ac__type_sizeof_;
27986 int
27987 main ()
27988 {
27989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27990 test_array [0] = 0
27991
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 rm -f conftest.$ac_objext
27997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27998   (eval $ac_compile) 2>conftest.er1
27999   ac_status=$?
28000   grep -v '^ *+' conftest.er1 >conftest.err
28001   rm -f conftest.er1
28002   cat conftest.err >&5
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); } &&
28005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28007   (eval $ac_try) 2>&5
28008   ac_status=$?
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); }; } &&
28011          { ac_try='test -s conftest.$ac_objext'
28012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013   (eval $ac_try) 2>&5
28014   ac_status=$?
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); }; }; then
28017   ac_lo=$ac_mid; break
28018 else
28019   echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28021
28022         ac_hi=`expr '(' $ac_mid ')' - 1`
28023                         if test $ac_mid -le $ac_hi; then
28024                           ac_lo= ac_hi=
28025                           break
28026                         fi
28027                         ac_mid=`expr 2 '*' $ac_mid`
28028 fi
28029
28030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28031   done
28032 else
28033   echo "$as_me: failed program was:" >&5
28034 sed 's/^/| /' conftest.$ac_ext >&5
28035
28036         ac_lo= ac_hi=
28037 fi
28038
28039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28040 fi
28041
28042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28043 # Binary search between lo and hi bounds.
28044 while test "x$ac_lo" != "x$ac_hi"; do
28045   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28046   cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h.  */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h.  */
28052 $ac_includes_default
28053                    typedef size_t ac__type_sizeof_;
28054 int
28055 main ()
28056 {
28057 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28058 test_array [0] = 0
28059
28060   ;
28061   return 0;
28062 }
28063 _ACEOF
28064 rm -f conftest.$ac_objext
28065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28066   (eval $ac_compile) 2>conftest.er1
28067   ac_status=$?
28068   grep -v '^ *+' conftest.er1 >conftest.err
28069   rm -f conftest.er1
28070   cat conftest.err >&5
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); } &&
28073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; } &&
28079          { ac_try='test -s conftest.$ac_objext'
28080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081   (eval $ac_try) 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); }; }; then
28085   ac_hi=$ac_mid
28086 else
28087   echo "$as_me: failed program was:" >&5
28088 sed 's/^/| /' conftest.$ac_ext >&5
28089
28090         ac_lo=`expr '(' $ac_mid ')' + 1`
28091 fi
28092
28093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28094 done
28095 case $ac_lo in
28096 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28097 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28098 See \`config.log' for more details." >&5
28099 echo "$as_me: error: cannot compute sizeof (size_t)
28100 See \`config.log' for more details." >&2;}
28101    { (exit 77); exit 77; }; } ;;
28102 esac
28103 else
28104   cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110 $ac_includes_default
28111                    typedef size_t ac__type_sizeof_;
28112 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28113 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28114 #include <stdio.h>
28115 #include <stdlib.h>
28116 int
28117 main ()
28118 {
28119
28120   FILE *f = fopen ("conftest.val", "w");
28121   if (! f)
28122     return 1;
28123   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28124     {
28125       long int i = longval ();
28126       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28127         return 1;
28128       fprintf (f, "%ld\n", i);
28129     }
28130   else
28131     {
28132       unsigned long int i = ulongval ();
28133       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28134         return 1;
28135       fprintf (f, "%lu\n", i);
28136     }
28137   return ferror (f) || fclose (f) != 0;
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest$ac_exeext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145   (eval $ac_link) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150   (eval $ac_try) 2>&5
28151   ac_status=$?
28152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153   (exit $ac_status); }; }; then
28154   ac_cv_sizeof_size_t=`cat conftest.val`
28155 else
28156   echo "$as_me: program exited with status $ac_status" >&5
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160 ( exit $ac_status )
28161 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28162 See \`config.log' for more details." >&5
28163 echo "$as_me: error: cannot compute sizeof (size_t)
28164 See \`config.log' for more details." >&2;}
28165    { (exit 77); exit 77; }; }
28166 fi
28167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28168 fi
28169 rm -f conftest.val
28170 else
28171   ac_cv_sizeof_size_t=0
28172 fi
28173 fi
28174 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28175 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28176 cat >>confdefs.h <<_ACEOF
28177 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28178 _ACEOF
28179
28180
28181
28182
28183 cat >>confdefs.h <<_ACEOF
28184 #define NFS_STATEDIR "$statedir"
28185 _ACEOF
28186
28187
28188 if test "x$cross_compiling" = "xno"; then
28189         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28190         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28191         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28192         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28193 else
28194         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28195         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28196         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28197         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28198 fi
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210 case $host in
28211   alpha*)
28212     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28213   *)
28214     ARCHFLAGS="" ;;
28215 esac
28216
28217 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28218
28219 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28220
28221 AM_CFLAGS="$my_am_cflags"
28222
28223
28224 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28225 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28226
28227
28228 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28229
28230 cat >confcache <<\_ACEOF
28231 # This file is a shell script that caches the results of configure
28232 # tests run on this system so they can be shared between configure
28233 # scripts and configure runs, see configure's option --config-cache.
28234 # It is not useful on other systems.  If it contains results you don't
28235 # want to keep, you may remove or edit it.
28236 #
28237 # config.status only pays attention to the cache file if you give it
28238 # the --recheck option to rerun configure.
28239 #
28240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28242 # following values.
28243
28244 _ACEOF
28245
28246 # The following way of writing the cache mishandles newlines in values,
28247 # but we know of no workaround that is simple, portable, and efficient.
28248 # So, we kill variables containing newlines.
28249 # Ultrix sh set writes to stderr and can't be redirected directly,
28250 # and sets the high bit in the cache file unless we assign to the vars.
28251 (
28252   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28253     eval ac_val=\$$ac_var
28254     case $ac_val in #(
28255     *${as_nl}*)
28256       case $ac_var in #(
28257       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28258 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28259       esac
28260       case $ac_var in #(
28261       _ | IFS | as_nl) ;; #(
28262       *) $as_unset $ac_var ;;
28263       esac ;;
28264     esac
28265   done
28266
28267   (set) 2>&1 |
28268     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28269     *${as_nl}ac_space=\ *)
28270       # `set' does not quote correctly, so add quotes (double-quote
28271       # substitution turns \\\\ into \\, and sed turns \\ into \).
28272       sed -n \
28273         "s/'/'\\\\''/g;
28274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28275       ;; #(
28276     *)
28277       # `set' quotes correctly as required by POSIX, so do not add quotes.
28278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28279       ;;
28280     esac |
28281     sort
28282 ) |
28283   sed '
28284      /^ac_cv_env_/b end
28285      t clear
28286      :clear
28287      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28288      t end
28289      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28290      :end' >>confcache
28291 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28292   if test -w $cache_file; then
28293     test "x$cache_file" != "x/dev/null" &&
28294       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28295 echo "$as_me: updating cache $cache_file" >&6;}
28296     cat confcache >$cache_file
28297   else
28298     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28299 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28300   fi
28301 fi
28302 rm -f confcache
28303
28304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28305 # Let make expand exec_prefix.
28306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28307
28308 DEFS=-DHAVE_CONFIG_H
28309
28310 ac_libobjs=
28311 ac_ltlibobjs=
28312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28313   # 1. Remove the extension, and $U if already installed.
28314   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28315   ac_i=`echo "$ac_i" | sed "$ac_script"`
28316   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28317   #    will be set to the directory where LIBOBJS objects are built.
28318   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28319   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28320 done
28321 LIBOBJS=$ac_libobjs
28322
28323 LTLIBOBJS=$ac_ltlibobjs
28324
28325
28326 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28327   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28328 Usually this means the macro was only invoked conditionally." >&5
28329 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28330 Usually this means the macro was only invoked conditionally." >&2;}
28331    { (exit 1); exit 1; }; }
28332 fi
28333 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28334   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28335 Usually this means the macro was only invoked conditionally." >&5
28336 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28337 Usually this means the macro was only invoked conditionally." >&2;}
28338    { (exit 1); exit 1; }; }
28339 fi
28340 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28341   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28342 Usually this means the macro was only invoked conditionally." >&5
28343 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28344 Usually this means the macro was only invoked conditionally." >&2;}
28345    { (exit 1); exit 1; }; }
28346 fi
28347 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28348   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28349 Usually this means the macro was only invoked conditionally." >&5
28350 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28351 Usually this means the macro was only invoked conditionally." >&2;}
28352    { (exit 1); exit 1; }; }
28353 fi
28354 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28355   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28356 Usually this means the macro was only invoked conditionally." >&5
28357 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28358 Usually this means the macro was only invoked conditionally." >&2;}
28359    { (exit 1); exit 1; }; }
28360 fi
28361 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28362   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28363 Usually this means the macro was only invoked conditionally." >&5
28364 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28365 Usually this means the macro was only invoked conditionally." >&2;}
28366    { (exit 1); exit 1; }; }
28367 fi
28368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28369   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28370 Usually this means the macro was only invoked conditionally." >&5
28371 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28372 Usually this means the macro was only invoked conditionally." >&2;}
28373    { (exit 1); exit 1; }; }
28374 fi
28375
28376 : ${CONFIG_STATUS=./config.status}
28377 ac_clean_files_save=$ac_clean_files
28378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28381 cat >$CONFIG_STATUS <<_ACEOF
28382 #! $SHELL
28383 # Generated by $as_me.
28384 # Run this file to recreate the current configuration.
28385 # Compiler output produced by configure, useful for debugging
28386 # configure, is in config.log if it exists.
28387
28388 debug=false
28389 ac_cs_recheck=false
28390 ac_cs_silent=false
28391 SHELL=\${CONFIG_SHELL-$SHELL}
28392 _ACEOF
28393
28394 cat >>$CONFIG_STATUS <<\_ACEOF
28395 ## --------------------- ##
28396 ## M4sh Initialization.  ##
28397 ## --------------------- ##
28398
28399 # Be Bourne compatible
28400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28401   emulate sh
28402   NULLCMD=:
28403   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28404   # is contrary to our usage.  Disable this feature.
28405   alias -g '${1+"$@"}'='"$@"'
28406   setopt NO_GLOB_SUBST
28407 else
28408   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28409 fi
28410 BIN_SH=xpg4; export BIN_SH # for Tru64
28411 DUALCASE=1; export DUALCASE # for MKS sh
28412
28413
28414 # PATH needs CR
28415 # Avoid depending upon Character Ranges.
28416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28419 as_cr_digits='0123456789'
28420 as_cr_alnum=$as_cr_Letters$as_cr_digits
28421
28422 # The user is always right.
28423 if test "${PATH_SEPARATOR+set}" != set; then
28424   echo "#! /bin/sh" >conf$$.sh
28425   echo  "exit 0"   >>conf$$.sh
28426   chmod +x conf$$.sh
28427   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28428     PATH_SEPARATOR=';'
28429   else
28430     PATH_SEPARATOR=:
28431   fi
28432   rm -f conf$$.sh
28433 fi
28434
28435 # Support unset when possible.
28436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28437   as_unset=unset
28438 else
28439   as_unset=false
28440 fi
28441
28442
28443 # IFS
28444 # We need space, tab and new line, in precisely that order.  Quoting is
28445 # there to prevent editors from complaining about space-tab.
28446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28447 # splitting by setting IFS to empty value.)
28448 as_nl='
28449 '
28450 IFS=" ""        $as_nl"
28451
28452 # Find who we are.  Look in the path if we contain no directory separator.
28453 case $0 in
28454   *[\\/]* ) as_myself=$0 ;;
28455   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28456 for as_dir in $PATH
28457 do
28458   IFS=$as_save_IFS
28459   test -z "$as_dir" && as_dir=.
28460   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28461 done
28462 IFS=$as_save_IFS
28463
28464      ;;
28465 esac
28466 # We did not find ourselves, most probably we were run as `sh COMMAND'
28467 # in which case we are not to be found in the path.
28468 if test "x$as_myself" = x; then
28469   as_myself=$0
28470 fi
28471 if test ! -f "$as_myself"; then
28472   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28473   { (exit 1); exit 1; }
28474 fi
28475
28476 # Work around bugs in pre-3.0 UWIN ksh.
28477 for as_var in ENV MAIL MAILPATH
28478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28479 done
28480 PS1='$ '
28481 PS2='> '
28482 PS4='+ '
28483
28484 # NLS nuisances.
28485 for as_var in \
28486   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28487   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28488   LC_TELEPHONE LC_TIME
28489 do
28490   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28491     eval $as_var=C; export $as_var
28492   else
28493     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28494   fi
28495 done
28496
28497 # Required to use basename.
28498 if expr a : '\(a\)' >/dev/null 2>&1 &&
28499    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28500   as_expr=expr
28501 else
28502   as_expr=false
28503 fi
28504
28505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28506   as_basename=basename
28507 else
28508   as_basename=false
28509 fi
28510
28511
28512 # Name of the executable.
28513 as_me=`$as_basename -- "$0" ||
28514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28515          X"$0" : 'X\(//\)$' \| \
28516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28517 echo X/"$0" |
28518     sed '/^.*\/\([^/][^/]*\)\/*$/{
28519             s//\1/
28520             q
28521           }
28522           /^X\/\(\/\/\)$/{
28523             s//\1/
28524             q
28525           }
28526           /^X\/\(\/\).*/{
28527             s//\1/
28528             q
28529           }
28530           s/.*/./; q'`
28531
28532 # CDPATH.
28533 $as_unset CDPATH
28534
28535
28536
28537   as_lineno_1=$LINENO
28538   as_lineno_2=$LINENO
28539   test "x$as_lineno_1" != "x$as_lineno_2" &&
28540   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28541
28542   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28543   # uniformly replaced by the line number.  The first 'sed' inserts a
28544   # line-number line after each line using $LINENO; the second 'sed'
28545   # does the real work.  The second script uses 'N' to pair each
28546   # line-number line with the line containing $LINENO, and appends
28547   # trailing '-' during substitution so that $LINENO is not a special
28548   # case at line end.
28549   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28550   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28551   # E. McMahon (1931-1989) for sed's syntax.  :-)
28552   sed -n '
28553     p
28554     /[$]LINENO/=
28555   ' <$as_myself |
28556     sed '
28557       s/[$]LINENO.*/&-/
28558       t lineno
28559       b
28560       :lineno
28561       N
28562       :loop
28563       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28564       t loop
28565       s/-\n.*//
28566     ' >$as_me.lineno &&
28567   chmod +x "$as_me.lineno" ||
28568     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28569    { (exit 1); exit 1; }; }
28570
28571   # Don't try to exec as it changes $[0], causing all sort of problems
28572   # (the dirname of $[0] is not the place where we might find the
28573   # original and so on.  Autoconf is especially sensitive to this).
28574   . "./$as_me.lineno"
28575   # Exit status is that of the last command.
28576   exit
28577 }
28578
28579
28580 if (dirname -- /) >/dev/null 2>&1; then
28581   as_dirname=dirname
28582 else
28583   as_dirname=false
28584 fi
28585
28586 ECHO_C= ECHO_N= ECHO_T=
28587 case `echo -n x` in
28588 -n*)
28589   case `echo 'x\c'` in
28590   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28591   *)   ECHO_C='\c';;
28592   esac;;
28593 *)
28594   ECHO_N='-n';;
28595 esac
28596
28597 if expr a : '\(a\)' >/dev/null 2>&1 &&
28598    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28599   as_expr=expr
28600 else
28601   as_expr=false
28602 fi
28603
28604 rm -f conf$$ conf$$.exe conf$$.file
28605 if test -d conf$$.dir; then
28606   rm -f conf$$.dir/conf$$.file
28607 else
28608   rm -f conf$$.dir
28609   mkdir conf$$.dir
28610 fi
28611 echo >conf$$.file
28612 if ln -s conf$$.file conf$$ 2>/dev/null; then
28613   as_ln_s='ln -s'
28614   # ... but there are two gotchas:
28615   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28616   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28617   # In both cases, we have to default to `cp -p'.
28618   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28619     as_ln_s='cp -p'
28620 elif ln conf$$.file conf$$ 2>/dev/null; then
28621   as_ln_s=ln
28622 else
28623   as_ln_s='cp -p'
28624 fi
28625 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28626 rmdir conf$$.dir 2>/dev/null
28627
28628 if mkdir -p . 2>/dev/null; then
28629   as_mkdir_p=:
28630 else
28631   test -d ./-p && rmdir ./-p
28632   as_mkdir_p=false
28633 fi
28634
28635 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
28636 # systems may use methods other than mode bits to determine executability.
28637 cat >conf$$.file <<_ASEOF
28638 #! /bin/sh
28639 exit 0
28640 _ASEOF
28641 chmod +x conf$$.file
28642 if test -x conf$$.file >/dev/null 2>&1; then
28643   as_executable_p="test -x"
28644 else
28645   as_executable_p=:
28646 fi
28647 rm -f conf$$.file
28648
28649 # Sed expression to map a string onto a valid CPP name.
28650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28651
28652 # Sed expression to map a string onto a valid variable name.
28653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28654
28655
28656 exec 6>&1
28657
28658 # Save the log message, to keep $[0] and so on meaningful, and to
28659 # report actual input values of CONFIG_FILES etc. instead of their
28660 # values after options handling.
28661 ac_log="
28662 This file was extended by linux nfs-utils $as_me 1.0.8, which was
28663 generated by GNU Autoconf 2.59d.  Invocation command line was
28664
28665   CONFIG_FILES    = $CONFIG_FILES
28666   CONFIG_HEADERS  = $CONFIG_HEADERS
28667   CONFIG_LINKS    = $CONFIG_LINKS
28668   CONFIG_COMMANDS = $CONFIG_COMMANDS
28669   $ $0 $@
28670
28671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28672 "
28673
28674 _ACEOF
28675
28676 cat >>$CONFIG_STATUS <<_ACEOF
28677 # Files that config.status was made for.
28678 config_files="$ac_config_files"
28679 config_headers="$ac_config_headers"
28680 config_commands="$ac_config_commands"
28681
28682 _ACEOF
28683
28684 cat >>$CONFIG_STATUS <<\_ACEOF
28685 ac_cs_usage="\
28686 \`$as_me' instantiates files from templates according to the
28687 current configuration.
28688
28689 Usage: $0 [OPTIONS] [FILE]...
28690
28691   -h, --help       print this help, then exit
28692   -V, --version    print version number, then exit
28693   -q, --quiet      do not print progress messages
28694   -d, --debug      don't remove temporary files
28695       --recheck    update $as_me by reconfiguring in the same conditions
28696   --file=FILE[:TEMPLATE]
28697                    instantiate the configuration file FILE
28698   --header=FILE[:TEMPLATE]
28699                    instantiate the configuration header FILE
28700
28701 Configuration files:
28702 $config_files
28703
28704 Configuration headers:
28705 $config_headers
28706
28707 Configuration commands:
28708 $config_commands
28709
28710 Report bugs to <bug-autoconf@gnu.org>."
28711
28712 _ACEOF
28713 cat >>$CONFIG_STATUS <<_ACEOF
28714 ac_cs_version="\\
28715 linux nfs-utils config.status 1.0.8
28716 configured by $0, generated by GNU Autoconf 2.59d,
28717   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28718
28719 Copyright (C) 2006 Free Software Foundation, Inc.
28720 This config.status script is free software; the Free Software Foundation
28721 gives unlimited permission to copy, distribute and modify it."
28722
28723 ac_pwd='$ac_pwd'
28724 srcdir='$srcdir'
28725 INSTALL='$INSTALL'
28726 _ACEOF
28727
28728 cat >>$CONFIG_STATUS <<\_ACEOF
28729 # If no file are specified by the user, then we need to provide default
28730 # value.  By we need to know if files were specified by the user.
28731 ac_need_defaults=:
28732 while test $# != 0
28733 do
28734   case $1 in
28735   --*=*)
28736     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28737     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28738     ac_shift=:
28739     ;;
28740   *)
28741     ac_option=$1
28742     ac_optarg=$2
28743     ac_shift=shift
28744     ;;
28745   esac
28746
28747   case $ac_option in
28748   # Handling of the options.
28749   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28750     ac_cs_recheck=: ;;
28751   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28752     echo "$ac_cs_version"; exit ;;
28753   --debug | --debu | --deb | --de | --d | -d )
28754     debug=: ;;
28755   --file | --fil | --fi | --f )
28756     $ac_shift
28757     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28758     ac_need_defaults=false;;
28759   --header | --heade | --head | --hea )
28760     $ac_shift
28761     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28762     ac_need_defaults=false;;
28763   --he | --h)
28764     # Conflict between --help and --header
28765     { echo "$as_me: error: ambiguous option: $1
28766 Try \`$0 --help' for more information." >&2
28767    { (exit 1); exit 1; }; };;
28768   --help | --hel | -h )
28769     echo "$ac_cs_usage"; exit ;;
28770   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28771   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28772     ac_cs_silent=: ;;
28773
28774   # This is an error.
28775   -*) { echo "$as_me: error: unrecognized option: $1
28776 Try \`$0 --help' for more information." >&2
28777    { (exit 1); exit 1; }; } ;;
28778
28779   *) ac_config_targets="$ac_config_targets $1"
28780      ac_need_defaults=false ;;
28781
28782   esac
28783   shift
28784 done
28785
28786 ac_configure_extra_args=
28787
28788 if $ac_cs_silent; then
28789   exec 6>/dev/null
28790   ac_configure_extra_args="$ac_configure_extra_args --silent"
28791 fi
28792
28793 _ACEOF
28794 cat >>$CONFIG_STATUS <<_ACEOF
28795 if \$ac_cs_recheck; then
28796   echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28797   CONFIG_SHELL=$SHELL
28798   export CONFIG_SHELL
28799   exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28800 fi
28801
28802 _ACEOF
28803 cat >>$CONFIG_STATUS <<\_ACEOF
28804 exec 5>>config.log
28805 {
28806   echo
28807   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28808 ## Running $as_me. ##
28809 _ASBOX
28810   echo "$ac_log"
28811 } >&5
28812
28813 _ACEOF
28814 cat >>$CONFIG_STATUS <<_ACEOF
28815 #
28816 # INIT-COMMANDS
28817 #
28818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28819
28820 _ACEOF
28821
28822 cat >>$CONFIG_STATUS <<\_ACEOF
28823
28824 # Handling of arguments.
28825 for ac_config_target in $ac_config_targets
28826 do
28827   case $ac_config_target in
28828     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28829     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28830     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28831     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28832     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28833     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28834     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28835     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28836     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28837     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28838     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28839     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28840     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28841     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28842     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28843     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28844     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28845     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28846     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28847     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28848     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28849     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28850     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28851     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28852     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28853     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28854     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28855     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28856     "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28857     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28858     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28859     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28860
28861   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28862 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28863    { (exit 1); exit 1; }; };;
28864   esac
28865 done
28866
28867
28868 # If the user did not use the arguments to specify the items to instantiate,
28869 # then the envvar interface is used.  Set only those that are not.
28870 # We use the long form for the default assignment because of an extremely
28871 # bizarre bug on SunOS 4.1.3.
28872 if $ac_need_defaults; then
28873   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28874   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28875   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28876 fi
28877
28878 # Have a temporary directory for convenience.  Make it in the build tree
28879 # simply because there is no reason against having it here, and in addition,
28880 # creating and moving files from /tmp can sometimes cause problems.
28881 # Hook for its removal unless debugging.
28882 # Note that there is a small window in which the directory will not be cleaned:
28883 # after its creation but before its name has been assigned to `$tmp'.
28884 $debug ||
28885 {
28886   tmp=
28887   trap 'exit_status=$?
28888   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28889 ' 0
28890   trap '{ (exit 1); exit 1; }' 1 2 13 15
28891 }
28892 # Create a (secure) tmp directory for tmp files.
28893
28894 {
28895   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28896   test -n "$tmp" && test -d "$tmp"
28897 }  ||
28898 {
28899   tmp=./conf$$-$RANDOM
28900   (umask 077 && mkdir "$tmp")
28901 } ||
28902 {
28903    echo "$me: cannot create a temporary directory in ." >&2
28904    { (exit 1); exit 1; }
28905 }
28906
28907 #
28908 # Set up the sed scripts for CONFIG_FILES section.
28909 #
28910
28911 # No need to generate the scripts if there are no CONFIG_FILES.
28912 # This happens for instance when ./config.status config.h
28913 if test -n "$CONFIG_FILES"; then
28914
28915 _ACEOF
28916
28917
28918
28919 ac_delim='%!_!# '
28920 for ac_last_try in false false false false false :; do
28921   cat >conf$$subs.sed <<_ACEOF
28922 SHELL!$SHELL$ac_delim
28923 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28924 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28925 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28926 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28927 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28928 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28929 exec_prefix!$exec_prefix$ac_delim
28930 prefix!$prefix$ac_delim
28931 program_transform_name!$program_transform_name$ac_delim
28932 bindir!$bindir$ac_delim
28933 sbindir!$sbindir$ac_delim
28934 libexecdir!$libexecdir$ac_delim
28935 datarootdir!$datarootdir$ac_delim
28936 datadir!$datadir$ac_delim
28937 sysconfdir!$sysconfdir$ac_delim
28938 sharedstatedir!$sharedstatedir$ac_delim
28939 localstatedir!$localstatedir$ac_delim
28940 includedir!$includedir$ac_delim
28941 oldincludedir!$oldincludedir$ac_delim
28942 docdir!$docdir$ac_delim
28943 infodir!$infodir$ac_delim
28944 htmldir!$htmldir$ac_delim
28945 dvidir!$dvidir$ac_delim
28946 pdfdir!$pdfdir$ac_delim
28947 psdir!$psdir$ac_delim
28948 libdir!$libdir$ac_delim
28949 localedir!$localedir$ac_delim
28950 mandir!$mandir$ac_delim
28951 DEFS!$DEFS$ac_delim
28952 ECHO_C!$ECHO_C$ac_delim
28953 ECHO_N!$ECHO_N$ac_delim
28954 ECHO_T!$ECHO_T$ac_delim
28955 LIBS!$LIBS$ac_delim
28956 build_alias!$build_alias$ac_delim
28957 host_alias!$host_alias$ac_delim
28958 target_alias!$target_alias$ac_delim
28959 build!$build$ac_delim
28960 build_cpu!$build_cpu$ac_delim
28961 build_vendor!$build_vendor$ac_delim
28962 build_os!$build_os$ac_delim
28963 host!$host$ac_delim
28964 host_cpu!$host_cpu$ac_delim
28965 host_vendor!$host_vendor$ac_delim
28966 host_os!$host_os$ac_delim
28967 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28968 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28969 INSTALL_DATA!$INSTALL_DATA$ac_delim
28970 CYGPATH_W!$CYGPATH_W$ac_delim
28971 PACKAGE!$PACKAGE$ac_delim
28972 VERSION!$VERSION$ac_delim
28973 ACLOCAL!$ACLOCAL$ac_delim
28974 AUTOCONF!$AUTOCONF$ac_delim
28975 AUTOMAKE!$AUTOMAKE$ac_delim
28976 AUTOHEADER!$AUTOHEADER$ac_delim
28977 MAKEINFO!$MAKEINFO$ac_delim
28978 install_sh!$install_sh$ac_delim
28979 STRIP!$STRIP$ac_delim
28980 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28981 mkdir_p!$mkdir_p$ac_delim
28982 AWK!$AWK$ac_delim
28983 SET_MAKE!$SET_MAKE$ac_delim
28984 am__leading_dot!$am__leading_dot$ac_delim
28985 AMTAR!$AMTAR$ac_delim
28986 am__tar!$am__tar$ac_delim
28987 am__untar!$am__untar$ac_delim
28988 RELEASE!$RELEASE$ac_delim
28989 statedir!$statedir$ac_delim
28990 statduser!$statduser$ac_delim
28991 enable_nfsv3!$enable_nfsv3$ac_delim
28992 IDMAPD!$IDMAPD$ac_delim
28993 enable_nfsv4!$enable_nfsv4$ac_delim
28994 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
28995 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
28996 GSSD!$GSSD$ac_delim
28997 SVCGSSD!$SVCGSSD$ac_delim
28998 enable_gss!$enable_gss$ac_delim
28999 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29000 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29001 kprefix!$kprefix$ac_delim
29002 secure_statd!$secure_statd$ac_delim
29003 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29004 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29005 CC!$CC$ac_delim
29006 CFLAGS!$CFLAGS$ac_delim
29007 LDFLAGS!$LDFLAGS$ac_delim
29008 CPPFLAGS!$CPPFLAGS$ac_delim
29009 ac_ct_CC!$ac_ct_CC$ac_delim
29010 EXEEXT!$EXEEXT$ac_delim
29011 OBJEXT!$OBJEXT$ac_delim
29012 DEPDIR!$DEPDIR$ac_delim
29013 am__include!$am__include$ac_delim
29014 am__quote!$am__quote$ac_delim
29015 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29016 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29017 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29018 CCDEPMODE!$CCDEPMODE$ac_delim
29019 _ACEOF
29020
29021   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
29022     break
29023   elif $ac_last_try; then
29024     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29026    { (exit 1); exit 1; }; }
29027   else
29028     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29029   fi
29030 done
29031
29032 ac_eof=
29033 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
29034   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
29035   ac_eof=`expr 0$ac_eof + 1`
29036 fi
29037
29038 cat >>$CONFIG_STATUS <<_ACEOF
29039 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29041 _ACEOF
29042 sed '
29043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29044 s/^/s,@/; s/!/@,|#_!!_#|/
29045 :n
29046 t n
29047 s/'"$ac_delim"'$/,g/; t
29048 s/$/\\/; p
29049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29050 ' >>$CONFIG_STATUS <conf$$subs.sed
29051 rm -f conf$$subs.sed
29052 cat >>$CONFIG_STATUS <<_ACEOF
29053 CEOF$ac_eof
29054 _ACEOF
29055
29056
29057 ac_delim='%!_!# '
29058 for ac_last_try in false false false false false :; do
29059   cat >conf$$subs.sed <<_ACEOF
29060 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29061 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29062 LIBWRAP!$LIBWRAP$ac_delim
29063 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29064 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29065 CXX!$CXX$ac_delim
29066 CXXFLAGS!$CXXFLAGS$ac_delim
29067 ac_ct_CXX!$ac_ct_CXX$ac_delim
29068 CXXDEPMODE!$CXXDEPMODE$ac_delim
29069 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29070 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29071 CPP!$CPP$ac_delim
29072 LN_S!$LN_S$ac_delim
29073 GREP!$GREP$ac_delim
29074 EGREP!$EGREP$ac_delim
29075 ECHO!$ECHO$ac_delim
29076 AR!$AR$ac_delim
29077 RANLIB!$RANLIB$ac_delim
29078 CXXCPP!$CXXCPP$ac_delim
29079 F77!$F77$ac_delim
29080 FFLAGS!$FFLAGS$ac_delim
29081 ac_ct_F77!$ac_ct_F77$ac_delim
29082 LIBTOOL!$LIBTOOL$ac_delim
29083 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29084 LD!$LD$ac_delim
29085 PKG_CONFIG!$PKG_CONFIG$ac_delim
29086 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29087 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29088 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29089 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29090 LIBSOCKET!$LIBSOCKET$ac_delim
29091 LIBNSL!$LIBNSL$ac_delim
29092 LIBCRYPT!$LIBCRYPT$ac_delim
29093 LIBBSD!$LIBBSD$ac_delim
29094 KRBDIR!$KRBDIR$ac_delim
29095 KRBLIBS!$KRBLIBS$ac_delim
29096 KRBCFLAGS!$KRBCFLAGS$ac_delim
29097 K5VERS!$K5VERS$ac_delim
29098 ALLOCA!$ALLOCA$ac_delim
29099 LIBOBJS!$LIBOBJS$ac_delim
29100 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29101 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29102 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29103 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29104 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29105 AM_CFLAGS!$AM_CFLAGS$ac_delim
29106 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29107 LTLIBOBJS!$LTLIBOBJS$ac_delim
29108 _ACEOF
29109
29110   if test `grep -c "$ac_delim\$" conf$$subs.sed` = 48; then
29111     break
29112   elif $ac_last_try; then
29113     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29115    { (exit 1); exit 1; }; }
29116   else
29117     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29118   fi
29119 done
29120
29121 ac_eof=
29122 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
29123   ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
29124   ac_eof=`expr 0$ac_eof + 1`
29125 fi
29126
29127 cat >>$CONFIG_STATUS <<_ACEOF
29128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29130 _ACEOF
29131 sed '
29132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29133 s/^/s,@/; s/!/@,|#_!!_#|/
29134 :n
29135 t n
29136 s/'"$ac_delim"'$/,g/; t
29137 s/$/\\/; p
29138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29139 ' >>$CONFIG_STATUS <conf$$subs.sed
29140 rm -f conf$$subs.sed
29141 cat >>$CONFIG_STATUS <<_ACEOF
29142 :end
29143 s/|#_!!_#|//g
29144 CEOF$ac_eof
29145 _ACEOF
29146
29147
29148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29150 # trailing colons and then remove the whole line if VPATH becomes empty
29151 # (actually we leave an empty line to preserve line numbers).
29152 if test "x$srcdir" = x.; then
29153   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29154 s/:*\$(srcdir):*/:/
29155 s/:*\${srcdir}:*/:/
29156 s/:*@srcdir@:*/:/
29157 s/^\([^=]*=[     ]*\):*/\1/
29158 s/:*$//
29159 s/^[^=]*=[       ]*$//
29160 }'
29161 fi
29162
29163 cat >>$CONFIG_STATUS <<\_ACEOF
29164 fi # test -n "$CONFIG_FILES"
29165
29166
29167 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29168 do
29169   case $ac_tag in
29170   :[FHLC]) ac_mode=$ac_tag; continue;;
29171   esac
29172   case $ac_mode$ac_tag in
29173   :[FHL]*:*);;
29174   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29176    { (exit 1); exit 1; }; };;
29177   :[FH]-) ac_tag=-:-;;
29178   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29179   esac
29180   ac_save_IFS=$IFS
29181   IFS=:
29182   set x $ac_tag
29183   IFS=$ac_save_IFS
29184   shift
29185   ac_file=$1
29186   shift
29187
29188   case $ac_mode in
29189   :L) ac_source=$1;;
29190   :[FH])
29191     ac_file_inputs=
29192     for ac_f
29193     do
29194       case $ac_f in
29195       -) ac_f="$tmp/stdin";;
29196       *) # Look for the file first in the build tree, then in the source tree
29197          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29198          # because $ac_f cannot contain `:'.
29199          test -f "$ac_f" ||
29200            case $ac_f in
29201            [\\/$]*) false;;
29202            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29203            esac ||
29204            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29206    { (exit 1); exit 1; }; };;
29207       esac
29208       ac_file_inputs="$ac_file_inputs $ac_f"
29209     done
29210
29211     # Let's still pretend it is `configure' which instantiates (i.e., don't
29212     # use $as_me), people would be surprised to read:
29213     #    /* config.h.  Generated by config.status.  */
29214     configure_input="Generated from "`IFS=:
29215           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29216     if test x"$ac_file" != x-; then
29217       configure_input="$ac_file.  $configure_input"
29218       { echo "$as_me:$LINENO: creating $ac_file" >&5
29219 echo "$as_me: creating $ac_file" >&6;}
29220     fi
29221
29222     case $ac_tag in
29223     *:-:* | *:-) cat >"$tmp/stdin";;
29224     esac
29225     ;;
29226   esac
29227
29228   ac_dir=`$as_dirname -- "$ac_file" ||
29229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29230          X"$ac_file" : 'X\(//\)[^/]' \| \
29231          X"$ac_file" : 'X\(//\)$' \| \
29232          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29233 echo X"$ac_file" |
29234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29235             s//\1/
29236             q
29237           }
29238           /^X\(\/\/\)[^/].*/{
29239             s//\1/
29240             q
29241           }
29242           /^X\(\/\/\)$/{
29243             s//\1/
29244             q
29245           }
29246           /^X\(\/\).*/{
29247             s//\1/
29248             q
29249           }
29250           s/.*/./; q'`
29251   { as_dir="$ac_dir"
29252   case $as_dir in #(
29253   -*) as_dir=./$as_dir;;
29254   esac
29255   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29256     as_dirs=
29257     while :; do
29258       case $as_dir in #(
29259       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29260       *) as_qdir=$as_dir;;
29261       esac
29262       as_dirs="'$as_qdir' $as_dirs"
29263       as_dir=`$as_dirname -- "$as_dir" ||
29264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29265          X"$as_dir" : 'X\(//\)[^/]' \| \
29266          X"$as_dir" : 'X\(//\)$' \| \
29267          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29268 echo X"$as_dir" |
29269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29270             s//\1/
29271             q
29272           }
29273           /^X\(\/\/\)[^/].*/{
29274             s//\1/
29275             q
29276           }
29277           /^X\(\/\/\)$/{
29278             s//\1/
29279             q
29280           }
29281           /^X\(\/\).*/{
29282             s//\1/
29283             q
29284           }
29285           s/.*/./; q'`
29286       test -d "$as_dir" && break
29287     done
29288     test -z "$as_dirs" || eval "mkdir $as_dirs"
29289   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29291    { (exit 1); exit 1; }; }; }
29292   ac_builddir=.
29293
29294 case "$ac_dir" in
29295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29296 *)
29297   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29298   # A ".." for each directory in $ac_dir_suffix.
29299   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29300   case $ac_top_builddir_sub in
29301   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29302   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29303   esac ;;
29304 esac
29305 ac_abs_top_builddir=$ac_pwd
29306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29307 # for backward compatibility:
29308 ac_top_builddir=$ac_top_build_prefix
29309
29310 case $srcdir in
29311   .)  # We are building in place.
29312     ac_srcdir=.
29313     ac_top_srcdir=$ac_top_builddir_sub
29314     ac_abs_top_srcdir=$ac_pwd ;;
29315   [\\/]* | ?:[\\/]* )  # Absolute name.
29316     ac_srcdir=$srcdir$ac_dir_suffix;
29317     ac_top_srcdir=$srcdir
29318     ac_abs_top_srcdir=$srcdir ;;
29319   *) # Relative name.
29320     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29321     ac_top_srcdir=$ac_top_build_prefix$srcdir
29322     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29323 esac
29324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29325
29326
29327   case $ac_mode in
29328   :F)
29329   #
29330   # CONFIG_FILE
29331   #
29332
29333   case $INSTALL in
29334   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29335   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29336   esac
29337 _ACEOF
29338
29339 cat >>$CONFIG_STATUS <<\_ACEOF
29340 # If the template does not know about datarootdir, expand it.
29341 # FIXME: This hack should be removed a few years after 2.60.
29342 ac_datarootdir_hack=
29343
29344 case `sed -n '/datarootdir/ {
29345   p
29346   q
29347 }
29348 /@datadir@/p
29349 /@docdir@/p
29350 /@infodir@/p
29351 /@localedir@/p
29352 /@mandir@/p
29353 ' $ac_file_inputs` in
29354 *datarootdir*) ;;
29355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29356   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29358 _ACEOF
29359 cat >>$CONFIG_STATUS <<_ACEOF
29360   ac_datarootdir_hack='
29361   s&@datadir@&$datadir&g
29362   s&@docdir@&$docdir&g
29363   s&@infodir@&$infodir&g
29364   s&@localedir@&$localedir&g
29365   s&@mandir@&$mandir&g
29366     s&\\\${datarootdir}&$datarootdir&g' ;;
29367 esac
29368 _ACEOF
29369
29370 # Neutralize VPATH when `$srcdir' = `.'.
29371 # Shell code in configure.ac might set extrasub.
29372 # FIXME: do we really want to maintain this feature?
29373 cat >>$CONFIG_STATUS <<_ACEOF
29374   sed "$ac_vpsub
29375 $extrasub
29376 _ACEOF
29377 cat >>$CONFIG_STATUS <<\_ACEOF
29378 :t
29379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29380 s&@configure_input@&$configure_input&;t t
29381 s&@top_builddir@&$ac_top_builddir_sub&;t t
29382 s&@srcdir@&$ac_srcdir&;t t
29383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29384 s&@top_srcdir@&$ac_top_srcdir&;t t
29385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29386 s&@builddir@&$ac_builddir&;t t
29387 s&@abs_builddir@&$ac_abs_builddir&;t t
29388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29389 s&@INSTALL@&$ac_INSTALL&;t t
29390 $ac_datarootdir_hack
29391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29392
29393   rm -f "$tmp/stdin"
29394   case $ac_file in
29395   -) cat "$tmp/out"; rm -f "$tmp/out";;
29396   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29397   esac
29398  ;;
29399   :H)
29400   #
29401   # CONFIG_HEADER
29402   #
29403
29404   # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29405   # NAME is the cpp macro being defined, VALUE is the value it is being given.
29406   # PARAMS is the parameter list in the macro definition--in most cases, it's
29407   # just an empty string.
29408   #
29409   ac_dA='s,^\([  ]*#[    ]*\)[^  ]*\([   ][      ]*'
29410   ac_dB='\)[     (].*$,\1define\2'
29411   ac_dC=' '
29412   ac_dD=' ,'
29413
29414   ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
29415 _ACEOF
29416
29417 # Transform confdefs.h into a sed script `conftest.defines', that
29418 # substitutes the proper values into config.h.in to produce config.h.
29419 rm -f conftest.defines conftest.tail
29420 # First, append a space to every undef/define line, to ease matching.
29421 echo 's/$/ /' >conftest.defines
29422 # Then, protect against being on the right side of a sed subst, or in
29423 # an unquoted here document, in config.status.  If some macros were
29424 # called several times there might be several #defines for the same
29425 # symbol, which is useless.  But do not sort them, since the last
29426 # AC_DEFINE must be honored.
29427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29428 uniq confdefs.h |
29429   sed -n '
29430         t rset
29431         :rset
29432         s/^[     ]*#[    ]*define[       ][      ]*//
29433         t ok
29434         d
29435         :ok
29436         s/[\\&,]/\\&/g
29437         s/[\\$`]/\\&/g
29438         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
29439         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
29440   ' >>conftest.defines
29441
29442 # Remove the space that was appended to ease matching.
29443 # Then replace #undef with comments.  This is necessary, for
29444 # example, in the case of _POSIX_SOURCE, which is predefined and required
29445 # on some systems where configure will not decide to define it.
29446 # (The regexp can be short, since the line contains either #define or #undef.)
29447 echo 's/ $//
29448 s,^[     #]*u.*,/* & */,' >>conftest.defines
29449
29450 # Break up conftest.defines:
29451 ac_max_sed_lines=96
29452
29453 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29454 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29455 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29456 # et cetera.
29457 ac_in='$ac_file_inputs'
29458 ac_out='"$tmp/out1"'
29459 ac_nxt='"$tmp/out2"'
29460
29461 while :
29462 do
29463   # Write a here document:
29464     echo '    # First, check the format of the line:
29465     cat >"$tmp/defines.sed" <<CEOF
29466 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_regexp[      ]*$/b def
29467 /^[      ]*#[    ]*define[       ][      ]*$ac_word_regexp[(     ]/b def
29468 b
29469 :def' >>$CONFIG_STATUS
29470   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29471   echo 'CEOF
29472     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29473   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29474   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29475   grep . conftest.tail >/dev/null || break
29476   rm -f conftest.defines
29477   mv conftest.tail conftest.defines
29478 done
29479 rm -f conftest.defines conftest.tail
29480
29481 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29482 cat >>$CONFIG_STATUS <<\_ACEOF
29483   if test x"$ac_file" != x-; then
29484     echo "/* $configure_input  */" >"$tmp/config.h"
29485     cat "$ac_result" >>"$tmp/config.h"
29486     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29487       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29488 echo "$as_me: $ac_file is unchanged" >&6;}
29489     else
29490       rm -f $ac_file
29491       mv "$tmp/config.h" $ac_file
29492     fi
29493   else
29494     echo "/* $configure_input  */"
29495     cat "$ac_result"
29496   fi
29497   rm -f "$tmp/out12"
29498 # Compute $ac_file's index in $config_headers.
29499 _am_stamp_count=1
29500 for _am_header in $config_headers :; do
29501   case $_am_header in
29502     $ac_file | $ac_file:* )
29503       break ;;
29504     * )
29505       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29506   esac
29507 done
29508 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29510          X$ac_file : 'X\(//\)[^/]' \| \
29511          X$ac_file : 'X\(//\)$' \| \
29512          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29513 echo X$ac_file |
29514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29515             s//\1/
29516             q
29517           }
29518           /^X\(\/\/\)[^/].*/{
29519             s//\1/
29520             q
29521           }
29522           /^X\(\/\/\)$/{
29523             s//\1/
29524             q
29525           }
29526           /^X\(\/\).*/{
29527             s//\1/
29528             q
29529           }
29530           s/.*/./; q'`/stamp-h$_am_stamp_count
29531  ;;
29532
29533   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29534 echo "$as_me: executing $ac_file commands" >&6;}
29535  ;;
29536   esac
29537
29538
29539   case $ac_file$ac_mode in
29540     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29541   # Strip MF so we end up with the name of the file.
29542   mf=`echo "$mf" | sed -e 's/:.*$//'`
29543   # Check whether this is an Automake generated Makefile or not.
29544   # We used to match only the files named `Makefile.in', but
29545   # some people rename them; so instead we look at the file content.
29546   # Grep'ing the first line is not enough: some people post-process
29547   # each Makefile.in and add a new line on top of each file to say so.
29548   # So let's grep whole file.
29549   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29550     dirpart=`$as_dirname -- "$mf" ||
29551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29552          X"$mf" : 'X\(//\)[^/]' \| \
29553          X"$mf" : 'X\(//\)$' \| \
29554          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29555 echo X"$mf" |
29556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29557             s//\1/
29558             q
29559           }
29560           /^X\(\/\/\)[^/].*/{
29561             s//\1/
29562             q
29563           }
29564           /^X\(\/\/\)$/{
29565             s//\1/
29566             q
29567           }
29568           /^X\(\/\).*/{
29569             s//\1/
29570             q
29571           }
29572           s/.*/./; q'`
29573   else
29574     continue
29575   fi
29576   # Extract the definition of DEPDIR, am__include, and am__quote
29577   # from the Makefile without running `make'.
29578   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29579   test -z "$DEPDIR" && continue
29580   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29581   test -z "am__include" && continue
29582   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29583   # When using ansi2knr, U may be empty or an underscore; expand it
29584   U=`sed -n 's/^U = //p' < "$mf"`
29585   # Find all dependency output files, they are included files with
29586   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29587   # simplest approach to changing $(DEPDIR) to its actual value in the
29588   # expansion.
29589   for file in `sed -n "
29590     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29591        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29592     # Make sure the directory exists.
29593     test -f "$dirpart/$file" && continue
29594     fdir=`$as_dirname -- "$file" ||
29595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29596          X"$file" : 'X\(//\)[^/]' \| \
29597          X"$file" : 'X\(//\)$' \| \
29598          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29599 echo X"$file" |
29600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29601             s//\1/
29602             q
29603           }
29604           /^X\(\/\/\)[^/].*/{
29605             s//\1/
29606             q
29607           }
29608           /^X\(\/\/\)$/{
29609             s//\1/
29610             q
29611           }
29612           /^X\(\/\).*/{
29613             s//\1/
29614             q
29615           }
29616           s/.*/./; q'`
29617     { as_dir=$dirpart/$fdir
29618   case $as_dir in #(
29619   -*) as_dir=./$as_dir;;
29620   esac
29621   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29622     as_dirs=
29623     while :; do
29624       case $as_dir in #(
29625       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29626       *) as_qdir=$as_dir;;
29627       esac
29628       as_dirs="'$as_qdir' $as_dirs"
29629       as_dir=`$as_dirname -- "$as_dir" ||
29630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29631          X"$as_dir" : 'X\(//\)[^/]' \| \
29632          X"$as_dir" : 'X\(//\)$' \| \
29633          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29634 echo X"$as_dir" |
29635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29636             s//\1/
29637             q
29638           }
29639           /^X\(\/\/\)[^/].*/{
29640             s//\1/
29641             q
29642           }
29643           /^X\(\/\/\)$/{
29644             s//\1/
29645             q
29646           }
29647           /^X\(\/\).*/{
29648             s//\1/
29649             q
29650           }
29651           s/.*/./; q'`
29652       test -d "$as_dir" && break
29653     done
29654     test -z "$as_dirs" || eval "mkdir $as_dirs"
29655   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29656 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29657    { (exit 1); exit 1; }; }; }
29658     # echo "creating $dirpart/$file"
29659     echo '# dummy' > "$dirpart/$file"
29660   done
29661 done
29662  ;;
29663
29664   esac
29665 done # for ac_tag
29666
29667
29668 { (exit 0); exit 0; }
29669 _ACEOF
29670 chmod +x $CONFIG_STATUS
29671 ac_clean_files=$ac_clean_files_save
29672
29673
29674 # configure is writing to config.log, and then calls config.status.
29675 # config.status does its own redirection, appending to config.log.
29676 # Unfortunately, on DOS this fails, as config.log is still kept open
29677 # by configure, so config.status won't be able to write to it; its
29678 # output is simply discarded.  So we exec the FD to /dev/null,
29679 # effectively closing config.log, so it can be properly (re)opened and
29680 # appended to by config.status.  When coming back to configure, we
29681 # need to make the FD available again.
29682 if test "$no_create" != yes; then
29683   ac_cs_success=:
29684   ac_config_status_args=
29685   test "$silent" = yes &&
29686     ac_config_status_args="$ac_config_status_args --quiet"
29687   exec 5>/dev/null
29688   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29689   exec 5>>config.log
29690   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29691   # would make configure fail if this is the last instruction.
29692   $ac_cs_success || { (exit 1); exit 1; }
29693 fi
29694
29695