]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Debian patch 1.0.8+1.0.9pre1-1
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59e for linux nfs-utils 1.0.9-pre1.
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 (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/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.9-pre1'
717 PACKAGE_STRING='linux nfs-utils 1.0.9-pre1'
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 CONFIG_MOUNT_TRUE
843 CONFIG_MOUNT_FALSE
844 CC
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 ac_ct_CC
849 EXEEXT
850 OBJEXT
851 DEPDIR
852 am__include
853 am__quote
854 AMDEP_TRUE
855 AMDEP_FALSE
856 AMDEPBACKSLASH
857 CCDEPMODE
858 am__fastdepCC_TRUE
859 am__fastdepCC_FALSE
860 LIBWRAP
861 HAVE_LIBWRAP
862 HAVE_TCP_WRAPPER
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 CPP
870 LN_S
871 GREP
872 EGREP
873 ECHO
874 AR
875 RANLIB
876 CXXCPP
877 F77
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 CC_FOR_BUILD
882 LD
883 PKG_CONFIG
884 RPCSECGSS_CFLAGS
885 RPCSECGSS_LIBS
886 GSSAPI_CFLAGS
887 GSSAPI_LIBS
888 LIBSOCKET
889 LIBNSL
890 LIBCRYPT
891 LIBBSD
892 KRBDIR
893 KRBLIBS
894 KRBCFLAGS
895 K5VERS
896 ALLOCA
897 LIBOBJS
898 CFLAGS_FOR_BUILD
899 CXXFLAGS_FOR_BUILD
900 CPPFLAGS_FOR_BUILD
901 LDFLAGS_FOR_BUILD
902 AM_CPPFLAGS
903 AM_CFLAGS
904 ACLOCAL_AMFLAGS
905 LTLIBOBJS'
906 ac_subst_files=''
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 CPPFLAGS
914 CXX
915 CXXFLAGS
916 CCC
917 CPP
918 CXXCPP
919 F77
920 FFLAGS
921 PKG_CONFIG
922 RPCSECGSS_CFLAGS
923 RPCSECGSS_LIBS
924 GSSAPI_CFLAGS
925 GSSAPI_LIBS'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
933 cache_file=/dev/null
934 exec_prefix=NONE
935 no_create=
936 no_recursion=
937 prefix=NONE
938 program_prefix=NONE
939 program_suffix=NONE
940 program_transform_name=s,x,x,
941 silent=
942 site=
943 srcdir=
944 verbose=
945 x_includes=NONE
946 x_libraries=NONE
947
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
973
974 ac_prev=
975 ac_dashdash=
976 for ac_option
977 do
978   # If the previous option needs an argument, assign it.
979   if test -n "$ac_prev"; then
980     eval $ac_prev=\$ac_option
981     ac_prev=
982     continue
983   fi
984
985   case $ac_option in
986   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987   *)    ac_optarg=yes ;;
988   esac
989
990   # Accept the important Cygnus configure options, so we can diagnose typos.
991
992   case $ac_dashdash$ac_option in
993   --)
994     ac_dashdash=yes ;;
995
996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
997     ac_prev=bindir ;;
998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999     bindir=$ac_optarg ;;
1000
1001   -build | --build | --buil | --bui | --bu)
1002     ac_prev=build_alias ;;
1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004     build_alias=$ac_optarg ;;
1005
1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008     ac_prev=cache_file ;;
1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011     cache_file=$ac_optarg ;;
1012
1013   --config-cache | -C)
1014     cache_file=config.cache ;;
1015
1016   -datadir | --datadir | --datadi | --datad)
1017     ac_prev=datadir ;;
1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019     datadir=$ac_optarg ;;
1020
1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022   | --dataroo | --dataro | --datar)
1023     ac_prev=datarootdir ;;
1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026     datarootdir=$ac_optarg ;;
1027
1028   -disable-* | --disable-*)
1029     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033    { (exit 1); exit 1; }; }
1034     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1035     eval enable_$ac_feature=no ;;
1036
1037   -docdir | --docdir | --docdi | --doc | --do)
1038     ac_prev=docdir ;;
1039   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040     docdir=$ac_optarg ;;
1041
1042   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043     ac_prev=dvidir ;;
1044   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045     dvidir=$ac_optarg ;;
1046
1047   -enable-* | --enable-*)
1048     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1054     eval enable_$ac_feature=\$ac_optarg ;;
1055
1056   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058   | --exec | --exe | --ex)
1059     ac_prev=exec_prefix ;;
1060   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062   | --exec=* | --exe=* | --ex=*)
1063     exec_prefix=$ac_optarg ;;
1064
1065   -gas | --gas | --ga | --g)
1066     # Obsolete; use --with-gas.
1067     with_gas=yes ;;
1068
1069   -help | --help | --hel | --he | -h)
1070     ac_init_help=long ;;
1071   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072     ac_init_help=recursive ;;
1073   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074     ac_init_help=short ;;
1075
1076   -host | --host | --hos | --ho)
1077     ac_prev=host_alias ;;
1078   -host=* | --host=* | --hos=* | --ho=*)
1079     host_alias=$ac_optarg ;;
1080
1081   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082     ac_prev=htmldir ;;
1083   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084   | --ht=*)
1085     htmldir=$ac_optarg ;;
1086
1087   -includedir | --includedir | --includedi | --included | --include \
1088   | --includ | --inclu | --incl | --inc)
1089     ac_prev=includedir ;;
1090   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091   | --includ=* | --inclu=* | --incl=* | --inc=*)
1092     includedir=$ac_optarg ;;
1093
1094   -infodir | --infodir | --infodi | --infod | --info | --inf)
1095     ac_prev=infodir ;;
1096   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097     infodir=$ac_optarg ;;
1098
1099   -libdir | --libdir | --libdi | --libd)
1100     ac_prev=libdir ;;
1101   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102     libdir=$ac_optarg ;;
1103
1104   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105   | --libexe | --libex | --libe)
1106     ac_prev=libexecdir ;;
1107   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108   | --libexe=* | --libex=* | --libe=*)
1109     libexecdir=$ac_optarg ;;
1110
1111   -localedir | --localedir | --localedi | --localed | --locale)
1112     ac_prev=localedir ;;
1113   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114     localedir=$ac_optarg ;;
1115
1116   -localstatedir | --localstatedir | --localstatedi | --localstated \
1117   | --localstate | --localstat | --localsta | --localst | --locals)
1118     ac_prev=localstatedir ;;
1119   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121     localstatedir=$ac_optarg ;;
1122
1123   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124     ac_prev=mandir ;;
1125   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126     mandir=$ac_optarg ;;
1127
1128   -nfp | --nfp | --nf)
1129     # Obsolete; use --without-fp.
1130     with_fp=no ;;
1131
1132   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133   | --no-cr | --no-c | -n)
1134     no_create=yes ;;
1135
1136   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138     no_recursion=yes ;;
1139
1140   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142   | --oldin | --oldi | --old | --ol | --o)
1143     ac_prev=oldincludedir ;;
1144   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147     oldincludedir=$ac_optarg ;;
1148
1149   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150     ac_prev=prefix ;;
1151   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152     prefix=$ac_optarg ;;
1153
1154   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155   | --program-pre | --program-pr | --program-p)
1156     ac_prev=program_prefix ;;
1157   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159     program_prefix=$ac_optarg ;;
1160
1161   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162   | --program-suf | --program-su | --program-s)
1163     ac_prev=program_suffix ;;
1164   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166     program_suffix=$ac_optarg ;;
1167
1168   -program-transform-name | --program-transform-name \
1169   | --program-transform-nam | --program-transform-na \
1170   | --program-transform-n | --program-transform- \
1171   | --program-transform | --program-transfor \
1172   | --program-transfo | --program-transf \
1173   | --program-trans | --program-tran \
1174   | --progr-tra | --program-tr | --program-t)
1175     ac_prev=program_transform_name ;;
1176   -program-transform-name=* | --program-transform-name=* \
1177   | --program-transform-nam=* | --program-transform-na=* \
1178   | --program-transform-n=* | --program-transform-=* \
1179   | --program-transform=* | --program-transfor=* \
1180   | --program-transfo=* | --program-transf=* \
1181   | --program-trans=* | --program-tran=* \
1182   | --progr-tra=* | --program-tr=* | --program-t=*)
1183     program_transform_name=$ac_optarg ;;
1184
1185   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186     ac_prev=pdfdir ;;
1187   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188     pdfdir=$ac_optarg ;;
1189
1190   -psdir | --psdir | --psdi | --psd | --ps)
1191     ac_prev=psdir ;;
1192   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193     psdir=$ac_optarg ;;
1194
1195   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196   | -silent | --silent | --silen | --sile | --sil)
1197     silent=yes ;;
1198
1199   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200     ac_prev=sbindir ;;
1201   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202   | --sbi=* | --sb=*)
1203     sbindir=$ac_optarg ;;
1204
1205   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207   | --sharedst | --shareds | --shared | --share | --shar \
1208   | --sha | --sh)
1209     ac_prev=sharedstatedir ;;
1210   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213   | --sha=* | --sh=*)
1214     sharedstatedir=$ac_optarg ;;
1215
1216   -site | --site | --sit)
1217     ac_prev=site ;;
1218   -site=* | --site=* | --sit=*)
1219     site=$ac_optarg ;;
1220
1221   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222     ac_prev=srcdir ;;
1223   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224     srcdir=$ac_optarg ;;
1225
1226   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227   | --syscon | --sysco | --sysc | --sys | --sy)
1228     ac_prev=sysconfdir ;;
1229   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231     sysconfdir=$ac_optarg ;;
1232
1233   -target | --target | --targe | --targ | --tar | --ta | --t)
1234     ac_prev=target_alias ;;
1235   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236     target_alias=$ac_optarg ;;
1237
1238   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239     verbose=yes ;;
1240
1241   -version | --version | --versio | --versi | --vers | -V)
1242     ac_init_version=: ;;
1243
1244   -with-* | --with-*)
1245     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1248       { echo "$as_me: error: invalid package name: $ac_package" >&2
1249    { (exit 1); exit 1; }; }
1250     ac_package=`echo $ac_package| sed 's/-/_/g'`
1251     eval with_$ac_package=\$ac_optarg ;;
1252
1253   -without-* | --without-*)
1254     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid package name: $ac_package" >&2
1258    { (exit 1); exit 1; }; }
1259     ac_package=`echo $ac_package | sed 's/-/_/g'`
1260     eval with_$ac_package=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) { echo "$as_me: error: unrecognized option: $ac_option
1281 Try \`$0 --help' for more information." >&2
1282    { (exit 1); exit 1; }; }
1283     ;;
1284
1285   *=*)
1286     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290    { (exit 1); exit 1; }; }
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   { echo "$as_me: error: missing argument to $ac_option" >&2
1308    { (exit 1); exit 1; }; }
1309 fi
1310
1311 # Be sure to have absolute directory names.
1312 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313                 datadir sysconfdir sharedstatedir localstatedir includedir \
1314                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315                 libdir localedir mandir
1316 do
1317   eval ac_val=\$$ac_var
1318   case $ac_val in
1319     [\\/$]* | ?:[\\/]* )  continue;;
1320     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321   esac
1322   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323    { (exit 1); exit 1; }; }
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335   if test "x$build_alias" = x; then
1336     cross_compiling=maybe
1337     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338     If a cross compiler is detected then cross compile mode will be used." >&2
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   { echo "$as_me: error: Working directory cannot be determined" >&2
1354    { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356   { echo "$as_me: error: pwd does not report name of working directory" >&2
1357    { (exit 1); exit 1; }; }
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362   ac_srcdir_defaulted=yes
1363   # Try the directory containing this script, then the parent directory.
1364   ac_confdir=`$as_dirname -- "$0" ||
1365 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366          X"$0" : 'X\(//\)[^/]' \| \
1367          X"$0" : 'X\(//\)$' \| \
1368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369 echo X"$0" |
1370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371             s//\1/
1372             q
1373           }
1374           /^X\(\/\/\)[^/].*/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\).*/{
1383             s//\1/
1384             q
1385           }
1386           s/.*/./; q'`
1387   srcdir=$ac_confdir
1388   if test ! -r "$srcdir/$ac_unique_file"; then
1389     srcdir=..
1390   fi
1391 else
1392   ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397    { (exit 1); exit 1; }; }
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402    { (exit 1); exit 1; }; }
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_env_${ac_var}_value=\$${ac_var}
1417   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425   # Omit some internal or obsolete options to make the list less imposing.
1426   # This message is too long to be a string in the A/UX 3.1 sh.
1427   cat <<_ACEOF
1428 \`configure' configures linux nfs-utils 1.0.9-pre1 to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438   -h, --help              display this help and exit
1439       --help=short        display options specific to this package
1440       --help=recursive    display the short help of all the included packages
1441   -V, --version           display version information and exit
1442   -q, --quiet, --silent   do not print \`checking...' messages
1443       --cache-file=FILE   cache test results in FILE [disabled]
1444   -C, --config-cache      alias for \`--cache-file=config.cache'
1445   -n, --no-create         do not create output files
1446       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449   --prefix=PREFIX         install architecture-independent files in PREFIX
1450                           [$ac_default_prefix]
1451   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                           [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462   --bindir=DIR           user executables [EPREFIX/bin]
1463   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1464   --libexecdir=DIR       program executables [EPREFIX/libexec]
1465   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1466   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1467   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1468   --libdir=DIR           object code libraries [EPREFIX/lib]
1469   --includedir=DIR       C header files [PREFIX/include]
1470   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1471   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1472   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1473   --infodir=DIR          info documentation [DATAROOTDIR/info]
1474   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1475   --mandir=DIR           man documentation [DATAROOTDIR/man]
1476   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1477   --htmldir=DIR          html documentation [DOCDIR]
1478   --dvidir=DIR           dvi documentation [DOCDIR]
1479   --pdfdir=DIR           pdf documentation [DOCDIR]
1480   --psdir=DIR            ps documentation [DOCDIR]
1481 _ACEOF
1482
1483   cat <<\_ACEOF
1484
1485 Program names:
1486   --program-prefix=PREFIX            prepend PREFIX to installed program names
1487   --program-suffix=SUFFIX            append SUFFIX to installed program names
1488   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490 System types:
1491   --build=BUILD     configure for building on BUILD [guessed]
1492   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497   case $ac_init_help in
1498      short | recursive ) echo "Configuration of linux nfs-utils 1.0.9-pre1:";;
1499    esac
1500   cat <<\_ACEOF
1501
1502 Optional Features:
1503   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505   --enable-nfsv3          enable support for NFSv3 [default=yes]
1506   --enable-nfsv4          enable support for NFSv4 [default=yes]
1507   --enable-gss            enable support for rpcsec_gss [default=yes]
1508   --enable-kprefix        install progs as rpc.knfsd etc
1509   --enable-secure-statd   Only lockd can use statd (security)
1510   --enable-rquotad        enable rquotad [default=yes]
1511   --enable-mount          Create mount.nfs and don't use the util-linux
1512                           mount(8) functionality. [default=yes]
1513   --disable-dependency-tracking  speeds up one-time build
1514   --enable-dependency-tracking   do not reject slow dependency extractors
1515   --enable-shared[=PKGS]  build shared libraries [default=yes]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-libtool-lock  avoid locking (might break parallel builds)
1520
1521 Optional Packages:
1522   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524   --with-release=XXX      set release to XXX [1]
1525   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1526   --with-statduser=rpcuser
1527                           statd to run under [rpcuser or nobody]
1528   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1529                  (optionally in PATH)
1530   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1531   --with-pic              try to use only PIC/non-PIC objects [default=use
1532                           both]
1533   --with-tags[=TAGS]      include additional configurations [automatic]
1534   --with-krb5=DIR         use Kerberos v5 installation in DIR
1535
1536 Some influential environment variables:
1537   CC          C compiler command
1538   CFLAGS      C compiler flags
1539   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540               nonstandard directory <lib dir>
1541   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1542               you have headers in a nonstandard directory <include dir>
1543   CXX         C++ compiler command
1544   CXXFLAGS    C++ compiler flags
1545   CPP         C preprocessor
1546   CXXCPP      C++ preprocessor
1547   F77         Fortran 77 compiler command
1548   FFLAGS      Fortran 77 compiler flags
1549   PKG_CONFIG  path to pkg-config utility
1550   RPCSECGSS_CFLAGS
1551               C compiler flags for RPCSECGSS, overriding pkg-config
1552   RPCSECGSS_LIBS
1553               linker flags for RPCSECGSS, overriding pkg-config
1554   GSSAPI_CFLAGS
1555               C compiler flags for GSSAPI, overriding pkg-config
1556   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to <nfs@lists.sf.net>.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567   # If there are subdirs, report their specific --help.
1568   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569     test -d "$ac_dir" || continue
1570     ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1576   # A ".." for each directory in $ac_dir_suffix.
1577   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1578   case $ac_top_builddir_sub in
1579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581   esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589   .)  # We are building in place.
1590     ac_srcdir=.
1591     ac_top_srcdir=$ac_top_builddir_sub
1592     ac_abs_top_srcdir=$ac_pwd ;;
1593   [\\/]* | ?:[\\/]* )  # Absolute name.
1594     ac_srcdir=$srcdir$ac_dir_suffix;
1595     ac_top_srcdir=$srcdir
1596     ac_abs_top_srcdir=$srcdir ;;
1597   *) # Relative name.
1598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599     ac_top_srcdir=$ac_top_build_prefix$srcdir
1600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604     cd "$ac_dir" || { ac_status=$?; continue; }
1605     # Check for guested configure.
1606     if test -f "$ac_srcdir/configure.gnu"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609     elif test -f "$ac_srcdir/configure"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure" --help=recursive
1612     else
1613       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614     fi || ac_status=$?
1615     cd "$ac_pwd" || { ac_status=$?; break; }
1616   done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621   cat <<\_ACEOF
1622 linux nfs-utils configure 1.0.9-pre1
1623 generated by GNU Autoconf 2.59e
1624
1625 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1626 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630   exit
1631 fi
1632 cat >config.log <<_ACEOF
1633 This file contains any messages produced by compilers while
1634 running configure, to aid debugging if configure makes a mistake.
1635
1636 It was created by linux nfs-utils $as_me 1.0.9-pre1, which was
1637 generated by GNU Autoconf 2.59e.  Invocation command line was
1638
1639   $ $0 $@
1640
1641 _ACEOF
1642 exec 5>>config.log
1643 {
1644 cat <<_ASUNAME
1645 ## --------- ##
1646 ## Platform. ##
1647 ## --------- ##
1648
1649 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1650 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1651 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1652 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1653 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1654
1655 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1656 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1657
1658 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1659 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1660 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1661 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1662 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1663 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1664 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1665
1666 _ASUNAME
1667
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   echo "PATH: $as_dir"
1674 done
1675 IFS=$as_save_IFS
1676
1677 } >&5
1678
1679 cat >&5 <<_ACEOF
1680
1681
1682 ## ----------- ##
1683 ## Core tests. ##
1684 ## ----------- ##
1685
1686 _ACEOF
1687
1688
1689 # Keep a trace of the command line.
1690 # Strip out --no-create and --no-recursion so they do not pile up.
1691 # Strip out --silent because we don't want to record it for future runs.
1692 # Also quote any args containing shell meta-characters.
1693 # Make two passes to allow for proper duplicate-argument suppression.
1694 ac_configure_args=
1695 ac_configure_args0=
1696 ac_configure_args1=
1697 ac_must_keep_next=false
1698 for ac_pass in 1 2
1699 do
1700   for ac_arg
1701   do
1702     case $ac_arg in
1703     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1704     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1705     | -silent | --silent | --silen | --sile | --sil)
1706       continue ;;
1707     *\'*)
1708       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709     esac
1710     case $ac_pass in
1711     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1712     2)
1713       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1714       if test $ac_must_keep_next = true; then
1715         ac_must_keep_next=false # Got value, back to normal.
1716       else
1717         case $ac_arg in
1718           *=* | --config-cache | -C | -disable-* | --disable-* \
1719           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1720           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1721           | -with-* | --with-* | -without-* | --without-* | --x)
1722             case "$ac_configure_args0 " in
1723               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724             esac
1725             ;;
1726           -* ) ac_must_keep_next=true ;;
1727         esac
1728       fi
1729       ac_configure_args="$ac_configure_args '$ac_arg'"
1730       ;;
1731     esac
1732   done
1733 done
1734 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1735 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1736
1737 # When interrupted or exit'd, cleanup temporary files, and complete
1738 # config.log.  We remove comments because anyway the quotes in there
1739 # would cause problems or look ugly.
1740 # WARNING: Use '\'' to represent an apostrophe within the trap.
1741 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1742 trap 'exit_status=$?
1743   # Save into config.log some information that might help in debugging.
1744   {
1745     echo
1746
1747     cat <<\_ASBOX
1748 ## ---------------- ##
1749 ## Cache variables. ##
1750 ## ---------------- ##
1751 _ASBOX
1752     echo
1753     # The following way of writing the cache mishandles newlines in values,
1754 (
1755   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1756     eval ac_val=\$$ac_var
1757     case $ac_val in #(
1758     *${as_nl}*)
1759       case $ac_var in #(
1760       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1761 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762       esac
1763       case $ac_var in #(
1764       _ | IFS | as_nl) ;; #(
1765       *) $as_unset $ac_var ;;
1766       esac ;;
1767     esac
1768   done
1769   (set) 2>&1 |
1770     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1771     *${as_nl}ac_space=\ *)
1772       sed -n \
1773         "s/'\''/'\''\\\\'\'''\''/g;
1774           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775       ;; #(
1776     *)
1777       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1778       ;;
1779     esac |
1780     sort
1781 )
1782     echo
1783
1784     cat <<\_ASBOX
1785 ## ----------------- ##
1786 ## Output variables. ##
1787 ## ----------------- ##
1788 _ASBOX
1789     echo
1790     for ac_var in $ac_subst_vars
1791     do
1792       eval ac_val=\$$ac_var
1793       case $ac_val in
1794       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795       esac
1796       echo "$ac_var='\''$ac_val'\''"
1797     done | sort
1798     echo
1799
1800     if test -n "$ac_subst_files"; then
1801       cat <<\_ASBOX
1802 ## ------------------- ##
1803 ## File substitutions. ##
1804 ## ------------------- ##
1805 _ASBOX
1806       echo
1807       for ac_var in $ac_subst_files
1808       do
1809         eval ac_val=\$$ac_var
1810         case $ac_val in
1811         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812         esac
1813         echo "$ac_var='\''$ac_val'\''"
1814       done | sort
1815       echo
1816     fi
1817
1818     if test -s confdefs.h; then
1819       cat <<\_ASBOX
1820 ## ----------- ##
1821 ## confdefs.h. ##
1822 ## ----------- ##
1823 _ASBOX
1824       echo
1825       cat confdefs.h
1826       echo
1827     fi
1828     test "$ac_signal" != 0 &&
1829       echo "$as_me: caught signal $ac_signal"
1830     echo "$as_me: exit $exit_status"
1831   } >&5
1832   rm -f core *.core core.conftest.* &&
1833     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834     exit $exit_status
1835 ' 0
1836 for ac_signal in 1 2 13 15; do
1837   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1838 done
1839 ac_signal=0
1840
1841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1842 rm -f -r conftest* confdefs.h
1843
1844 # Predefined preprocessor variables.
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_NAME "$PACKAGE_NAME"
1848 _ACEOF
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_STRING "$PACKAGE_STRING"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1868 _ACEOF
1869
1870
1871 # Let the site file select an alternate cache file if it wants to.
1872 # Prefer explicitly selected file to automatically selected ones.
1873 if test -n "$CONFIG_SITE"; then
1874   set x "$CONFIG_SITE"
1875 elif test "x$prefix" != xNONE; then
1876   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1877 else
1878   set x "$ac_default_prefix/share/config.site" \
1879         "$ac_default_prefix/etc/config.site"
1880 fi
1881 shift
1882 for ac_site_file
1883 do
1884   if test -r "$ac_site_file"; then
1885     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1886 echo "$as_me: loading site script $ac_site_file" >&6;}
1887     sed 's/^/| /' "$ac_site_file" >&5
1888     . "$ac_site_file"
1889   fi
1890 done
1891
1892 if test -r "$cache_file"; then
1893   # Some versions of bash will fail to source /dev/null (special
1894   # files actually), so we avoid doing that.
1895   if test -f "$cache_file"; then
1896     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1897 echo "$as_me: loading cache $cache_file" >&6;}
1898     case $cache_file in
1899       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1900       *)                      . "./$cache_file";;
1901     esac
1902   fi
1903 else
1904   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1905 echo "$as_me: creating cache $cache_file" >&6;}
1906   >$cache_file
1907 fi
1908
1909 # Check that the precious variables saved in the cache have kept the same
1910 # value.
1911 ac_cache_corrupted=false
1912 for ac_var in $ac_precious_vars; do
1913   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1914   eval ac_new_set=\$ac_env_${ac_var}_set
1915   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1916   eval ac_new_val=\$ac_env_${ac_var}_value
1917   case $ac_old_set,$ac_new_set in
1918     set,)
1919       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921       ac_cache_corrupted=: ;;
1922     ,set)
1923       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925       ac_cache_corrupted=: ;;
1926     ,);;
1927     *)
1928       if test "x$ac_old_val" != "x$ac_new_val"; then
1929         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1930 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1931         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1932 echo "$as_me:   former value:  $ac_old_val" >&2;}
1933         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1934 echo "$as_me:   current value: $ac_new_val" >&2;}
1935         ac_cache_corrupted=:
1936       fi;;
1937   esac
1938   # Pass precious variables to config.status.
1939   if test "$ac_new_set" = set; then
1940     case $ac_new_val in
1941     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942     *) ac_arg=$ac_var=$ac_new_val ;;
1943     esac
1944     case " $ac_configure_args " in
1945       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1946       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1947     esac
1948   fi
1949 done
1950 if $ac_cache_corrupted; then
1951   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1952 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1953   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1954 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982 ac_ext=c
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987
1988
1989 ac_aux_dir=
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991   if test -f "$ac_dir/install-sh"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/install-sh -c"
1994     break
1995   elif test -f "$ac_dir/install.sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install.sh -c"
1998     break
1999   elif test -f "$ac_dir/shtool"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/shtool install -c"
2002     break
2003   fi
2004 done
2005 if test -z "$ac_aux_dir"; then
2006   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2018
2019
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037    { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041    { (exit 1); exit 1; }; }
2042
2043 fi
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2047 *-*-*) ;;
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050    { (exit 1); exit 1; }; };;
2051 esac
2052 build=$ac_cv_build
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_build
2055 shift
2056 build_cpu=$1
2057 build_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 build_os=$*
2062 IFS=$ac_save_IFS
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2064
2065
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   if test "x$host_alias" = x; then
2072   ac_cv_host=$ac_cv_build
2073 else
2074   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 fi
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2083 case $ac_cv_host in
2084 *-*-*) ;;
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087    { (exit 1); exit 1; }; };;
2088 esac
2089 host=$ac_cv_host
2090 ac_save_IFS=$IFS; IFS='-'
2091 set x $ac_cv_host
2092 shift
2093 host_cpu=$1
2094 host_vendor=$2
2095 shift; shift
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2098 host_os=$*
2099 IFS=$ac_save_IFS
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2101
2102
2103
2104 case aclocal in
2105   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
2106   *)                      ac_macro_dir=$srcdir/aclocal ;;
2107 esac
2108 test -d "$ac_macro_dir" ||
2109   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2110 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2111    { (exit 1); exit 1; }; }
2112
2113 am__api_version="1.9"
2114 # Find a good install program.  We prefer a C program (faster),
2115 # so one script is as good as another.  But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2120 # AIX /bin/install
2121 # AmigaOS /C/install, which installs bootblocks on floppy discs
2122 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2123 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2124 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2125 # OS/2's system install, which has a completely different semantic
2126 # ./install, which can be erroneously created by make from ./install.sh.
2127 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2128 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2129 if test -z "$INSTALL"; then
2130 if test "${ac_cv_path_install+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   # Account for people who put trailing slashes in PATH elements.
2139 case $as_dir/ in
2140   ./ | .// | /cC/* | \
2141   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2142   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2143   /usr/ucb/* ) ;;
2144   *)
2145     # OSF1 and SCO ODT 3.0 have their own names for install.
2146     # Don't use installbsd from OSF since it installs stuff as root
2147     # by default.
2148     for ac_prog in ginstall scoinst install; do
2149       for ac_exec_ext in '' $ac_executable_extensions; do
2150         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2151           if test $ac_prog = install &&
2152             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153             # AIX install.  It has an incompatible calling convention.
2154             :
2155           elif test $ac_prog = install &&
2156             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157             # program-specific install script used by HP pwplus--don't use.
2158             :
2159           else
2160             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2161             break 3
2162           fi
2163         fi
2164       done
2165     done
2166     ;;
2167 esac
2168 done
2169 IFS=$as_save_IFS
2170
2171
2172 fi
2173   if test "${ac_cv_path_install+set}" = set; then
2174     INSTALL=$ac_cv_path_install
2175   else
2176     # As a last resort, use the slow shell script.  Don't cache a
2177     # value for INSTALL within a source directory, because that will
2178     # break other packages using the cache if that directory is
2179     # removed, or if the value is a relative name.
2180     INSTALL=$ac_install_sh
2181   fi
2182 fi
2183 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2184 echo "${ECHO_T}$INSTALL" >&6; }
2185
2186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2187 # It thinks the first close brace ends the variable substitution.
2188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189
2190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191
2192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193
2194 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2195 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2196 # Just in case
2197 sleep 1
2198 echo timestamp > conftest.file
2199 # Do `set' in a subshell so we don't clobber the current shell's
2200 # arguments.  Must try -L first in case configure is actually a
2201 # symlink; some systems play weird games with the mod time of symlinks
2202 # (eg FreeBSD returns the mod time of the symlink's containing
2203 # directory).
2204 if (
2205    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2206    if test "$*" = "X"; then
2207       # -L didn't work.
2208       set X `ls -t $srcdir/configure conftest.file`
2209    fi
2210    rm -f conftest.file
2211    if test "$*" != "X $srcdir/configure conftest.file" \
2212       && test "$*" != "X conftest.file $srcdir/configure"; then
2213
2214       # If neither matched, then we have a broken ls.  This can happen
2215       # if, for instance, CONFIG_SHELL is bash and it inherits a
2216       # broken ls alias from the environment.  This has actually
2217       # happened.  Such a system could not be considered "sane".
2218       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2219 alias in your environment" >&5
2220 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2221 alias in your environment" >&2;}
2222    { (exit 1); exit 1; }; }
2223    fi
2224
2225    test "$2" = conftest.file
2226    )
2227 then
2228    # Ok.
2229    :
2230 else
2231    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2232 Check your system clock" >&5
2233 echo "$as_me: error: newly created file is older than distributed files!
2234 Check your system clock" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 test "$program_prefix" != NONE &&
2240   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2241 # Use a double $ so make ignores it.
2242 test "$program_suffix" != NONE &&
2243   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2244 # Double any \ or $.  echo might interpret backslashes.
2245 # By default was `s,x,x', remove it if useless.
2246 cat <<\_ACEOF >conftest.sed
2247 s/[\\$]/&&/g;s/;s,x,x,$//
2248 _ACEOF
2249 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2250 rm -f conftest.sed
2251
2252 # expand $ac_aux_dir to an absolute path
2253 am_aux_dir=`cd $ac_aux_dir && pwd`
2254
2255 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2256 # Use eval to expand $SHELL
2257 if eval "$MISSING --run true"; then
2258   am_missing_run="$MISSING --run "
2259 else
2260   am_missing_run=
2261   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2262 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2263 fi
2264
2265 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2266   # We used to keeping the `.' as first argument, in order to
2267   # allow $(mkdir_p) to be used without argument.  As in
2268   #   $(mkdir_p) $(somedir)
2269   # where $(somedir) is conditionally defined.  However this is wrong
2270   # for two reasons:
2271   #  1. if the package is installed by a user who cannot write `.'
2272   #     make install will fail,
2273   #  2. the above comment should most certainly read
2274   #     $(mkdir_p) $(DESTDIR)$(somedir)
2275   #     so it does not work when $(somedir) is undefined and
2276   #     $(DESTDIR) is not.
2277   #  To support the latter case, we have to write
2278   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2279   #  so the `.' trick is pointless.
2280   mkdir_p='mkdir -p --'
2281 else
2282   # On NextStep and OpenStep, the `mkdir' command does not
2283   # recognize any option.  It will interpret all options as
2284   # directories to create, and then abort because `.' already
2285   # exists.
2286   for d in ./-p ./--version;
2287   do
2288     test -d $d && rmdir $d
2289   done
2290   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291   if test -f "$ac_aux_dir/mkinstalldirs"; then
2292     mkdir_p='$(mkinstalldirs)'
2293   else
2294     mkdir_p='$(install_sh) -d'
2295   fi
2296 fi
2297
2298 for ac_prog in gawk mawk nawk awk
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$AWK"; then
2308   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_prog_AWK="$ac_prog"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 AWK=$ac_cv_prog_AWK
2328 if test -n "$AWK"; then
2329   { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337   test -n "$AWK" && break
2338 done
2339
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   cat >conftest.make <<\_ACEOF
2347 SHELL = /bin/sh
2348 all:
2349         @echo '@@@%%%=$(MAKE)=@@@%%%'
2350 _ACEOF
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353   *@@@%%%=?*=@@@%%%*)
2354     eval ac_cv_prog_make_${ac_make}_set=yes;;
2355   *)
2356     eval ac_cv_prog_make_${ac_make}_set=no;;
2357 esac
2358 rm -f conftest.make
2359 fi
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361   { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2363   SET_MAKE=
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367   SET_MAKE="MAKE=${MAKE-make}"
2368 fi
2369
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2373   am__leading_dot=.
2374 else
2375   am__leading_dot=_
2376 fi
2377 rmdir .tst 2>/dev/null
2378
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381    test -f $srcdir/config.status; then
2382   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389   if (cygpath --version) >/dev/null 2>/dev/null; then
2390     CYGPATH_W='cygpath -w'
2391   else
2392     CYGPATH_W=echo
2393   fi
2394 fi
2395
2396
2397 # Define the identity of the package.
2398  PACKAGE='nfs-utils'
2399  VERSION='1.0.9-pre1'
2400
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE "$PACKAGE"
2404 _ACEOF
2405
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define VERSION "$VERSION"
2409 _ACEOF
2410
2411 # Some tools Automake needs.
2412
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2414
2415
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2417
2418
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2420
2421
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2423
2424
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2426
2427 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2428
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'.  However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434   if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_STRIP+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$STRIP"; then
2443   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464   { echo "$as_me:$LINENO: result: $STRIP" >&5
2465 echo "${ECHO_T}$STRIP" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_STRIP"; then
2474   ac_ct_STRIP=$STRIP
2475   # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_STRIP"; then
2483   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_STRIP="strip"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2505 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_STRIP" = x; then
2512     STRIP=":"
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     STRIP=$ac_ct_STRIP
2525   fi
2526 else
2527   STRIP="$ac_cv_prog_STRIP"
2528 fi
2529
2530 fi
2531 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2532
2533 # We need awk for the "check" target.  The system "awk" is bad on
2534 # some platforms.
2535 # Always define AMTAR for backward compatibility.
2536
2537 AMTAR=${AMTAR-"${am_missing_run}tar"}
2538
2539 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549 # Check whether --with-release was given.
2550 if test "${with_release+set}" = set; then
2551   withval=$with_release; RELEASE=$withval
2552 else
2553   RELEASE=1
2554 fi
2555
2556
2557
2558 # Check whether --with-statedir was given.
2559 if test "${with_statedir+set}" = set; then
2560   withval=$with_statedir; statedir=$withval
2561 else
2562   statedir=/var/lib/nfs
2563 fi
2564
2565
2566
2567 # Check whether --with-statduser was given.
2568 if test "${with_statduser+set}" = set; then
2569   withval=$with_statduser; statduser=$withval
2570 else
2571   if test "x$cross_compiling" = "xno"; then
2572                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2573                         statduser=rpcuser
2574                 else
2575                         statduser=nobody
2576                 fi
2577         else
2578                 statduser=nobody
2579         fi
2580 fi
2581
2582
2583 # Check whether --enable-nfsv3 was given.
2584 if test "${enable_nfsv3+set}" = set; then
2585   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2586 else
2587   enable_nfsv3=yes
2588 fi
2589
2590         if test "$enable_nfsv3" = yes; then
2591
2592 cat >>confdefs.h <<\_ACEOF
2593 #define NFS3_SUPPORTED 1
2594 _ACEOF
2595
2596         else
2597                 enable_nfsv3=
2598         fi
2599
2600 # Check whether --enable-nfsv4 was given.
2601 if test "${enable_nfsv4+set}" = set; then
2602   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2603 else
2604   enable_nfsv4=yes
2605 fi
2606
2607         if test "$enable_nfsv4" = yes; then
2608
2609 cat >>confdefs.h <<\_ACEOF
2610 #define NFS4_SUPPORTED 1
2611 _ACEOF
2612
2613                 IDMAPD=idmapd
2614         else
2615                 enable_nfsv4=
2616                 IDMAPD=
2617         fi
2618
2619
2620
2621
2622 if test "$enable_nfsv4" = "yes"; then
2623   CONFIG_NFSV4_TRUE=
2624   CONFIG_NFSV4_FALSE='#'
2625 else
2626   CONFIG_NFSV4_TRUE='#'
2627   CONFIG_NFSV4_FALSE=
2628 fi
2629
2630 # Check whether --enable-gss was given.
2631 if test "${enable_gss+set}" = set; then
2632   enableval=$enable_gss; enable_gss=$enableval
2633 else
2634   enable_gss=yes
2635 fi
2636
2637         if test "$enable_gss" = yes; then
2638
2639 cat >>confdefs.h <<\_ACEOF
2640 #define GSS_SUPPORTED 1
2641 _ACEOF
2642
2643                 GSSD=gssd
2644                 SVCGSSD=svcgssd
2645         else
2646                 enable_gss=
2647                 GSSD=
2648                 SVCGSSD=
2649         fi
2650
2651
2652
2653
2654
2655 if test "$enable_gss" = "yes"; then
2656   CONFIG_GSS_TRUE=
2657   CONFIG_GSS_FALSE='#'
2658 else
2659   CONFIG_GSS_TRUE='#'
2660   CONFIG_GSS_FALSE=
2661 fi
2662
2663 # Check whether --enable-kprefix was given.
2664 if test "${enable_kprefix+set}" = set; then
2665   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2666 else
2667   kprefix=
2668 fi
2669
2670
2671 # Check whether --enable-secure-statd was given.
2672 if test "${enable_secure_statd+set}" = set; then
2673   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2674 else
2675   secure_statd=no
2676 fi
2677
2678         if test "$secure_statd" = yes; then
2679
2680 cat >>confdefs.h <<\_ACEOF
2681 #define RESTRICTED_STATD 1
2682 _ACEOF
2683
2684         fi
2685
2686 # Check whether --enable-rquotad was given.
2687 if test "${enable_rquotad+set}" = set; then
2688   enableval=$enable_rquotad; enable_rquotad=$enableval
2689 else
2690   enable_rquotad=yes
2691 fi
2692
2693         if test "$enable_rquotad" = yes; then
2694                 RQUOTAD=rquotad
2695         else
2696                 RQUOTAD=
2697         fi
2698
2699
2700 if test "$enable_rquotad" = "yes"; then
2701   CONFIG_RQUOTAD_TRUE=
2702   CONFIG_RQUOTAD_FALSE='#'
2703 else
2704   CONFIG_RQUOTAD_TRUE='#'
2705   CONFIG_RQUOTAD_FALSE=
2706 fi
2707
2708
2709 # Check whether --enable-mount was given.
2710 if test "${enable_mount+set}" = set; then
2711   enableval=$enable_mount; enable_mount=$enableval
2712 else
2713   enable_mount=yes
2714 fi
2715
2716
2717
2718 if test "$enable_mount" = "yes"; then
2719   CONFIG_MOUNT_TRUE=
2720   CONFIG_MOUNT_FALSE='#'
2721 else
2722   CONFIG_MOUNT_TRUE='#'
2723   CONFIG_MOUNT_FALSE=
2724 fi
2725
2726
2727 # Check whether user wants TCP wrappers support
2728 DEPDIR="${am__leading_dot}deps"
2729
2730 ac_config_commands="$ac_config_commands depfiles"
2731
2732
2733 am_make=${MAKE-make}
2734 cat > confinc << 'END'
2735 am__doit:
2736         @echo done
2737 .PHONY: am__doit
2738 END
2739 # If we don't find an include directive, just comment out the code.
2740 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2741 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2742 am__include="#"
2743 am__quote=
2744 _am_result=none
2745 # First try GNU make style include.
2746 echo "include confinc" > confmf
2747 # We grep out `Entering directory' and `Leaving directory'
2748 # messages which can occur if `w' ends up in MAKEFLAGS.
2749 # In particular we don't look at `^make:' because GNU make might
2750 # be invoked under some other name (usually "gmake"), in which
2751 # case it prints its new name instead of `make'.
2752 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2753    am__include=include
2754    am__quote=
2755    _am_result=GNU
2756 fi
2757 # Now try BSD make style include.
2758 if test "$am__include" = "#"; then
2759    echo '.include "confinc"' > confmf
2760    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2761       am__include=.include
2762       am__quote="\""
2763       _am_result=BSD
2764    fi
2765 fi
2766
2767
2768 { echo "$as_me:$LINENO: result: $_am_result" >&5
2769 echo "${ECHO_T}$_am_result" >&6; }
2770 rm -f confinc confmf
2771
2772 # Check whether --enable-dependency-tracking was given.
2773 if test "${enable_dependency_tracking+set}" = set; then
2774   enableval=$enable_dependency_tracking;
2775 fi
2776
2777 if test "x$enable_dependency_tracking" != xno; then
2778   am_depcomp="$ac_aux_dir/depcomp"
2779   AMDEPBACKSLASH='\'
2780 fi
2781
2782
2783 if test "x$enable_dependency_tracking" != xno; then
2784   AMDEP_TRUE=
2785   AMDEP_FALSE='#'
2786 else
2787   AMDEP_TRUE='#'
2788   AMDEP_FALSE=
2789 fi
2790
2791
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   if test -n "$CC"; then
2807   ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814   for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828   { echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6; }
2830 else
2831   { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833 fi
2834
2835
2836 fi
2837 if test -z "$ac_cv_prog_CC"; then
2838   ac_ct_CC=$CC
2839   # Extract the first word of "gcc", so it can be a program name with args.
2840 set dummy gcc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   if test -n "$ac_ct_CC"; then
2847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854   for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_ac_ct_CC="gcc"
2857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2869 echo "${ECHO_T}$ac_ct_CC" >&6; }
2870 else
2871   { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2873 fi
2874
2875   if test "x$ac_ct_CC" = x; then
2876     CC=""
2877   else
2878     case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet.  If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet.  If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888     CC=$ac_ct_CC
2889   fi
2890 else
2891   CC="$ac_cv_prog_CC"
2892 fi
2893
2894 if test -z "$CC"; then
2895           if test -n "$ac_tool_prefix"; then
2896     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}cc; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   if test -n "$CC"; then
2904   ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911   for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_CC="${ac_tool_prefix}cc"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925   { echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6; }
2927 else
2928   { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2930 fi
2931
2932
2933   fi
2934 fi
2935 if test -z "$CC"; then
2936   # Extract the first word of "cc", so it can be a program name with args.
2937 set dummy cc; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946   ac_prog_rejected=no
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2955        ac_prog_rejected=yes
2956        continue
2957      fi
2958     ac_cv_prog_CC="cc"
2959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 if test $ac_prog_rejected = yes; then
2967   # We found a bogon in the path, so make sure we never use it.
2968   set dummy $ac_cv_prog_CC
2969   shift
2970   if test $# != 0; then
2971     # We chose a different compiler from the bogus one.
2972     # However, it has the same basename, so the bogon will be chosen
2973     # first if we set CC to just the basename; use the full file name.
2974     shift
2975     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2976   fi
2977 fi
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982   { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2984 else
2985   { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$CC"; then
2992   if test -n "$ac_tool_prefix"; then
2993   for ac_prog in cl.exe
2994   do
2995     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010   for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024   { echo "$as_me:$LINENO: result: $CC" >&5
3025 echo "${ECHO_T}$CC" >&6; }
3026 else
3027   { echo "$as_me:$LINENO: result: no" >&5
3028 echo "${ECHO_T}no" >&6; }
3029 fi
3030
3031
3032     test -n "$CC" && break
3033   done
3034 fi
3035 if test -z "$CC"; then
3036   ac_ct_CC=$CC
3037   for ac_prog in cl.exe
3038 do
3039   # Extract the first word of "$ac_prog", so it can be a program name with args.
3040 set dummy $ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044   echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046   if test -n "$ac_ct_CC"; then
3047   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054   for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_ac_ct_CC="$ac_prog"
3057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061 done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3067 if test -n "$ac_ct_CC"; then
3068   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3069 echo "${ECHO_T}$ac_ct_CC" >&6; }
3070 else
3071   { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3073 fi
3074
3075
3076   test -n "$ac_ct_CC" && break
3077 done
3078
3079   if test "x$ac_ct_CC" = x; then
3080     CC=""
3081   else
3082     case $cross_compiling:$ac_tool_warned in
3083 yes:)
3084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet.  If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&5
3087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet.  If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092     CC=$ac_ct_CC
3093   fi
3094 fi
3095
3096 fi
3097
3098
3099 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: no acceptable C compiler found in \$PATH
3102 See \`config.log' for more details." >&2;}
3103    { (exit 1); exit 1; }; }
3104
3105 # Provide some information about the compiler.
3106 echo "$as_me:$LINENO: checking for C compiler version" >&5
3107 ac_compiler=`set X $ac_compile; echo $2`
3108 { (ac_try="$ac_compiler --version >&5"
3109 case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_compiler --version >&5") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }
3118 { (ac_try="$ac_compiler -v >&5"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compiler -v >&5") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (ac_try="$ac_compiler -V >&5"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compiler -V >&5") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149
3150   ;
3151   return 0;
3152 }
3153 _ACEOF
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3156 # Try to create an executable without -o first, disregard a.out.
3157 # It will help us diagnose broken compilers, and finding out an intuition
3158 # of exeext.
3159 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3160 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3161 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3162 #
3163 # List of possible output files, starting from the most likely.
3164 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3165 # only as a last resort.  b.out is created by i960 compilers.
3166 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3167 #
3168 # The IRIX 6 linker writes into existing files which may not be
3169 # executable, retaining their permissions.  Remove them first so a
3170 # subsequent execution test works.
3171 ac_rmfiles=
3172 for ac_file in $ac_files
3173 do
3174   case $ac_file in
3175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3176     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177   esac
3178 done
3179 rm -f $ac_rmfiles
3180
3181 if { (ac_try="$ac_link_default"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_link_default") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; then
3191   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3194 # so that the user can short-circuit this test for compilers unknown to
3195 # Autoconf.
3196 for ac_file in $ac_files
3197 do
3198   test -f "$ac_file" || continue
3199   case $ac_file in
3200     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3201         ;;
3202     [ab].out )
3203         # We found the default executable, but exeext='' is most
3204         # certainly right.
3205         break;;
3206     *.* )
3207         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208         then :; else
3209            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210         fi
3211         # We set ac_cv_exeext here because the later test for it is not
3212         # safe: cross compilers may not add the suffix if given an `-o'
3213         # argument, so we may need to know it at that point already.
3214         # Even if this section looks crufty: it has the advantage of
3215         # actually working.
3216         break;;
3217     * )
3218         break;;
3219   esac
3220 done
3221 test "$ac_cv_exeext" = no && ac_cv_exeext=
3222
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&2;}
3231    { (exit 77); exit 77; }; }
3232 fi
3233
3234 ac_exeext=$ac_cv_exeext
3235 { echo "$as_me:$LINENO: result: $ac_file" >&5
3236 echo "${ECHO_T}$ac_file" >&6; }
3237
3238 # Check that the compiler produces executables we can run.  If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245   if { ac_try='./$ac_file'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255     cross_compiling=no
3256   else
3257     if test "$cross_compiling" = maybe; then
3258         cross_compiling=yes
3259     else
3260         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266    { (exit 1); exit 1; }; }
3267     fi
3268   fi
3269 fi
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3281
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312    { (exit 1); exit 1; }; }
3313 fi
3314
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$EXEEXT
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; then
3353   for ac_file in conftest.o conftest.obj conftest.*; do
3354   test -f "$ac_file" || continue;
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358        break;;
3359   esac
3360 done
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369    { (exit 1); exit 1; }; }
3370 fi
3371
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394        choke me
3395 #endif
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416   { (case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_try") 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   ac_compiler_gnu=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440         ac_compiler_gnu=no
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445
3446 fi
3447 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449 GCC=`test $ac_compiler_gnu = yes && echo yes`
3450 ac_test_CFLAGS=${CFLAGS+set}
3451 ac_save_CFLAGS=$CFLAGS
3452 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3454 if test "${ac_cv_prog_cc_g+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   ac_save_c_werror_flag=$ac_c_werror_flag
3458    ac_c_werror_flag=yes
3459    ac_cv_prog_cc_g=no
3460    CFLAGS="-g"
3461    cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_compile") 2>conftest.er1
3484   ac_status=$?
3485   grep -v '^ *+' conftest.er1 >conftest.err
3486   rm -f conftest.er1
3487   cat conftest.err >&5
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); } &&
3490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3491   { (case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_try") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; } &&
3500          { ac_try='test -s conftest.$ac_objext'
3501   { (case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506   (eval "$ac_try") 2>&5
3507   ac_status=$?
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); }; }; then
3510   ac_cv_prog_cc_g=yes
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515         CFLAGS=""
3516       cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h.  */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h.  */
3522
3523 int
3524 main ()
3525 {
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_compile") 2>conftest.er1
3539   ac_status=$?
3540   grep -v '^ *+' conftest.er1 >conftest.err
3541   rm -f conftest.er1
3542   cat conftest.err >&5
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); } &&
3545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546   { (case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_try") 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; } &&
3555          { ac_try='test -s conftest.$ac_objext'
3556   { (case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561   (eval "$ac_try") 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); }; }; then
3565   :
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570         ac_c_werror_flag=$ac_save_c_werror_flag
3571          CFLAGS="-g"
3572          cat >conftest.$ac_ext <<_ACEOF
3573 /* confdefs.h.  */
3574 _ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 rm -f conftest.$ac_objext
3588 if { (ac_try="$ac_compile"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_compile") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602   { (case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_try") 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); }; } &&
3611          { ac_try='test -s conftest.$ac_objext'
3612   { (case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617   (eval "$ac_try") 2>&5
3618   ac_status=$?
3619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); }; }; then
3621   ac_cv_prog_cc_g=yes
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631
3632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 fi
3634
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636    ac_c_werror_flag=$ac_save_c_werror_flag
3637 fi
3638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3640 if test "$ac_test_CFLAGS" = set; then
3641   CFLAGS=$ac_save_CFLAGS
3642 elif test $ac_cv_prog_cc_g = yes; then
3643   if test "$GCC" = yes; then
3644     CFLAGS="-g -O2"
3645   else
3646     CFLAGS="-g"
3647   fi
3648 else
3649   if test "$GCC" = yes; then
3650     CFLAGS="-O2"
3651   else
3652     CFLAGS=
3653   fi
3654 fi
3655 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3656 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3657 if test "${ac_cv_prog_cc_c89+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   ac_cv_prog_cc_c89=no
3661 ac_save_CC=$CC
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <stdarg.h>
3669 #include <stdio.h>
3670 #include <sys/types.h>
3671 #include <sys/stat.h>
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3676      char **p;
3677      int i;
3678 {
3679   return p[i];
3680 }
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3682 {
3683   char *s;
3684   va_list v;
3685   va_start (v,p);
3686   s = g (p, va_arg (v,int));
3687   va_end (v);
3688   return s;
3689 }
3690
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3692    function prototypes and stuff, but not '\xHH' hex character constants.
3693    These don't provoke an error unfortunately, instead are silently treated
3694    as 'x'.  The following induces an error, until -std is added to get
3695    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3696    array size at least.  It's necessary to write '\x00'==0 to get something
3697    that's true only with -std.  */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3699
3700 int test (int i, double x);
3701 struct s1 {int (*f) (int a);};
3702 struct s2 {int (*f) (double a);};
3703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 int argc;
3705 char **argv;
3706 int
3707 main ()
3708 {
3709 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716 do
3717   CC="$ac_save_CC $ac_arg"
3718   rm -f conftest.$ac_objext
3719 if { (ac_try="$ac_compile"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_compile") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } &&
3732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733   { (case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738   (eval "$ac_try") 2>&5
3739   ac_status=$?
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); }; } &&
3742          { ac_try='test -s conftest.$ac_objext'
3743   { (case "(($ac_try" in
3744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745   *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748   (eval "$ac_try") 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   ac_cv_prog_cc_c89=$ac_arg
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757
3758 fi
3759
3760 rm -f conftest.err conftest.$ac_objext
3761   test "x$ac_cv_prog_cc_c89" != "xno" && break
3762 done
3763 rm -f conftest.$ac_ext
3764 CC=$ac_save_CC
3765
3766 fi
3767 # AC_CACHE_VAL
3768 case "x$ac_cv_prog_cc_c89" in
3769   x)
3770     { echo "$as_me:$LINENO: result: none needed" >&5
3771 echo "${ECHO_T}none needed" >&6; } ;;
3772   xno)
3773     { echo "$as_me:$LINENO: result: unsupported" >&5
3774 echo "${ECHO_T}unsupported" >&6; } ;;
3775   *)
3776     CC="$CC $ac_cv_prog_cc_c89"
3777     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3778 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3779 esac
3780
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788 depcc="$CC"   am_compiler_list=
3789
3790 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796   # We make a subdir and do the tests there.  Otherwise we can end up
3797   # making bogus files that we don't know about and never remove.  For
3798   # instance it was reported that on HP-UX the gcc test will end up
3799   # making a dummy file named `D' -- because `-MD' means `put the output
3800   # in D'.
3801   mkdir conftest.dir
3802   # Copy depcomp to subdir because otherwise we won't find it if we're
3803   # using a relative directory.
3804   cp "$am_depcomp" conftest.dir
3805   cd conftest.dir
3806   # We will build objects and dependencies in a subdirectory because
3807   # it helps to detect inapplicable dependency modes.  For instance
3808   # both Tru64's cc and ICC support -MD to output dependencies as a
3809   # side effect of compilation, but ICC will put the dependencies in
3810   # the current directory while Tru64 will put them in the object
3811   # directory.
3812   mkdir sub
3813
3814   am_cv_CC_dependencies_compiler_type=none
3815   if test "$am_compiler_list" = ""; then
3816      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817   fi
3818   for depmode in $am_compiler_list; do
3819     # Setup a source with many dependencies, because some compilers
3820     # like to wrap large dependency lists on column 80 (with \), and
3821     # we should not choose a depcomp mode which is confused by this.
3822     #
3823     # We need to recreate these files for each test, as the compiler may
3824     # overwrite some of them when testing with obscure command lines.
3825     # This happens at least with the AIX C compiler.
3826     : > sub/conftest.c
3827     for i in 1 2 3 4 5 6; do
3828       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830       # Solaris 8's {/usr,}/bin/sh.
3831       touch sub/conftst$i.h
3832     done
3833     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834
3835     case $depmode in
3836     nosideeffect)
3837       # after this tag, mechanisms are not by side-effect, so they'll
3838       # only be used when explicitly requested
3839       if test "x$enable_dependency_tracking" = xyes; then
3840         continue
3841       else
3842         break
3843       fi
3844       ;;
3845     none) break ;;
3846     esac
3847     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3848     # mode.  It turns out that the SunPro C++ compiler does not properly
3849     # handle `-M -o', and we need to detect this.
3850     if depmode=$depmode \
3851        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3852        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3854          >/dev/null 2>conftest.err &&
3855        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3856        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3857        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3858       # icc doesn't choke on unknown options, it will just issue warnings
3859       # or remarks (even with -Werror).  So we grep stderr for any message
3860       # that says an option was ignored or not supported.
3861       # When given -MP, icc 7.0 and 7.1 complain thusly:
3862       #   icc: Command line warning: ignoring option '-M'; no argument required
3863       # The diagnosis changed in icc 8.0:
3864       #   icc: Command line remark: option '-MP' not supported
3865       if (grep 'ignoring option' conftest.err ||
3866           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3867         am_cv_CC_dependencies_compiler_type=$depmode
3868         break
3869       fi
3870     fi
3871   done
3872
3873   cd ..
3874   rm -rf conftest.dir
3875 else
3876   am_cv_CC_dependencies_compiler_type=none
3877 fi
3878
3879 fi
3880 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3881 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3882 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3883
3884
3885
3886 if
3887   test "x$enable_dependency_tracking" != xno \
3888   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889   am__fastdepCC_TRUE=
3890   am__fastdepCC_FALSE='#'
3891 else
3892   am__fastdepCC_TRUE='#'
3893   am__fastdepCC_FALSE=
3894 fi
3895
3896
3897
3898
3899   TCPW_MSG="no"
3900
3901 # Check whether --with-tcp-wrappers was given.
3902 if test "${with_tcp_wrappers+set}" = set; then
3903   withval=$with_tcp_wrappers;
3904         if test "x$withval" != "xno" ; then
3905             saved_LIBS="$LIBS"
3906             saved_LDFLAGS="$LDFLAGS"
3907             saved_CPPFLAGS="$CPPFLAGS"
3908             if test -n "${withval}" -a "${withval}" != "yes"; then
3909                 if test -d "${withval}/lib"; then
3910                     if test -n "${need_dash_r}"; then
3911                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3912                     else
3913                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3914                     fi
3915                 else
3916                     if test -n "${need_dash_r}"; then
3917                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3918                     else
3919                         LDFLAGS="-L${withval} ${LDFLAGS}"
3920                     fi
3921                 fi
3922                 if test -d "${withval}/include"; then
3923                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3924                 else
3925                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3926                 fi
3927             fi
3928             LIBWRAP="-lwrap"
3929             LIBS="$LIBWRAP $LIBS"
3930             { echo "$as_me:$LINENO: checking for libwrap" >&5
3931 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3932             cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938
3939                 #include <tcpd.h>
3940                 int deny_severity = 0, allow_severity = 0;
3941
3942 int
3943 main ()
3944 {
3945 hosts_access(0);
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957   (eval "$ac_link") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3965   { (case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_try") 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; } &&
3974          { ac_try='test -s conftest$ac_exeext'
3975   { (case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980   (eval "$ac_try") 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; }; then
3984
3985                 { echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6; }
3987
3988
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LIBWRAP 1
3991 _ACEOF
3992
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_LIBWRAP 1
3996 _ACEOF
3997
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define HAVE_TCP_WRAPPER 1
4001 _ACEOF
4002
4003                 TCPW_MSG="yes"
4004
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009
4010                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4011 echo "$as_me: error: *** libwrap missing" >&2;}
4012    { (exit 1); exit 1; }; }
4013
4014
4015 fi
4016
4017 rm -f conftest.err conftest.$ac_objext \
4018       conftest$ac_exeext conftest.$ac_ext
4019             LIBS="$saved_LIBS"
4020         fi
4021
4022
4023 fi
4024
4025
4026
4027
4028
4029
4030
4031 ac_config_headers="$ac_config_headers support/include/config.h"
4032
4033
4034 # Checks for programs.
4035 ac_ext=cpp
4036 ac_cpp='$CXXCPP $CPPFLAGS'
4037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4040 if test -z "$CXX"; then
4041   if test -n "$CCC"; then
4042     CXX=$CCC
4043   else
4044     if test -n "$ac_tool_prefix"; then
4045   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4046   do
4047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051 if test "${ac_cv_prog_CXX+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   if test -n "$CXX"; then
4055   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060   IFS=$as_save_IFS
4061   test -z "$as_dir" && as_dir=.
4062   for ac_exec_ext in '' $ac_executable_extensions; do
4063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4064     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066     break 2
4067   fi
4068 done
4069 done
4070 IFS=$as_save_IFS
4071
4072 fi
4073 fi
4074 CXX=$ac_cv_prog_CXX
4075 if test -n "$CXX"; then
4076   { echo "$as_me:$LINENO: result: $CXX" >&5
4077 echo "${ECHO_T}$CXX" >&6; }
4078 else
4079   { echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6; }
4081 fi
4082
4083
4084     test -n "$CXX" && break
4085   done
4086 fi
4087 if test -z "$CXX"; then
4088   ac_ct_CXX=$CXX
4089   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4090 do
4091   # Extract the first word of "$ac_prog", so it can be a program name with args.
4092 set dummy $ac_prog; ac_word=$2
4093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   if test -n "$ac_ct_CXX"; then
4099   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4108     ac_cv_prog_ac_ct_CXX="$ac_prog"
4109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113 done
4114 IFS=$as_save_IFS
4115
4116 fi
4117 fi
4118 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4119 if test -n "$ac_ct_CXX"; then
4120   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4121 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4122 else
4123   { echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6; }
4125 fi
4126
4127
4128   test -n "$ac_ct_CXX" && break
4129 done
4130
4131   if test "x$ac_ct_CXX" = x; then
4132     CXX="g++"
4133   else
4134     case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4137 whose name does not start with the host triplet.  If you think this
4138 configuration is useful to you, please write to autoconf@gnu.org." >&5
4139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4140 whose name does not start with the host triplet.  If you think this
4141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144     CXX=$ac_ct_CXX
4145   fi
4146 fi
4147
4148   fi
4149 fi
4150 # Provide some information about the compiler.
4151 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4152 ac_compiler=`set X $ac_compile; echo $2`
4153 { (ac_try="$ac_compiler --version >&5"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_compiler --version >&5") 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }
4163 { (ac_try="$ac_compiler -v >&5"
4164 case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_compiler -v >&5") 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }
4173 { (ac_try="$ac_compiler -V >&5"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179   (eval "$ac_compiler -V >&5") 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }
4183
4184 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4185 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4186 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195
4196 int
4197 main ()
4198 {
4199 #ifndef __GNUC__
4200        choke me
4201 #endif
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4222   { (case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_try") 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_compiler_gnu=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246         ac_compiler_gnu=no
4247 fi
4248
4249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4251
4252 fi
4253 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4254 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4255 GXX=`test $ac_compiler_gnu = yes && echo yes`
4256 ac_test_CXXFLAGS=${CXXFLAGS+set}
4257 ac_save_CXXFLAGS=$CXXFLAGS
4258 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4260 if test "${ac_cv_prog_cxx_g+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4264    ac_cxx_werror_flag=yes
4265    ac_cv_prog_cxx_g=no
4266    CXXFLAGS="-g"
4267    cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289   (eval "$ac_compile") 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4297   { (case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_try") 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest.$ac_objext'
4307   { (case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }; }; then
4316   ac_cv_prog_cxx_g=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321         CXXFLAGS=""
4322       cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328
4329 int
4330 main ()
4331 {
4332
4333   ;
4334   return 0;
4335 }
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4339 case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344   (eval "$ac_compile") 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } &&
4351          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4352   { (case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (case "(($ac_try" in
4363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364   *) ac_try_echo=$ac_try;;
4365 esac
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367   (eval "$ac_try") 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; }; then
4371   :
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4377          CXXFLAGS="-g"
4378          cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384
4385 int
4386 main ()
4387 {
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4395 case "(($ac_try" in
4396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397   *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400   (eval "$ac_compile") 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4408   { (case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); }; } &&
4417          { ac_try='test -s conftest.$ac_objext'
4418   { (case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_try") 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; }; then
4427   ac_cv_prog_cxx_g=yes
4428 else
4429   echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4431
4432
4433 fi
4434
4435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436 fi
4437
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 fi
4440
4441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4443 fi
4444 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4445 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4446 if test "$ac_test_CXXFLAGS" = set; then
4447   CXXFLAGS=$ac_save_CXXFLAGS
4448 elif test $ac_cv_prog_cxx_g = yes; then
4449   if test "$GXX" = yes; then
4450     CXXFLAGS="-g -O2"
4451   else
4452     CXXFLAGS="-g"
4453   fi
4454 else
4455   if test "$GXX" = yes; then
4456     CXXFLAGS="-O2"
4457   else
4458     CXXFLAGS=
4459   fi
4460 fi
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467 depcc="$CXX"  am_compiler_list=
4468
4469 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4470 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4471 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4475   # We make a subdir and do the tests there.  Otherwise we can end up
4476   # making bogus files that we don't know about and never remove.  For
4477   # instance it was reported that on HP-UX the gcc test will end up
4478   # making a dummy file named `D' -- because `-MD' means `put the output
4479   # in D'.
4480   mkdir conftest.dir
4481   # Copy depcomp to subdir because otherwise we won't find it if we're
4482   # using a relative directory.
4483   cp "$am_depcomp" conftest.dir
4484   cd conftest.dir
4485   # We will build objects and dependencies in a subdirectory because
4486   # it helps to detect inapplicable dependency modes.  For instance
4487   # both Tru64's cc and ICC support -MD to output dependencies as a
4488   # side effect of compilation, but ICC will put the dependencies in
4489   # the current directory while Tru64 will put them in the object
4490   # directory.
4491   mkdir sub
4492
4493   am_cv_CXX_dependencies_compiler_type=none
4494   if test "$am_compiler_list" = ""; then
4495      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496   fi
4497   for depmode in $am_compiler_list; do
4498     # Setup a source with many dependencies, because some compilers
4499     # like to wrap large dependency lists on column 80 (with \), and
4500     # we should not choose a depcomp mode which is confused by this.
4501     #
4502     # We need to recreate these files for each test, as the compiler may
4503     # overwrite some of them when testing with obscure command lines.
4504     # This happens at least with the AIX C compiler.
4505     : > sub/conftest.c
4506     for i in 1 2 3 4 5 6; do
4507       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4508       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4509       # Solaris 8's {/usr,}/bin/sh.
4510       touch sub/conftst$i.h
4511     done
4512     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4513
4514     case $depmode in
4515     nosideeffect)
4516       # after this tag, mechanisms are not by side-effect, so they'll
4517       # only be used when explicitly requested
4518       if test "x$enable_dependency_tracking" = xyes; then
4519         continue
4520       else
4521         break
4522       fi
4523       ;;
4524     none) break ;;
4525     esac
4526     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4527     # mode.  It turns out that the SunPro C++ compiler does not properly
4528     # handle `-M -o', and we need to detect this.
4529     if depmode=$depmode \
4530        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4531        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4533          >/dev/null 2>conftest.err &&
4534        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4535        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4536        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4537       # icc doesn't choke on unknown options, it will just issue warnings
4538       # or remarks (even with -Werror).  So we grep stderr for any message
4539       # that says an option was ignored or not supported.
4540       # When given -MP, icc 7.0 and 7.1 complain thusly:
4541       #   icc: Command line warning: ignoring option '-M'; no argument required
4542       # The diagnosis changed in icc 8.0:
4543       #   icc: Command line remark: option '-MP' not supported
4544       if (grep 'ignoring option' conftest.err ||
4545           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4546         am_cv_CXX_dependencies_compiler_type=$depmode
4547         break
4548       fi
4549     fi
4550   done
4551
4552   cd ..
4553   rm -rf conftest.dir
4554 else
4555   am_cv_CXX_dependencies_compiler_type=none
4556 fi
4557
4558 fi
4559 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4560 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4561 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4562
4563
4564
4565 if
4566   test "x$enable_dependency_tracking" != xno \
4567   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4568   am__fastdepCXX_TRUE=
4569   am__fastdepCXX_FALSE='#'
4570 else
4571   am__fastdepCXX_TRUE='#'
4572   am__fastdepCXX_FALSE=
4573 fi
4574
4575
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581 if test -n "$ac_tool_prefix"; then
4582   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_prog_CC+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   if test -n "$CC"; then
4590   ac_cv_prog_CC="$CC" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4599     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 CC=$ac_cv_prog_CC
4610 if test -n "$CC"; then
4611   { echo "$as_me:$LINENO: result: $CC" >&5
4612 echo "${ECHO_T}$CC" >&6; }
4613 else
4614   { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4616 fi
4617
4618
4619 fi
4620 if test -z "$ac_cv_prog_CC"; then
4621   ac_ct_CC=$CC
4622   # Extract the first word of "gcc", so it can be a program name with args.
4623 set dummy gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   if test -n "$ac_ct_CC"; then
4630   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639     ac_cv_prog_ac_ct_CC="gcc"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645 IFS=$as_save_IFS
4646
4647 fi
4648 fi
4649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4650 if test -n "$ac_ct_CC"; then
4651   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4652 echo "${ECHO_T}$ac_ct_CC" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658   if test "x$ac_ct_CC" = x; then
4659     CC=""
4660   else
4661     case $cross_compiling:$ac_tool_warned in
4662 yes:)
4663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4664 whose name does not start with the host triplet.  If you think this
4665 configuration is useful to you, please write to autoconf@gnu.org." >&5
4666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4667 whose name does not start with the host triplet.  If you think this
4668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4669 ac_tool_warned=yes ;;
4670 esac
4671     CC=$ac_ct_CC
4672   fi
4673 else
4674   CC="$ac_cv_prog_CC"
4675 fi
4676
4677 if test -z "$CC"; then
4678           if test -n "$ac_tool_prefix"; then
4679     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}cc; ac_word=$2
4681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4683 if test "${ac_cv_prog_CC+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   if test -n "$CC"; then
4687   ac_cv_prog_CC="$CC" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694   for ac_exec_ext in '' $ac_executable_extensions; do
4695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4696     ac_cv_prog_CC="${ac_tool_prefix}cc"
4697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698     break 2
4699   fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 CC=$ac_cv_prog_CC
4707 if test -n "$CC"; then
4708   { echo "$as_me:$LINENO: result: $CC" >&5
4709 echo "${ECHO_T}$CC" >&6; }
4710 else
4711   { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4713 fi
4714
4715
4716   fi
4717 fi
4718 if test -z "$CC"; then
4719   # Extract the first word of "cc", so it can be a program name with args.
4720 set dummy cc; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   if test -n "$CC"; then
4727   ac_cv_prog_CC="$CC" # Let the user override the test.
4728 else
4729   ac_prog_rejected=no
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4738        ac_prog_rejected=yes
4739        continue
4740      fi
4741     ac_cv_prog_CC="cc"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 if test $ac_prog_rejected = yes; then
4750   # We found a bogon in the path, so make sure we never use it.
4751   set dummy $ac_cv_prog_CC
4752   shift
4753   if test $# != 0; then
4754     # We chose a different compiler from the bogus one.
4755     # However, it has the same basename, so the bogon will be chosen
4756     # first if we set CC to just the basename; use the full file name.
4757     shift
4758     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4759   fi
4760 fi
4761 fi
4762 fi
4763 CC=$ac_cv_prog_CC
4764 if test -n "$CC"; then
4765   { echo "$as_me:$LINENO: result: $CC" >&5
4766 echo "${ECHO_T}$CC" >&6; }
4767 else
4768   { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$CC"; then
4775   if test -n "$ac_tool_prefix"; then
4776   for ac_prog in cl.exe
4777   do
4778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_CC+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   if test -n "$CC"; then
4786   ac_cv_prog_CC="$CC" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793   for ac_exec_ext in '' $ac_executable_extensions; do
4794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807   { echo "$as_me:$LINENO: result: $CC" >&5
4808 echo "${ECHO_T}$CC" >&6; }
4809 else
4810   { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 fi
4813
4814
4815     test -n "$CC" && break
4816   done
4817 fi
4818 if test -z "$CC"; then
4819   ac_ct_CC=$CC
4820   for ac_prog in cl.exe
4821 do
4822   # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy $ac_prog; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$ac_ct_CC"; then
4830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_ac_ct_CC="$ac_prog"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4850 if test -n "$ac_ct_CC"; then
4851   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4852 echo "${ECHO_T}$ac_ct_CC" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859   test -n "$ac_ct_CC" && break
4860 done
4861
4862   if test "x$ac_ct_CC" = x; then
4863     CC=""
4864   else
4865     case $cross_compiling:$ac_tool_warned in
4866 yes:)
4867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4868 whose name does not start with the host triplet.  If you think this
4869 configuration is useful to you, please write to autoconf@gnu.org." >&5
4870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet.  If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875     CC=$ac_ct_CC
4876   fi
4877 fi
4878
4879 fi
4880
4881
4882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4883 See \`config.log' for more details." >&5
4884 echo "$as_me: error: no acceptable C compiler found in \$PATH
4885 See \`config.log' for more details." >&2;}
4886    { (exit 1); exit 1; }; }
4887
4888 # Provide some information about the compiler.
4889 echo "$as_me:$LINENO: checking for C compiler version" >&5
4890 ac_compiler=`set X $ac_compile; echo $2`
4891 { (ac_try="$ac_compiler --version >&5"
4892 case "(($ac_try" in
4893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894   *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897   (eval "$ac_compiler --version >&5") 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }
4901 { (ac_try="$ac_compiler -v >&5"
4902 case "(($ac_try" in
4903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904   *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907   (eval "$ac_compiler -v >&5") 2>&5
4908   ac_status=$?
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); }
4911 { (ac_try="$ac_compiler -V >&5"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_compiler -V >&5") 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }
4921
4922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 int
4935 main ()
4936 {
4937 #ifndef __GNUC__
4938        choke me
4939 #endif
4940
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4947 case "(($ac_try" in
4948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949   *) ac_try_echo=$ac_try;;
4950 esac
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952   (eval "$ac_compile") 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } &&
4959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4960   { (case "(($ac_try" in
4961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962   *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965   (eval "$ac_try") 2>&5
4966   ac_status=$?
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); }; } &&
4969          { ac_try='test -s conftest.$ac_objext'
4970   { (case "(($ac_try" in
4971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972   *) ac_try_echo=$ac_try;;
4973 esac
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975   (eval "$ac_try") 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); }; }; then
4979   ac_compiler_gnu=yes
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984         ac_compiler_gnu=no
4985 fi
4986
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4989
4990 fi
4991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4993 GCC=`test $ac_compiler_gnu = yes && echo yes`
4994 ac_test_CFLAGS=${CFLAGS+set}
4995 ac_save_CFLAGS=$CFLAGS
4996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4998 if test "${ac_cv_prog_cc_g+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   ac_save_c_werror_flag=$ac_c_werror_flag
5002    ac_c_werror_flag=yes
5003    ac_cv_prog_cc_g=no
5004    CFLAGS="-g"
5005    cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h.  */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h.  */
5011
5012 int
5013 main ()
5014 {
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024   *) ac_try_echo=$ac_try;;
5025 esac
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027   (eval "$ac_compile") 2>conftest.er1
5028   ac_status=$?
5029   grep -v '^ *+' conftest.er1 >conftest.err
5030   rm -f conftest.er1
5031   cat conftest.err >&5
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); } &&
5034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5035   { (case "(($ac_try" in
5036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037   *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040   (eval "$ac_try") 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); }; } &&
5044          { ac_try='test -s conftest.$ac_objext'
5045   { (case "(($ac_try" in
5046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047   *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050   (eval "$ac_try") 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; }; then
5054   ac_cv_prog_cc_g=yes
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059         CFLAGS=""
5060       cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066
5067 int
5068 main ()
5069 {
5070
5071   ;
5072   return 0;
5073 }
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (ac_try="$ac_compile"
5077 case "(($ac_try" in
5078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079   *) ac_try_echo=$ac_try;;
5080 esac
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082   (eval "$ac_compile") 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } &&
5089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5090   { (case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095   (eval "$ac_try") 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (case "(($ac_try" in
5101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102   *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105   (eval "$ac_try") 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   :
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114         ac_c_werror_flag=$ac_save_c_werror_flag
5115          CFLAGS="-g"
5116          cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122
5123 int
5124 main ()
5125 {
5126
5127   ;
5128   return 0;
5129 }
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5133 case "(($ac_try" in
5134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135   *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138   (eval "$ac_compile") 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } &&
5145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5146   { (case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_try") 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; } &&
5155          { ac_try='test -s conftest.$ac_objext'
5156   { (case "(($ac_try" in
5157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158   *) ac_try_echo=$ac_try;;
5159 esac
5160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161   (eval "$ac_try") 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_cv_prog_cc_g=yes
5166 else
5167   echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170
5171 fi
5172
5173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5174 fi
5175
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177 fi
5178
5179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180    ac_c_werror_flag=$ac_save_c_werror_flag
5181 fi
5182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5183 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5184 if test "$ac_test_CFLAGS" = set; then
5185   CFLAGS=$ac_save_CFLAGS
5186 elif test $ac_cv_prog_cc_g = yes; then
5187   if test "$GCC" = yes; then
5188     CFLAGS="-g -O2"
5189   else
5190     CFLAGS="-g"
5191   fi
5192 else
5193   if test "$GCC" = yes; then
5194     CFLAGS="-O2"
5195   else
5196     CFLAGS=
5197   fi
5198 fi
5199 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5200 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5201 if test "${ac_cv_prog_cc_c89+set}" = set; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204   ac_cv_prog_cc_c89=no
5205 ac_save_CC=$CC
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #include <stdarg.h>
5213 #include <stdio.h>
5214 #include <sys/types.h>
5215 #include <sys/stat.h>
5216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5217 struct buf { int x; };
5218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5219 static char *e (p, i)
5220      char **p;
5221      int i;
5222 {
5223   return p[i];
5224 }
5225 static char *f (char * (*g) (char **, int), char **p, ...)
5226 {
5227   char *s;
5228   va_list v;
5229   va_start (v,p);
5230   s = g (p, va_arg (v,int));
5231   va_end (v);
5232   return s;
5233 }
5234
5235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5236    function prototypes and stuff, but not '\xHH' hex character constants.
5237    These don't provoke an error unfortunately, instead are silently treated
5238    as 'x'.  The following induces an error, until -std is added to get
5239    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5240    array size at least.  It's necessary to write '\x00'==0 to get something
5241    that's true only with -std.  */
5242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5243
5244 int test (int i, double x);
5245 struct s1 {int (*f) (int a);};
5246 struct s2 {int (*f) (double a);};
5247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5248 int argc;
5249 char **argv;
5250 int
5251 main ()
5252 {
5253 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5260 do
5261   CC="$ac_save_CC $ac_arg"
5262   rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_compile") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5277   { (case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_try") 2>&5
5283   ac_status=$?
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); }; } &&
5286          { ac_try='test -s conftest.$ac_objext'
5287   { (case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_try") 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296   ac_cv_prog_cc_c89=$ac_arg
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301
5302 fi
5303
5304 rm -f conftest.err conftest.$ac_objext
5305   test "x$ac_cv_prog_cc_c89" != "xno" && break
5306 done
5307 rm -f conftest.$ac_ext
5308 CC=$ac_save_CC
5309
5310 fi
5311 # AC_CACHE_VAL
5312 case "x$ac_cv_prog_cc_c89" in
5313   x)
5314     { echo "$as_me:$LINENO: result: none needed" >&5
5315 echo "${ECHO_T}none needed" >&6; } ;;
5316   xno)
5317     { echo "$as_me:$LINENO: result: unsupported" >&5
5318 echo "${ECHO_T}unsupported" >&6; } ;;
5319   *)
5320     CC="$CC $ac_cv_prog_cc_c89"
5321     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5323 esac
5324
5325
5326 ac_ext=c
5327 ac_cpp='$CPP $CPPFLAGS'
5328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331
5332 depcc="$CC"   am_compiler_list=
5333
5334 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5336 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340   # We make a subdir and do the tests there.  Otherwise we can end up
5341   # making bogus files that we don't know about and never remove.  For
5342   # instance it was reported that on HP-UX the gcc test will end up
5343   # making a dummy file named `D' -- because `-MD' means `put the output
5344   # in D'.
5345   mkdir conftest.dir
5346   # Copy depcomp to subdir because otherwise we won't find it if we're
5347   # using a relative directory.
5348   cp "$am_depcomp" conftest.dir
5349   cd conftest.dir
5350   # We will build objects and dependencies in a subdirectory because
5351   # it helps to detect inapplicable dependency modes.  For instance
5352   # both Tru64's cc and ICC support -MD to output dependencies as a
5353   # side effect of compilation, but ICC will put the dependencies in
5354   # the current directory while Tru64 will put them in the object
5355   # directory.
5356   mkdir sub
5357
5358   am_cv_CC_dependencies_compiler_type=none
5359   if test "$am_compiler_list" = ""; then
5360      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5361   fi
5362   for depmode in $am_compiler_list; do
5363     # Setup a source with many dependencies, because some compilers
5364     # like to wrap large dependency lists on column 80 (with \), and
5365     # we should not choose a depcomp mode which is confused by this.
5366     #
5367     # We need to recreate these files for each test, as the compiler may
5368     # overwrite some of them when testing with obscure command lines.
5369     # This happens at least with the AIX C compiler.
5370     : > sub/conftest.c
5371     for i in 1 2 3 4 5 6; do
5372       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374       # Solaris 8's {/usr,}/bin/sh.
5375       touch sub/conftst$i.h
5376     done
5377     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5378
5379     case $depmode in
5380     nosideeffect)
5381       # after this tag, mechanisms are not by side-effect, so they'll
5382       # only be used when explicitly requested
5383       if test "x$enable_dependency_tracking" = xyes; then
5384         continue
5385       else
5386         break
5387       fi
5388       ;;
5389     none) break ;;
5390     esac
5391     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5392     # mode.  It turns out that the SunPro C++ compiler does not properly
5393     # handle `-M -o', and we need to detect this.
5394     if depmode=$depmode \
5395        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398          >/dev/null 2>conftest.err &&
5399        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402       # icc doesn't choke on unknown options, it will just issue warnings
5403       # or remarks (even with -Werror).  So we grep stderr for any message
5404       # that says an option was ignored or not supported.
5405       # When given -MP, icc 7.0 and 7.1 complain thusly:
5406       #   icc: Command line warning: ignoring option '-M'; no argument required
5407       # The diagnosis changed in icc 8.0:
5408       #   icc: Command line remark: option '-MP' not supported
5409       if (grep 'ignoring option' conftest.err ||
5410           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411         am_cv_CC_dependencies_compiler_type=$depmode
5412         break
5413       fi
5414     fi
5415   done
5416
5417   cd ..
5418   rm -rf conftest.dir
5419 else
5420   am_cv_CC_dependencies_compiler_type=none
5421 fi
5422
5423 fi
5424 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5426 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427
5428
5429
5430 if
5431   test "x$enable_dependency_tracking" != xno \
5432   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5433   am__fastdepCC_TRUE=
5434   am__fastdepCC_FALSE='#'
5435 else
5436   am__fastdepCC_TRUE='#'
5437   am__fastdepCC_FALSE=
5438 fi
5439
5440
5441 ac_ext=c
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5450   CPP=
5451 fi
5452 if test -z "$CPP"; then
5453   if test "${ac_cv_prog_CPP+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456       # Double quotes because CPP needs to be expanded
5457     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5458     do
5459       ac_preproc_ok=false
5460 for ac_c_preproc_warn_flag in '' yes
5461 do
5462   # Use a header file that comes with gcc, so configuring glibc
5463   # with a fresh cross-compiler works.
5464   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5465   # <limits.h> exists even on freestanding compilers.
5466   # On the NeXT, cc -E runs the code through the compiler's parser,
5467   # not just through cpp. "Syntax error" is here to catch this case.
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 #ifdef __STDC__
5475 # include <limits.h>
5476 #else
5477 # include <assert.h>
5478 #endif
5479                      Syntax error
5480 _ACEOF
5481 if { (ac_try="$ac_cpp conftest.$ac_ext"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } >/dev/null; then
5494   if test -s conftest.err; then
5495     ac_cpp_err=$ac_c_preproc_warn_flag
5496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5497   else
5498     ac_cpp_err=
5499   fi
5500 else
5501   ac_cpp_err=yes
5502 fi
5503 if test -z "$ac_cpp_err"; then
5504   :
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509   # Broken: fails on valid input.
5510 continue
5511 fi
5512
5513 rm -f conftest.err conftest.$ac_ext
5514
5515   # OK, works on sane cases.  Now check whether nonexistent headers
5516   # can be detected and how.
5517   cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 #include <ac_nonexistent.h>
5524 _ACEOF
5525 if { (ac_try="$ac_cpp conftest.$ac_ext"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5532   ac_status=$?
5533   grep -v '^ *+' conftest.er1 >conftest.err
5534   rm -f conftest.er1
5535   cat conftest.err >&5
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); } >/dev/null; then
5538   if test -s conftest.err; then
5539     ac_cpp_err=$ac_c_preproc_warn_flag
5540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5541   else
5542     ac_cpp_err=
5543   fi
5544 else
5545   ac_cpp_err=yes
5546 fi
5547 if test -z "$ac_cpp_err"; then
5548   # Broken: success on invalid input.
5549 continue
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554   # Passes both tests.
5555 ac_preproc_ok=:
5556 break
5557 fi
5558
5559 rm -f conftest.err conftest.$ac_ext
5560
5561 done
5562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5563 rm -f conftest.err conftest.$ac_ext
5564 if $ac_preproc_ok; then
5565   break
5566 fi
5567
5568     done
5569     ac_cv_prog_CPP=$CPP
5570
5571 fi
5572   CPP=$ac_cv_prog_CPP
5573 else
5574   ac_cv_prog_CPP=$CPP
5575 fi
5576 { echo "$as_me:$LINENO: result: $CPP" >&5
5577 echo "${ECHO_T}$CPP" >&6; }
5578 ac_preproc_ok=false
5579 for ac_c_preproc_warn_flag in '' yes
5580 do
5581   # Use a header file that comes with gcc, so configuring glibc
5582   # with a fresh cross-compiler works.
5583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584   # <limits.h> exists even on freestanding compilers.
5585   # On the NeXT, cc -E runs the code through the compiler's parser,
5586   # not just through cpp. "Syntax error" is here to catch this case.
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598                      Syntax error
5599 _ACEOF
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } >/dev/null; then
5613   if test -s conftest.err; then
5614     ac_cpp_err=$ac_c_preproc_warn_flag
5615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5616   else
5617     ac_cpp_err=
5618   fi
5619 else
5620   ac_cpp_err=yes
5621 fi
5622 if test -z "$ac_cpp_err"; then
5623   :
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628   # Broken: fails on valid input.
5629 continue
5630 fi
5631
5632 rm -f conftest.err conftest.$ac_ext
5633
5634   # OK, works on sane cases.  Now check whether nonexistent headers
5635   # can be detected and how.
5636   cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642 #include <ac_nonexistent.h>
5643 _ACEOF
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651   ac_status=$?
5652   grep -v '^ *+' conftest.er1 >conftest.err
5653   rm -f conftest.er1
5654   cat conftest.err >&5
5655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656   (exit $ac_status); } >/dev/null; then
5657   if test -s conftest.err; then
5658     ac_cpp_err=$ac_c_preproc_warn_flag
5659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5660   else
5661     ac_cpp_err=
5662   fi
5663 else
5664   ac_cpp_err=yes
5665 fi
5666 if test -z "$ac_cpp_err"; then
5667   # Broken: success on invalid input.
5668 continue
5669 else
5670   echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673   # Passes both tests.
5674 ac_preproc_ok=:
5675 break
5676 fi
5677
5678 rm -f conftest.err conftest.$ac_ext
5679
5680 done
5681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5682 rm -f conftest.err conftest.$ac_ext
5683 if $ac_preproc_ok; then
5684   :
5685 else
5686   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5687 See \`config.log' for more details." >&5
5688 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5689 See \`config.log' for more details." >&2;}
5690    { (exit 1); exit 1; }; }
5691 fi
5692
5693 ac_ext=c
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698
5699 # Find a good install program.  We prefer a C program (faster),
5700 # so one script is as good as another.  But avoid the broken or
5701 # incompatible versions:
5702 # SysV /etc/install, /usr/sbin/install
5703 # SunOS /usr/etc/install
5704 # IRIX /sbin/install
5705 # AIX /bin/install
5706 # AmigaOS /C/install, which installs bootblocks on floppy discs
5707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5710 # OS/2's system install, which has a completely different semantic
5711 # ./install, which can be erroneously created by make from ./install.sh.
5712 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5713 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5714 if test -z "$INSTALL"; then
5715 if test "${ac_cv_path_install+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723   # Account for people who put trailing slashes in PATH elements.
5724 case $as_dir/ in
5725   ./ | .// | /cC/* | \
5726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5727   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5728   /usr/ucb/* ) ;;
5729   *)
5730     # OSF1 and SCO ODT 3.0 have their own names for install.
5731     # Don't use installbsd from OSF since it installs stuff as root
5732     # by default.
5733     for ac_prog in ginstall scoinst install; do
5734       for ac_exec_ext in '' $ac_executable_extensions; do
5735         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5736           if test $ac_prog = install &&
5737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5738             # AIX install.  It has an incompatible calling convention.
5739             :
5740           elif test $ac_prog = install &&
5741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5742             # program-specific install script used by HP pwplus--don't use.
5743             :
5744           else
5745             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5746             break 3
5747           fi
5748         fi
5749       done
5750     done
5751     ;;
5752 esac
5753 done
5754 IFS=$as_save_IFS
5755
5756
5757 fi
5758   if test "${ac_cv_path_install+set}" = set; then
5759     INSTALL=$ac_cv_path_install
5760   else
5761     # As a last resort, use the slow shell script.  Don't cache a
5762     # value for INSTALL within a source directory, because that will
5763     # break other packages using the cache if that directory is
5764     # removed, or if the value is a relative name.
5765     INSTALL=$ac_install_sh
5766   fi
5767 fi
5768 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5769 echo "${ECHO_T}$INSTALL" >&6; }
5770
5771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5772 # It thinks the first close brace ends the variable substitution.
5773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5774
5775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5776
5777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5778
5779 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5781 LN_S=$as_ln_s
5782 if test "$LN_S" = "ln -s"; then
5783   { echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6; }
5785 else
5786   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787 echo "${ECHO_T}no, using $LN_S" >&6; }
5788 fi
5789
5790 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5792 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5793 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   cat >conftest.make <<\_ACEOF
5797 SHELL = /bin/sh
5798 all:
5799         @echo '@@@%%%=$(MAKE)=@@@%%%'
5800 _ACEOF
5801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5803   *@@@%%%=?*=@@@%%%*)
5804     eval ac_cv_prog_make_${ac_make}_set=yes;;
5805   *)
5806     eval ac_cv_prog_make_${ac_make}_set=no;;
5807 esac
5808 rm -f conftest.make
5809 fi
5810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5811   { echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6; }
5813   SET_MAKE=
5814 else
5815   { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5817   SET_MAKE="MAKE=${MAKE-make}"
5818 fi
5819
5820 # Check whether --enable-shared was given.
5821 if test "${enable_shared+set}" = set; then
5822   enableval=$enable_shared; p=${PACKAGE-default}
5823     case $enableval in
5824     yes) enable_shared=yes ;;
5825     no) enable_shared=no ;;
5826     *)
5827       enable_shared=no
5828       # Look at the argument we got.  We use all the common list separators.
5829       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5830       for pkg in $enableval; do
5831         IFS="$lt_save_ifs"
5832         if test "X$pkg" = "X$p"; then
5833           enable_shared=yes
5834         fi
5835       done
5836       IFS="$lt_save_ifs"
5837       ;;
5838     esac
5839 else
5840   enable_shared=yes
5841 fi
5842
5843
5844 # Check whether --enable-static was given.
5845 if test "${enable_static+set}" = set; then
5846   enableval=$enable_static; p=${PACKAGE-default}
5847     case $enableval in
5848     yes) enable_static=yes ;;
5849     no) enable_static=no ;;
5850     *)
5851      enable_static=no
5852       # Look at the argument we got.  We use all the common list separators.
5853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5854       for pkg in $enableval; do
5855         IFS="$lt_save_ifs"
5856         if test "X$pkg" = "X$p"; then
5857           enable_static=yes
5858         fi
5859       done
5860       IFS="$lt_save_ifs"
5861       ;;
5862     esac
5863 else
5864   enable_static=yes
5865 fi
5866
5867
5868 # Check whether --enable-fast-install was given.
5869 if test "${enable_fast_install+set}" = set; then
5870   enableval=$enable_fast_install; p=${PACKAGE-default}
5871     case $enableval in
5872     yes) enable_fast_install=yes ;;
5873     no) enable_fast_install=no ;;
5874     *)
5875       enable_fast_install=no
5876       # Look at the argument we got.  We use all the common list separators.
5877       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5878       for pkg in $enableval; do
5879         IFS="$lt_save_ifs"
5880         if test "X$pkg" = "X$p"; then
5881           enable_fast_install=yes
5882         fi
5883       done
5884       IFS="$lt_save_ifs"
5885       ;;
5886     esac
5887 else
5888   enable_fast_install=yes
5889 fi
5890
5891
5892 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5893 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5894 if test "${lt_cv_path_SED+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   # Loop through the user's path and test for sed and gsed.
5898 # Then use that list of sed's as ones to test for truncation.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for lt_ac_prog in sed gsed; do
5905     for ac_exec_ext in '' $ac_executable_extensions; do
5906       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5907         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5908       fi
5909     done
5910   done
5911 done
5912 lt_ac_max=0
5913 lt_ac_count=0
5914 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5915 # along with /bin/sed that truncates output.
5916 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5917   test ! -f $lt_ac_sed && continue
5918   cat /dev/null > conftest.in
5919   lt_ac_count=0
5920   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5921   # Check for GNU sed and select it if it is found.
5922   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5923     lt_cv_path_SED=$lt_ac_sed
5924     break
5925   fi
5926   while true; do
5927     cat conftest.in conftest.in >conftest.tmp
5928     mv conftest.tmp conftest.in
5929     cp conftest.in conftest.nl
5930     echo >>conftest.nl
5931     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5932     cmp -s conftest.out conftest.nl || break
5933     # 10000 chars as input seems more than enough
5934     test $lt_ac_count -gt 10 && break
5935     lt_ac_count=`expr $lt_ac_count + 1`
5936     if test $lt_ac_count -gt $lt_ac_max; then
5937       lt_ac_max=$lt_ac_count
5938       lt_cv_path_SED=$lt_ac_sed
5939     fi
5940   done
5941 done
5942
5943 fi
5944
5945 SED=$lt_cv_path_SED
5946 { echo "$as_me:$LINENO: result: $SED" >&5
5947 echo "${ECHO_T}$SED" >&6; }
5948
5949 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5950 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5951 if test "${ac_cv_path_GREP+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   # Extract the first word of "grep ggrep" to use in msg output
5955 if test -z "$GREP"; then
5956 set dummy grep ggrep; ac_prog_name=$2
5957 if test "${ac_cv_path_GREP+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   ac_path_GREP_found=false
5961 # Loop through the user's path and test for each of PROGNAME-LIST
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5964 do
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_prog in grep ggrep; do
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5970     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5971     # Check for GNU ac_path_GREP and select it if it is found.
5972   # Check for GNU $ac_path_GREP
5973 case `"$ac_path_GREP" --version 2>&1` in
5974 *GNU*)
5975   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5976 *)
5977   ac_count=0
5978   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5979   while :
5980   do
5981     cat "conftest.in" "conftest.in" >"conftest.tmp"
5982     mv "conftest.tmp" "conftest.in"
5983     cp "conftest.in" "conftest.nl"
5984     echo 'GREP' >> "conftest.nl"
5985     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5986     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5987     ac_count=`expr $ac_count + 1`
5988     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5989       # Best one so far, save it but keep looking for a better one
5990       ac_cv_path_GREP="$ac_path_GREP"
5991       ac_path_GREP_max=$ac_count
5992     fi
5993     # 10*(2^10) chars as input seems more than enough
5994     test $ac_count -gt 10 && break
5995   done
5996   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5997 esac
5998
5999
6000     $ac_path_GREP_found && break 3
6001   done
6002 done
6003
6004 done
6005 IFS=$as_save_IFS
6006
6007
6008 fi
6009
6010 GREP="$ac_cv_path_GREP"
6011 if test -z "$GREP"; then
6012   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6013 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6014    { (exit 1); exit 1; }; }
6015 fi
6016
6017 else
6018   ac_cv_path_GREP=$GREP
6019 fi
6020
6021
6022 fi
6023 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6024 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6025  GREP="$ac_cv_path_GREP"
6026
6027
6028 { echo "$as_me:$LINENO: checking for egrep" >&5
6029 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6030 if test "${ac_cv_path_EGREP+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6034    then ac_cv_path_EGREP="$GREP -E"
6035    else
6036      # Extract the first word of "egrep" to use in msg output
6037 if test -z "$EGREP"; then
6038 set dummy egrep; ac_prog_name=$2
6039 if test "${ac_cv_path_EGREP+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_path_EGREP_found=false
6043 # Loop through the user's path and test for each of PROGNAME-LIST
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_prog in egrep; do
6050   for ac_exec_ext in '' $ac_executable_extensions; do
6051     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6052     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6053     # Check for GNU ac_path_EGREP and select it if it is found.
6054   # Check for GNU $ac_path_EGREP
6055 case `"$ac_path_EGREP" --version 2>&1` in
6056 *GNU*)
6057   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6058 *)
6059   ac_count=0
6060   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6061   while :
6062   do
6063     cat "conftest.in" "conftest.in" >"conftest.tmp"
6064     mv "conftest.tmp" "conftest.in"
6065     cp "conftest.in" "conftest.nl"
6066     echo 'EGREP' >> "conftest.nl"
6067     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069     ac_count=`expr $ac_count + 1`
6070     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6071       # Best one so far, save it but keep looking for a better one
6072       ac_cv_path_EGREP="$ac_path_EGREP"
6073       ac_path_EGREP_max=$ac_count
6074     fi
6075     # 10*(2^10) chars as input seems more than enough
6076     test $ac_count -gt 10 && break
6077   done
6078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6079 esac
6080
6081
6082     $ac_path_EGREP_found && break 3
6083   done
6084 done
6085
6086 done
6087 IFS=$as_save_IFS
6088
6089
6090 fi
6091
6092 EGREP="$ac_cv_path_EGREP"
6093 if test -z "$EGREP"; then
6094   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6095 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6096    { (exit 1); exit 1; }; }
6097 fi
6098
6099 else
6100   ac_cv_path_EGREP=$EGREP
6101 fi
6102
6103
6104    fi
6105 fi
6106 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6107 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6108  EGREP="$ac_cv_path_EGREP"
6109
6110
6111
6112 # Check whether --with-gnu-ld was given.
6113 if test "${with_gnu_ld+set}" = set; then
6114   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6115 else
6116   with_gnu_ld=no
6117 fi
6118
6119 ac_prog=ld
6120 if test "$GCC" = yes; then
6121   # Check if gcc -print-prog-name=ld gives a path.
6122   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6124   case $host in
6125   *-*-mingw*)
6126     # gcc leaves a trailing carriage return which upsets mingw
6127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6128   *)
6129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6130   esac
6131   case $ac_prog in
6132     # Accept absolute paths.
6133     [\\/]* | ?:[\\/]*)
6134       re_direlt='/[^/][^/]*/\.\./'
6135       # Canonicalize the pathname of ld
6136       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6137       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6138         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6139       done
6140       test -z "$LD" && LD="$ac_prog"
6141       ;;
6142   "")
6143     # If it fails, then pretend we aren't using GCC.
6144     ac_prog=ld
6145     ;;
6146   *)
6147     # If it is relative, then search for the first ld in PATH.
6148     with_gnu_ld=unknown
6149     ;;
6150   esac
6151 elif test "$with_gnu_ld" = yes; then
6152   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6154 else
6155   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6157 fi
6158 if test "${lt_cv_path_LD+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -z "$LD"; then
6162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6163   for ac_dir in $PATH; do
6164     IFS="$lt_save_ifs"
6165     test -z "$ac_dir" && ac_dir=.
6166     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6167       lt_cv_path_LD="$ac_dir/$ac_prog"
6168       # Check to see if the program is GNU ld.  I'd rather use --version,
6169       # but apparently some variants of GNU ld only accept -v.
6170       # Break only if it was the GNU/non-GNU ld that we prefer.
6171       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6172       *GNU* | *'with BFD'*)
6173         test "$with_gnu_ld" != no && break
6174         ;;
6175       *)
6176         test "$with_gnu_ld" != yes && break
6177         ;;
6178       esac
6179     fi
6180   done
6181   IFS="$lt_save_ifs"
6182 else
6183   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6184 fi
6185 fi
6186
6187 LD="$lt_cv_path_LD"
6188 if test -n "$LD"; then
6189   { echo "$as_me:$LINENO: result: $LD" >&5
6190 echo "${ECHO_T}$LD" >&6; }
6191 else
6192   { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6194 fi
6195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6197    { (exit 1); exit 1; }; }
6198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6204 case `$LD -v 2>&1 </dev/null` in
6205 *GNU* | *'with BFD'*)
6206   lt_cv_prog_gnu_ld=yes
6207   ;;
6208 *)
6209   lt_cv_prog_gnu_ld=no
6210   ;;
6211 esac
6212 fi
6213 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6215 with_gnu_ld=$lt_cv_prog_gnu_ld
6216
6217
6218 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220 if test "${lt_cv_ld_reload_flag+set}" = set; then
6221   echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223   lt_cv_ld_reload_flag='-r'
6224 fi
6225 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227 reload_flag=$lt_cv_ld_reload_flag
6228 case $reload_flag in
6229 "" | " "*) ;;
6230 *) reload_flag=" $reload_flag" ;;
6231 esac
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6233 case $host_os in
6234   darwin*)
6235     if test "$GCC" = yes; then
6236       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237     else
6238       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6239     fi
6240     ;;
6241 esac
6242
6243 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6244 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6245 if test "${lt_cv_path_NM+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   if test -n "$NM"; then
6249   # Let the user override the test.
6250   lt_cv_path_NM="$NM"
6251 else
6252   lt_nm_to_check="${ac_tool_prefix}nm"
6253   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6254     lt_nm_to_check="$lt_nm_to_check nm"
6255   fi
6256   for lt_tmp_nm in $lt_nm_to_check; do
6257     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6258     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6259       IFS="$lt_save_ifs"
6260       test -z "$ac_dir" && ac_dir=.
6261       tmp_nm="$ac_dir/$lt_tmp_nm"
6262       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6263         # Check to see if the nm accepts a BSD-compat flag.
6264         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6265         #   nm: unknown option "B" ignored
6266         # Tru64's nm complains that /dev/null is an invalid object file
6267         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6268         */dev/null* | *'Invalid file or object type'*)
6269           lt_cv_path_NM="$tmp_nm -B"
6270           break
6271           ;;
6272         *)
6273           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6274           */dev/null*)
6275             lt_cv_path_NM="$tmp_nm -p"
6276             break
6277             ;;
6278           *)
6279             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6280             continue # so that we can try to find one that supports BSD flags
6281             ;;
6282           esac
6283           ;;
6284         esac
6285       fi
6286     done
6287     IFS="$lt_save_ifs"
6288   done
6289   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6290 fi
6291 fi
6292 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6293 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6294 NM="$lt_cv_path_NM"
6295
6296 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6297 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6298 if test "${lt_cv_deplibs_check_method+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   lt_cv_file_magic_cmd='$MAGIC_CMD'
6302 lt_cv_file_magic_test_file=
6303 lt_cv_deplibs_check_method='unknown'
6304 # Need to set the preceding variable on all platforms that support
6305 # interlibrary dependencies.
6306 # 'none' -- dependencies not supported.
6307 # `unknown' -- same as none, but documents that we really don't know.
6308 # 'pass_all' -- all dependencies passed with no checks.
6309 # 'test_compile' -- check by making test program.
6310 # 'file_magic [[regex]]' -- check by looking for files in library path
6311 # which responds to the $file_magic_cmd with a given extended regex.
6312 # If you have `file' or equivalent on your system and you're not sure
6313 # whether `pass_all' will *always* work, you probably want this one.
6314
6315 case $host_os in
6316 aix4* | aix5*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319
6320 beos*)
6321   lt_cv_deplibs_check_method=pass_all
6322   ;;
6323
6324 bsdi[45]*)
6325   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326   lt_cv_file_magic_cmd='/usr/bin/file -L'
6327   lt_cv_file_magic_test_file=/shlib/libc.so
6328   ;;
6329
6330 cygwin*)
6331   # func_win32_libid is a shell function defined in ltmain.sh
6332   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333   lt_cv_file_magic_cmd='func_win32_libid'
6334   ;;
6335
6336 mingw* | pw32*)
6337   # Base MSYS/MinGW do not provide the 'file' command needed by
6338   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6339   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6340   lt_cv_file_magic_cmd='$OBJDUMP -f'
6341   ;;
6342
6343 darwin* | rhapsody*)
6344   lt_cv_deplibs_check_method=pass_all
6345   ;;
6346
6347 freebsd* | dragonfly*)
6348   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6349     case $host_cpu in
6350     i*86 )
6351       # Not sure whether the presence of OpenBSD here was a mistake.
6352       # Let's accept both of them until this is cleared up.
6353       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354       lt_cv_file_magic_cmd=/usr/bin/file
6355       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6356       ;;
6357     esac
6358   else
6359     lt_cv_deplibs_check_method=pass_all
6360   fi
6361   ;;
6362
6363 gnu*)
6364   lt_cv_deplibs_check_method=pass_all
6365   ;;
6366
6367 hpux10.20* | hpux11*)
6368   lt_cv_file_magic_cmd=/usr/bin/file
6369   case $host_cpu in
6370   ia64*)
6371     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6373     ;;
6374   hppa*64*)
6375     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]'
6376     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6377     ;;
6378   *)
6379     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6381     ;;
6382   esac
6383   ;;
6384
6385 interix3*)
6386   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6388   ;;
6389
6390 irix5* | irix6* | nonstopux*)
6391   case $LD in
6392   *-32|*"-32 ") libmagic=32-bit;;
6393   *-n32|*"-n32 ") libmagic=N32;;
6394   *-64|*"-64 ") libmagic=64-bit;;
6395   *) libmagic=never-match;;
6396   esac
6397   lt_cv_deplibs_check_method=pass_all
6398   ;;
6399
6400 # This must be Linux ELF.
6401 linux* | k*bsd*-gnu)
6402   lt_cv_deplibs_check_method=pass_all
6403   ;;
6404
6405 netbsd* | netbsdelf*-gnu)
6406   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6407     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408   else
6409     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6410   fi
6411   ;;
6412
6413 newos6*)
6414   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415   lt_cv_file_magic_cmd=/usr/bin/file
6416   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6417   ;;
6418
6419 nto-qnx*)
6420   lt_cv_deplibs_check_method=unknown
6421   ;;
6422
6423 openbsd*)
6424   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6426   else
6427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6428   fi
6429   ;;
6430
6431 osf3* | osf4* | osf5*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434
6435 solaris*)
6436   lt_cv_deplibs_check_method=pass_all
6437   ;;
6438
6439 sysv4 | sysv4.3*)
6440   case $host_vendor in
6441   motorola)
6442     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]'
6443     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6444     ;;
6445   ncr)
6446     lt_cv_deplibs_check_method=pass_all
6447     ;;
6448   sequent)
6449     lt_cv_file_magic_cmd='/bin/file'
6450     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6451     ;;
6452   sni)
6453     lt_cv_file_magic_cmd='/bin/file'
6454     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6455     lt_cv_file_magic_test_file=/lib/libc.so
6456     ;;
6457   siemens)
6458     lt_cv_deplibs_check_method=pass_all
6459     ;;
6460   pc)
6461     lt_cv_deplibs_check_method=pass_all
6462     ;;
6463   esac
6464   ;;
6465
6466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469 esac
6470
6471 fi
6472 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6473 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6474 file_magic_cmd=$lt_cv_file_magic_cmd
6475 deplibs_check_method=$lt_cv_deplibs_check_method
6476 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6477
6478
6479
6480
6481 # If no C compiler was specified, use CC.
6482 LTCC=${LTCC-"$CC"}
6483
6484 # If no C compiler flags were specified, use CFLAGS.
6485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6486
6487 # Allow CC to be a program name with arguments.
6488 compiler=$CC
6489
6490 # Check whether --enable-libtool-lock was given.
6491 if test "${enable_libtool_lock+set}" = set; then
6492   enableval=$enable_libtool_lock;
6493 fi
6494
6495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6496
6497 # Some flags need to be propagated to the compiler or linker for good
6498 # libtool support.
6499 case $host in
6500 ia64-*-hpux*)
6501   # Find out which ABI we are using.
6502   echo 'int i;' > conftest.$ac_ext
6503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; then
6508     case `/usr/bin/file conftest.$ac_objext` in
6509     *ELF-32*)
6510       HPUX_IA64_MODE="32"
6511       ;;
6512     *ELF-64*)
6513       HPUX_IA64_MODE="64"
6514       ;;
6515     esac
6516   fi
6517   rm -rf conftest*
6518   ;;
6519 *-*-irix6*)
6520   # Find out which ABI we are using.
6521   echo '#line 6521 "configure"' > conftest.$ac_ext
6522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523   (eval $ac_compile) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; then
6527    if test "$lt_cv_prog_gnu_ld" = yes; then
6528     case `/usr/bin/file conftest.$ac_objext` in
6529     *32-bit*)
6530       LD="${LD-ld} -melf32bsmip"
6531       ;;
6532     *N32*)
6533       LD="${LD-ld} -melf32bmipn32"
6534       ;;
6535     *64-bit*)
6536       LD="${LD-ld} -melf64bmip"
6537       ;;
6538     esac
6539    else
6540     case `/usr/bin/file conftest.$ac_objext` in
6541     *32-bit*)
6542       LD="${LD-ld} -32"
6543       ;;
6544     *N32*)
6545       LD="${LD-ld} -n32"
6546       ;;
6547     *64-bit*)
6548       LD="${LD-ld} -64"
6549       ;;
6550     esac
6551    fi
6552   fi
6553   rm -rf conftest*
6554   ;;
6555
6556 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6557   # Find out which ABI we are using.
6558   echo 'int i;' > conftest.$ac_ext
6559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560   (eval $ac_compile) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; then
6564     case `/usr/bin/file conftest.o` in
6565     *32-bit*)
6566       case $host in
6567         x86_64-*linux*)
6568           LD="${LD-ld} -m elf_i386"
6569           ;;
6570         ppc64-*linux*|powerpc64-*linux*)
6571           LD="${LD-ld} -m elf32ppclinux"
6572           ;;
6573         s390x-*linux*)
6574           LD="${LD-ld} -m elf_s390"
6575           ;;
6576         sparc64-*linux*)
6577           LD="${LD-ld} -m elf32_sparc"
6578           ;;
6579       esac
6580       ;;
6581     *64-bit*)
6582       case $host in
6583         x86_64-*linux*)
6584           LD="${LD-ld} -m elf_x86_64"
6585           ;;
6586         ppc*-*linux*|powerpc*-*linux*)
6587           LD="${LD-ld} -m elf64ppc"
6588           ;;
6589         s390*-*linux*)
6590           LD="${LD-ld} -m elf64_s390"
6591           ;;
6592         sparc*-*linux*)
6593           LD="${LD-ld} -m elf64_sparc"
6594           ;;
6595       esac
6596       ;;
6597     esac
6598   fi
6599   rm -rf conftest*
6600   ;;
6601
6602 *-*-sco3.2v5*)
6603   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604   SAVE_CFLAGS="$CFLAGS"
6605   CFLAGS="$CFLAGS -belf"
6606   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6608 if test "${lt_cv_cc_needs_belf+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617      cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623
6624 int
6625 main ()
6626 {
6627
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_link") 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } &&
6646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6647   { (case "(($ac_try" in
6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649   *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652   (eval "$ac_try") 2>&5
6653   ac_status=$?
6654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655   (exit $ac_status); }; } &&
6656          { ac_try='test -s conftest$ac_exeext'
6657   { (case "(($ac_try" in
6658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659   *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662   (eval "$ac_try") 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   lt_cv_cc_needs_belf=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671         lt_cv_cc_needs_belf=no
6672 fi
6673
6674 rm -f conftest.err conftest.$ac_objext \
6675       conftest$ac_exeext conftest.$ac_ext
6676      ac_ext=c
6677 ac_cpp='$CPP $CPPFLAGS'
6678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
6682 fi
6683 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6684 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6685   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687     CFLAGS="$SAVE_CFLAGS"
6688   fi
6689   ;;
6690 sparc*-*solaris*)
6691   # Find out which ABI we are using.
6692   echo 'int i;' > conftest.$ac_ext
6693   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6694   (eval $ac_compile) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; then
6698     case `/usr/bin/file conftest.o` in
6699     *64-bit*)
6700       case $lt_cv_prog_gnu_ld in
6701       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6702       *)    LD="${LD-ld} -64" ;;
6703       esac
6704       ;;
6705     esac
6706   fi
6707   rm -rf conftest*
6708   ;;
6709
6710
6711 esac
6712
6713 need_locks="$enable_libtool_lock"
6714
6715
6716
6717 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719 if test "${ac_cv_header_stdc+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h.  */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h.  */
6728 #include <stdlib.h>
6729 #include <stdarg.h>
6730 #include <string.h>
6731 #include <float.h>
6732
6733 int
6734 main ()
6735 {
6736
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6743 case "(($ac_try" in
6744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745   *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748   (eval "$ac_compile") 2>conftest.er1
6749   ac_status=$?
6750   grep -v '^ *+' conftest.er1 >conftest.err
6751   rm -f conftest.er1
6752   cat conftest.err >&5
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6756   { (case "(($ac_try" in
6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758   *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761   (eval "$ac_try") 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; } &&
6765          { ac_try='test -s conftest.$ac_objext'
6766   { (case "(($ac_try" in
6767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768   *) ac_try_echo=$ac_try;;
6769 esac
6770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6771   (eval "$ac_try") 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; }; then
6775   ac_cv_header_stdc=yes
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780         ac_cv_header_stdc=no
6781 fi
6782
6783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6784
6785 if test $ac_cv_header_stdc = yes; then
6786   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <string.h>
6794
6795 _ACEOF
6796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6797   $EGREP "memchr" >/dev/null 2>&1; then
6798   :
6799 else
6800   ac_cv_header_stdc=no
6801 fi
6802 rm -f conftest*
6803
6804 fi
6805
6806 if test $ac_cv_header_stdc = yes; then
6807   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6808   cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h.  */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h.  */
6814 #include <stdlib.h>
6815
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818   $EGREP "free" >/dev/null 2>&1; then
6819   :
6820 else
6821   ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826
6827 if test $ac_cv_header_stdc = yes; then
6828   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829   if test "$cross_compiling" = yes; then
6830   :
6831 else
6832   cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h.  */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h.  */
6838 #include <ctype.h>
6839 #include <stdlib.h>
6840 #if ((' ' & 0x0FF) == 0x020)
6841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6843 #else
6844 # define ISLOWER(c) \
6845                    (('a' <= (c) && (c) <= 'i') \
6846                      || ('j' <= (c) && (c) <= 'r') \
6847                      || ('s' <= (c) && (c) <= 'z'))
6848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6849 #endif
6850
6851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6852 int
6853 main ()
6854 {
6855   int i;
6856   for (i = 0; i < 256; i++)
6857     if (XOR (islower (i), ISLOWER (i))
6858         || toupper (i) != TOUPPER (i))
6859       return 2;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest$ac_exeext
6864 if { (ac_try="$ac_link"
6865 case "(($ac_try" in
6866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867   *) ac_try_echo=$ac_try;;
6868 esac
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870   (eval "$ac_link") 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6874   { (case "(($ac_try" in
6875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876   *) ac_try_echo=$ac_try;;
6877 esac
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879   (eval "$ac_try") 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }; }; then
6883   :
6884 else
6885   echo "$as_me: program exited with status $ac_status" >&5
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6888
6889 ( exit $ac_status )
6890 ac_cv_header_stdc=no
6891 fi
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6893 fi
6894
6895
6896 fi
6897 fi
6898 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6899 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6900 if test $ac_cv_header_stdc = yes; then
6901
6902 cat >>confdefs.h <<\_ACEOF
6903 #define STDC_HEADERS 1
6904 _ACEOF
6905
6906 fi
6907
6908 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6919                   inttypes.h stdint.h unistd.h
6920 do
6921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 $ac_includes_default
6934
6935 #include <$ac_header>
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6939 case "(($ac_try" in
6940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941   *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944   (eval "$ac_compile") 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } &&
6951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6952   { (case "(($ac_try" in
6953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954   *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957   (eval "$ac_try") 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; } &&
6961          { ac_try='test -s conftest.$ac_objext'
6962   { (case "(($ac_try" in
6963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964   *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967   (eval "$ac_try") 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   eval "$as_ac_Header=yes"
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976         eval "$as_ac_Header=no"
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 fi
6981 ac_res=`eval echo '${'$as_ac_Header'}'`
6982                { echo "$as_me:$LINENO: result: $ac_res" >&5
6983 echo "${ECHO_T}$ac_res" >&6; }
6984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6985   cat >>confdefs.h <<_ACEOF
6986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6987 _ACEOF
6988
6989 fi
6990
6991 done
6992
6993
6994
6995 for ac_header in dlfcn.h
6996 do
6997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 fi
7004 ac_res=`eval echo '${'$as_ac_Header'}'`
7005                { echo "$as_me:$LINENO: result: $ac_res" >&5
7006 echo "${ECHO_T}$ac_res" >&6; }
7007 else
7008   # Is the header compilable?
7009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h.  */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h.  */
7017 $ac_includes_default
7018 #include <$ac_header>
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7022 case "(($ac_try" in
7023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024   *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027   (eval "$ac_compile") 2>conftest.er1
7028   ac_status=$?
7029   grep -v '^ *+' conftest.er1 >conftest.err
7030   rm -f conftest.er1
7031   cat conftest.err >&5
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } &&
7034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7035   { (case "(($ac_try" in
7036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037   *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040   (eval "$ac_try") 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; } &&
7044          { ac_try='test -s conftest.$ac_objext'
7045   { (case "(($ac_try" in
7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047   *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050   (eval "$ac_try") 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); }; }; then
7054   ac_header_compiler=yes
7055 else
7056   echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7058
7059         ac_header_compiler=no
7060 fi
7061
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7064 echo "${ECHO_T}$ac_header_compiler" >&6; }
7065
7066 # Is the header present?
7067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 #include <$ac_header>
7076 _ACEOF
7077 if { (ac_try="$ac_cpp conftest.$ac_ext"
7078 case "(($ac_try" in
7079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080   *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7084   ac_status=$?
7085   grep -v '^ *+' conftest.er1 >conftest.err
7086   rm -f conftest.er1
7087   cat conftest.err >&5
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } >/dev/null; then
7090   if test -s conftest.err; then
7091     ac_cpp_err=$ac_c_preproc_warn_flag
7092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7093   else
7094     ac_cpp_err=
7095   fi
7096 else
7097   ac_cpp_err=yes
7098 fi
7099 if test -z "$ac_cpp_err"; then
7100   ac_header_preproc=yes
7101 else
7102   echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7104
7105   ac_header_preproc=no
7106 fi
7107
7108 rm -f conftest.err conftest.$ac_ext
7109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110 echo "${ECHO_T}$ac_header_preproc" >&6; }
7111
7112 # So?  What about this header?
7113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7114   yes:no: )
7115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119     ac_header_preproc=yes
7120     ;;
7121   no:yes:* )
7122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7134     ( cat <<\_ASBOX
7135 ## ------------------------------- ##
7136 ## Report this to nfs@lists.sf.net ##
7137 ## ------------------------------- ##
7138 _ASBOX
7139      ) | sed "s/^/$as_me: WARNING:     /" >&2
7140     ;;
7141 esac
7142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   eval "$as_ac_Header=\$ac_header_preproc"
7148 fi
7149 ac_res=`eval echo '${'$as_ac_Header'}'`
7150                { echo "$as_me:$LINENO: result: $ac_res" >&5
7151 echo "${ECHO_T}$ac_res" >&6; }
7152
7153 fi
7154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7155   cat >>confdefs.h <<_ACEOF
7156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157 _ACEOF
7158
7159 fi
7160
7161 done
7162
7163
7164
7165 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7166     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7167     (test "X$CXX" != "Xg++"))) ; then
7168   ac_ext=cpp
7169 ac_cpp='$CXXCPP $CPPFLAGS'
7170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7174 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7175 if test -z "$CXXCPP"; then
7176   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179       # Double quotes because CXXCPP needs to be expanded
7180     for CXXCPP in "$CXX -E" "/lib/cpp"
7181     do
7182       ac_preproc_ok=false
7183 for ac_cxx_preproc_warn_flag in '' yes
7184 do
7185   # Use a header file that comes with gcc, so configuring glibc
7186   # with a fresh cross-compiler works.
7187   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188   # <limits.h> exists even on freestanding compilers.
7189   # On the NeXT, cc -E runs the code through the compiler's parser,
7190   # not just through cpp. "Syntax error" is here to catch this case.
7191   cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 #ifdef __STDC__
7198 # include <limits.h>
7199 #else
7200 # include <assert.h>
7201 #endif
7202                      Syntax error
7203 _ACEOF
7204 if { (ac_try="$ac_cpp conftest.$ac_ext"
7205 case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } >/dev/null; then
7217   if test -s conftest.err; then
7218     ac_cpp_err=$ac_cxx_preproc_warn_flag
7219     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7220   else
7221     ac_cpp_err=
7222   fi
7223 else
7224   ac_cpp_err=yes
7225 fi
7226 if test -z "$ac_cpp_err"; then
7227   :
7228 else
7229   echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232   # Broken: fails on valid input.
7233 continue
7234 fi
7235
7236 rm -f conftest.err conftest.$ac_ext
7237
7238   # OK, works on sane cases.  Now check whether nonexistent headers
7239   # can be detected and how.
7240   cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246 #include <ac_nonexistent.h>
7247 _ACEOF
7248 if { (ac_try="$ac_cpp conftest.$ac_ext"
7249 case "(($ac_try" in
7250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251   *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } >/dev/null; then
7261   if test -s conftest.err; then
7262     ac_cpp_err=$ac_cxx_preproc_warn_flag
7263     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7264   else
7265     ac_cpp_err=
7266   fi
7267 else
7268   ac_cpp_err=yes
7269 fi
7270 if test -z "$ac_cpp_err"; then
7271   # Broken: success on invalid input.
7272 continue
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277   # Passes both tests.
7278 ac_preproc_ok=:
7279 break
7280 fi
7281
7282 rm -f conftest.err conftest.$ac_ext
7283
7284 done
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.err conftest.$ac_ext
7287 if $ac_preproc_ok; then
7288   break
7289 fi
7290
7291     done
7292     ac_cv_prog_CXXCPP=$CXXCPP
7293
7294 fi
7295   CXXCPP=$ac_cv_prog_CXXCPP
7296 else
7297   ac_cv_prog_CXXCPP=$CXXCPP
7298 fi
7299 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7300 echo "${ECHO_T}$CXXCPP" >&6; }
7301 ac_preproc_ok=false
7302 for ac_cxx_preproc_warn_flag in '' yes
7303 do
7304   # Use a header file that comes with gcc, so configuring glibc
7305   # with a fresh cross-compiler works.
7306   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307   # <limits.h> exists even on freestanding compilers.
7308   # On the NeXT, cc -E runs the code through the compiler's parser,
7309   # not just through cpp. "Syntax error" is here to catch this case.
7310   cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316 #ifdef __STDC__
7317 # include <limits.h>
7318 #else
7319 # include <assert.h>
7320 #endif
7321                      Syntax error
7322 _ACEOF
7323 if { (ac_try="$ac_cpp conftest.$ac_ext"
7324 case "(($ac_try" in
7325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326   *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7330   ac_status=$?
7331   grep -v '^ *+' conftest.er1 >conftest.err
7332   rm -f conftest.er1
7333   cat conftest.err >&5
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); } >/dev/null; then
7336   if test -s conftest.err; then
7337     ac_cpp_err=$ac_cxx_preproc_warn_flag
7338     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7339   else
7340     ac_cpp_err=
7341   fi
7342 else
7343   ac_cpp_err=yes
7344 fi
7345 if test -z "$ac_cpp_err"; then
7346   :
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351   # Broken: fails on valid input.
7352 continue
7353 fi
7354
7355 rm -f conftest.err conftest.$ac_ext
7356
7357   # OK, works on sane cases.  Now check whether nonexistent headers
7358   # can be detected and how.
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 #include <ac_nonexistent.h>
7366 _ACEOF
7367 if { (ac_try="$ac_cpp conftest.$ac_ext"
7368 case "(($ac_try" in
7369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370   *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7374   ac_status=$?
7375   grep -v '^ *+' conftest.er1 >conftest.err
7376   rm -f conftest.er1
7377   cat conftest.err >&5
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } >/dev/null; then
7380   if test -s conftest.err; then
7381     ac_cpp_err=$ac_cxx_preproc_warn_flag
7382     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7383   else
7384     ac_cpp_err=
7385   fi
7386 else
7387   ac_cpp_err=yes
7388 fi
7389 if test -z "$ac_cpp_err"; then
7390   # Broken: success on invalid input.
7391 continue
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396   # Passes both tests.
7397 ac_preproc_ok=:
7398 break
7399 fi
7400
7401 rm -f conftest.err conftest.$ac_ext
7402
7403 done
7404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405 rm -f conftest.err conftest.$ac_ext
7406 if $ac_preproc_ok; then
7407   :
7408 else
7409   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7410 See \`config.log' for more details." >&5
7411 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7412 See \`config.log' for more details." >&2;}
7413    { (exit 1); exit 1; }; }
7414 fi
7415
7416 ac_ext=cpp
7417 ac_cpp='$CXXCPP $CPPFLAGS'
7418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7421
7422 fi
7423
7424
7425 ac_ext=f
7426 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7427 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7429 if test -n "$ac_tool_prefix"; then
7430   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
7431   do
7432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_prog_F77+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   if test -n "$F77"; then
7440   ac_cv_prog_F77="$F77" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 F77=$ac_cv_prog_F77
7460 if test -n "$F77"; then
7461   { echo "$as_me:$LINENO: result: $F77" >&5
7462 echo "${ECHO_T}$F77" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469     test -n "$F77" && break
7470   done
7471 fi
7472 if test -z "$F77"; then
7473   ac_ct_F77=$F77
7474   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
7475 do
7476   # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   if test -n "$ac_ct_F77"; then
7484   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_prog_ac_ct_F77="$ac_prog"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7504 if test -n "$ac_ct_F77"; then
7505   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7506 echo "${ECHO_T}$ac_ct_F77" >&6; }
7507 else
7508   { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7510 fi
7511
7512
7513   test -n "$ac_ct_F77" && break
7514 done
7515
7516   if test "x$ac_ct_F77" = x; then
7517     F77=""
7518   else
7519     case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7522 whose name does not start with the host triplet.  If you think this
7523 configuration is useful to you, please write to autoconf@gnu.org." >&5
7524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7525 whose name does not start with the host triplet.  If you think this
7526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7527 ac_tool_warned=yes ;;
7528 esac
7529     F77=$ac_ct_F77
7530   fi
7531 fi
7532
7533
7534 # Provide some information about the compiler.
7535 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7536 ac_compiler=`set X $ac_compile; echo $2`
7537 { (ac_try="$ac_compiler --version >&5"
7538 case "(($ac_try" in
7539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540   *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543   (eval "$ac_compiler --version >&5") 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }
7547 { (ac_try="$ac_compiler -v >&5"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553   (eval "$ac_compiler -v >&5") 2>&5
7554   ac_status=$?
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); }
7557 { (ac_try="$ac_compiler -V >&5"
7558 case "(($ac_try" in
7559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560   *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563   (eval "$ac_compiler -V >&5") 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }
7567 rm -f a.out
7568
7569 # If we don't use `.F' as extension, the preprocessor is not run on the
7570 # input file.  (Note that this only needs to work for GNU compilers.)
7571 ac_save_ext=$ac_ext
7572 ac_ext=F
7573 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7574 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7575 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   cat >conftest.$ac_ext <<_ACEOF
7579       program main
7580 #ifndef __GNUC__
7581        choke me
7582 #endif
7583
7584       end
7585 _ACEOF
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7588 case "(($ac_try" in
7589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590   *) ac_try_echo=$ac_try;;
7591 esac
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593   (eval "$ac_compile") 2>conftest.er1
7594   ac_status=$?
7595   grep -v '^ *+' conftest.er1 >conftest.err
7596   rm -f conftest.er1
7597   cat conftest.err >&5
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } &&
7600          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7601   { (case "(($ac_try" in
7602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603   *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606   (eval "$ac_try") 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; } &&
7610          { ac_try='test -s conftest.$ac_objext'
7611   { (case "(($ac_try" in
7612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613   *) ac_try_echo=$ac_try;;
7614 esac
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616   (eval "$ac_try") 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; }; then
7620   ac_compiler_gnu=yes
7621 else
7622   echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625         ac_compiler_gnu=no
7626 fi
7627
7628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7629 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7630
7631 fi
7632 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7633 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7634 ac_ext=$ac_save_ext
7635 ac_test_FFLAGS=${FFLAGS+set}
7636 ac_save_FFLAGS=$FFLAGS
7637 FFLAGS=
7638 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7639 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_f77_g+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   FFLAGS=-g
7644 cat >conftest.$ac_ext <<_ACEOF
7645       program main
7646
7647       end
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653   *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656   (eval "$ac_compile") 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7664   { (case "(($ac_try" in
7665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666   *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669   (eval "$ac_try") 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; } &&
7673          { ac_try='test -s conftest.$ac_objext'
7674   { (case "(($ac_try" in
7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676   *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679   (eval "$ac_try") 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); }; }; then
7683   ac_cv_prog_f77_g=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688         ac_cv_prog_f77_g=no
7689 fi
7690
7691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7695 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7696 if test "$ac_test_FFLAGS" = set; then
7697   FFLAGS=$ac_save_FFLAGS
7698 elif test $ac_cv_prog_f77_g = yes; then
7699   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7700     FFLAGS="-g -O2"
7701   else
7702     FFLAGS="-g"
7703   fi
7704 else
7705   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7706     FFLAGS="-O2"
7707   else
7708     FFLAGS=
7709   fi
7710 fi
7711
7712 G77=`test $ac_compiler_gnu = yes && echo yes`
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719
7720
7721 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7722
7723 # find the maximum length of command line arguments
7724 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7725 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7726 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729     i=0
7730   teststring="ABCD"
7731
7732   case $build_os in
7733   msdosdjgpp*)
7734     # On DJGPP, this test can blow up pretty badly due to problems in libc
7735     # (any single argument exceeding 2000 bytes causes a buffer overrun
7736     # during glob expansion).  Even if it were fixed, the result of this
7737     # check would be larger than it should be.
7738     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7739     ;;
7740
7741   gnu*)
7742     # Under GNU Hurd, this test is not required because there is
7743     # no limit to the length of command line arguments.
7744     # Libtool will interpret -1 as no limit whatsoever
7745     lt_cv_sys_max_cmd_len=-1;
7746     ;;
7747
7748   cygwin* | mingw*)
7749     # On Win9x/ME, this test blows up -- it succeeds, but takes
7750     # about 5 minutes as the teststring grows exponentially.
7751     # Worse, since 9x/ME are not pre-emptively multitasking,
7752     # you end up with a "frozen" computer, even though with patience
7753     # the test eventually succeeds (with a max line length of 256k).
7754     # Instead, let's just punt: use the minimum linelength reported by
7755     # all of the supported platforms: 8192 (on NT/2K/XP).
7756     lt_cv_sys_max_cmd_len=8192;
7757     ;;
7758
7759   amigaos*)
7760     # On AmigaOS with pdksh, this test takes hours, literally.
7761     # So we just punt and use a minimum line length of 8192.
7762     lt_cv_sys_max_cmd_len=8192;
7763     ;;
7764
7765   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7766     # This has been around since 386BSD, at least.  Likely further.
7767     if test -x /sbin/sysctl; then
7768       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7769     elif test -x /usr/sbin/sysctl; then
7770       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7771     else
7772       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7773     fi
7774     # And add a safety zone
7775     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7776     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7777     ;;
7778
7779   interix*)
7780     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7781     lt_cv_sys_max_cmd_len=196608
7782     ;;
7783
7784   osf*)
7785     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7786     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7787     # nice to cause kernel panics so lets avoid the loop below.
7788     # First set a reasonable default.
7789     lt_cv_sys_max_cmd_len=16384
7790     #
7791     if test -x /sbin/sysconfig; then
7792       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7793         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7794       esac
7795     fi
7796     ;;
7797   sco3.2v5*)
7798     lt_cv_sys_max_cmd_len=102400
7799     ;;
7800   sysv5* | sco5v6* | sysv4.2uw2*)
7801     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7802     if test -n "$kargmax"; then
7803       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7804     else
7805       lt_cv_sys_max_cmd_len=32768
7806     fi
7807     ;;
7808   *)
7809     # If test is not a shell built-in, we'll probably end up computing a
7810     # maximum length that is only half of the actual maximum length, but
7811     # we can't tell.
7812     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7813     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7814                = "XX$teststring") >/dev/null 2>&1 &&
7815             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7816             lt_cv_sys_max_cmd_len=$new_result &&
7817             test $i != 17 # 1/2 MB should be enough
7818     do
7819       i=`expr $i + 1`
7820       teststring=$teststring$teststring
7821     done
7822     teststring=
7823     # Add a significant safety factor because C++ compilers can tack on massive
7824     # amounts of additional arguments before passing them to the linker.
7825     # It appears as though 1/2 is a usable value.
7826     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7827     ;;
7828   esac
7829
7830 fi
7831
7832 if test -n $lt_cv_sys_max_cmd_len ; then
7833   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7834 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7835 else
7836   { echo "$as_me:$LINENO: result: none" >&5
7837 echo "${ECHO_T}none" >&6; }
7838 fi
7839
7840
7841
7842
7843 # Check for command to grab the raw symbol name followed by C symbol from nm.
7844 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7845 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7846 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849
7850 # These are sane defaults that work on at least a few old systems.
7851 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7852
7853 # Character class describing NM global symbol codes.
7854 symcode='[BCDEGRST]'
7855
7856 # Regexp to match symbols that can be accessed directly from C.
7857 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7858
7859 # Transform an extracted symbol line into a proper C declaration
7860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7861
7862 # Transform an extracted symbol line into symbol name and symbol address
7863 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'"
7864
7865 # Define system-specific variables.
7866 case $host_os in
7867 aix*)
7868   symcode='[BCDT]'
7869   ;;
7870 cygwin* | mingw* | pw32*)
7871   symcode='[ABCDGISTW]'
7872   ;;
7873 hpux*) # Its linker distinguishes data from code symbols
7874   if test "$host_cpu" = ia64; then
7875     symcode='[ABCDEGRST]'
7876   fi
7877   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7878   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'"
7879   ;;
7880 linux* | k*bsd*-gnu)
7881   if test "$host_cpu" = ia64; then
7882     symcode='[ABCDGIRSTW]'
7883     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7884     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'"
7885   fi
7886   ;;
7887 irix* | nonstopux*)
7888   symcode='[BCDEGRST]'
7889   ;;
7890 osf*)
7891   symcode='[BCDEGQRST]'
7892   ;;
7893 solaris*)
7894   symcode='[BDRT]'
7895   ;;
7896 sco3.2v5*)
7897   symcode='[DT]'
7898   ;;
7899 sysv4.2uw2*)
7900   symcode='[DT]'
7901   ;;
7902 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7903   symcode='[ABDT]'
7904   ;;
7905 sysv4)
7906   symcode='[DFNSTU]'
7907   ;;
7908 esac
7909
7910 # Handle CRLF in mingw tool chain
7911 opt_cr=
7912 case $build_os in
7913 mingw*)
7914   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7915   ;;
7916 esac
7917
7918 # If we're using GNU nm, then use its standard symbol codes.
7919 case `$NM -V 2>&1` in
7920 *GNU* | *'with BFD'*)
7921   symcode='[ABCDGIRSTW]' ;;
7922 esac
7923
7924 # Try without a prefix undercore, then with it.
7925 for ac_symprfx in "" "_"; do
7926
7927   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7928   symxfrm="\\1 $ac_symprfx\\2 \\2"
7929
7930   # Write the raw and C identifiers.
7931   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7932
7933   # Check to see that the pipe works correctly.
7934   pipe_works=no
7935
7936   rm -f conftest*
7937   cat > conftest.$ac_ext <<EOF
7938 #ifdef __cplusplus
7939 extern "C" {
7940 #endif
7941 char nm_test_var;
7942 void nm_test_func(){}
7943 #ifdef __cplusplus
7944 }
7945 #endif
7946 int main(){nm_test_var='a';nm_test_func();return(0);}
7947 EOF
7948
7949   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950   (eval $ac_compile) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; then
7954     # Now try to grab the symbols.
7955     nlist=conftest.nm
7956     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7957   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && test -s "$nlist"; then
7961       # Try sorting and uniquifying the output.
7962       if sort "$nlist" | uniq > "$nlist"T; then
7963         mv -f "$nlist"T "$nlist"
7964       else
7965         rm -f "$nlist"T
7966       fi
7967
7968       # Make sure that we snagged all the symbols we need.
7969       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7970         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7971           cat <<EOF > conftest.$ac_ext
7972 #ifdef __cplusplus
7973 extern "C" {
7974 #endif
7975
7976 EOF
7977           # Now generate the symbol file.
7978           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7979
7980           cat <<EOF >> conftest.$ac_ext
7981 #if defined (__STDC__) && __STDC__
7982 # define lt_ptr_t void *
7983 #else
7984 # define lt_ptr_t char *
7985 # define const
7986 #endif
7987
7988 /* The mapping between symbol names and symbols. */
7989 const struct {
7990   const char *name;
7991   lt_ptr_t address;
7992 }
7993 lt_preloaded_symbols[] =
7994 {
7995 EOF
7996           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7997           cat <<\EOF >> conftest.$ac_ext
7998   {0, (lt_ptr_t) 0}
7999 };
8000
8001 #ifdef __cplusplus
8002 }
8003 #endif
8004 EOF
8005           # Now try linking the two files.
8006           mv conftest.$ac_objext conftstm.$ac_objext
8007           lt_save_LIBS="$LIBS"
8008           lt_save_CFLAGS="$CFLAGS"
8009           LIBS="conftstm.$ac_objext"
8010           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8011           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012   (eval $ac_link) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8016             pipe_works=yes
8017           fi
8018           LIBS="$lt_save_LIBS"
8019           CFLAGS="$lt_save_CFLAGS"
8020         else
8021           echo "cannot find nm_test_func in $nlist" >&5
8022         fi
8023       else
8024         echo "cannot find nm_test_var in $nlist" >&5
8025       fi
8026     else
8027       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8028     fi
8029   else
8030     echo "$progname: failed program was:" >&5
8031     cat conftest.$ac_ext >&5
8032   fi
8033   rm -f conftest* conftst*
8034
8035   # Do not use the global_symbol_pipe unless it works.
8036   if test "$pipe_works" = yes; then
8037     break
8038   else
8039     lt_cv_sys_global_symbol_pipe=
8040   fi
8041 done
8042
8043 fi
8044
8045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8046   lt_cv_sys_global_symbol_to_cdecl=
8047 fi
8048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8049   { echo "$as_me:$LINENO: result: failed" >&5
8050 echo "${ECHO_T}failed" >&6; }
8051 else
8052   { echo "$as_me:$LINENO: result: ok" >&5
8053 echo "${ECHO_T}ok" >&6; }
8054 fi
8055
8056 { echo "$as_me:$LINENO: checking for objdir" >&5
8057 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8058 if test "${lt_cv_objdir+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   rm -f .libs 2>/dev/null
8062 mkdir .libs 2>/dev/null
8063 if test -d .libs; then
8064   lt_cv_objdir=.libs
8065 else
8066   # MS-DOS does not allow filenames that begin with a dot.
8067   lt_cv_objdir=_libs
8068 fi
8069 rmdir .libs 2>/dev/null
8070 fi
8071 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8072 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8073 objdir=$lt_cv_objdir
8074
8075
8076
8077
8078
8079 case $host_os in
8080 aix3*)
8081   # AIX sometimes has problems with the GCC collect2 program.  For some
8082   # reason, if we set the COLLECT_NAMES environment variable, the problems
8083   # vanish in a puff of smoke.
8084   if test "X${COLLECT_NAMES+set}" != Xset; then
8085     COLLECT_NAMES=
8086     export COLLECT_NAMES
8087   fi
8088   ;;
8089 esac
8090
8091 # Sed substitution that helps us do robust quoting.  It backslashifies
8092 # metacharacters that are still active within double-quoted strings.
8093 Xsed='sed -e 1s/^X//'
8094 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8095
8096 # Same as above, but do not quote variable references.
8097 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8098
8099 # Sed substitution to delay expansion of an escaped shell variable in a
8100 # double_quote_subst'ed string.
8101 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8102
8103 # Sed substitution to avoid accidental globbing in evaled expressions
8104 no_glob_subst='s/\*/\\\*/g'
8105
8106 # Constants:
8107 rm="rm -f"
8108
8109 # Global variables:
8110 default_ofile=libtool
8111 can_build_shared=yes
8112
8113 # All known linkers require a `.a' archive for static linking (except MSVC,
8114 # which needs '.lib').
8115 libext=a
8116 ltmain="$ac_aux_dir/ltmain.sh"
8117 ofile="$default_ofile"
8118 with_gnu_ld="$lt_cv_prog_gnu_ld"
8119
8120 if test -n "$ac_tool_prefix"; then
8121   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}ar; ac_word=$2
8123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125 if test "${ac_cv_prog_AR+set}" = set; then
8126   echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128   if test -n "$AR"; then
8129   ac_cv_prog_AR="$AR" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136   for ac_exec_ext in '' $ac_executable_extensions; do
8137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8138     ac_cv_prog_AR="${ac_tool_prefix}ar"
8139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 AR=$ac_cv_prog_AR
8149 if test -n "$AR"; then
8150   { echo "$as_me:$LINENO: result: $AR" >&5
8151 echo "${ECHO_T}$AR" >&6; }
8152 else
8153   { echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6; }
8155 fi
8156
8157
8158 fi
8159 if test -z "$ac_cv_prog_AR"; then
8160   ac_ct_AR=$AR
8161   # Extract the first word of "ar", so it can be a program name with args.
8162 set dummy ar; ac_word=$2
8163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   if test -n "$ac_ct_AR"; then
8169   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174   IFS=$as_save_IFS
8175   test -z "$as_dir" && as_dir=.
8176   for ac_exec_ext in '' $ac_executable_extensions; do
8177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8178     ac_cv_prog_ac_ct_AR="ar"
8179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180     break 2
8181   fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8189 if test -n "$ac_ct_AR"; then
8190   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8191 echo "${ECHO_T}$ac_ct_AR" >&6; }
8192 else
8193   { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8195 fi
8196
8197   if test "x$ac_ct_AR" = x; then
8198     AR="false"
8199   else
8200     case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8203 whose name does not start with the host triplet.  If you think this
8204 configuration is useful to you, please write to autoconf@gnu.org." >&5
8205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8206 whose name does not start with the host triplet.  If you think this
8207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8208 ac_tool_warned=yes ;;
8209 esac
8210     AR=$ac_ct_AR
8211   fi
8212 else
8213   AR="$ac_cv_prog_AR"
8214 fi
8215
8216 if test -n "$ac_tool_prefix"; then
8217   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8218 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_prog_RANLIB+set}" = set; then
8222   echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224   if test -n "$RANLIB"; then
8225   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232   for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242 fi
8243 fi
8244 RANLIB=$ac_cv_prog_RANLIB
8245 if test -n "$RANLIB"; then
8246   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8247 echo "${ECHO_T}$RANLIB" >&6; }
8248 else
8249   { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8251 fi
8252
8253
8254 fi
8255 if test -z "$ac_cv_prog_RANLIB"; then
8256   ac_ct_RANLIB=$RANLIB
8257   # Extract the first word of "ranlib", so it can be a program name with args.
8258 set dummy ranlib; ac_word=$2
8259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   if test -n "$ac_ct_RANLIB"; then
8265   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270   IFS=$as_save_IFS
8271   test -z "$as_dir" && as_dir=.
8272   for ac_exec_ext in '' $ac_executable_extensions; do
8273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8274     ac_cv_prog_ac_ct_RANLIB="ranlib"
8275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8276     break 2
8277   fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8285 if test -n "$ac_ct_RANLIB"; then
8286   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8287 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8288 else
8289   { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8291 fi
8292
8293   if test "x$ac_ct_RANLIB" = x; then
8294     RANLIB=":"
8295   else
8296     case $cross_compiling:$ac_tool_warned in
8297 yes:)
8298 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8299 whose name does not start with the host triplet.  If you think this
8300 configuration is useful to you, please write to autoconf@gnu.org." >&5
8301 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8302 whose name does not start with the host triplet.  If you think this
8303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8304 ac_tool_warned=yes ;;
8305 esac
8306     RANLIB=$ac_ct_RANLIB
8307   fi
8308 else
8309   RANLIB="$ac_cv_prog_RANLIB"
8310 fi
8311
8312 if test -n "$ac_tool_prefix"; then
8313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8314 set dummy ${ac_tool_prefix}strip; ac_word=$2
8315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8317 if test "${ac_cv_prog_STRIP+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   if test -n "$STRIP"; then
8321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328   for ac_exec_ext in '' $ac_executable_extensions; do
8329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335 done
8336 IFS=$as_save_IFS
8337
8338 fi
8339 fi
8340 STRIP=$ac_cv_prog_STRIP
8341 if test -n "$STRIP"; then
8342   { echo "$as_me:$LINENO: result: $STRIP" >&5
8343 echo "${ECHO_T}$STRIP" >&6; }
8344 else
8345   { echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6; }
8347 fi
8348
8349
8350 fi
8351 if test -z "$ac_cv_prog_STRIP"; then
8352   ac_ct_STRIP=$STRIP
8353   # Extract the first word of "strip", so it can be a program name with args.
8354 set dummy strip; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   if test -n "$ac_ct_STRIP"; then
8361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8362 else
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368   for ac_exec_ext in '' $ac_executable_extensions; do
8369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8370     ac_cv_prog_ac_ct_STRIP="strip"
8371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi
8379 fi
8380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8381 if test -n "$ac_ct_STRIP"; then
8382   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8383 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8384 else
8385   { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8387 fi
8388
8389   if test "x$ac_ct_STRIP" = x; then
8390     STRIP=":"
8391   else
8392     case $cross_compiling:$ac_tool_warned in
8393 yes:)
8394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8395 whose name does not start with the host triplet.  If you think this
8396 configuration is useful to you, please write to autoconf@gnu.org." >&5
8397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8398 whose name does not start with the host triplet.  If you think this
8399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8400 ac_tool_warned=yes ;;
8401 esac
8402     STRIP=$ac_ct_STRIP
8403   fi
8404 else
8405   STRIP="$ac_cv_prog_STRIP"
8406 fi
8407
8408
8409 old_CC="$CC"
8410 old_CFLAGS="$CFLAGS"
8411
8412 # Set sane defaults for various variables
8413 test -z "$AR" && AR=ar
8414 test -z "$AR_FLAGS" && AR_FLAGS=cru
8415 test -z "$AS" && AS=as
8416 test -z "$CC" && CC=cc
8417 test -z "$LTCC" && LTCC=$CC
8418 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419 test -z "$DLLTOOL" && DLLTOOL=dlltool
8420 test -z "$LD" && LD=ld
8421 test -z "$LN_S" && LN_S="ln -s"
8422 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423 test -z "$NM" && NM=nm
8424 test -z "$SED" && SED=sed
8425 test -z "$OBJDUMP" && OBJDUMP=objdump
8426 test -z "$RANLIB" && RANLIB=:
8427 test -z "$STRIP" && STRIP=:
8428 test -z "$ac_objext" && ac_objext=o
8429
8430 # Determine commands to create old-style static archives.
8431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8432 old_postinstall_cmds='chmod 644 $oldlib'
8433 old_postuninstall_cmds=
8434
8435 if test -n "$RANLIB"; then
8436   case $host_os in
8437   openbsd*)
8438     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8439     ;;
8440   *)
8441     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442     ;;
8443   esac
8444   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8445 fi
8446
8447 for cc_temp in $compiler""; do
8448   case $cc_temp in
8449     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8451     \-*) ;;
8452     *) break;;
8453   esac
8454 done
8455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8456
8457
8458 # Only perform the check for file, if the check method requires it
8459 case $deplibs_check_method in
8460 file_magic*)
8461   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   case $MAGIC_CMD in
8468 [\\/*] |  ?:[\\/]*)
8469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470   ;;
8471 *)
8472   lt_save_MAGIC_CMD="$MAGIC_CMD"
8473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475   for ac_dir in $ac_dummy; do
8476     IFS="$lt_save_ifs"
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f $ac_dir/${ac_tool_prefix}file; then
8479       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480       if test -n "$file_magic_test_file"; then
8481         case $deplibs_check_method in
8482         "file_magic "*)
8483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486             $EGREP "$file_magic_regex" > /dev/null; then
8487             :
8488           else
8489             cat <<EOF 1>&2
8490
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such.  This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem.  Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8499
8500 EOF
8501           fi ;;
8502         esac
8503       fi
8504       break
8505     fi
8506   done
8507   IFS="$lt_save_ifs"
8508   MAGIC_CMD="$lt_save_MAGIC_CMD"
8509   ;;
8510 esac
8511 fi
8512
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8517 else
8518   { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8520 fi
8521
8522 if test -z "$lt_cv_path_MAGIC_CMD"; then
8523   if test -n "$ac_tool_prefix"; then
8524     { echo "$as_me:$LINENO: checking for file" >&5
8525 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   case $MAGIC_CMD in
8530 [\\/*] |  ?:[\\/]*)
8531   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532   ;;
8533 *)
8534   lt_save_MAGIC_CMD="$MAGIC_CMD"
8535   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537   for ac_dir in $ac_dummy; do
8538     IFS="$lt_save_ifs"
8539     test -z "$ac_dir" && ac_dir=.
8540     if test -f $ac_dir/file; then
8541       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542       if test -n "$file_magic_test_file"; then
8543         case $deplibs_check_method in
8544         "file_magic "*)
8545           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548             $EGREP "$file_magic_regex" > /dev/null; then
8549             :
8550           else
8551             cat <<EOF 1>&2
8552
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such.  This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem.  Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8561
8562 EOF
8563           fi ;;
8564         esac
8565       fi
8566       break
8567     fi
8568   done
8569   IFS="$lt_save_ifs"
8570   MAGIC_CMD="$lt_save_MAGIC_CMD"
8571   ;;
8572 esac
8573 fi
8574
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8579 else
8580   { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8582 fi
8583
8584   else
8585     MAGIC_CMD=:
8586   fi
8587 fi
8588
8589   fi
8590   ;;
8591 esac
8592
8593 enable_dlopen=no
8594 enable_win32_dll=no
8595
8596 # Check whether --enable-libtool-lock was given.
8597 if test "${enable_libtool_lock+set}" = set; then
8598   enableval=$enable_libtool_lock;
8599 fi
8600
8601 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8602
8603
8604 # Check whether --with-pic was given.
8605 if test "${with_pic+set}" = set; then
8606   withval=$with_pic; pic_mode="$withval"
8607 else
8608   pic_mode=default
8609 fi
8610
8611 test -z "$pic_mode" && pic_mode=default
8612
8613 # Use C for the default configuration in the libtool script
8614 tagname=
8615 lt_save_CC="$CC"
8616 ac_ext=c
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8621
8622
8623 # Source file extension for C test sources.
8624 ac_ext=c
8625
8626 # Object file extension for compiled C test sources.
8627 objext=o
8628 objext=$objext
8629
8630 # Code to be used in simple compile tests
8631 lt_simple_compile_test_code="int some_variable = 0;\n"
8632
8633 # Code to be used in simple link tests
8634 lt_simple_link_test_code='int main(){return(0);}\n'
8635
8636
8637 # If no C compiler was specified, use CC.
8638 LTCC=${LTCC-"$CC"}
8639
8640 # If no C compiler flags were specified, use CFLAGS.
8641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8642
8643 # Allow CC to be a program name with arguments.
8644 compiler=$CC
8645
8646
8647 # save warnings/boilerplate of simple test code
8648 ac_outfile=conftest.$ac_objext
8649 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_compiler_boilerplate=`cat conftest.err`
8652 $rm conftest*
8653
8654 ac_outfile=conftest.$ac_objext
8655 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_linker_boilerplate=`cat conftest.err`
8658 $rm conftest*
8659
8660
8661
8662 lt_prog_compiler_no_builtin_flag=
8663
8664 if test "$GCC" = yes; then
8665   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8666
8667
8668 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8669 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8671   echo $ECHO_N "(cached) $ECHO_C" >&6
8672 else
8673   lt_cv_prog_compiler_rtti_exceptions=no
8674   ac_outfile=conftest.$ac_objext
8675    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8676    lt_compiler_flag="-fno-rtti -fno-exceptions"
8677    # Insert the option either (1) after the last *FLAGS variable, or
8678    # (2) before a word containing "conftest.", or (3) at the end.
8679    # Note that $ac_compile itself does not contain backslashes and begins
8680    # with a dollar sign (not a hyphen), so the echo should work correctly.
8681    # The option is referenced via a variable to avoid confusing sed.
8682    lt_compile=`echo "$ac_compile" | $SED \
8683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8685    -e 's:$: $lt_compiler_flag:'`
8686    (eval echo "\"\$as_me:8686: $lt_compile\"" >&5)
8687    (eval "$lt_compile" 2>conftest.err)
8688    ac_status=$?
8689    cat conftest.err >&5
8690    echo "$as_me:8690: \$? = $ac_status" >&5
8691    if (exit $ac_status) && test -s "$ac_outfile"; then
8692      # The compiler can only warn and ignore the option if not recognized
8693      # So say no if there are warnings other than the usual output.
8694      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8697        lt_cv_prog_compiler_rtti_exceptions=yes
8698      fi
8699    fi
8700    $rm conftest*
8701
8702 fi
8703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8704 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8705
8706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8707     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8708 else
8709     :
8710 fi
8711
8712 fi
8713
8714 lt_prog_compiler_wl=
8715 lt_prog_compiler_pic=
8716 lt_prog_compiler_static=
8717
8718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8720
8721   if test "$GCC" = yes; then
8722     lt_prog_compiler_wl='-Wl,'
8723     lt_prog_compiler_static='-static'
8724
8725     case $host_os in
8726       aix*)
8727       # All AIX code is PIC.
8728       if test "$host_cpu" = ia64; then
8729         # AIX 5 now supports IA64 processor
8730         lt_prog_compiler_static='-Bstatic'
8731       fi
8732       ;;
8733
8734     amigaos*)
8735       # FIXME: we need at least 68020 code to build shared libraries, but
8736       # adding the `-m68020' flag to GCC prevents building anything better,
8737       # like `-m68040'.
8738       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739       ;;
8740
8741     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742       # PIC is the default for these OSes.
8743       ;;
8744
8745     mingw* | pw32* | os2*)
8746       # This hack is so that the source file can tell whether it is being
8747       # built for inclusion in a dll (and should export symbols for example).
8748       lt_prog_compiler_pic='-DDLL_EXPORT'
8749       ;;
8750
8751     darwin* | rhapsody*)
8752       # PIC is the default on this platform
8753       # Common symbols not allowed in MH_DYLIB files
8754       lt_prog_compiler_pic='-fno-common'
8755       ;;
8756
8757     interix3*)
8758       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8759       # Instead, we relocate shared libraries at runtime.
8760       ;;
8761
8762     msdosdjgpp*)
8763       # Just because we use GCC doesn't mean we suddenly get shared libraries
8764       # on systems that don't support them.
8765       lt_prog_compiler_can_build_shared=no
8766       enable_shared=no
8767       ;;
8768
8769     sysv4*MP*)
8770       if test -d /usr/nec; then
8771         lt_prog_compiler_pic=-Kconform_pic
8772       fi
8773       ;;
8774
8775     hpux*)
8776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8777       # not for PA HP-UX.
8778       case $host_cpu in
8779       hppa*64*|ia64*)
8780         # +Z the default
8781         ;;
8782       *)
8783         lt_prog_compiler_pic='-fPIC'
8784         ;;
8785       esac
8786       ;;
8787
8788     *)
8789       lt_prog_compiler_pic='-fPIC'
8790       ;;
8791     esac
8792   else
8793     # PORTME Check for flag to pass linker flags through the system compiler.
8794     case $host_os in
8795     aix*)
8796       lt_prog_compiler_wl='-Wl,'
8797       if test "$host_cpu" = ia64; then
8798         # AIX 5 now supports IA64 processor
8799         lt_prog_compiler_static='-Bstatic'
8800       else
8801         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8802       fi
8803       ;;
8804       darwin*)
8805         # PIC is the default on this platform
8806         # Common symbols not allowed in MH_DYLIB files
8807        case $cc_basename in
8808          xlc*)
8809          lt_prog_compiler_pic='-qnocommon'
8810          lt_prog_compiler_wl='-Wl,'
8811          ;;
8812        esac
8813        ;;
8814
8815     mingw* | pw32* | os2*)
8816       # This hack is so that the source file can tell whether it is being
8817       # built for inclusion in a dll (and should export symbols for example).
8818       lt_prog_compiler_pic='-DDLL_EXPORT'
8819       ;;
8820
8821     hpux9* | hpux10* | hpux11*)
8822       lt_prog_compiler_wl='-Wl,'
8823       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8824       # not for PA HP-UX.
8825       case $host_cpu in
8826       hppa*64*|ia64*)
8827         # +Z the default
8828         ;;
8829       *)
8830         lt_prog_compiler_pic='+Z'
8831         ;;
8832       esac
8833       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8834       lt_prog_compiler_static='${wl}-a ${wl}archive'
8835       ;;
8836
8837     irix5* | irix6* | nonstopux*)
8838       lt_prog_compiler_wl='-Wl,'
8839       # PIC (with -KPIC) is the default.
8840       lt_prog_compiler_static='-non_shared'
8841       ;;
8842
8843     newsos6)
8844       lt_prog_compiler_pic='-KPIC'
8845       lt_prog_compiler_static='-Bstatic'
8846       ;;
8847
8848     linux* | k*bsd*-gnu)
8849       case $cc_basename in
8850       icc* | ecc*)
8851         lt_prog_compiler_wl='-Wl,'
8852         lt_prog_compiler_pic='-KPIC'
8853         lt_prog_compiler_static='-static'
8854         ;;
8855       pgcc* | pgf77* | pgf90* | pgf95*)
8856         # Portland Group compilers (*not* the Pentium gcc compiler,
8857         # which looks to be a dead project)
8858         lt_prog_compiler_wl='-Wl,'
8859         lt_prog_compiler_pic='-fpic'
8860         lt_prog_compiler_static='-Bstatic'
8861         ;;
8862       ccc*)
8863         lt_prog_compiler_wl='-Wl,'
8864         # All Alpha code is PIC.
8865         lt_prog_compiler_static='-non_shared'
8866         ;;
8867       esac
8868       ;;
8869
8870     osf3* | osf4* | osf5*)
8871       lt_prog_compiler_wl='-Wl,'
8872       # All OSF/1 code is PIC.
8873       lt_prog_compiler_static='-non_shared'
8874       ;;
8875
8876     solaris*)
8877       lt_prog_compiler_pic='-KPIC'
8878       lt_prog_compiler_static='-Bstatic'
8879       case $cc_basename in
8880       f77* | f90* | f95*)
8881         lt_prog_compiler_wl='-Qoption ld ';;
8882       *)
8883         lt_prog_compiler_wl='-Wl,';;
8884       esac
8885       ;;
8886
8887     sunos4*)
8888       lt_prog_compiler_wl='-Qoption ld '
8889       lt_prog_compiler_pic='-PIC'
8890       lt_prog_compiler_static='-Bstatic'
8891       ;;
8892
8893     sysv4 | sysv4.2uw2* | sysv4.3*)
8894       lt_prog_compiler_wl='-Wl,'
8895       lt_prog_compiler_pic='-KPIC'
8896       lt_prog_compiler_static='-Bstatic'
8897       ;;
8898
8899     sysv4*MP*)
8900       if test -d /usr/nec ;then
8901         lt_prog_compiler_pic='-Kconform_pic'
8902         lt_prog_compiler_static='-Bstatic'
8903       fi
8904       ;;
8905
8906     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8907       lt_prog_compiler_wl='-Wl,'
8908       lt_prog_compiler_pic='-KPIC'
8909       lt_prog_compiler_static='-Bstatic'
8910       ;;
8911
8912     unicos*)
8913       lt_prog_compiler_wl='-Wl,'
8914       lt_prog_compiler_can_build_shared=no
8915       ;;
8916
8917     uts4*)
8918       lt_prog_compiler_pic='-pic'
8919       lt_prog_compiler_static='-Bstatic'
8920       ;;
8921
8922     *)
8923       lt_prog_compiler_can_build_shared=no
8924       ;;
8925     esac
8926   fi
8927
8928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8929 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8930
8931 #
8932 # Check to make sure the PIC flag actually works.
8933 #
8934 if test -n "$lt_prog_compiler_pic"; then
8935
8936 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8937 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8938 if test "${lt_prog_compiler_pic_works+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   lt_prog_compiler_pic_works=no
8942   ac_outfile=conftest.$ac_objext
8943    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8944    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8945    # Insert the option either (1) after the last *FLAGS variable, or
8946    # (2) before a word containing "conftest.", or (3) at the end.
8947    # Note that $ac_compile itself does not contain backslashes and begins
8948    # with a dollar sign (not a hyphen), so the echo should work correctly.
8949    # The option is referenced via a variable to avoid confusing sed.
8950    lt_compile=`echo "$ac_compile" | $SED \
8951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953    -e 's:$: $lt_compiler_flag:'`
8954    (eval echo "\"\$as_me:8954: $lt_compile\"" >&5)
8955    (eval "$lt_compile" 2>conftest.err)
8956    ac_status=$?
8957    cat conftest.err >&5
8958    echo "$as_me:8958: \$? = $ac_status" >&5
8959    if (exit $ac_status) && test -s "$ac_outfile"; then
8960      # The compiler can only warn and ignore the option if not recognized
8961      # So say no if there are warnings other than the usual output.
8962      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8965        lt_prog_compiler_pic_works=yes
8966      fi
8967    fi
8968    $rm conftest*
8969
8970 fi
8971 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8972 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8973
8974 if test x"$lt_prog_compiler_pic_works" = xyes; then
8975     case $lt_prog_compiler_pic in
8976      "" | " "*) ;;
8977      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8978      esac
8979 else
8980     lt_prog_compiler_pic=
8981      lt_prog_compiler_can_build_shared=no
8982 fi
8983
8984 fi
8985 case $host_os in
8986   # For platforms which do not support PIC, -DPIC is meaningless:
8987   *djgpp*)
8988     lt_prog_compiler_pic=
8989     ;;
8990   *)
8991     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8992     ;;
8993 esac
8994
8995 #
8996 # Check to make sure the static flag actually works.
8997 #
8998 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8999 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9000 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9001 if test "${lt_prog_compiler_static_works+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   lt_prog_compiler_static_works=no
9005    save_LDFLAGS="$LDFLAGS"
9006    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9007    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9008    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9009      # The linker can only warn and ignore the option if not recognized
9010      # So say no if there are warnings
9011      if test -s conftest.err; then
9012        # Append any errors to the config.log.
9013        cat conftest.err 1>&5
9014        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9015        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016        if diff conftest.exp conftest.er2 >/dev/null; then
9017          lt_prog_compiler_static_works=yes
9018        fi
9019      else
9020        lt_prog_compiler_static_works=yes
9021      fi
9022    fi
9023    $rm conftest*
9024    LDFLAGS="$save_LDFLAGS"
9025
9026 fi
9027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9028 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9029
9030 if test x"$lt_prog_compiler_static_works" = xyes; then
9031     :
9032 else
9033     lt_prog_compiler_static=
9034 fi
9035
9036
9037 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9038 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9039 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   lt_cv_prog_compiler_c_o=no
9043    $rm -r conftest 2>/dev/null
9044    mkdir conftest
9045    cd conftest
9046    mkdir out
9047    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9048
9049    lt_compiler_flag="-o out/conftest2.$ac_objext"
9050    # Insert the option either (1) after the last *FLAGS variable, or
9051    # (2) before a word containing "conftest.", or (3) at the end.
9052    # Note that $ac_compile itself does not contain backslashes and begins
9053    # with a dollar sign (not a hyphen), so the echo should work correctly.
9054    lt_compile=`echo "$ac_compile" | $SED \
9055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9057    -e 's:$: $lt_compiler_flag:'`
9058    (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
9059    (eval "$lt_compile" 2>out/conftest.err)
9060    ac_status=$?
9061    cat out/conftest.err >&5
9062    echo "$as_me:9062: \$? = $ac_status" >&5
9063    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9064    then
9065      # The compiler can only warn and ignore the option if not recognized
9066      # So say no if there are warnings
9067      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9068      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9069      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9070        lt_cv_prog_compiler_c_o=yes
9071      fi
9072    fi
9073    chmod u+w . 2>&5
9074    $rm conftest*
9075    # SGI C++ compiler will create directory out/ii_files/ for
9076    # template instantiation
9077    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9078    $rm out/* && rmdir out
9079    cd ..
9080    rmdir conftest
9081    $rm conftest*
9082
9083 fi
9084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9085 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9086
9087
9088 hard_links="nottested"
9089 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9090   # do not overwrite the value of need_locks provided by the user
9091   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9092 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9093   hard_links=yes
9094   $rm conftest*
9095   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096   touch conftest.a
9097   ln conftest.a conftest.b 2>&5 || hard_links=no
9098   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9099   { echo "$as_me:$LINENO: result: $hard_links" >&5
9100 echo "${ECHO_T}$hard_links" >&6; }
9101   if test "$hard_links" = no; then
9102     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9103 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9104     need_locks=warn
9105   fi
9106 else
9107   need_locks=no
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9111 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9112
9113   runpath_var=
9114   allow_undefined_flag=
9115   enable_shared_with_static_runtimes=no
9116   archive_cmds=
9117   archive_expsym_cmds=
9118   old_archive_From_new_cmds=
9119   old_archive_from_expsyms_cmds=
9120   export_dynamic_flag_spec=
9121   whole_archive_flag_spec=
9122   thread_safe_flag_spec=
9123   hardcode_libdir_flag_spec=
9124   hardcode_libdir_flag_spec_ld=
9125   hardcode_libdir_separator=
9126   hardcode_direct=no
9127   hardcode_minus_L=no
9128   hardcode_shlibpath_var=unsupported
9129   link_all_deplibs=unknown
9130   hardcode_automatic=no
9131   module_cmds=
9132   module_expsym_cmds=
9133   always_export_symbols=no
9134   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9135   # include_expsyms should be a list of space-separated symbols to be *always*
9136   # included in the symbol list
9137   include_expsyms=
9138   # exclude_expsyms can be an extended regexp of symbols to exclude
9139   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9140   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9141   # as well as any symbol that contains `d'.
9142   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9143   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9144   # platforms (ab)use it in PIC code, but their linkers get confused if
9145   # the symbol is explicitly referenced.  Since portable code cannot
9146   # rely on this symbol name, it's probably fine to never include it in
9147   # preloaded symbol tables.
9148   extract_expsyms_cmds=
9149   # Just being paranoid about ensuring that cc_basename is set.
9150   for cc_temp in $compiler""; do
9151   case $cc_temp in
9152     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9153     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9154     \-*) ;;
9155     *) break;;
9156   esac
9157 done
9158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9159
9160   case $host_os in
9161   cygwin* | mingw* | pw32*)
9162     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9163     # When not using gcc, we currently assume that we are using
9164     # Microsoft Visual C++.
9165     if test "$GCC" != yes; then
9166       with_gnu_ld=no
9167     fi
9168     ;;
9169   interix*)
9170     # we just hope/assume this is gcc and not c89 (= MSVC++)
9171     with_gnu_ld=yes
9172     ;;
9173   openbsd*)
9174     with_gnu_ld=no
9175     ;;
9176   esac
9177
9178   ld_shlibs=yes
9179   if test "$with_gnu_ld" = yes; then
9180     # If archive_cmds runs LD, not CC, wlarc should be empty
9181     wlarc='${wl}'
9182
9183     # Set some defaults for GNU ld with shared library support. These
9184     # are reset later if shared libraries are not supported. Putting them
9185     # here allows them to be overridden if necessary.
9186     runpath_var=LD_RUN_PATH
9187     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9188     export_dynamic_flag_spec='${wl}--export-dynamic'
9189     # ancient GNU ld didn't support --whole-archive et. al.
9190     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9191         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9192       else
9193         whole_archive_flag_spec=
9194     fi
9195     supports_anon_versioning=no
9196     case `$LD -v 2>/dev/null` in
9197       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9198       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9199       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9200       *\ 2.11.*) ;; # other 2.11 versions
9201       *) supports_anon_versioning=yes ;;
9202     esac
9203
9204     # See if GNU ld supports shared libraries.
9205     case $host_os in
9206     aix3* | aix4* | aix5*)
9207       # On AIX/PPC, the GNU linker is very broken
9208       if test "$host_cpu" != ia64; then
9209         ld_shlibs=no
9210         cat <<EOF 1>&2
9211
9212 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9213 *** to be unable to reliably create shared libraries on AIX.
9214 *** Therefore, libtool is disabling shared libraries support.  If you
9215 *** really care for shared libraries, you may want to modify your PATH
9216 *** so that a non-GNU linker is found, and then restart.
9217
9218 EOF
9219       fi
9220       ;;
9221
9222     amigaos*)
9223       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)'
9224       hardcode_libdir_flag_spec='-L$libdir'
9225       hardcode_minus_L=yes
9226
9227       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9228       # that the semantics of dynamic libraries on AmigaOS, at least up
9229       # to version 4, is to share data among multiple programs linked
9230       # with the same dynamic library.  Since this doesn't match the
9231       # behavior of shared libraries on other platforms, we can't use
9232       # them.
9233       ld_shlibs=no
9234       ;;
9235
9236     beos*)
9237       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9238         allow_undefined_flag=unsupported
9239         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9240         # support --undefined.  This deserves some investigation.  FIXME
9241         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9242       else
9243         ld_shlibs=no
9244       fi
9245       ;;
9246
9247     cygwin* | mingw* | pw32*)
9248       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9249       # as there is no search path for DLLs.
9250       hardcode_libdir_flag_spec='-L$libdir'
9251       allow_undefined_flag=unsupported
9252       always_export_symbols=no
9253       enable_shared_with_static_runtimes=yes
9254       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9255
9256       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258         # If the export-symbols file already is a .def file (1st line
9259         # is EXPORTS), use it as is; otherwise, prepend...
9260         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9261           cp $export_symbols $output_objdir/$soname.def;
9262         else
9263           echo EXPORTS > $output_objdir/$soname.def;
9264           cat $export_symbols >> $output_objdir/$soname.def;
9265         fi~
9266         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9267       else
9268         ld_shlibs=no
9269       fi
9270       ;;
9271
9272     interix3*)
9273       hardcode_direct=no
9274       hardcode_shlibpath_var=no
9275       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276       export_dynamic_flag_spec='${wl}-E'
9277       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9278       # Instead, shared libraries are loaded at an image base (0x10000000 by
9279       # default) and relocated if they conflict, which is a slow very memory
9280       # consuming and fragmenting process.  To avoid this, we pick a random,
9281       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9282       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9283       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9284       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'
9285       ;;
9286
9287     linux* | k*bsd*-gnu)
9288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9289         tmp_addflag=
9290         case $cc_basename,$host_cpu in
9291         pgcc*)                          # Portland Group C compiler
9292           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'
9293           tmp_addflag=' $pic_flag'
9294           ;;
9295         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9296           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'
9297           tmp_addflag=' $pic_flag -Mnomain' ;;
9298         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9299           tmp_addflag=' -i_dynamic' ;;
9300         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9301           tmp_addflag=' -i_dynamic -nofor_main' ;;
9302         ifc* | ifort*)                  # Intel Fortran compiler
9303           tmp_addflag=' -nofor_main' ;;
9304         esac
9305         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306
9307         if test $supports_anon_versioning = yes; then
9308           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9309   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9310   $echo "local: *; };" >> $output_objdir/$libname.ver~
9311           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9312         fi
9313         link_all_deplibs=no
9314       else
9315         ld_shlibs=no
9316       fi
9317       ;;
9318
9319     netbsd* | netbsdelf*-gnu)
9320       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9321         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9322         wlarc=
9323       else
9324         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326       fi
9327       ;;
9328
9329     solaris*)
9330       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9331         ld_shlibs=no
9332         cat <<EOF 1>&2
9333
9334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335 *** create shared libraries on Solaris systems.  Therefore, libtool
9336 *** is disabling shared libraries support.  We urge you to upgrade GNU
9337 *** binutils to release 2.9.1 or newer.  Another option is to modify
9338 *** your PATH or compiler configuration so that the native linker is
9339 *** used, and then restart.
9340
9341 EOF
9342       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9343         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9345       else
9346         ld_shlibs=no
9347       fi
9348       ;;
9349
9350     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351       case `$LD -v 2>&1` in
9352         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9353         ld_shlibs=no
9354         cat <<_LT_EOF 1>&2
9355
9356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9357 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9358 *** is disabling shared libraries support.  We urge you to upgrade GNU
9359 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9360 *** your PATH or compiler configuration so that the native linker is
9361 *** used, and then restart.
9362
9363 _LT_EOF
9364         ;;
9365         *)
9366           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9367             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9368             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9369             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9370           else
9371             ld_shlibs=no
9372           fi
9373         ;;
9374       esac
9375       ;;
9376
9377     sunos4*)
9378       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379       wlarc=
9380       hardcode_direct=yes
9381       hardcode_shlibpath_var=no
9382       ;;
9383
9384     *)
9385       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388       else
9389         ld_shlibs=no
9390       fi
9391       ;;
9392     esac
9393
9394     if test "$ld_shlibs" = no; then
9395       runpath_var=
9396       hardcode_libdir_flag_spec=
9397       export_dynamic_flag_spec=
9398       whole_archive_flag_spec=
9399     fi
9400   else
9401     # PORTME fill in a description of your system's linker (not GNU ld)
9402     case $host_os in
9403     aix3*)
9404       allow_undefined_flag=unsupported
9405       always_export_symbols=yes
9406       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'
9407       # Note: this linker hardcodes the directories in LIBPATH if there
9408       # are no directories specified by -L.
9409       hardcode_minus_L=yes
9410       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9411         # Neither direct hardcoding nor static linking is supported with a
9412         # broken collect2.
9413         hardcode_direct=unsupported
9414       fi
9415       ;;
9416
9417     aix4* | aix5*)
9418       if test "$host_cpu" = ia64; then
9419         # On IA64, the linker does run time linking by default, so we don't
9420         # have to do anything special.
9421         aix_use_runtimelinking=no
9422         exp_sym_flag='-Bexport'
9423         no_entry_flag=""
9424       else
9425         # If we're using GNU nm, then we don't want the "-C" option.
9426         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9427         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9428           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'
9429         else
9430           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'
9431         fi
9432         aix_use_runtimelinking=no
9433
9434         # Test if we are trying to use run time linking or normal
9435         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9436         # need to do runtime linking.
9437         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9438           for ld_flag in $LDFLAGS; do
9439           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9440             aix_use_runtimelinking=yes
9441             break
9442           fi
9443           done
9444           ;;
9445         esac
9446
9447         exp_sym_flag='-bexport'
9448         no_entry_flag='-bnoentry'
9449       fi
9450
9451       # When large executables or shared objects are built, AIX ld can
9452       # have problems creating the table of contents.  If linking a library
9453       # or program results in "error TOC overflow" add -mminimal-toc to
9454       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9455       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9456
9457       archive_cmds=''
9458       hardcode_direct=yes
9459       hardcode_libdir_separator=':'
9460       link_all_deplibs=yes
9461
9462       if test "$GCC" = yes; then
9463         case $host_os in aix4.[012]|aix4.[012].*)
9464         # We only want to do this on AIX 4.2 and lower, the check
9465         # below for broken collect2 doesn't work under 4.3+
9466           collect2name=`${CC} -print-prog-name=collect2`
9467           if test -f "$collect2name" && \
9468            strings "$collect2name" | grep resolve_lib_name >/dev/null
9469           then
9470           # We have reworked collect2
9471           hardcode_direct=yes
9472           else
9473           # We have old collect2
9474           hardcode_direct=unsupported
9475           # It fails to find uninstalled libraries when the uninstalled
9476           # path is not listed in the libpath.  Setting hardcode_minus_L
9477           # to unsupported forces relinking
9478           hardcode_minus_L=yes
9479           hardcode_libdir_flag_spec='-L$libdir'
9480           hardcode_libdir_separator=
9481           fi
9482           ;;
9483         esac
9484         shared_flag='-shared'
9485         if test "$aix_use_runtimelinking" = yes; then
9486           shared_flag="$shared_flag "'${wl}-G'
9487         fi
9488       else
9489         # not using gcc
9490         if test "$host_cpu" = ia64; then
9491         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9492         # chokes on -Wl,-G. The following line is correct:
9493           shared_flag='-G'
9494         else
9495           if test "$aix_use_runtimelinking" = yes; then
9496             shared_flag='${wl}-G'
9497           else
9498             shared_flag='${wl}-bM:SRE'
9499           fi
9500         fi
9501       fi
9502
9503       # It seems that -bexpall does not export symbols beginning with
9504       # underscore (_), so it is better to generate a list of symbols to export.
9505       always_export_symbols=yes
9506       if test "$aix_use_runtimelinking" = yes; then
9507         # Warning - without using the other runtime loading flags (-brtl),
9508         # -berok will link without error, but may produce a broken library.
9509         allow_undefined_flag='-berok'
9510        # Determine the default libpath from the value encoded in an empty executable.
9511        cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517
9518 int
9519 main ()
9520 {
9521
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_link") 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } &&
9540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541   { (case "(($ac_try" in
9542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543   *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546   (eval "$ac_try") 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; } &&
9550          { ac_try='test -s conftest$ac_exeext'
9551   { (case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_try") 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560
9561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9562 }'`
9563 # Check for a 64-bit object if we didn't find anything.
9564 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; }
9565 }'`; fi
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570
9571 fi
9572
9573 rm -f conftest.err conftest.$ac_objext \
9574       conftest$ac_exeext conftest.$ac_ext
9575 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9576
9577        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9578         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"
9579        else
9580         if test "$host_cpu" = ia64; then
9581           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9582           allow_undefined_flag="-z nodefs"
9583           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"
9584         else
9585          # Determine the default libpath from the value encoded in an empty executable.
9586          cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592
9593 int
9594 main ()
9595 {
9596
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_link") 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616   { (case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_try") 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; } &&
9625          { ac_try='test -s conftest$ac_exeext'
9626   { (case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_try") 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; }; then
9635
9636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9637 }'`
9638 # Check for a 64-bit object if we didn't find anything.
9639 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; }
9640 }'`; fi
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645
9646 fi
9647
9648 rm -f conftest.err conftest.$ac_objext \
9649       conftest$ac_exeext conftest.$ac_ext
9650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9651
9652          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9653           # Warning - without using the other run time loading flags,
9654           # -berok will link without error, but may produce a broken library.
9655           no_undefined_flag=' ${wl}-bernotok'
9656           allow_undefined_flag=' ${wl}-berok'
9657           # Exported symbols can be pulled into shared objects from archives
9658           whole_archive_flag_spec='$convenience'
9659           archive_cmds_need_lc=yes
9660           # This is similar to how AIX traditionally builds its shared libraries.
9661           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'
9662         fi
9663       fi
9664       ;;
9665
9666     amigaos*)
9667       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)'
9668       hardcode_libdir_flag_spec='-L$libdir'
9669       hardcode_minus_L=yes
9670       # see comment about different semantics on the GNU ld section
9671       ld_shlibs=no
9672       ;;
9673
9674     bsdi[45]*)
9675       export_dynamic_flag_spec=-rdynamic
9676       ;;
9677
9678     cygwin* | mingw* | pw32*)
9679       # When not using gcc, we currently assume that we are using
9680       # Microsoft Visual C++.
9681       # hardcode_libdir_flag_spec is actually meaningless, as there is
9682       # no search path for DLLs.
9683       hardcode_libdir_flag_spec=' '
9684       allow_undefined_flag=unsupported
9685       # Tell ltmain to make .lib files, not .a files.
9686       libext=lib
9687       # Tell ltmain to make .dll files, not .so files.
9688       shrext_cmds=".dll"
9689       # FIXME: Setting linknames here is a bad hack.
9690       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9691       # The linker will automatically build a .lib file if we build a DLL.
9692       old_archive_From_new_cmds='true'
9693       # FIXME: Should let the user specify the lib program.
9694       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9695       fix_srcfile_path='`cygpath -w "$srcfile"`'
9696       enable_shared_with_static_runtimes=yes
9697       ;;
9698
9699     darwin* | rhapsody*)
9700       case $host_os in
9701         rhapsody* | darwin1.[012])
9702          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9703          ;;
9704        *) # Darwin 1.3 on
9705          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9706            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9707          else
9708            case ${MACOSX_DEPLOYMENT_TARGET} in
9709              10.[012])
9710                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9711                ;;
9712              10.*)
9713                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9714                ;;
9715            esac
9716          fi
9717          ;;
9718       esac
9719       archive_cmds_need_lc=no
9720       hardcode_direct=no
9721       hardcode_automatic=yes
9722       hardcode_shlibpath_var=unsupported
9723       whole_archive_flag_spec=''
9724       link_all_deplibs=yes
9725     if test "$GCC" = yes ; then
9726         output_verbose_link_cmd='echo'
9727         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9728       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9729       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9730       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}'
9731       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}'
9732     else
9733       case $cc_basename in
9734         xlc*)
9735          output_verbose_link_cmd='echo'
9736          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9737          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9738           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9739          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}'
9740           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}'
9741           ;;
9742        *)
9743          ld_shlibs=no
9744           ;;
9745       esac
9746     fi
9747       ;;
9748
9749     dgux*)
9750       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751       hardcode_libdir_flag_spec='-L$libdir'
9752       hardcode_shlibpath_var=no
9753       ;;
9754
9755     freebsd1*)
9756       ld_shlibs=no
9757       ;;
9758
9759     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9760     # support.  Future versions do this automatically, but an explicit c++rt0.o
9761     # does not break anything, and helps significantly (at the cost of a little
9762     # extra space).
9763     freebsd2.2*)
9764       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9765       hardcode_libdir_flag_spec='-R$libdir'
9766       hardcode_direct=yes
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9771     freebsd2*)
9772       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9773       hardcode_direct=yes
9774       hardcode_minus_L=yes
9775       hardcode_shlibpath_var=no
9776       ;;
9777
9778     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9779     freebsd* | dragonfly*)
9780       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9781       hardcode_libdir_flag_spec='-R$libdir'
9782       hardcode_direct=yes
9783       hardcode_shlibpath_var=no
9784       ;;
9785
9786     hpux9*)
9787       if test "$GCC" = yes; then
9788         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'
9789       else
9790         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'
9791       fi
9792       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9793       hardcode_libdir_separator=:
9794       hardcode_direct=yes
9795
9796       # hardcode_minus_L: Not really in the search PATH,
9797       # but as the default location of the library.
9798       hardcode_minus_L=yes
9799       export_dynamic_flag_spec='${wl}-E'
9800       ;;
9801
9802     hpux10*)
9803       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9804         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9805       else
9806         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9807       fi
9808       if test "$with_gnu_ld" = no; then
9809         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9810         hardcode_libdir_separator=:
9811
9812         hardcode_direct=yes
9813         export_dynamic_flag_spec='${wl}-E'
9814
9815         # hardcode_minus_L: Not really in the search PATH,
9816         # but as the default location of the library.
9817         hardcode_minus_L=yes
9818       fi
9819       ;;
9820
9821     hpux11*)
9822       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9823         case $host_cpu in
9824         hppa*64*)
9825           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826           ;;
9827         ia64*)
9828           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9829           ;;
9830         *)
9831           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832           ;;
9833         esac
9834       else
9835         case $host_cpu in
9836         hppa*64*)
9837           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838           ;;
9839         ia64*)
9840           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9841           ;;
9842         *)
9843           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9844           ;;
9845         esac
9846       fi
9847       if test "$with_gnu_ld" = no; then
9848         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849         hardcode_libdir_separator=:
9850
9851         case $host_cpu in
9852         hppa*64*|ia64*)
9853           hardcode_libdir_flag_spec_ld='+b $libdir'
9854           hardcode_direct=no
9855           hardcode_shlibpath_var=no
9856           ;;
9857         *)
9858           hardcode_direct=yes
9859           export_dynamic_flag_spec='${wl}-E'
9860
9861           # hardcode_minus_L: Not really in the search PATH,
9862           # but as the default location of the library.
9863           hardcode_minus_L=yes
9864           ;;
9865         esac
9866       fi
9867       ;;
9868
9869     irix5* | irix6* | nonstopux*)
9870       if test "$GCC" = yes; then
9871         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'
9872       else
9873         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'
9874         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9875       fi
9876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9877       hardcode_libdir_separator=:
9878       link_all_deplibs=yes
9879       ;;
9880
9881     netbsd* | netbsdelf*-gnu)
9882       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9883         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9884       else
9885         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9886       fi
9887       hardcode_libdir_flag_spec='-R$libdir'
9888       hardcode_direct=yes
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     newsos6)
9893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894       hardcode_direct=yes
9895       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9896       hardcode_libdir_separator=:
9897       hardcode_shlibpath_var=no
9898       ;;
9899
9900     openbsd*)
9901       hardcode_direct=yes
9902       hardcode_shlibpath_var=no
9903       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9904         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9906         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9907         export_dynamic_flag_spec='${wl}-E'
9908       else
9909        case $host_os in
9910          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9911            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912            hardcode_libdir_flag_spec='-R$libdir'
9913            ;;
9914          *)
9915            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9916            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9917            ;;
9918        esac
9919       fi
9920       ;;
9921
9922     os2*)
9923       hardcode_libdir_flag_spec='-L$libdir'
9924       hardcode_minus_L=yes
9925       allow_undefined_flag=unsupported
9926       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'
9927       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9928       ;;
9929
9930     osf3*)
9931       if test "$GCC" = yes; then
9932         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9933         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'
9934       else
9935         allow_undefined_flag=' -expect_unresolved \*'
9936         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'
9937       fi
9938       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939       hardcode_libdir_separator=:
9940       ;;
9941
9942     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9943       if test "$GCC" = yes; then
9944         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9945         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'
9946         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9947       else
9948         allow_undefined_flag=' -expect_unresolved \*'
9949         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'
9950         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9951         $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'
9952
9953         # Both c and cxx compiler support -rpath directly
9954         hardcode_libdir_flag_spec='-rpath $libdir'
9955       fi
9956       hardcode_libdir_separator=:
9957       ;;
9958
9959     solaris*)
9960       no_undefined_flag=' -z text'
9961       if test "$GCC" = yes; then
9962         wlarc='${wl}'
9963         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9964         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9965           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9966       else
9967         wlarc=''
9968         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9970         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9971       fi
9972       hardcode_libdir_flag_spec='-R$libdir'
9973       hardcode_shlibpath_var=no
9974       case $host_os in
9975       solaris2.[0-5] | solaris2.[0-5].*) ;;
9976       *)
9977         # The compiler driver will combine linker options so we
9978         # cannot just pass the convience library names through
9979         # without $wl, iff we do not link with $LD.
9980         # Luckily, gcc supports the same syntax we need for Sun Studio.
9981         # Supported since Solaris 2.6 (maybe 2.5.1?)
9982         case $wlarc in
9983         '')
9984           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9985         *)
9986           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' ;;
9987         esac ;;
9988       esac
9989       link_all_deplibs=yes
9990       ;;
9991
9992     sunos4*)
9993       if test "x$host_vendor" = xsequent; then
9994         # Use $CC to link under sequent, because it throws in some extra .o
9995         # files that make .init and .fini sections work.
9996         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997       else
9998         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9999       fi
10000       hardcode_libdir_flag_spec='-L$libdir'
10001       hardcode_direct=yes
10002       hardcode_minus_L=yes
10003       hardcode_shlibpath_var=no
10004       ;;
10005
10006     sysv4)
10007       case $host_vendor in
10008         sni)
10009           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010           hardcode_direct=yes # is this really true???
10011         ;;
10012         siemens)
10013           ## LD is ld it makes a PLAMLIB
10014           ## CC just makes a GrossModule.
10015           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10016           reload_cmds='$CC -r -o $output$reload_objs'
10017           hardcode_direct=no
10018         ;;
10019         motorola)
10020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10022         ;;
10023       esac
10024       runpath_var='LD_RUN_PATH'
10025       hardcode_shlibpath_var=no
10026       ;;
10027
10028     sysv4.3*)
10029       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030       hardcode_shlibpath_var=no
10031       export_dynamic_flag_spec='-Bexport'
10032       ;;
10033
10034     sysv4*MP*)
10035       if test -d /usr/nec; then
10036         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037         hardcode_shlibpath_var=no
10038         runpath_var=LD_RUN_PATH
10039         hardcode_runpath_var=yes
10040         ld_shlibs=yes
10041       fi
10042       ;;
10043
10044     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10045       no_undefined_flag='${wl}-z,text'
10046       archive_cmds_need_lc=no
10047       hardcode_shlibpath_var=no
10048       runpath_var='LD_RUN_PATH'
10049
10050       if test "$GCC" = yes; then
10051         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053       else
10054         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056       fi
10057       ;;
10058
10059     sysv5* | sco3.2v5* | sco5v6*)
10060       # Note: We can NOT use -z defs as we might desire, because we do not
10061       # link with -lc, and that would cause any symbols used from libc to
10062       # always be unresolved, which means just about no library would
10063       # ever link correctly.  If we're not using GNU ld we use -z text
10064       # though, which does catch some bad symbols but isn't as heavy-handed
10065       # as -z defs.
10066       no_undefined_flag='${wl}-z,text'
10067       allow_undefined_flag='${wl}-z,nodefs'
10068       archive_cmds_need_lc=no
10069       hardcode_shlibpath_var=no
10070       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10071       hardcode_libdir_separator=':'
10072       link_all_deplibs=yes
10073       export_dynamic_flag_spec='${wl}-Bexport'
10074       runpath_var='LD_RUN_PATH'
10075
10076       if test "$GCC" = yes; then
10077         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079       else
10080         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082       fi
10083       ;;
10084
10085     uts4*)
10086       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087       hardcode_libdir_flag_spec='-L$libdir'
10088       hardcode_shlibpath_var=no
10089       ;;
10090
10091     *)
10092       ld_shlibs=no
10093       ;;
10094     esac
10095   fi
10096
10097 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10098 echo "${ECHO_T}$ld_shlibs" >&6; }
10099 test "$ld_shlibs" = no && can_build_shared=no
10100
10101 #
10102 # Do we need to explicitly link libc?
10103 #
10104 case "x$archive_cmds_need_lc" in
10105 x|xyes)
10106   # Assume -lc should be added
10107   archive_cmds_need_lc=yes
10108
10109   if test "$enable_shared" = yes && test "$GCC" = yes; then
10110     case $archive_cmds in
10111     *'~'*)
10112       # FIXME: we may have to deal with multi-command sequences.
10113       ;;
10114     '$CC '*)
10115       # Test whether the compiler implicitly links with -lc since on some
10116       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10117       # to ld, don't add -lc before -lgcc.
10118       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10120       $rm conftest*
10121       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10122
10123       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } 2>conftest.err; then
10128         soname=conftest
10129         lib=conftest
10130         libobjs=conftest.$ac_objext
10131         deplibs=
10132         wl=$lt_prog_compiler_wl
10133         pic_flag=$lt_prog_compiler_pic
10134         compiler_flags=-v
10135         linker_flags=-v
10136         verstring=
10137         output_objdir=.
10138         libname=conftest
10139         lt_save_allow_undefined_flag=$allow_undefined_flag
10140         allow_undefined_flag=
10141         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10142   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }
10146         then
10147           archive_cmds_need_lc=no
10148         else
10149           archive_cmds_need_lc=yes
10150         fi
10151         allow_undefined_flag=$lt_save_allow_undefined_flag
10152       else
10153         cat conftest.err 1>&5
10154       fi
10155       $rm conftest*
10156       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10157 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10158       ;;
10159     esac
10160   fi
10161   ;;
10162 esac
10163
10164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10166 library_names_spec=
10167 libname_spec='lib$name'
10168 soname_spec=
10169 shrext_cmds=".so"
10170 postinstall_cmds=
10171 postuninstall_cmds=
10172 finish_cmds=
10173 finish_eval=
10174 shlibpath_var=
10175 shlibpath_overrides_runpath=unknown
10176 version_type=none
10177 dynamic_linker="$host_os ld.so"
10178 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10179 if test "$GCC" = yes; then
10180   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10181   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10182     # if the path contains ";" then we assume it to be the separator
10183     # otherwise default to the standard path separator (i.e. ":") - it is
10184     # assumed that no part of a normal pathname contains ";" but that should
10185     # okay in the real world where ";" in dirpaths is itself problematic.
10186     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10187   else
10188     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10189   fi
10190 else
10191   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10192 fi
10193 need_lib_prefix=unknown
10194 hardcode_into_libs=no
10195
10196 # when you set need_version to no, make sure it does not cause -set_version
10197 # flags to be left without arguments
10198 need_version=unknown
10199
10200 case $host_os in
10201 aix3*)
10202   version_type=linux
10203   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10204   shlibpath_var=LIBPATH
10205
10206   # AIX 3 has no versioning support, so we append a major version to the name.
10207   soname_spec='${libname}${release}${shared_ext}$major'
10208   ;;
10209
10210 aix4* | aix5*)
10211   version_type=linux
10212   need_lib_prefix=no
10213   need_version=no
10214   hardcode_into_libs=yes
10215   if test "$host_cpu" = ia64; then
10216     # AIX 5 supports IA64
10217     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10218     shlibpath_var=LD_LIBRARY_PATH
10219   else
10220     # With GCC up to 2.95.x, collect2 would create an import file
10221     # for dependence libraries.  The import file would start with
10222     # the line `#! .'.  This would cause the generated library to
10223     # depend on `.', always an invalid library.  This was fixed in
10224     # development snapshots of GCC prior to 3.0.
10225     case $host_os in
10226       aix4 | aix4.[01] | aix4.[01].*)
10227       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10228            echo ' yes '
10229            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10230         :
10231       else
10232         can_build_shared=no
10233       fi
10234       ;;
10235     esac
10236     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10237     # soname into executable. Probably we can add versioning support to
10238     # collect2, so additional links can be useful in future.
10239     if test "$aix_use_runtimelinking" = yes; then
10240       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10241       # instead of lib<name>.a to let people know that these are not
10242       # typical AIX shared libraries.
10243       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     else
10245       # We preserve .a as extension for shared libraries through AIX4.2
10246       # and later when we are not doing run time linking.
10247       library_names_spec='${libname}${release}.a $libname.a'
10248       soname_spec='${libname}${release}${shared_ext}$major'
10249     fi
10250     shlibpath_var=LIBPATH
10251   fi
10252   ;;
10253
10254 amigaos*)
10255   library_names_spec='$libname.ixlibrary $libname.a'
10256   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10257   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'
10258   ;;
10259
10260 beos*)
10261   library_names_spec='${libname}${shared_ext}'
10262   dynamic_linker="$host_os ld.so"
10263   shlibpath_var=LIBRARY_PATH
10264   ;;
10265
10266 bsdi[45]*)
10267   version_type=linux
10268   need_version=no
10269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270   soname_spec='${libname}${release}${shared_ext}$major'
10271   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10272   shlibpath_var=LD_LIBRARY_PATH
10273   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10274   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10275   # the default ld.so.conf also contains /usr/contrib/lib and
10276   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10277   # libtool to hard-code these into programs
10278   ;;
10279
10280 cygwin* | mingw* | pw32*)
10281   version_type=windows
10282   shrext_cmds=".dll"
10283   need_version=no
10284   need_lib_prefix=no
10285
10286   case $GCC,$host_os in
10287   yes,cygwin* | yes,mingw* | yes,pw32*)
10288     library_names_spec='$libname.dll.a'
10289     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10290     postinstall_cmds='base_file=`basename \${file}`~
10291       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10292       dldir=$destdir/`dirname \$dlpath`~
10293       test -d \$dldir || mkdir -p \$dldir~
10294       $install_prog $dir/$dlname \$dldir/$dlname~
10295       chmod a+x \$dldir/$dlname'
10296     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10297       dlpath=$dir/\$dldll~
10298        $rm \$dlpath'
10299     shlibpath_overrides_runpath=yes
10300
10301     case $host_os in
10302     cygwin*)
10303       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10304       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10305       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10306       ;;
10307     mingw*)
10308       # MinGW DLLs use traditional 'lib' prefix
10309       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10310       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10311       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10312         # It is most probably a Windows format PATH printed by
10313         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10314         # path with ; separators, and with drive letters. We can handle the
10315         # drive letters (cygwin fileutils understands them), so leave them,
10316         # especially as we might pass files found there to a mingw objdump,
10317         # which wouldn't understand a cygwinified path. Ahh.
10318         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10319       else
10320         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10321       fi
10322       ;;
10323     pw32*)
10324       # pw32 DLLs use 'pw' prefix rather than 'lib'
10325       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10326       ;;
10327     esac
10328     ;;
10329
10330   *)
10331     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10332     ;;
10333   esac
10334   dynamic_linker='Win32 ld.exe'
10335   # FIXME: first we should search . and the directory the executable is in
10336   shlibpath_var=PATH
10337   ;;
10338
10339 darwin* | rhapsody*)
10340   dynamic_linker="$host_os dyld"
10341   version_type=darwin
10342   need_lib_prefix=no
10343   need_version=no
10344   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10345   soname_spec='${libname}${release}${major}$shared_ext'
10346   shlibpath_overrides_runpath=yes
10347   shlibpath_var=DYLD_LIBRARY_PATH
10348   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10349   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10350   if test "$GCC" = yes; then
10351     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"`
10352   else
10353     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10354   fi
10355   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10356   ;;
10357
10358 dgux*)
10359   version_type=linux
10360   need_lib_prefix=no
10361   need_version=no
10362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   ;;
10366
10367 freebsd1*)
10368   dynamic_linker=no
10369   ;;
10370
10371 freebsd* | dragonfly*)
10372   # DragonFly does not have aout.  When/if they implement a new
10373   # versioning mechanism, adjust this.
10374   if test -x /usr/bin/objformat; then
10375     objformat=`/usr/bin/objformat`
10376   else
10377     case $host_os in
10378     freebsd[123]*) objformat=aout ;;
10379     *) objformat=elf ;;
10380     esac
10381   fi
10382   version_type=freebsd-$objformat
10383   case $version_type in
10384     freebsd-elf*)
10385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10386       need_version=no
10387       need_lib_prefix=no
10388       ;;
10389     freebsd-*)
10390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10391       need_version=yes
10392       ;;
10393   esac
10394   shlibpath_var=LD_LIBRARY_PATH
10395   case $host_os in
10396   freebsd2*)
10397     shlibpath_overrides_runpath=yes
10398     ;;
10399   freebsd3.[01]* | freebsdelf3.[01]*)
10400     shlibpath_overrides_runpath=yes
10401     hardcode_into_libs=yes
10402     ;;
10403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10405     shlibpath_overrides_runpath=no
10406     hardcode_into_libs=yes
10407     ;;
10408   freebsd*) # from 4.6 on
10409     shlibpath_overrides_runpath=yes
10410     hardcode_into_libs=yes
10411     ;;
10412   esac
10413   ;;
10414
10415 gnu*)
10416   version_type=linux
10417   need_lib_prefix=no
10418   need_version=no
10419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10420   soname_spec='${libname}${release}${shared_ext}$major'
10421   shlibpath_var=LD_LIBRARY_PATH
10422   hardcode_into_libs=yes
10423   ;;
10424
10425 hpux9* | hpux10* | hpux11*)
10426   # Give a soname corresponding to the major version so that dld.sl refuses to
10427   # link against other versions.
10428   version_type=sunos
10429   need_lib_prefix=no
10430   need_version=no
10431   case $host_cpu in
10432   ia64*)
10433     shrext_cmds='.so'
10434     hardcode_into_libs=yes
10435     dynamic_linker="$host_os dld.so"
10436     shlibpath_var=LD_LIBRARY_PATH
10437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439     soname_spec='${libname}${release}${shared_ext}$major'
10440     if test "X$HPUX_IA64_MODE" = X32; then
10441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10442     else
10443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10444     fi
10445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10446     ;;
10447    hppa*64*)
10448      shrext_cmds='.sl'
10449      hardcode_into_libs=yes
10450      dynamic_linker="$host_os dld.sl"
10451      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10452      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10453      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454      soname_spec='${libname}${release}${shared_ext}$major'
10455      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10456      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457      ;;
10458    *)
10459     shrext_cmds='.sl'
10460     dynamic_linker="$host_os dld.sl"
10461     shlibpath_var=SHLIB_PATH
10462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464     soname_spec='${libname}${release}${shared_ext}$major'
10465     ;;
10466   esac
10467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10468   postinstall_cmds='chmod 555 $lib'
10469   ;;
10470
10471 interix3*)
10472   version_type=linux
10473   need_lib_prefix=no
10474   need_version=no
10475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10476   soname_spec='${libname}${release}${shared_ext}$major'
10477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10478   shlibpath_var=LD_LIBRARY_PATH
10479   shlibpath_overrides_runpath=no
10480   hardcode_into_libs=yes
10481   ;;
10482
10483 irix5* | irix6* | nonstopux*)
10484   case $host_os in
10485     nonstopux*) version_type=nonstopux ;;
10486     *)
10487         if test "$lt_cv_prog_gnu_ld" = yes; then
10488                 version_type=linux
10489         else
10490                 version_type=irix
10491         fi ;;
10492   esac
10493   need_lib_prefix=no
10494   need_version=no
10495   soname_spec='${libname}${release}${shared_ext}$major'
10496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10497   case $host_os in
10498   irix5* | nonstopux*)
10499     libsuff= shlibsuff=
10500     ;;
10501   *)
10502     case $LD in # libtool.m4 will add one of these switches to LD
10503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10504       libsuff= shlibsuff= libmagic=32-bit;;
10505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10506       libsuff=32 shlibsuff=N32 libmagic=N32;;
10507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10509     *) libsuff= shlibsuff= libmagic=never-match;;
10510     esac
10511     ;;
10512   esac
10513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10514   shlibpath_overrides_runpath=no
10515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10517   hardcode_into_libs=yes
10518   ;;
10519
10520 # No shared lib support for Linux oldld, aout, or coff.
10521 linux*oldld* | linux*aout* | linux*coff*)
10522   dynamic_linker=no
10523   ;;
10524
10525 # This must be Linux ELF.
10526 linux* | k*bsd*-gnu)
10527   version_type=linux
10528   need_lib_prefix=no
10529   need_version=no
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531   soname_spec='${libname}${release}${shared_ext}$major'
10532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10533   shlibpath_var=LD_LIBRARY_PATH
10534   shlibpath_overrides_runpath=no
10535   # This implies no fast_install, which is unacceptable.
10536   # Some rework will be needed to allow for fast_install
10537   # before this can be enabled.
10538   hardcode_into_libs=yes
10539
10540   # Append ld.so.conf contents to the search path
10541   if test -f /etc/ld.so.conf; then
10542     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' ' '`
10543     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10544   fi
10545
10546   # We used to test for /lib/ld.so.1 and disable shared libraries on
10547   # powerpc, because MkLinux only supported shared libraries with the
10548   # GNU dynamic linker.  Since this was broken with cross compilers,
10549   # most powerpc-linux boxes support dynamic linking these days and
10550   # people can always --disable-shared, the test was removed, and we
10551   # assume the GNU/Linux dynamic linker is in use.
10552   dynamic_linker='GNU/Linux ld.so'
10553   ;;
10554
10555 netbsdelf*-gnu)
10556   version_type=linux
10557   need_lib_prefix=no
10558   need_version=no
10559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10560   soname_spec='${libname}${release}${shared_ext}$major'
10561   shlibpath_var=LD_LIBRARY_PATH
10562   shlibpath_overrides_runpath=no
10563   hardcode_into_libs=yes
10564   dynamic_linker='NetBSD ld.elf_so'
10565   ;;
10566
10567 netbsd*)
10568   version_type=sunos
10569   need_lib_prefix=no
10570   need_version=no
10571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10574     dynamic_linker='NetBSD (a.out) ld.so'
10575   else
10576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10577     soname_spec='${libname}${release}${shared_ext}$major'
10578     dynamic_linker='NetBSD ld.elf_so'
10579   fi
10580   shlibpath_var=LD_LIBRARY_PATH
10581   shlibpath_overrides_runpath=yes
10582   hardcode_into_libs=yes
10583   ;;
10584
10585 newsos6)
10586   version_type=linux
10587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588   shlibpath_var=LD_LIBRARY_PATH
10589   shlibpath_overrides_runpath=yes
10590   ;;
10591
10592 nto-qnx*)
10593   version_type=linux
10594   need_lib_prefix=no
10595   need_version=no
10596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597   soname_spec='${libname}${release}${shared_ext}$major'
10598   shlibpath_var=LD_LIBRARY_PATH
10599   shlibpath_overrides_runpath=yes
10600   ;;
10601
10602 openbsd*)
10603   version_type=sunos
10604   sys_lib_dlsearch_path_spec="/usr/lib"
10605   need_lib_prefix=no
10606   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10607   case $host_os in
10608     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10609     *)                         need_version=no  ;;
10610   esac
10611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10613   shlibpath_var=LD_LIBRARY_PATH
10614   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615     case $host_os in
10616       openbsd2.[89] | openbsd2.[89].*)
10617         shlibpath_overrides_runpath=no
10618         ;;
10619       *)
10620         shlibpath_overrides_runpath=yes
10621         ;;
10622       esac
10623   else
10624     shlibpath_overrides_runpath=yes
10625   fi
10626   ;;
10627
10628 os2*)
10629   libname_spec='$name'
10630   shrext_cmds=".dll"
10631   need_lib_prefix=no
10632   library_names_spec='$libname${shared_ext} $libname.a'
10633   dynamic_linker='OS/2 ld.exe'
10634   shlibpath_var=LIBPATH
10635   ;;
10636
10637 osf3* | osf4* | osf5*)
10638   version_type=osf
10639   need_lib_prefix=no
10640   need_version=no
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10645   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10646   ;;
10647
10648 solaris*)
10649   version_type=linux
10650   need_lib_prefix=no
10651   need_version=no
10652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653   soname_spec='${libname}${release}${shared_ext}$major'
10654   shlibpath_var=LD_LIBRARY_PATH
10655   shlibpath_overrides_runpath=yes
10656   hardcode_into_libs=yes
10657   # ldd complains unless libraries are executable
10658   postinstall_cmds='chmod +x $lib'
10659   ;;
10660
10661 sunos4*)
10662   version_type=sunos
10663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10664   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   shlibpath_overrides_runpath=yes
10667   if test "$with_gnu_ld" = yes; then
10668     need_lib_prefix=no
10669   fi
10670   need_version=yes
10671   ;;
10672
10673 sysv4 | sysv4.3*)
10674   version_type=linux
10675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676   soname_spec='${libname}${release}${shared_ext}$major'
10677   shlibpath_var=LD_LIBRARY_PATH
10678   case $host_vendor in
10679     sni)
10680       shlibpath_overrides_runpath=no
10681       need_lib_prefix=no
10682       export_dynamic_flag_spec='${wl}-Blargedynsym'
10683       runpath_var=LD_RUN_PATH
10684       ;;
10685     siemens)
10686       need_lib_prefix=no
10687       ;;
10688     motorola)
10689       need_lib_prefix=no
10690       need_version=no
10691       shlibpath_overrides_runpath=no
10692       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10693       ;;
10694   esac
10695   ;;
10696
10697 sysv4*MP*)
10698   if test -d /usr/nec ;then
10699     version_type=linux
10700     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10701     soname_spec='$libname${shared_ext}.$major'
10702     shlibpath_var=LD_LIBRARY_PATH
10703   fi
10704   ;;
10705
10706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707   version_type=freebsd-elf
10708   need_lib_prefix=no
10709   need_version=no
10710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711   soname_spec='${libname}${release}${shared_ext}$major'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   hardcode_into_libs=yes
10714   if test "$with_gnu_ld" = yes; then
10715     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10716     shlibpath_overrides_runpath=no
10717   else
10718     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10719     shlibpath_overrides_runpath=yes
10720     case $host_os in
10721       sco3.2v5*)
10722         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10723         ;;
10724     esac
10725   fi
10726   sys_lib_dlsearch_path_spec='/usr/lib'
10727   ;;
10728
10729 uts4*)
10730   version_type=linux
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732   soname_spec='${libname}${release}${shared_ext}$major'
10733   shlibpath_var=LD_LIBRARY_PATH
10734   ;;
10735
10736 *)
10737   dynamic_linker=no
10738   ;;
10739 esac
10740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10741 echo "${ECHO_T}$dynamic_linker" >&6; }
10742 test "$dynamic_linker" = no && can_build_shared=no
10743
10744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10745 if test "$GCC" = yes; then
10746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10747 fi
10748
10749 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10751 hardcode_action=
10752 if test -n "$hardcode_libdir_flag_spec" || \
10753    test -n "$runpath_var" || \
10754    test "X$hardcode_automatic" = "Xyes" ; then
10755
10756   # We can hardcode non-existant directories.
10757   if test "$hardcode_direct" != no &&
10758      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10759      # have to relink, otherwise we might link with an installed library
10760      # when we should be linking with a yet-to-be-installed one
10761      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10762      test "$hardcode_minus_L" != no; then
10763     # Linking always hardcodes the temporary library directory.
10764     hardcode_action=relink
10765   else
10766     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10767     hardcode_action=immediate
10768   fi
10769 else
10770   # We cannot hardcode anything, or else we can only hardcode existing
10771   # directories.
10772   hardcode_action=unsupported
10773 fi
10774 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10775 echo "${ECHO_T}$hardcode_action" >&6; }
10776
10777 if test "$hardcode_action" = relink; then
10778   # Fast installation is not supported
10779   enable_fast_install=no
10780 elif test "$shlibpath_overrides_runpath" = yes ||
10781      test "$enable_shared" = no; then
10782   # Fast installation is not necessary
10783   enable_fast_install=needless
10784 fi
10785
10786 striplib=
10787 old_striplib=
10788 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10789 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10790 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10791   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10792   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10793   { echo "$as_me:$LINENO: result: yes" >&5
10794 echo "${ECHO_T}yes" >&6; }
10795 else
10796 # FIXME - insert some real tests, host_os isn't really good enough
10797   case $host_os in
10798    darwin*)
10799        if test -n "$STRIP" ; then
10800          striplib="$STRIP -x"
10801          { echo "$as_me:$LINENO: result: yes" >&5
10802 echo "${ECHO_T}yes" >&6; }
10803        else
10804   { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10806 fi
10807        ;;
10808    *)
10809   { echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6; }
10811     ;;
10812   esac
10813 fi
10814
10815 if test "x$enable_dlopen" != xyes; then
10816   enable_dlopen=unknown
10817   enable_dlopen_self=unknown
10818   enable_dlopen_self_static=unknown
10819 else
10820   lt_cv_dlopen=no
10821   lt_cv_dlopen_libs=
10822
10823   case $host_os in
10824   beos*)
10825     lt_cv_dlopen="load_add_on"
10826     lt_cv_dlopen_libs=
10827     lt_cv_dlopen_self=yes
10828     ;;
10829
10830   mingw* | pw32*)
10831     lt_cv_dlopen="LoadLibrary"
10832     lt_cv_dlopen_libs=
10833    ;;
10834
10835   cygwin*)
10836     lt_cv_dlopen="dlopen"
10837     lt_cv_dlopen_libs=
10838    ;;
10839
10840   darwin*)
10841   # if libdl is installed we need to link against it
10842     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10845   echo $ECHO_N "(cached) $ECHO_C" >&6
10846 else
10847   ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-ldl  $LIBS"
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855
10856 /* Override any GCC internal prototype to avoid an error.
10857    Use char because int might match the return type of a GCC
10858    builtin and then its argument prototype would still apply.  */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char dlopen ();
10863 int
10864 main ()
10865 {
10866 return dlopen ();
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_link") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886   { (case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_try") 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; } &&
10895          { ac_try='test -s conftest$ac_exeext'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_cv_lib_dl_dlopen=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910         ac_cv_lib_dl_dlopen=no
10911 fi
10912
10913 rm -f conftest.err conftest.$ac_objext \
10914       conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10916 fi
10917 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10918 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10919 if test $ac_cv_lib_dl_dlopen = yes; then
10920   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10921 else
10922
10923     lt_cv_dlopen="dyld"
10924     lt_cv_dlopen_libs=
10925     lt_cv_dlopen_self=yes
10926
10927 fi
10928
10929    ;;
10930
10931   *)
10932     { echo "$as_me:$LINENO: checking for shl_load" >&5
10933 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10934 if test "${ac_cv_func_shl_load+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10945 #define shl_load innocuous_shl_load
10946
10947 /* System header to define __stub macros and hopefully few prototypes,
10948     which can conflict with char shl_load (); below.
10949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950     <limits.h> exists even on freestanding compilers.  */
10951
10952 #ifdef __STDC__
10953 # include <limits.h>
10954 #else
10955 # include <assert.h>
10956 #endif
10957
10958 #undef shl_load
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961    Use char because int might match the return type of a GCC
10962    builtin and then its argument prototype would still apply.  */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char shl_load ();
10967 /* The GNU C library defines this for functions which it implements
10968     to always fail with ENOSYS.  Some functions are actually named
10969     something starting with __ and the normal name is an alias.  */
10970 #if defined __stub_shl_load || defined __stub___shl_load
10971 choke me
10972 #endif
10973
10974 int
10975 main ()
10976 {
10977 return shl_load ();
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986   *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989   (eval "$ac_link") 2>conftest.er1
10990   ac_status=$?
10991   grep -v '^ *+' conftest.er1 >conftest.err
10992   rm -f conftest.er1
10993   cat conftest.err >&5
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); } &&
10996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10997   { (case "(($ac_try" in
10998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999   *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002   (eval "$ac_try") 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; } &&
11006          { ac_try='test -s conftest$ac_exeext'
11007   { (case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_try") 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   ac_cv_func_shl_load=yes
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021         ac_cv_func_shl_load=no
11022 fi
11023
11024 rm -f conftest.err conftest.$ac_objext \
11025       conftest$ac_exeext conftest.$ac_ext
11026 fi
11027 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11028 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11029 if test $ac_cv_func_shl_load = yes; then
11030   lt_cv_dlopen="shl_load"
11031 else
11032   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11033 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ldld  $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045
11046 /* Override any GCC internal prototype to avoid an error.
11047    Use char because int might match the return type of a GCC
11048    builtin and then its argument prototype would still apply.  */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char shl_load ();
11053 int
11054 main ()
11055 {
11056 return shl_load ();
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065   *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068   (eval "$ac_link") 2>conftest.er1
11069   ac_status=$?
11070   grep -v '^ *+' conftest.er1 >conftest.err
11071   rm -f conftest.er1
11072   cat conftest.err >&5
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076   { (case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081   (eval "$ac_try") 2>&5
11082   ac_status=$?
11083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084   (exit $ac_status); }; } &&
11085          { ac_try='test -s conftest$ac_exeext'
11086   { (case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_try") 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ac_cv_lib_dld_shl_load=yes
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100         ac_cv_lib_dld_shl_load=no
11101 fi
11102
11103 rm -f conftest.err conftest.$ac_objext \
11104       conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11109 if test $ac_cv_lib_dld_shl_load = yes; then
11110   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11111 else
11112   { echo "$as_me:$LINENO: checking for dlopen" >&5
11113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11114 if test "${ac_cv_func_dlopen+set}" = set; then
11115   echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117   cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11125 #define dlopen innocuous_dlopen
11126
11127 /* System header to define __stub macros and hopefully few prototypes,
11128     which can conflict with char dlopen (); below.
11129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11130     <limits.h> exists even on freestanding compilers.  */
11131
11132 #ifdef __STDC__
11133 # include <limits.h>
11134 #else
11135 # include <assert.h>
11136 #endif
11137
11138 #undef dlopen
11139
11140 /* Override any GCC internal prototype to avoid an error.
11141    Use char because int might match the return type of a GCC
11142    builtin and then its argument prototype would still apply.  */
11143 #ifdef __cplusplus
11144 extern "C"
11145 #endif
11146 char dlopen ();
11147 /* The GNU C library defines this for functions which it implements
11148     to always fail with ENOSYS.  Some functions are actually named
11149     something starting with __ and the normal name is an alias.  */
11150 #if defined __stub_dlopen || defined __stub___dlopen
11151 choke me
11152 #endif
11153
11154 int
11155 main ()
11156 {
11157 return dlopen ();
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext conftest$ac_exeext
11163 if { (ac_try="$ac_link"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_link") 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } &&
11176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177   { (case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_try") 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; } &&
11186          { ac_try='test -s conftest$ac_exeext'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_cv_func_dlopen=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201         ac_cv_func_dlopen=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_objext \
11205       conftest$ac_exeext conftest.$ac_ext
11206 fi
11207 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11209 if test $ac_cv_func_dlopen = yes; then
11210   lt_cv_dlopen="dlopen"
11211 else
11212   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-ldl  $LIBS"
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225
11226 /* Override any GCC internal prototype to avoid an error.
11227    Use char because int might match the return type of a GCC
11228    builtin and then its argument prototype would still apply.  */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char dlopen ();
11233 int
11234 main ()
11235 {
11236 return dlopen ();
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_link") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256   { (case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_try") 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_try") 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   ac_cv_lib_dl_dlopen=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280         ac_cv_lib_dl_dlopen=no
11281 fi
11282
11283 rm -f conftest.err conftest.$ac_objext \
11284       conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11286 fi
11287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11288 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11289 if test $ac_cv_lib_dl_dlopen = yes; then
11290   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11291 else
11292   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11293 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11294 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-lsvld  $LIBS"
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307    Use char because int might match the return type of a GCC
11308    builtin and then its argument prototype would still apply.  */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dlopen ();
11313 int
11314 main ()
11315 {
11316 return dlopen ();
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328   (eval "$ac_link") 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } &&
11335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11336   { (case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_try") 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; } &&
11345          { ac_try='test -s conftest$ac_exeext'
11346   { (case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_try") 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_cv_lib_svld_dlopen=yes
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360         ac_cv_lib_svld_dlopen=no
11361 fi
11362
11363 rm -f conftest.err conftest.$ac_objext \
11364       conftest$ac_exeext conftest.$ac_ext
11365 LIBS=$ac_check_lib_save_LIBS
11366 fi
11367 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11368 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11369 if test $ac_cv_lib_svld_dlopen = yes; then
11370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11371 else
11372   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11373 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11374 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-ldld  $LIBS"
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387    Use char because int might match the return type of a GCC
11388    builtin and then its argument prototype would still apply.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dld_link ();
11393 int
11394 main ()
11395 {
11396 return dld_link ();
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_link") 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_try") 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_lib_dld_dld_link=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440         ac_cv_lib_dld_dld_link=no
11441 fi
11442
11443 rm -f conftest.err conftest.$ac_objext \
11444       conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11448 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11449 if test $ac_cv_lib_dld_dld_link = yes; then
11450   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11451 fi
11452
11453
11454 fi
11455
11456
11457 fi
11458
11459
11460 fi
11461
11462
11463 fi
11464
11465
11466 fi
11467
11468     ;;
11469   esac
11470
11471   if test "x$lt_cv_dlopen" != xno; then
11472     enable_dlopen=yes
11473   else
11474     enable_dlopen=no
11475   fi
11476
11477   case $lt_cv_dlopen in
11478   dlopen)
11479     save_CPPFLAGS="$CPPFLAGS"
11480     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11481
11482     save_LDFLAGS="$LDFLAGS"
11483     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11484
11485     save_LIBS="$LIBS"
11486     LIBS="$lt_cv_dlopen_libs $LIBS"
11487
11488     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11489 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11490 if test "${lt_cv_dlopen_self+set}" = set; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493           if test "$cross_compiling" = yes; then :
11494   lt_cv_dlopen_self=cross
11495 else
11496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11497   lt_status=$lt_dlunknown
11498   cat > conftest.$ac_ext <<EOF
11499 #line 11499 "configure"
11500 #include "confdefs.h"
11501
11502 #if HAVE_DLFCN_H
11503 #include <dlfcn.h>
11504 #endif
11505
11506 #include <stdio.h>
11507
11508 #ifdef RTLD_GLOBAL
11509 #  define LT_DLGLOBAL           RTLD_GLOBAL
11510 #else
11511 #  ifdef DL_GLOBAL
11512 #    define LT_DLGLOBAL         DL_GLOBAL
11513 #  else
11514 #    define LT_DLGLOBAL         0
11515 #  endif
11516 #endif
11517
11518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11519    find out it does not work in some platform. */
11520 #ifndef LT_DLLAZY_OR_NOW
11521 #  ifdef RTLD_LAZY
11522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11523 #  else
11524 #    ifdef DL_LAZY
11525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11526 #    else
11527 #      ifdef RTLD_NOW
11528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11529 #      else
11530 #        ifdef DL_NOW
11531 #          define LT_DLLAZY_OR_NOW      DL_NOW
11532 #        else
11533 #          define LT_DLLAZY_OR_NOW      0
11534 #        endif
11535 #      endif
11536 #    endif
11537 #  endif
11538 #endif
11539
11540 #ifdef __cplusplus
11541 extern "C" void exit (int);
11542 #endif
11543
11544 void fnord() { int i=42;}
11545 int main ()
11546 {
11547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548   int status = $lt_dlunknown;
11549
11550   if (self)
11551     {
11552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11553       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554       /* dlclose (self); */
11555     }
11556   else
11557     puts (dlerror ());
11558
11559     exit (status);
11560 }
11561 EOF
11562   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563   (eval $ac_link) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11567     (./conftest; exit; ) >&5 2>/dev/null
11568     lt_status=$?
11569     case x$lt_status in
11570       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11573     esac
11574   else :
11575     # compilation failed
11576     lt_cv_dlopen_self=no
11577   fi
11578 fi
11579 rm -fr conftest*
11580
11581
11582 fi
11583 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11584 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11585
11586     if test "x$lt_cv_dlopen_self" = xyes; then
11587       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11589 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11590 if test "${lt_cv_dlopen_self_static+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593           if test "$cross_compiling" = yes; then :
11594   lt_cv_dlopen_self_static=cross
11595 else
11596   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597   lt_status=$lt_dlunknown
11598   cat > conftest.$ac_ext <<EOF
11599 #line 11599 "configure"
11600 #include "confdefs.h"
11601
11602 #if HAVE_DLFCN_H
11603 #include <dlfcn.h>
11604 #endif
11605
11606 #include <stdio.h>
11607
11608 #ifdef RTLD_GLOBAL
11609 #  define LT_DLGLOBAL           RTLD_GLOBAL
11610 #else
11611 #  ifdef DL_GLOBAL
11612 #    define LT_DLGLOBAL         DL_GLOBAL
11613 #  else
11614 #    define LT_DLGLOBAL         0
11615 #  endif
11616 #endif
11617
11618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619    find out it does not work in some platform. */
11620 #ifndef LT_DLLAZY_OR_NOW
11621 #  ifdef RTLD_LAZY
11622 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11623 #  else
11624 #    ifdef DL_LAZY
11625 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11626 #    else
11627 #      ifdef RTLD_NOW
11628 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11629 #      else
11630 #        ifdef DL_NOW
11631 #          define LT_DLLAZY_OR_NOW      DL_NOW
11632 #        else
11633 #          define LT_DLLAZY_OR_NOW      0
11634 #        endif
11635 #      endif
11636 #    endif
11637 #  endif
11638 #endif
11639
11640 #ifdef __cplusplus
11641 extern "C" void exit (int);
11642 #endif
11643
11644 void fnord() { int i=42;}
11645 int main ()
11646 {
11647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648   int status = $lt_dlunknown;
11649
11650   if (self)
11651     {
11652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11653       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654       /* dlclose (self); */
11655     }
11656   else
11657     puts (dlerror ());
11658
11659     exit (status);
11660 }
11661 EOF
11662   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663   (eval $ac_link) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11667     (./conftest; exit; ) >&5 2>/dev/null
11668     lt_status=$?
11669     case x$lt_status in
11670       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11671       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11672       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11673     esac
11674   else :
11675     # compilation failed
11676     lt_cv_dlopen_self_static=no
11677   fi
11678 fi
11679 rm -fr conftest*
11680
11681
11682 fi
11683 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11684 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11685     fi
11686
11687     CPPFLAGS="$save_CPPFLAGS"
11688     LDFLAGS="$save_LDFLAGS"
11689     LIBS="$save_LIBS"
11690     ;;
11691   esac
11692
11693   case $lt_cv_dlopen_self in
11694   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11695   *) enable_dlopen_self=unknown ;;
11696   esac
11697
11698   case $lt_cv_dlopen_self_static in
11699   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11700   *) enable_dlopen_self_static=unknown ;;
11701   esac
11702 fi
11703
11704
11705 # Report which library types will actually be built
11706 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11707 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11708 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11709 echo "${ECHO_T}$can_build_shared" >&6; }
11710
11711 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11712 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11713 test "$can_build_shared" = "no" && enable_shared=no
11714
11715 # On AIX, shared libraries and static libraries use the same namespace, and
11716 # are all built from PIC.
11717 case $host_os in
11718 aix3*)
11719   test "$enable_shared" = yes && enable_static=no
11720   if test -n "$RANLIB"; then
11721     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11722     postinstall_cmds='$RANLIB $lib'
11723   fi
11724   ;;
11725
11726 aix4* | aix5*)
11727   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11728     test "$enable_shared" = yes && enable_static=no
11729   fi
11730     ;;
11731 esac
11732 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11733 echo "${ECHO_T}$enable_shared" >&6; }
11734
11735 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11736 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11737 # Make sure either enable_shared or enable_static is yes.
11738 test "$enable_shared" = yes || enable_static=yes
11739 { echo "$as_me:$LINENO: result: $enable_static" >&5
11740 echo "${ECHO_T}$enable_static" >&6; }
11741
11742 # The else clause should only fire when bootstrapping the
11743 # libtool distribution, otherwise you forgot to ship ltmain.sh
11744 # with your package, and you will get complaints that there are
11745 # no rules to generate ltmain.sh.
11746 if test -f "$ltmain"; then
11747   # See if we are running on zsh, and set the options which allow our commands through
11748   # without removal of \ escapes.
11749   if test -n "${ZSH_VERSION+set}" ; then
11750     setopt NO_GLOB_SUBST
11751   fi
11752   # Now quote all the things that may contain metacharacters while being
11753   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11754   # variables and quote the copies for generation of the libtool script.
11755   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11756     SED SHELL STRIP \
11757     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11758     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11759     deplibs_check_method reload_flag reload_cmds need_locks \
11760     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11761     lt_cv_sys_global_symbol_to_c_name_address \
11762     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11763     old_postinstall_cmds old_postuninstall_cmds \
11764     compiler \
11765     CC \
11766     LD \
11767     lt_prog_compiler_wl \
11768     lt_prog_compiler_pic \
11769     lt_prog_compiler_static \
11770     lt_prog_compiler_no_builtin_flag \
11771     export_dynamic_flag_spec \
11772     thread_safe_flag_spec \
11773     whole_archive_flag_spec \
11774     enable_shared_with_static_runtimes \
11775     old_archive_cmds \
11776     old_archive_from_new_cmds \
11777     predep_objects \
11778     postdep_objects \
11779     predeps \
11780     postdeps \
11781     compiler_lib_search_path \
11782     archive_cmds \
11783     archive_expsym_cmds \
11784     postinstall_cmds \
11785     postuninstall_cmds \
11786     old_archive_from_expsyms_cmds \
11787     allow_undefined_flag \
11788     no_undefined_flag \
11789     export_symbols_cmds \
11790     hardcode_libdir_flag_spec \
11791     hardcode_libdir_flag_spec_ld \
11792     hardcode_libdir_separator \
11793     hardcode_automatic \
11794     module_cmds \
11795     module_expsym_cmds \
11796     lt_cv_prog_compiler_c_o \
11797     exclude_expsyms \
11798     include_expsyms; do
11799
11800     case $var in
11801     old_archive_cmds | \
11802     old_archive_from_new_cmds | \
11803     archive_cmds | \
11804     archive_expsym_cmds | \
11805     module_cmds | \
11806     module_expsym_cmds | \
11807     old_archive_from_expsyms_cmds | \
11808     export_symbols_cmds | \
11809     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11810     postinstall_cmds | postuninstall_cmds | \
11811     old_postinstall_cmds | old_postuninstall_cmds | \
11812     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11813       # Double-quote double-evaled strings.
11814       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11815       ;;
11816     *)
11817       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11818       ;;
11819     esac
11820   done
11821
11822   case $lt_echo in
11823   *'\$0 --fallback-echo"')
11824     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11825     ;;
11826   esac
11827
11828 cfgfile="${ofile}T"
11829   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11830   $rm -f "$cfgfile"
11831   { echo "$as_me:$LINENO: creating $ofile" >&5
11832 echo "$as_me: creating $ofile" >&6;}
11833
11834   cat <<__EOF__ >> "$cfgfile"
11835 #! $SHELL
11836
11837 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11838 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11839 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11840 #
11841 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11842 # Free Software Foundation, Inc.
11843 #
11844 # This file is part of GNU Libtool:
11845 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11846 #
11847 # This program is free software; you can redistribute it and/or modify
11848 # it under the terms of the GNU General Public License as published by
11849 # the Free Software Foundation; either version 2 of the License, or
11850 # (at your option) any later version.
11851 #
11852 # This program is distributed in the hope that it will be useful, but
11853 # WITHOUT ANY WARRANTY; without even the implied warranty of
11854 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11855 # General Public License for more details.
11856 #
11857 # You should have received a copy of the GNU General Public License
11858 # along with this program; if not, write to the Free Software
11859 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11860 #
11861 # As a special exception to the GNU General Public License, if you
11862 # distribute this file as part of a program that contains a
11863 # configuration script generated by Autoconf, you may include it under
11864 # the same distribution terms that you use for the rest of that program.
11865
11866 # A sed program that does not truncate output.
11867 SED=$lt_SED
11868
11869 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11870 Xsed="$SED -e 1s/^X//"
11871
11872 # The HP-UX ksh and POSIX shell print the target directory to stdout
11873 # if CDPATH is set.
11874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11875
11876 # The names of the tagged configurations supported by this script.
11877 available_tags=
11878
11879 # ### BEGIN LIBTOOL CONFIG
11880
11881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11882
11883 # Shell to use when invoking shell scripts.
11884 SHELL=$lt_SHELL
11885
11886 # Whether or not to build shared libraries.
11887 build_libtool_libs=$enable_shared
11888
11889 # Whether or not to build static libraries.
11890 build_old_libs=$enable_static
11891
11892 # Whether or not to add -lc for building shared libraries.
11893 build_libtool_need_lc=$archive_cmds_need_lc
11894
11895 # Whether or not to disallow shared libs when runtime libs are static
11896 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11897
11898 # Whether or not to optimize for fast installation.
11899 fast_install=$enable_fast_install
11900
11901 # The host system.
11902 host_alias=$host_alias
11903 host=$host
11904 host_os=$host_os
11905
11906 # The build system.
11907 build_alias=$build_alias
11908 build=$build
11909 build_os=$build_os
11910
11911 # An echo program that does not interpret backslashes.
11912 echo=$lt_echo
11913
11914 # The archiver.
11915 AR=$lt_AR
11916 AR_FLAGS=$lt_AR_FLAGS
11917
11918 # A C compiler.
11919 LTCC=$lt_LTCC
11920
11921 # LTCC compiler flags.
11922 LTCFLAGS=$lt_LTCFLAGS
11923
11924 # A language-specific compiler.
11925 CC=$lt_compiler
11926
11927 # Is the compiler the GNU C compiler?
11928 with_gcc=$GCC
11929
11930 # An ERE matcher.
11931 EGREP=$lt_EGREP
11932
11933 # The linker used to build libraries.
11934 LD=$lt_LD
11935
11936 # Whether we need hard or soft links.
11937 LN_S=$lt_LN_S
11938
11939 # A BSD-compatible nm program.
11940 NM=$lt_NM
11941
11942 # A symbol stripping program
11943 STRIP=$lt_STRIP
11944
11945 # Used to examine libraries when file_magic_cmd begins "file"
11946 MAGIC_CMD=$MAGIC_CMD
11947
11948 # Used on cygwin: DLL creation program.
11949 DLLTOOL="$DLLTOOL"
11950
11951 # Used on cygwin: object dumper.
11952 OBJDUMP="$OBJDUMP"
11953
11954 # Used on cygwin: assembler.
11955 AS="$AS"
11956
11957 # The name of the directory that contains temporary libtool files.
11958 objdir=$objdir
11959
11960 # How to create reloadable object files.
11961 reload_flag=$lt_reload_flag
11962 reload_cmds=$lt_reload_cmds
11963
11964 # How to pass a linker flag through the compiler.
11965 wl=$lt_lt_prog_compiler_wl
11966
11967 # Object file suffix (normally "o").
11968 objext="$ac_objext"
11969
11970 # Old archive suffix (normally "a").
11971 libext="$libext"
11972
11973 # Shared library suffix (normally ".so").
11974 shrext_cmds='$shrext_cmds'
11975
11976 # Executable file suffix (normally "").
11977 exeext="$exeext"
11978
11979 # Additional compiler flags for building library objects.
11980 pic_flag=$lt_lt_prog_compiler_pic
11981 pic_mode=$pic_mode
11982
11983 # What is the maximum length of a command?
11984 max_cmd_len=$lt_cv_sys_max_cmd_len
11985
11986 # Does compiler simultaneously support -c and -o options?
11987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11988
11989 # Must we lock files when doing compilation?
11990 need_locks=$lt_need_locks
11991
11992 # Do we need the lib prefix for modules?
11993 need_lib_prefix=$need_lib_prefix
11994
11995 # Do we need a version for libraries?
11996 need_version=$need_version
11997
11998 # Whether dlopen is supported.
11999 dlopen_support=$enable_dlopen
12000
12001 # Whether dlopen of programs is supported.
12002 dlopen_self=$enable_dlopen_self
12003
12004 # Whether dlopen of statically linked programs is supported.
12005 dlopen_self_static=$enable_dlopen_self_static
12006
12007 # Compiler flag to prevent dynamic linking.
12008 link_static_flag=$lt_lt_prog_compiler_static
12009
12010 # Compiler flag to turn off builtin functions.
12011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12012
12013 # Compiler flag to allow reflexive dlopens.
12014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12015
12016 # Compiler flag to generate shared objects directly from archives.
12017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12018
12019 # Compiler flag to generate thread-safe objects.
12020 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12021
12022 # Library versioning type.
12023 version_type=$version_type
12024
12025 # Format of library name prefix.
12026 libname_spec=$lt_libname_spec
12027
12028 # List of archive names.  First name is the real one, the rest are links.
12029 # The last name is the one that the linker finds with -lNAME.
12030 library_names_spec=$lt_library_names_spec
12031
12032 # The coded name of the library, if different from the real name.
12033 soname_spec=$lt_soname_spec
12034
12035 # Commands used to build and install an old-style archive.
12036 RANLIB=$lt_RANLIB
12037 old_archive_cmds=$lt_old_archive_cmds
12038 old_postinstall_cmds=$lt_old_postinstall_cmds
12039 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12040
12041 # Create an old-style archive from a shared archive.
12042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12043
12044 # Create a temporary old-style archive to link instead of a shared archive.
12045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12046
12047 # Commands used to build and install a shared archive.
12048 archive_cmds=$lt_archive_cmds
12049 archive_expsym_cmds=$lt_archive_expsym_cmds
12050 postinstall_cmds=$lt_postinstall_cmds
12051 postuninstall_cmds=$lt_postuninstall_cmds
12052
12053 # Commands used to build a loadable module (assumed same as above if empty)
12054 module_cmds=$lt_module_cmds
12055 module_expsym_cmds=$lt_module_expsym_cmds
12056
12057 # Commands to strip libraries.
12058 old_striplib=$lt_old_striplib
12059 striplib=$lt_striplib
12060
12061 # Dependencies to place before the objects being linked to create a
12062 # shared library.
12063 predep_objects=$lt_predep_objects
12064
12065 # Dependencies to place after the objects being linked to create a
12066 # shared library.
12067 postdep_objects=$lt_postdep_objects
12068
12069 # Dependencies to place before the objects being linked to create a
12070 # shared library.
12071 predeps=$lt_predeps
12072
12073 # Dependencies to place after the objects being linked to create a
12074 # shared library.
12075 postdeps=$lt_postdeps
12076
12077 # The library search path used internally by the compiler when linking
12078 # a shared library.
12079 compiler_lib_search_path=$lt_compiler_lib_search_path
12080
12081 # Method to check whether dependent libraries are shared objects.
12082 deplibs_check_method=$lt_deplibs_check_method
12083
12084 # Command to use when deplibs_check_method == file_magic.
12085 file_magic_cmd=$lt_file_magic_cmd
12086
12087 # Flag that allows shared libraries with undefined symbols to be built.
12088 allow_undefined_flag=$lt_allow_undefined_flag
12089
12090 # Flag that forces no undefined symbols.
12091 no_undefined_flag=$lt_no_undefined_flag
12092
12093 # Commands used to finish a libtool library installation in a directory.
12094 finish_cmds=$lt_finish_cmds
12095
12096 # Same as above, but a single script fragment to be evaled but not shown.
12097 finish_eval=$lt_finish_eval
12098
12099 # Take the output of nm and produce a listing of raw symbols and C names.
12100 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12101
12102 # Transform the output of nm in a proper C declaration
12103 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12104
12105 # Transform the output of nm in a C name address pair
12106 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12107
12108 # This is the shared library runtime path variable.
12109 runpath_var=$runpath_var
12110
12111 # This is the shared library path variable.
12112 shlibpath_var=$shlibpath_var
12113
12114 # Is shlibpath searched before the hard-coded library search path?
12115 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12116
12117 # How to hardcode a shared library path into an executable.
12118 hardcode_action=$hardcode_action
12119
12120 # Whether we should hardcode library paths into libraries.
12121 hardcode_into_libs=$hardcode_into_libs
12122
12123 # Flag to hardcode \$libdir into a binary during linking.
12124 # This must work even if \$libdir does not exist.
12125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12126
12127 # If ld is used when linking, flag to hardcode \$libdir into
12128 # a binary during linking. This must work even if \$libdir does
12129 # not exist.
12130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12131
12132 # Whether we need a single -rpath flag with a separated argument.
12133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12134
12135 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12136 # resulting binary.
12137 hardcode_direct=$hardcode_direct
12138
12139 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12140 # resulting binary.
12141 hardcode_minus_L=$hardcode_minus_L
12142
12143 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12144 # the resulting binary.
12145 hardcode_shlibpath_var=$hardcode_shlibpath_var
12146
12147 # Set to yes if building a shared library automatically hardcodes DIR into the library
12148 # and all subsequent libraries and executables linked against it.
12149 hardcode_automatic=$hardcode_automatic
12150
12151 # Variables whose values should be saved in libtool wrapper scripts and
12152 # restored at relink time.
12153 variables_saved_for_relink="$variables_saved_for_relink"
12154
12155 # Whether libtool must link a program against all its dependency libraries.
12156 link_all_deplibs=$link_all_deplibs
12157
12158 # Compile-time system search path for libraries
12159 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12160
12161 # Run-time system search path for libraries
12162 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12163
12164 # Fix the shell variable \$srcfile for the compiler.
12165 fix_srcfile_path="$fix_srcfile_path"
12166
12167 # Set to yes if exported symbols are required.
12168 always_export_symbols=$always_export_symbols
12169
12170 # The commands to list exported symbols.
12171 export_symbols_cmds=$lt_export_symbols_cmds
12172
12173 # The commands to extract the exported symbol list from a shared archive.
12174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12175
12176 # Symbols that should not be listed in the preloaded symbols.
12177 exclude_expsyms=$lt_exclude_expsyms
12178
12179 # Symbols that must always be exported.
12180 include_expsyms=$lt_include_expsyms
12181
12182 # ### END LIBTOOL CONFIG
12183
12184 __EOF__
12185
12186
12187   case $host_os in
12188   aix3*)
12189     cat <<\EOF >> "$cfgfile"
12190
12191 # AIX sometimes has problems with the GCC collect2 program.  For some
12192 # reason, if we set the COLLECT_NAMES environment variable, the problems
12193 # vanish in a puff of smoke.
12194 if test "X${COLLECT_NAMES+set}" != Xset; then
12195   COLLECT_NAMES=
12196   export COLLECT_NAMES
12197 fi
12198 EOF
12199     ;;
12200   esac
12201
12202   # We use sed instead of cat because bash on DJGPP gets confused if
12203   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12204   # text mode, it properly converts lines to CR/LF.  This bash problem
12205   # is reportedly fixed, but why not run on old versions too?
12206   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12207
12208   mv -f "$cfgfile" "$ofile" || \
12209     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12210   chmod +x "$ofile"
12211
12212 else
12213   # If there is no Makefile yet, we rely on a make rule to execute
12214   # `config.status --recheck' to rerun these tests and create the
12215   # libtool script then.
12216   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12217   if test -f "$ltmain_in"; then
12218     test -f Makefile && make "$ltmain"
12219   fi
12220 fi
12221
12222
12223 ac_ext=c
12224 ac_cpp='$CPP $CPPFLAGS'
12225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12228
12229 CC="$lt_save_CC"
12230
12231
12232 # Check whether --with-tags was given.
12233 if test "${with_tags+set}" = set; then
12234   withval=$with_tags; tagnames="$withval"
12235 fi
12236
12237
12238 if test -f "$ltmain" && test -n "$tagnames"; then
12239   if test ! -f "${ofile}"; then
12240     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12241 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12242   fi
12243
12244   if test -z "$LTCC"; then
12245     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12246     if test -z "$LTCC"; then
12247       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12248 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12249     else
12250       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12251 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12252     fi
12253   fi
12254   if test -z "$LTCFLAGS"; then
12255     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12256   fi
12257
12258   # Extract list of available tagged configurations in $ofile.
12259   # Note that this assumes the entire list is on one line.
12260   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12261
12262   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12263   for tagname in $tagnames; do
12264     IFS="$lt_save_ifs"
12265     # Check whether tagname contains only valid characters
12266     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12267     "") ;;
12268     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12269 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12270    { (exit 1); exit 1; }; }
12271         ;;
12272     esac
12273
12274     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12275     then
12276       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12277 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12278    { (exit 1); exit 1; }; }
12279     fi
12280
12281     # Update the list of available tags.
12282     if test -n "$tagname"; then
12283       echo appending configuration tag \"$tagname\" to $ofile
12284
12285       case $tagname in
12286       CXX)
12287         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12288             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12289             (test "X$CXX" != "Xg++"))) ; then
12290           ac_ext=cpp
12291 ac_cpp='$CXXCPP $CPPFLAGS'
12292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12295
12296
12297
12298
12299 archive_cmds_need_lc_CXX=no
12300 allow_undefined_flag_CXX=
12301 always_export_symbols_CXX=no
12302 archive_expsym_cmds_CXX=
12303 export_dynamic_flag_spec_CXX=
12304 hardcode_direct_CXX=no
12305 hardcode_libdir_flag_spec_CXX=
12306 hardcode_libdir_flag_spec_ld_CXX=
12307 hardcode_libdir_separator_CXX=
12308 hardcode_minus_L_CXX=no
12309 hardcode_shlibpath_var_CXX=unsupported
12310 hardcode_automatic_CXX=no
12311 module_cmds_CXX=
12312 module_expsym_cmds_CXX=
12313 link_all_deplibs_CXX=unknown
12314 old_archive_cmds_CXX=$old_archive_cmds
12315 no_undefined_flag_CXX=
12316 whole_archive_flag_spec_CXX=
12317 enable_shared_with_static_runtimes_CXX=no
12318
12319 # Dependencies to place before and after the object being linked:
12320 predep_objects_CXX=
12321 postdep_objects_CXX=
12322 predeps_CXX=
12323 postdeps_CXX=
12324 compiler_lib_search_path_CXX=
12325
12326 # Source file extension for C++ test sources.
12327 ac_ext=cpp
12328
12329 # Object file extension for compiled C++ test sources.
12330 objext=o
12331 objext_CXX=$objext
12332
12333 # Code to be used in simple compile tests
12334 lt_simple_compile_test_code="int some_variable = 0;\n"
12335
12336 # Code to be used in simple link tests
12337 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12338
12339 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12340
12341 # If no C compiler was specified, use CC.
12342 LTCC=${LTCC-"$CC"}
12343
12344 # If no C compiler flags were specified, use CFLAGS.
12345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12346
12347 # Allow CC to be a program name with arguments.
12348 compiler=$CC
12349
12350
12351 # save warnings/boilerplate of simple test code
12352 ac_outfile=conftest.$ac_objext
12353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12355 _lt_compiler_boilerplate=`cat conftest.err`
12356 $rm conftest*
12357
12358 ac_outfile=conftest.$ac_objext
12359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12361 _lt_linker_boilerplate=`cat conftest.err`
12362 $rm conftest*
12363
12364
12365 # Allow CC to be a program name with arguments.
12366 lt_save_CC=$CC
12367 lt_save_LD=$LD
12368 lt_save_GCC=$GCC
12369 GCC=$GXX
12370 lt_save_with_gnu_ld=$with_gnu_ld
12371 lt_save_path_LD=$lt_cv_path_LD
12372 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12373   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12374 else
12375   $as_unset lt_cv_prog_gnu_ld
12376 fi
12377 if test -n "${lt_cv_path_LDCXX+set}"; then
12378   lt_cv_path_LD=$lt_cv_path_LDCXX
12379 else
12380   $as_unset lt_cv_path_LD
12381 fi
12382 test -z "${LDCXX+set}" || LD=$LDCXX
12383 CC=${CXX-"c++"}
12384 compiler=$CC
12385 compiler_CXX=$CC
12386 for cc_temp in $compiler""; do
12387   case $cc_temp in
12388     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12389     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12390     \-*) ;;
12391     *) break;;
12392   esac
12393 done
12394 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12395
12396
12397 # We don't want -fno-exception wen compiling C++ code, so set the
12398 # no_builtin_flag separately
12399 if test "$GXX" = yes; then
12400   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12401 else
12402   lt_prog_compiler_no_builtin_flag_CXX=
12403 fi
12404
12405 if test "$GXX" = yes; then
12406   # Set up default GNU C++ configuration
12407
12408
12409 # Check whether --with-gnu-ld was given.
12410 if test "${with_gnu_ld+set}" = set; then
12411   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12412 else
12413   with_gnu_ld=no
12414 fi
12415
12416 ac_prog=ld
12417 if test "$GCC" = yes; then
12418   # Check if gcc -print-prog-name=ld gives a path.
12419   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12420 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12421   case $host in
12422   *-*-mingw*)
12423     # gcc leaves a trailing carriage return which upsets mingw
12424     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12425   *)
12426     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12427   esac
12428   case $ac_prog in
12429     # Accept absolute paths.
12430     [\\/]* | ?:[\\/]*)
12431       re_direlt='/[^/][^/]*/\.\./'
12432       # Canonicalize the pathname of ld
12433       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12434       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12435         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12436       done
12437       test -z "$LD" && LD="$ac_prog"
12438       ;;
12439   "")
12440     # If it fails, then pretend we aren't using GCC.
12441     ac_prog=ld
12442     ;;
12443   *)
12444     # If it is relative, then search for the first ld in PATH.
12445     with_gnu_ld=unknown
12446     ;;
12447   esac
12448 elif test "$with_gnu_ld" = yes; then
12449   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12450 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12451 else
12452   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12453 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12454 fi
12455 if test "${lt_cv_path_LD+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   if test -z "$LD"; then
12459   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12460   for ac_dir in $PATH; do
12461     IFS="$lt_save_ifs"
12462     test -z "$ac_dir" && ac_dir=.
12463     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12464       lt_cv_path_LD="$ac_dir/$ac_prog"
12465       # Check to see if the program is GNU ld.  I'd rather use --version,
12466       # but apparently some variants of GNU ld only accept -v.
12467       # Break only if it was the GNU/non-GNU ld that we prefer.
12468       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12469       *GNU* | *'with BFD'*)
12470         test "$with_gnu_ld" != no && break
12471         ;;
12472       *)
12473         test "$with_gnu_ld" != yes && break
12474         ;;
12475       esac
12476     fi
12477   done
12478   IFS="$lt_save_ifs"
12479 else
12480   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12481 fi
12482 fi
12483
12484 LD="$lt_cv_path_LD"
12485 if test -n "$LD"; then
12486   { echo "$as_me:$LINENO: result: $LD" >&5
12487 echo "${ECHO_T}$LD" >&6; }
12488 else
12489   { echo "$as_me:$LINENO: result: no" >&5
12490 echo "${ECHO_T}no" >&6; }
12491 fi
12492 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12493 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12494    { (exit 1); exit 1; }; }
12495 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12496 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12497 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12501 case `$LD -v 2>&1 </dev/null` in
12502 *GNU* | *'with BFD'*)
12503   lt_cv_prog_gnu_ld=yes
12504   ;;
12505 *)
12506   lt_cv_prog_gnu_ld=no
12507   ;;
12508 esac
12509 fi
12510 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12511 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12512 with_gnu_ld=$lt_cv_prog_gnu_ld
12513
12514
12515
12516   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12517   # archiving commands below assume that GNU ld is being used.
12518   if test "$with_gnu_ld" = yes; then
12519     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12520     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'
12521
12522     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12523     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12524
12525     # If archive_cmds runs LD, not CC, wlarc should be empty
12526     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12527     #     investigate it a little bit more. (MM)
12528     wlarc='${wl}'
12529
12530     # ancient GNU ld didn't support --whole-archive et. al.
12531     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12532         grep 'no-whole-archive' > /dev/null; then
12533       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12534     else
12535       whole_archive_flag_spec_CXX=
12536     fi
12537   else
12538     with_gnu_ld=no
12539     wlarc=
12540
12541     # A generic and very simple default shared library creation
12542     # command for GNU C++ for the case where it uses the native
12543     # linker, instead of GNU ld.  If possible, this setting should
12544     # overridden to take advantage of the native linker features on
12545     # the platform it is being used on.
12546     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12547   fi
12548
12549   # Commands to make compiler produce verbose output that lists
12550   # what "hidden" libraries, object files and flags are used when
12551   # linking a shared library.
12552   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12553
12554 else
12555   GXX=no
12556   with_gnu_ld=no
12557   wlarc=
12558 fi
12559
12560 # PORTME: fill in a description of your system's C++ link characteristics
12561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12563 ld_shlibs_CXX=yes
12564 case $host_os in
12565   aix3*)
12566     # FIXME: insert proper C++ library support
12567     ld_shlibs_CXX=no
12568     ;;
12569   aix4* | aix5*)
12570     if test "$host_cpu" = ia64; then
12571       # On IA64, the linker does run time linking by default, so we don't
12572       # have to do anything special.
12573       aix_use_runtimelinking=no
12574       exp_sym_flag='-Bexport'
12575       no_entry_flag=""
12576     else
12577       aix_use_runtimelinking=no
12578
12579       # Test if we are trying to use run time linking or normal
12580       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12581       # need to do runtime linking.
12582       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12583         for ld_flag in $LDFLAGS; do
12584           case $ld_flag in
12585           *-brtl*)
12586             aix_use_runtimelinking=yes
12587             break
12588             ;;
12589           esac
12590         done
12591         ;;
12592       esac
12593
12594       exp_sym_flag='-bexport'
12595       no_entry_flag='-bnoentry'
12596     fi
12597
12598     # When large executables or shared objects are built, AIX ld can
12599     # have problems creating the table of contents.  If linking a library
12600     # or program results in "error TOC overflow" add -mminimal-toc to
12601     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12602     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12603
12604     archive_cmds_CXX=''
12605     hardcode_direct_CXX=yes
12606     hardcode_libdir_separator_CXX=':'
12607     link_all_deplibs_CXX=yes
12608
12609     if test "$GXX" = yes; then
12610       case $host_os in aix4.[012]|aix4.[012].*)
12611       # We only want to do this on AIX 4.2 and lower, the check
12612       # below for broken collect2 doesn't work under 4.3+
12613         collect2name=`${CC} -print-prog-name=collect2`
12614         if test -f "$collect2name" && \
12615            strings "$collect2name" | grep resolve_lib_name >/dev/null
12616         then
12617           # We have reworked collect2
12618           hardcode_direct_CXX=yes
12619         else
12620           # We have old collect2
12621           hardcode_direct_CXX=unsupported
12622           # It fails to find uninstalled libraries when the uninstalled
12623           # path is not listed in the libpath.  Setting hardcode_minus_L
12624           # to unsupported forces relinking
12625           hardcode_minus_L_CXX=yes
12626           hardcode_libdir_flag_spec_CXX='-L$libdir'
12627           hardcode_libdir_separator_CXX=
12628         fi
12629         ;;
12630       esac
12631       shared_flag='-shared'
12632       if test "$aix_use_runtimelinking" = yes; then
12633         shared_flag="$shared_flag "'${wl}-G'
12634       fi
12635     else
12636       # not using gcc
12637       if test "$host_cpu" = ia64; then
12638         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12639         # chokes on -Wl,-G. The following line is correct:
12640         shared_flag='-G'
12641       else
12642         if test "$aix_use_runtimelinking" = yes; then
12643           shared_flag='${wl}-G'
12644         else
12645           shared_flag='${wl}-bM:SRE'
12646         fi
12647       fi
12648     fi
12649
12650     # It seems that -bexpall does not export symbols beginning with
12651     # underscore (_), so it is better to generate a list of symbols to export.
12652     always_export_symbols_CXX=yes
12653     if test "$aix_use_runtimelinking" = yes; then
12654       # Warning - without using the other runtime loading flags (-brtl),
12655       # -berok will link without error, but may produce a broken library.
12656       allow_undefined_flag_CXX='-berok'
12657       # Determine the default libpath from the value encoded in an empty executable.
12658       cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664
12665 int
12666 main ()
12667 {
12668
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (ac_try="$ac_link"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_link") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } &&
12687          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12688   { (case "(($ac_try" in
12689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690   *) ac_try_echo=$ac_try;;
12691 esac
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693   (eval "$ac_try") 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; } &&
12697          { ac_try='test -s conftest$ac_exeext'
12698   { (case "(($ac_try" in
12699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700   *) ac_try_echo=$ac_try;;
12701 esac
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703   (eval "$ac_try") 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; }; then
12707
12708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12709 }'`
12710 # Check for a 64-bit object if we didn't find anything.
12711 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; }
12712 }'`; fi
12713 else
12714   echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717
12718 fi
12719
12720 rm -f conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext conftest.$ac_ext
12722 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12723
12724       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12725
12726       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"
12727      else
12728       if test "$host_cpu" = ia64; then
12729         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12730         allow_undefined_flag_CXX="-z nodefs"
12731         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"
12732       else
12733         # Determine the default libpath from the value encoded in an empty executable.
12734         cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740
12741 int
12742 main ()
12743 {
12744
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_link") 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12764   { (case "(($ac_try" in
12765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766   *) ac_try_echo=$ac_try;;
12767 esac
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769   (eval "$ac_try") 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; } &&
12773          { ac_try='test -s conftest$ac_exeext'
12774   { (case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_try") 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; }; then
12783
12784 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12785 }'`
12786 # Check for a 64-bit object if we didn't find anything.
12787 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; }
12788 }'`; fi
12789 else
12790   echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793
12794 fi
12795
12796 rm -f conftest.err conftest.$ac_objext \
12797       conftest$ac_exeext conftest.$ac_ext
12798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12799
12800         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12801         # Warning - without using the other run time loading flags,
12802         # -berok will link without error, but may produce a broken library.
12803         no_undefined_flag_CXX=' ${wl}-bernotok'
12804         allow_undefined_flag_CXX=' ${wl}-berok'
12805         # Exported symbols can be pulled into shared objects from archives
12806         whole_archive_flag_spec_CXX='$convenience'
12807         archive_cmds_need_lc_CXX=yes
12808         # This is similar to how AIX traditionally builds its shared libraries.
12809         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'
12810       fi
12811     fi
12812     ;;
12813
12814   beos*)
12815     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12816       allow_undefined_flag_CXX=unsupported
12817       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12818       # support --undefined.  This deserves some investigation.  FIXME
12819       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820     else
12821       ld_shlibs_CXX=no
12822     fi
12823     ;;
12824
12825   chorus*)
12826     case $cc_basename in
12827       *)
12828         # FIXME: insert proper C++ library support
12829         ld_shlibs_CXX=no
12830         ;;
12831     esac
12832     ;;
12833
12834   cygwin* | mingw* | pw32*)
12835     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12836     # as there is no search path for DLLs.
12837     hardcode_libdir_flag_spec_CXX='-L$libdir'
12838     allow_undefined_flag_CXX=unsupported
12839     always_export_symbols_CXX=no
12840     enable_shared_with_static_runtimes_CXX=yes
12841
12842     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12843       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'
12844       # If the export-symbols file already is a .def file (1st line
12845       # is EXPORTS), use it as is; otherwise, prepend...
12846       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12847         cp $export_symbols $output_objdir/$soname.def;
12848       else
12849         echo EXPORTS > $output_objdir/$soname.def;
12850         cat $export_symbols >> $output_objdir/$soname.def;
12851       fi~
12852       $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'
12853     else
12854       ld_shlibs_CXX=no
12855     fi
12856   ;;
12857       darwin* | rhapsody*)
12858         case $host_os in
12859         rhapsody* | darwin1.[012])
12860          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12861          ;;
12862        *) # Darwin 1.3 on
12863          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12864            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12865          else
12866            case ${MACOSX_DEPLOYMENT_TARGET} in
12867              10.[012])
12868                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12869                ;;
12870              10.*)
12871                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12872                ;;
12873            esac
12874          fi
12875          ;;
12876         esac
12877       archive_cmds_need_lc_CXX=no
12878       hardcode_direct_CXX=no
12879       hardcode_automatic_CXX=yes
12880       hardcode_shlibpath_var_CXX=unsupported
12881       whole_archive_flag_spec_CXX=''
12882       link_all_deplibs_CXX=yes
12883
12884     if test "$GXX" = yes ; then
12885       lt_int_apple_cc_single_mod=no
12886       output_verbose_link_cmd='echo'
12887       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12888        lt_int_apple_cc_single_mod=yes
12889       fi
12890       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12891        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12892       else
12893           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'
12894         fi
12895         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12896         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12897           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12898             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}'
12899           else
12900             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}'
12901           fi
12902             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}'
12903       else
12904       case $cc_basename in
12905         xlc*)
12906          output_verbose_link_cmd='echo'
12907           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'
12908           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12909           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12910           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}'
12911           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}'
12912           ;;
12913        *)
12914          ld_shlibs_CXX=no
12915           ;;
12916       esac
12917       fi
12918         ;;
12919
12920   dgux*)
12921     case $cc_basename in
12922       ec++*)
12923         # FIXME: insert proper C++ library support
12924         ld_shlibs_CXX=no
12925         ;;
12926       ghcx*)
12927         # Green Hills C++ Compiler
12928         # FIXME: insert proper C++ library support
12929         ld_shlibs_CXX=no
12930         ;;
12931       *)
12932         # FIXME: insert proper C++ library support
12933         ld_shlibs_CXX=no
12934         ;;
12935     esac
12936     ;;
12937   freebsd[12]*)
12938     # C++ shared libraries reported to be fairly broken before switch to ELF
12939     ld_shlibs_CXX=no
12940     ;;
12941   freebsd-elf*)
12942     archive_cmds_need_lc_CXX=no
12943     ;;
12944   freebsd* | dragonfly*)
12945     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12946     # conventions
12947     ld_shlibs_CXX=yes
12948     ;;
12949   gnu*)
12950     ;;
12951   hpux9*)
12952     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12953     hardcode_libdir_separator_CXX=:
12954     export_dynamic_flag_spec_CXX='${wl}-E'
12955     hardcode_direct_CXX=yes
12956     hardcode_minus_L_CXX=yes # Not in the search PATH,
12957                                 # but as the default
12958                                 # location of the library.
12959
12960     case $cc_basename in
12961     CC*)
12962       # FIXME: insert proper C++ library support
12963       ld_shlibs_CXX=no
12964       ;;
12965     aCC*)
12966       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'
12967       # Commands to make compiler produce verbose output that lists
12968       # what "hidden" libraries, object files and flags are used when
12969       # linking a shared library.
12970       #
12971       # There doesn't appear to be a way to prevent this compiler from
12972       # explicitly linking system object files so we need to strip them
12973       # from the output so that they don't get included in the library
12974       # dependencies.
12975       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'
12976       ;;
12977     *)
12978       if test "$GXX" = yes; then
12979         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'
12980       else
12981         # FIXME: insert proper C++ library support
12982         ld_shlibs_CXX=no
12983       fi
12984       ;;
12985     esac
12986     ;;
12987   hpux10*|hpux11*)
12988     if test $with_gnu_ld = no; then
12989       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12990       hardcode_libdir_separator_CXX=:
12991
12992       case $host_cpu in
12993       hppa*64*|ia64*)
12994         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12995         ;;
12996       *)
12997         export_dynamic_flag_spec_CXX='${wl}-E'
12998         ;;
12999       esac
13000     fi
13001     case $host_cpu in
13002     hppa*64*|ia64*)
13003       hardcode_direct_CXX=no
13004       hardcode_shlibpath_var_CXX=no
13005       ;;
13006     *)
13007       hardcode_direct_CXX=yes
13008       hardcode_minus_L_CXX=yes # Not in the search PATH,
13009                                               # but as the default
13010                                               # location of the library.
13011       ;;
13012     esac
13013
13014     case $cc_basename in
13015       CC*)
13016         # FIXME: insert proper C++ library support
13017         ld_shlibs_CXX=no
13018         ;;
13019       aCC*)
13020         case $host_cpu in
13021         hppa*64*)
13022           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023           ;;
13024         ia64*)
13025           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026           ;;
13027         *)
13028           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13029           ;;
13030         esac
13031         # Commands to make compiler produce verbose output that lists
13032         # what "hidden" libraries, object files and flags are used when
13033         # linking a shared library.
13034         #
13035         # There doesn't appear to be a way to prevent this compiler from
13036         # explicitly linking system object files so we need to strip them
13037         # from the output so that they don't get included in the library
13038         # dependencies.
13039         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'
13040         ;;
13041       *)
13042         if test "$GXX" = yes; then
13043           if test $with_gnu_ld = no; then
13044             case $host_cpu in
13045             hppa*64*)
13046               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13047               ;;
13048             ia64*)
13049               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13050               ;;
13051             *)
13052               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'
13053               ;;
13054             esac
13055           fi
13056         else
13057           # FIXME: insert proper C++ library support
13058           ld_shlibs_CXX=no
13059         fi
13060         ;;
13061     esac
13062     ;;
13063   interix3*)
13064     hardcode_direct_CXX=no
13065     hardcode_shlibpath_var_CXX=no
13066     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13067     export_dynamic_flag_spec_CXX='${wl}-E'
13068     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13069     # Instead, shared libraries are loaded at an image base (0x10000000 by
13070     # default) and relocated if they conflict, which is a slow very memory
13071     # consuming and fragmenting process.  To avoid this, we pick a random,
13072     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13073     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13074     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'
13075     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'
13076     ;;
13077   irix5* | irix6*)
13078     case $cc_basename in
13079       CC*)
13080         # SGI C++
13081         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'
13082
13083         # Archives containing C++ object files must be created using
13084         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13085         # necessary to make sure instantiated templates are included
13086         # in the archive.
13087         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13088         ;;
13089       *)
13090         if test "$GXX" = yes; then
13091           if test "$with_gnu_ld" = no; then
13092             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'
13093           else
13094             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'
13095           fi
13096         fi
13097         link_all_deplibs_CXX=yes
13098         ;;
13099     esac
13100     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13101     hardcode_libdir_separator_CXX=:
13102     ;;
13103   linux* | k*bsd*-gnu)
13104     case $cc_basename in
13105       KCC*)
13106         # Kuck and Associates, Inc. (KAI) C++ Compiler
13107
13108         # KCC will only create a shared library if the output file
13109         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13110         # to its proper name (with version) after linking.
13111         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'
13112         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'
13113         # Commands to make compiler produce verbose output that lists
13114         # what "hidden" libraries, object files and flags are used when
13115         # linking a shared library.
13116         #
13117         # There doesn't appear to be a way to prevent this compiler from
13118         # explicitly linking system object files so we need to strip them
13119         # from the output so that they don't get included in the library
13120         # dependencies.
13121         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'
13122
13123         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13124         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13125
13126         # Archives containing C++ object files must be created using
13127         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13128         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13129         ;;
13130       icpc*)
13131         # Intel C++
13132         with_gnu_ld=yes
13133         # version 8.0 and above of icpc choke on multiply defined symbols
13134         # if we add $predep_objects and $postdep_objects, however 7.1 and
13135         # earlier do not add the objects themselves.
13136         case `$CC -V 2>&1` in
13137         *"Version 7."*)
13138           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139           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'
13140           ;;
13141         *)  # Version 8.0 or newer
13142           tmp_idyn=
13143           case $host_cpu in
13144             ia64*) tmp_idyn=' -i_dynamic';;
13145           esac
13146           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147           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'
13148           ;;
13149         esac
13150         archive_cmds_need_lc_CXX=no
13151         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13152         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13153         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13154         ;;
13155       pgCC*)
13156         # Portland Group C++ compiler
13157         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13158         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'
13159
13160         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13161         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13162         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'
13163         ;;
13164       cxx*)
13165         # Compaq C++
13166         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13167         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'
13168
13169         runpath_var=LD_RUN_PATH
13170         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171         hardcode_libdir_separator_CXX=:
13172
13173         # Commands to make compiler produce verbose output that lists
13174         # what "hidden" libraries, object files and flags are used when
13175         # linking a shared library.
13176         #
13177         # There doesn't appear to be a way to prevent this compiler from
13178         # explicitly linking system object files so we need to strip them
13179         # from the output so that they don't get included in the library
13180         # dependencies.
13181         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'
13182         ;;
13183     esac
13184     ;;
13185   lynxos*)
13186     # FIXME: insert proper C++ library support
13187     ld_shlibs_CXX=no
13188     ;;
13189   m88k*)
13190     # FIXME: insert proper C++ library support
13191     ld_shlibs_CXX=no
13192     ;;
13193   mvs*)
13194     case $cc_basename in
13195       cxx*)
13196         # FIXME: insert proper C++ library support
13197         ld_shlibs_CXX=no
13198         ;;
13199       *)
13200         # FIXME: insert proper C++ library support
13201         ld_shlibs_CXX=no
13202         ;;
13203     esac
13204     ;;
13205   netbsd* | netbsdelf*-gnu)
13206     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13207       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13208       wlarc=
13209       hardcode_libdir_flag_spec_CXX='-R$libdir'
13210       hardcode_direct_CXX=yes
13211       hardcode_shlibpath_var_CXX=no
13212     fi
13213     # Workaround some broken pre-1.5 toolchains
13214     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13215     ;;
13216   openbsd2*)
13217     # C++ shared libraries are fairly broken
13218     ld_shlibs_CXX=no
13219     ;;
13220   openbsd*)
13221     hardcode_direct_CXX=yes
13222     hardcode_shlibpath_var_CXX=no
13223     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13224     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13225     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13226       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13227       export_dynamic_flag_spec_CXX='${wl}-E'
13228       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13229     fi
13230     output_verbose_link_cmd='echo'
13231     ;;
13232   osf3*)
13233     case $cc_basename in
13234       KCC*)
13235         # Kuck and Associates, Inc. (KAI) C++ Compiler
13236
13237         # KCC will only create a shared library if the output file
13238         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239         # to its proper name (with version) after linking.
13240         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'
13241
13242         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243         hardcode_libdir_separator_CXX=:
13244
13245         # Archives containing C++ object files must be created using
13246         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13247         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13248
13249         ;;
13250       RCC*)
13251         # Rational C++ 2.4.1
13252         # FIXME: insert proper C++ library support
13253         ld_shlibs_CXX=no
13254         ;;
13255       cxx*)
13256         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13257         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'
13258
13259         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260         hardcode_libdir_separator_CXX=:
13261
13262         # Commands to make compiler produce verbose output that lists
13263         # what "hidden" libraries, object files and flags are used when
13264         # linking a shared library.
13265         #
13266         # There doesn't appear to be a way to prevent this compiler from
13267         # explicitly linking system object files so we need to strip them
13268         # from the output so that they don't get included in the library
13269         # dependencies.
13270         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'
13271         ;;
13272       *)
13273         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13274           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13275           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'
13276
13277           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278           hardcode_libdir_separator_CXX=:
13279
13280           # Commands to make compiler produce verbose output that lists
13281           # what "hidden" libraries, object files and flags are used when
13282           # linking a shared library.
13283           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13284
13285         else
13286           # FIXME: insert proper C++ library support
13287           ld_shlibs_CXX=no
13288         fi
13289         ;;
13290     esac
13291     ;;
13292   osf4* | osf5*)
13293     case $cc_basename in
13294       KCC*)
13295         # Kuck and Associates, Inc. (KAI) C++ Compiler
13296
13297         # KCC will only create a shared library if the output file
13298         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13299         # to its proper name (with version) after linking.
13300         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'
13301
13302         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303         hardcode_libdir_separator_CXX=:
13304
13305         # Archives containing C++ object files must be created using
13306         # the KAI C++ compiler.
13307         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13308         ;;
13309       RCC*)
13310         # Rational C++ 2.4.1
13311         # FIXME: insert proper C++ library support
13312         ld_shlibs_CXX=no
13313         ;;
13314       cxx*)
13315         allow_undefined_flag_CXX=' -expect_unresolved \*'
13316         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'
13317         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13318           echo "-hidden">> $lib.exp~
13319           $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~
13320           $rm $lib.exp'
13321
13322         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323         hardcode_libdir_separator_CXX=:
13324
13325         # Commands to make compiler produce verbose output that lists
13326         # what "hidden" libraries, object files and flags are used when
13327         # linking a shared library.
13328         #
13329         # There doesn't appear to be a way to prevent this compiler from
13330         # explicitly linking system object files so we need to strip them
13331         # from the output so that they don't get included in the library
13332         # dependencies.
13333         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'
13334         ;;
13335       *)
13336         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13337           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13338          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'
13339
13340           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341           hardcode_libdir_separator_CXX=:
13342
13343           # Commands to make compiler produce verbose output that lists
13344           # what "hidden" libraries, object files and flags are used when
13345           # linking a shared library.
13346           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13347
13348         else
13349           # FIXME: insert proper C++ library support
13350           ld_shlibs_CXX=no
13351         fi
13352         ;;
13353     esac
13354     ;;
13355   psos*)
13356     # FIXME: insert proper C++ library support
13357     ld_shlibs_CXX=no
13358     ;;
13359   sunos4*)
13360     case $cc_basename in
13361       CC*)
13362         # Sun C++ 4.x
13363         # FIXME: insert proper C++ library support
13364         ld_shlibs_CXX=no
13365         ;;
13366       lcc*)
13367         # Lucid
13368         # FIXME: insert proper C++ library support
13369         ld_shlibs_CXX=no
13370         ;;
13371       *)
13372         # FIXME: insert proper C++ library support
13373         ld_shlibs_CXX=no
13374         ;;
13375     esac
13376     ;;
13377   solaris*)
13378     case $cc_basename in
13379       CC*)
13380         # Sun C++ 4.2, 5.x and Centerline C++
13381         archive_cmds_need_lc_CXX=yes
13382         no_undefined_flag_CXX=' -zdefs'
13383         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13384         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13385         $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'
13386
13387         hardcode_libdir_flag_spec_CXX='-R$libdir'
13388         hardcode_shlibpath_var_CXX=no
13389         case $host_os in
13390           solaris2.[0-5] | solaris2.[0-5].*) ;;
13391           *)
13392             # The C++ compiler is used as linker so we must use $wl
13393             # flag to pass the commands to the underlying system
13394             # linker. We must also pass each convience library through
13395             # to the system linker between allextract/defaultextract.
13396             # The C++ compiler will combine linker options so we
13397             # cannot just pass the convience library names through
13398             # without $wl.
13399             # Supported since Solaris 2.6 (maybe 2.5.1?)
13400             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'
13401             ;;
13402         esac
13403         link_all_deplibs_CXX=yes
13404
13405         output_verbose_link_cmd='echo'
13406
13407         # Archives containing C++ object files must be created using
13408         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13409         # necessary to make sure instantiated templates are included
13410         # in the archive.
13411         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13412         ;;
13413       gcx*)
13414         # Green Hills C++ Compiler
13415         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13416
13417         # The C++ compiler must be used to create the archive.
13418         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13419         ;;
13420       *)
13421         # GNU C++ compiler with Solaris linker
13422         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13423           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13424           if $CC --version | grep -v '^2\.7' > /dev/null; then
13425             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13426             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13427                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13428
13429             # Commands to make compiler produce verbose output that lists
13430             # what "hidden" libraries, object files and flags are used when
13431             # linking a shared library.
13432             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13433           else
13434             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13435             # platform.
13436             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13437             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13438                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13439
13440             # Commands to make compiler produce verbose output that lists
13441             # what "hidden" libraries, object files and flags are used when
13442             # linking a shared library.
13443             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13444           fi
13445
13446           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13447         fi
13448         ;;
13449     esac
13450     ;;
13451   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452     no_undefined_flag_CXX='${wl}-z,text'
13453     archive_cmds_need_lc_CXX=no
13454     hardcode_shlibpath_var_CXX=no
13455     runpath_var='LD_RUN_PATH'
13456
13457     case $cc_basename in
13458       CC*)
13459         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461         ;;
13462       *)
13463         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465         ;;
13466     esac
13467     ;;
13468   sysv5* | sco3.2v5* | sco5v6*)
13469     # Note: We can NOT use -z defs as we might desire, because we do not
13470     # link with -lc, and that would cause any symbols used from libc to
13471     # always be unresolved, which means just about no library would
13472     # ever link correctly.  If we're not using GNU ld we use -z text
13473     # though, which does catch some bad symbols but isn't as heavy-handed
13474     # as -z defs.
13475     # For security reasons, it is highly recommended that you always
13476     # use absolute paths for naming shared libraries, and exclude the
13477     # DT_RUNPATH tag from executables and libraries.  But doing so
13478     # requires that you compile everything twice, which is a pain.
13479     # So that behaviour is only enabled if SCOABSPATH is set to a
13480     # non-empty value in the environment.  Most likely only useful for
13481     # creating official distributions of packages.
13482     # This is a hack until libtool officially supports absolute path
13483     # names for shared libraries.
13484     no_undefined_flag_CXX='${wl}-z,text'
13485     allow_undefined_flag_CXX='${wl}-z,nodefs'
13486     archive_cmds_need_lc_CXX=no
13487     hardcode_shlibpath_var_CXX=no
13488     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13489     hardcode_libdir_separator_CXX=':'
13490     link_all_deplibs_CXX=yes
13491     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13492     runpath_var='LD_RUN_PATH'
13493
13494     case $cc_basename in
13495       CC*)
13496         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498         ;;
13499       *)
13500         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502         ;;
13503     esac
13504     ;;
13505   tandem*)
13506     case $cc_basename in
13507       NCC*)
13508         # NonStop-UX NCC 3.20
13509         # FIXME: insert proper C++ library support
13510         ld_shlibs_CXX=no
13511         ;;
13512       *)
13513         # FIXME: insert proper C++ library support
13514         ld_shlibs_CXX=no
13515         ;;
13516     esac
13517     ;;
13518   vxworks*)
13519     # FIXME: insert proper C++ library support
13520     ld_shlibs_CXX=no
13521     ;;
13522   *)
13523     # FIXME: insert proper C++ library support
13524     ld_shlibs_CXX=no
13525     ;;
13526 esac
13527 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13528 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13529 test "$ld_shlibs_CXX" = no && can_build_shared=no
13530
13531 GCC_CXX="$GXX"
13532 LD_CXX="$LD"
13533
13534
13535 cat > conftest.$ac_ext <<EOF
13536 class Foo
13537 {
13538 public:
13539   Foo (void) { a = 0; }
13540 private:
13541   int a;
13542 };
13543 EOF
13544
13545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13546   (eval $ac_compile) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; then
13550   # Parse the compiler output and extract the necessary
13551   # objects, libraries and library flags.
13552
13553   # Sentinel used to keep track of whether or not we are before
13554   # the conftest object file.
13555   pre_test_object_deps_done=no
13556
13557   # The `*' in the case matches for architectures that use `case' in
13558   # $output_verbose_cmd can trigger glob expansion during the loop
13559   # eval without this substitution.
13560   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13561
13562   for p in `eval $output_verbose_link_cmd`; do
13563     case $p in
13564
13565     -L* | -R* | -l*)
13566        # Some compilers place space between "-{L,R}" and the path.
13567        # Remove the space.
13568        if test $p = "-L" \
13569           || test $p = "-R"; then
13570          prev=$p
13571          continue
13572        else
13573          prev=
13574        fi
13575
13576        if test "$pre_test_object_deps_done" = no; then
13577          case $p in
13578          -L* | -R*)
13579            # Internal compiler library paths should come after those
13580            # provided the user.  The postdeps already come after the
13581            # user supplied libs so there is no need to process them.
13582            if test -z "$compiler_lib_search_path_CXX"; then
13583              compiler_lib_search_path_CXX="${prev}${p}"
13584            else
13585              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13586            fi
13587            ;;
13588          # The "-l" case would never come before the object being
13589          # linked, so don't bother handling this case.
13590          esac
13591        else
13592          if test -z "$postdeps_CXX"; then
13593            postdeps_CXX="${prev}${p}"
13594          else
13595            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13596          fi
13597        fi
13598        ;;
13599
13600     *.$objext)
13601        # This assumes that the test object file only shows up
13602        # once in the compiler output.
13603        if test "$p" = "conftest.$objext"; then
13604          pre_test_object_deps_done=yes
13605          continue
13606        fi
13607
13608        if test "$pre_test_object_deps_done" = no; then
13609          if test -z "$predep_objects_CXX"; then
13610            predep_objects_CXX="$p"
13611          else
13612            predep_objects_CXX="$predep_objects_CXX $p"
13613          fi
13614        else
13615          if test -z "$postdep_objects_CXX"; then
13616            postdep_objects_CXX="$p"
13617          else
13618            postdep_objects_CXX="$postdep_objects_CXX $p"
13619          fi
13620        fi
13621        ;;
13622
13623     *) ;; # Ignore the rest.
13624
13625     esac
13626   done
13627
13628   # Clean up.
13629   rm -f a.out a.exe
13630 else
13631   echo "libtool.m4: error: problem compiling CXX test program"
13632 fi
13633
13634 $rm -f confest.$objext
13635
13636 # PORTME: override above test on systems where it is broken
13637 case $host_os in
13638 interix3*)
13639   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13640   # hack all around it, let's just trust "g++" to DTRT.
13641   predep_objects_CXX=
13642   postdep_objects_CXX=
13643   postdeps_CXX=
13644   ;;
13645
13646 solaris*)
13647   case $cc_basename in
13648   CC*)
13649     # Adding this requires a known-good setup of shared libraries for
13650     # Sun compiler versions before 5.6, else PIC objects from an old
13651     # archive will be linked into the output, leading to subtle bugs.
13652     postdeps_CXX='-lCstd -lCrun'
13653     ;;
13654   esac
13655   ;;
13656 esac
13657
13658
13659 case " $postdeps_CXX " in
13660 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13661 esac
13662
13663 lt_prog_compiler_wl_CXX=
13664 lt_prog_compiler_pic_CXX=
13665 lt_prog_compiler_static_CXX=
13666
13667 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13668 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13669
13670   # C++ specific cases for pic, static, wl, etc.
13671   if test "$GXX" = yes; then
13672     lt_prog_compiler_wl_CXX='-Wl,'
13673     lt_prog_compiler_static_CXX='-static'
13674
13675     case $host_os in
13676     aix*)
13677       # All AIX code is PIC.
13678       if test "$host_cpu" = ia64; then
13679         # AIX 5 now supports IA64 processor
13680         lt_prog_compiler_static_CXX='-Bstatic'
13681       fi
13682       ;;
13683     amigaos*)
13684       # FIXME: we need at least 68020 code to build shared libraries, but
13685       # adding the `-m68020' flag to GCC prevents building anything better,
13686       # like `-m68040'.
13687       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13688       ;;
13689     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13690       # PIC is the default for these OSes.
13691       ;;
13692     mingw* | os2* | pw32*)
13693       # This hack is so that the source file can tell whether it is being
13694       # built for inclusion in a dll (and should export symbols for example).
13695       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13696       ;;
13697     darwin* | rhapsody*)
13698       # PIC is the default on this platform
13699       # Common symbols not allowed in MH_DYLIB files
13700       lt_prog_compiler_pic_CXX='-fno-common'
13701       ;;
13702     *djgpp*)
13703       # DJGPP does not support shared libraries at all
13704       lt_prog_compiler_pic_CXX=
13705       ;;
13706     interix3*)
13707       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13708       # Instead, we relocate shared libraries at runtime.
13709       ;;
13710     sysv4*MP*)
13711       if test -d /usr/nec; then
13712         lt_prog_compiler_pic_CXX=-Kconform_pic
13713       fi
13714       ;;
13715     hpux*)
13716       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13717       # not for PA HP-UX.
13718       case $host_cpu in
13719       hppa*64*|ia64*)
13720         ;;
13721       *)
13722         lt_prog_compiler_pic_CXX='-fPIC'
13723         ;;
13724       esac
13725       ;;
13726     *)
13727       lt_prog_compiler_pic_CXX='-fPIC'
13728       ;;
13729     esac
13730   else
13731     case $host_os in
13732       aix4* | aix5*)
13733         # All AIX code is PIC.
13734         if test "$host_cpu" = ia64; then
13735           # AIX 5 now supports IA64 processor
13736           lt_prog_compiler_static_CXX='-Bstatic'
13737         else
13738           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13739         fi
13740         ;;
13741       chorus*)
13742         case $cc_basename in
13743         cxch68*)
13744           # Green Hills C++ Compiler
13745           # _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"
13746           ;;
13747         esac
13748         ;;
13749        darwin*)
13750          # PIC is the default on this platform
13751          # Common symbols not allowed in MH_DYLIB files
13752          case $cc_basename in
13753            xlc*)
13754            lt_prog_compiler_pic_CXX='-qnocommon'
13755            lt_prog_compiler_wl_CXX='-Wl,'
13756            ;;
13757          esac
13758        ;;
13759       dgux*)
13760         case $cc_basename in
13761           ec++*)
13762             lt_prog_compiler_pic_CXX='-KPIC'
13763             ;;
13764           ghcx*)
13765             # Green Hills C++ Compiler
13766             lt_prog_compiler_pic_CXX='-pic'
13767             ;;
13768           *)
13769             ;;
13770         esac
13771         ;;
13772       freebsd* | dragonfly*)
13773         # FreeBSD uses GNU C++
13774         ;;
13775       hpux9* | hpux10* | hpux11*)
13776         case $cc_basename in
13777           CC*)
13778             lt_prog_compiler_wl_CXX='-Wl,'
13779             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13780             if test "$host_cpu" != ia64; then
13781               lt_prog_compiler_pic_CXX='+Z'
13782             fi
13783             ;;
13784           aCC*)
13785             lt_prog_compiler_wl_CXX='-Wl,'
13786             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13787             case $host_cpu in
13788             hppa*64*|ia64*)
13789               # +Z the default
13790               ;;
13791             *)
13792               lt_prog_compiler_pic_CXX='+Z'
13793               ;;
13794             esac
13795             ;;
13796           *)
13797             ;;
13798         esac
13799         ;;
13800       interix*)
13801         # This is c89, which is MS Visual C++ (no shared libs)
13802         # Anyone wants to do a port?
13803         ;;
13804       irix5* | irix6* | nonstopux*)
13805         case $cc_basename in
13806           CC*)
13807             lt_prog_compiler_wl_CXX='-Wl,'
13808             lt_prog_compiler_static_CXX='-non_shared'
13809             # CC pic flag -KPIC is the default.
13810             ;;
13811           *)
13812             ;;
13813         esac
13814         ;;
13815       linux* | k*bsd*-gnu)
13816         case $cc_basename in
13817           KCC*)
13818             # KAI C++ Compiler
13819             lt_prog_compiler_wl_CXX='--backend -Wl,'
13820             lt_prog_compiler_pic_CXX='-fPIC'
13821             ;;
13822           icpc* | ecpc*)
13823             # Intel C++
13824             lt_prog_compiler_wl_CXX='-Wl,'
13825             lt_prog_compiler_pic_CXX='-KPIC'
13826             lt_prog_compiler_static_CXX='-static'
13827             ;;
13828           pgCC*)
13829             # Portland Group C++ compiler.
13830             lt_prog_compiler_wl_CXX='-Wl,'
13831             lt_prog_compiler_pic_CXX='-fpic'
13832             lt_prog_compiler_static_CXX='-Bstatic'
13833             ;;
13834           cxx*)
13835             # Compaq C++
13836             # Make sure the PIC flag is empty.  It appears that all Alpha
13837             # Linux and Compaq Tru64 Unix objects are PIC.
13838             lt_prog_compiler_pic_CXX=
13839             lt_prog_compiler_static_CXX='-non_shared'
13840             ;;
13841           *)
13842             ;;
13843         esac
13844         ;;
13845       lynxos*)
13846         ;;
13847       m88k*)
13848         ;;
13849       mvs*)
13850         case $cc_basename in
13851           cxx*)
13852             lt_prog_compiler_pic_CXX='-W c,exportall'
13853             ;;
13854           *)
13855             ;;
13856         esac
13857         ;;
13858       netbsd* | netbsdelf*-gnu)
13859         ;;
13860       osf3* | osf4* | osf5*)
13861         case $cc_basename in
13862           KCC*)
13863             lt_prog_compiler_wl_CXX='--backend -Wl,'
13864             ;;
13865           RCC*)
13866             # Rational C++ 2.4.1
13867             lt_prog_compiler_pic_CXX='-pic'
13868             ;;
13869           cxx*)
13870             # Digital/Compaq C++
13871             lt_prog_compiler_wl_CXX='-Wl,'
13872             # Make sure the PIC flag is empty.  It appears that all Alpha
13873             # Linux and Compaq Tru64 Unix objects are PIC.
13874             lt_prog_compiler_pic_CXX=
13875             lt_prog_compiler_static_CXX='-non_shared'
13876             ;;
13877           *)
13878             ;;
13879         esac
13880         ;;
13881       psos*)
13882         ;;
13883       solaris*)
13884         case $cc_basename in
13885           CC*)
13886             # Sun C++ 4.2, 5.x and Centerline C++
13887             lt_prog_compiler_pic_CXX='-KPIC'
13888             lt_prog_compiler_static_CXX='-Bstatic'
13889             lt_prog_compiler_wl_CXX='-Qoption ld '
13890             ;;
13891           gcx*)
13892             # Green Hills C++ Compiler
13893             lt_prog_compiler_pic_CXX='-PIC'
13894             ;;
13895           *)
13896             ;;
13897         esac
13898         ;;
13899       sunos4*)
13900         case $cc_basename in
13901           CC*)
13902             # Sun C++ 4.x
13903             lt_prog_compiler_pic_CXX='-pic'
13904             lt_prog_compiler_static_CXX='-Bstatic'
13905             ;;
13906           lcc*)
13907             # Lucid
13908             lt_prog_compiler_pic_CXX='-pic'
13909             ;;
13910           *)
13911             ;;
13912         esac
13913         ;;
13914       tandem*)
13915         case $cc_basename in
13916           NCC*)
13917             # NonStop-UX NCC 3.20
13918             lt_prog_compiler_pic_CXX='-KPIC'
13919             ;;
13920           *)
13921             ;;
13922         esac
13923         ;;
13924       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13925         case $cc_basename in
13926           CC*)
13927             lt_prog_compiler_wl_CXX='-Wl,'
13928             lt_prog_compiler_pic_CXX='-KPIC'
13929             lt_prog_compiler_static_CXX='-Bstatic'
13930             ;;
13931         esac
13932         ;;
13933       vxworks*)
13934         ;;
13935       *)
13936         lt_prog_compiler_can_build_shared_CXX=no
13937         ;;
13938     esac
13939   fi
13940
13941 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13942 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13943
13944 #
13945 # Check to make sure the PIC flag actually works.
13946 #
13947 if test -n "$lt_prog_compiler_pic_CXX"; then
13948
13949 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13951 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13952   echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954   lt_prog_compiler_pic_works_CXX=no
13955   ac_outfile=conftest.$ac_objext
13956    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13957    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13958    # Insert the option either (1) after the last *FLAGS variable, or
13959    # (2) before a word containing "conftest.", or (3) at the end.
13960    # Note that $ac_compile itself does not contain backslashes and begins
13961    # with a dollar sign (not a hyphen), so the echo should work correctly.
13962    # The option is referenced via a variable to avoid confusing sed.
13963    lt_compile=`echo "$ac_compile" | $SED \
13964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13966    -e 's:$: $lt_compiler_flag:'`
13967    (eval echo "\"\$as_me:13967: $lt_compile\"" >&5)
13968    (eval "$lt_compile" 2>conftest.err)
13969    ac_status=$?
13970    cat conftest.err >&5
13971    echo "$as_me:13971: \$? = $ac_status" >&5
13972    if (exit $ac_status) && test -s "$ac_outfile"; then
13973      # The compiler can only warn and ignore the option if not recognized
13974      # So say no if there are warnings other than the usual output.
13975      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13978        lt_prog_compiler_pic_works_CXX=yes
13979      fi
13980    fi
13981    $rm conftest*
13982
13983 fi
13984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13985 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13986
13987 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13988     case $lt_prog_compiler_pic_CXX in
13989      "" | " "*) ;;
13990      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13991      esac
13992 else
13993     lt_prog_compiler_pic_CXX=
13994      lt_prog_compiler_can_build_shared_CXX=no
13995 fi
13996
13997 fi
13998 case $host_os in
13999   # For platforms which do not support PIC, -DPIC is meaningless:
14000   *djgpp*)
14001     lt_prog_compiler_pic_CXX=
14002     ;;
14003   *)
14004     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14005     ;;
14006 esac
14007
14008 #
14009 # Check to make sure the static flag actually works.
14010 #
14011 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14012 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14013 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14014 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14015   echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017   lt_prog_compiler_static_works_CXX=no
14018    save_LDFLAGS="$LDFLAGS"
14019    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14020    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14021    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14022      # The linker can only warn and ignore the option if not recognized
14023      # So say no if there are warnings
14024      if test -s conftest.err; then
14025        # Append any errors to the config.log.
14026        cat conftest.err 1>&5
14027        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14028        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14029        if diff conftest.exp conftest.er2 >/dev/null; then
14030          lt_prog_compiler_static_works_CXX=yes
14031        fi
14032      else
14033        lt_prog_compiler_static_works_CXX=yes
14034      fi
14035    fi
14036    $rm conftest*
14037    LDFLAGS="$save_LDFLAGS"
14038
14039 fi
14040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14041 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14042
14043 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14044     :
14045 else
14046     lt_prog_compiler_static_CXX=
14047 fi
14048
14049
14050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14052 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   lt_cv_prog_compiler_c_o_CXX=no
14056    $rm -r conftest 2>/dev/null
14057    mkdir conftest
14058    cd conftest
14059    mkdir out
14060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14061
14062    lt_compiler_flag="-o out/conftest2.$ac_objext"
14063    # Insert the option either (1) after the last *FLAGS variable, or
14064    # (2) before a word containing "conftest.", or (3) at the end.
14065    # Note that $ac_compile itself does not contain backslashes and begins
14066    # with a dollar sign (not a hyphen), so the echo should work correctly.
14067    lt_compile=`echo "$ac_compile" | $SED \
14068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14070    -e 's:$: $lt_compiler_flag:'`
14071    (eval echo "\"\$as_me:14071: $lt_compile\"" >&5)
14072    (eval "$lt_compile" 2>out/conftest.err)
14073    ac_status=$?
14074    cat out/conftest.err >&5
14075    echo "$as_me:14075: \$? = $ac_status" >&5
14076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14077    then
14078      # The compiler can only warn and ignore the option if not recognized
14079      # So say no if there are warnings
14080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14081      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14082      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14083        lt_cv_prog_compiler_c_o_CXX=yes
14084      fi
14085    fi
14086    chmod u+w . 2>&5
14087    $rm conftest*
14088    # SGI C++ compiler will create directory out/ii_files/ for
14089    # template instantiation
14090    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14091    $rm out/* && rmdir out
14092    cd ..
14093    rmdir conftest
14094    $rm conftest*
14095
14096 fi
14097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14099
14100
14101 hard_links="nottested"
14102 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14103   # do not overwrite the value of need_locks provided by the user
14104   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14106   hard_links=yes
14107   $rm conftest*
14108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14109   touch conftest.a
14110   ln conftest.a conftest.b 2>&5 || hard_links=no
14111   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14112   { echo "$as_me:$LINENO: result: $hard_links" >&5
14113 echo "${ECHO_T}$hard_links" >&6; }
14114   if test "$hard_links" = no; then
14115     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14116 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14117     need_locks=warn
14118   fi
14119 else
14120   need_locks=no
14121 fi
14122
14123 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14124 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14125
14126   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14127   case $host_os in
14128   aix4* | aix5*)
14129     # If we're using GNU nm, then we don't want the "-C" option.
14130     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14131     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14132       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'
14133     else
14134       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'
14135     fi
14136     ;;
14137   pw32*)
14138     export_symbols_cmds_CXX="$ltdll_cmds"
14139   ;;
14140   cygwin* | mingw*)
14141     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'
14142   ;;
14143   linux* | k*bsd*-gnu)
14144     link_all_deplibs_CXX=no
14145   ;;
14146   *)
14147     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14148   ;;
14149   esac
14150
14151 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14152 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14153 test "$ld_shlibs_CXX" = no && can_build_shared=no
14154
14155 #
14156 # Do we need to explicitly link libc?
14157 #
14158 case "x$archive_cmds_need_lc_CXX" in
14159 x|xyes)
14160   # Assume -lc should be added
14161   archive_cmds_need_lc_CXX=yes
14162
14163   if test "$enable_shared" = yes && test "$GCC" = yes; then
14164     case $archive_cmds_CXX in
14165     *'~'*)
14166       # FIXME: we may have to deal with multi-command sequences.
14167       ;;
14168     '$CC '*)
14169       # Test whether the compiler implicitly links with -lc since on some
14170       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14171       # to ld, don't add -lc before -lgcc.
14172       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14174       $rm conftest*
14175       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14176
14177       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178   (eval $ac_compile) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } 2>conftest.err; then
14182         soname=conftest
14183         lib=conftest
14184         libobjs=conftest.$ac_objext
14185         deplibs=
14186         wl=$lt_prog_compiler_wl_CXX
14187         pic_flag=$lt_prog_compiler_pic_CXX
14188         compiler_flags=-v
14189         linker_flags=-v
14190         verstring=
14191         output_objdir=.
14192         libname=conftest
14193         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14194         allow_undefined_flag_CXX=
14195         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14196   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }
14200         then
14201           archive_cmds_need_lc_CXX=no
14202         else
14203           archive_cmds_need_lc_CXX=yes
14204         fi
14205         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14206       else
14207         cat conftest.err 1>&5
14208       fi
14209       $rm conftest*
14210       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14211 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14212       ;;
14213     esac
14214   fi
14215   ;;
14216 esac
14217
14218 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14219 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14220 library_names_spec=
14221 libname_spec='lib$name'
14222 soname_spec=
14223 shrext_cmds=".so"
14224 postinstall_cmds=
14225 postuninstall_cmds=
14226 finish_cmds=
14227 finish_eval=
14228 shlibpath_var=
14229 shlibpath_overrides_runpath=unknown
14230 version_type=none
14231 dynamic_linker="$host_os ld.so"
14232 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14233 if test "$GCC" = yes; then
14234   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14235   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14236     # if the path contains ";" then we assume it to be the separator
14237     # otherwise default to the standard path separator (i.e. ":") - it is
14238     # assumed that no part of a normal pathname contains ";" but that should
14239     # okay in the real world where ";" in dirpaths is itself problematic.
14240     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14241   else
14242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14243   fi
14244 else
14245   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14246 fi
14247 need_lib_prefix=unknown
14248 hardcode_into_libs=no
14249
14250 # when you set need_version to no, make sure it does not cause -set_version
14251 # flags to be left without arguments
14252 need_version=unknown
14253
14254 case $host_os in
14255 aix3*)
14256   version_type=linux
14257   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14258   shlibpath_var=LIBPATH
14259
14260   # AIX 3 has no versioning support, so we append a major version to the name.
14261   soname_spec='${libname}${release}${shared_ext}$major'
14262   ;;
14263
14264 aix4* | aix5*)
14265   version_type=linux
14266   need_lib_prefix=no
14267   need_version=no
14268   hardcode_into_libs=yes
14269   if test "$host_cpu" = ia64; then
14270     # AIX 5 supports IA64
14271     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14272     shlibpath_var=LD_LIBRARY_PATH
14273   else
14274     # With GCC up to 2.95.x, collect2 would create an import file
14275     # for dependence libraries.  The import file would start with
14276     # the line `#! .'.  This would cause the generated library to
14277     # depend on `.', always an invalid library.  This was fixed in
14278     # development snapshots of GCC prior to 3.0.
14279     case $host_os in
14280       aix4 | aix4.[01] | aix4.[01].*)
14281       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14282            echo ' yes '
14283            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14284         :
14285       else
14286         can_build_shared=no
14287       fi
14288       ;;
14289     esac
14290     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14291     # soname into executable. Probably we can add versioning support to
14292     # collect2, so additional links can be useful in future.
14293     if test "$aix_use_runtimelinking" = yes; then
14294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14295       # instead of lib<name>.a to let people know that these are not
14296       # typical AIX shared libraries.
14297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298     else
14299       # We preserve .a as extension for shared libraries through AIX4.2
14300       # and later when we are not doing run time linking.
14301       library_names_spec='${libname}${release}.a $libname.a'
14302       soname_spec='${libname}${release}${shared_ext}$major'
14303     fi
14304     shlibpath_var=LIBPATH
14305   fi
14306   ;;
14307
14308 amigaos*)
14309   library_names_spec='$libname.ixlibrary $libname.a'
14310   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14311   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'
14312   ;;
14313
14314 beos*)
14315   library_names_spec='${libname}${shared_ext}'
14316   dynamic_linker="$host_os ld.so"
14317   shlibpath_var=LIBRARY_PATH
14318   ;;
14319
14320 bsdi[45]*)
14321   version_type=linux
14322   need_version=no
14323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14324   soname_spec='${libname}${release}${shared_ext}$major'
14325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14326   shlibpath_var=LD_LIBRARY_PATH
14327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14329   # the default ld.so.conf also contains /usr/contrib/lib and
14330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14331   # libtool to hard-code these into programs
14332   ;;
14333
14334 cygwin* | mingw* | pw32*)
14335   version_type=windows
14336   shrext_cmds=".dll"
14337   need_version=no
14338   need_lib_prefix=no
14339
14340   case $GCC,$host_os in
14341   yes,cygwin* | yes,mingw* | yes,pw32*)
14342     library_names_spec='$libname.dll.a'
14343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14344     postinstall_cmds='base_file=`basename \${file}`~
14345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14346       dldir=$destdir/`dirname \$dlpath`~
14347       test -d \$dldir || mkdir -p \$dldir~
14348       $install_prog $dir/$dlname \$dldir/$dlname~
14349       chmod a+x \$dldir/$dlname'
14350     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14351       dlpath=$dir/\$dldll~
14352        $rm \$dlpath'
14353     shlibpath_overrides_runpath=yes
14354
14355     case $host_os in
14356     cygwin*)
14357       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14358       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14359       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14360       ;;
14361     mingw*)
14362       # MinGW DLLs use traditional 'lib' prefix
14363       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14364       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14365       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14366         # It is most probably a Windows format PATH printed by
14367         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14368         # path with ; separators, and with drive letters. We can handle the
14369         # drive letters (cygwin fileutils understands them), so leave them,
14370         # especially as we might pass files found there to a mingw objdump,
14371         # which wouldn't understand a cygwinified path. Ahh.
14372         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14373       else
14374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14375       fi
14376       ;;
14377     pw32*)
14378       # pw32 DLLs use 'pw' prefix rather than 'lib'
14379       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380       ;;
14381     esac
14382     ;;
14383
14384   *)
14385     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14386     ;;
14387   esac
14388   dynamic_linker='Win32 ld.exe'
14389   # FIXME: first we should search . and the directory the executable is in
14390   shlibpath_var=PATH
14391   ;;
14392
14393 darwin* | rhapsody*)
14394   dynamic_linker="$host_os dyld"
14395   version_type=darwin
14396   need_lib_prefix=no
14397   need_version=no
14398   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14399   soname_spec='${libname}${release}${major}$shared_ext'
14400   shlibpath_overrides_runpath=yes
14401   shlibpath_var=DYLD_LIBRARY_PATH
14402   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14403   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14404   if test "$GCC" = yes; then
14405     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"`
14406   else
14407     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14408   fi
14409   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14410   ;;
14411
14412 dgux*)
14413   version_type=linux
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14417   soname_spec='${libname}${release}${shared_ext}$major'
14418   shlibpath_var=LD_LIBRARY_PATH
14419   ;;
14420
14421 freebsd1*)
14422   dynamic_linker=no
14423   ;;
14424
14425 freebsd* | dragonfly*)
14426   # DragonFly does not have aout.  When/if they implement a new
14427   # versioning mechanism, adjust this.
14428   if test -x /usr/bin/objformat; then
14429     objformat=`/usr/bin/objformat`
14430   else
14431     case $host_os in
14432     freebsd[123]*) objformat=aout ;;
14433     *) objformat=elf ;;
14434     esac
14435   fi
14436   version_type=freebsd-$objformat
14437   case $version_type in
14438     freebsd-elf*)
14439       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14440       need_version=no
14441       need_lib_prefix=no
14442       ;;
14443     freebsd-*)
14444       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14445       need_version=yes
14446       ;;
14447   esac
14448   shlibpath_var=LD_LIBRARY_PATH
14449   case $host_os in
14450   freebsd2*)
14451     shlibpath_overrides_runpath=yes
14452     ;;
14453   freebsd3.[01]* | freebsdelf3.[01]*)
14454     shlibpath_overrides_runpath=yes
14455     hardcode_into_libs=yes
14456     ;;
14457   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14458   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14459     shlibpath_overrides_runpath=no
14460     hardcode_into_libs=yes
14461     ;;
14462   freebsd*) # from 4.6 on
14463     shlibpath_overrides_runpath=yes
14464     hardcode_into_libs=yes
14465     ;;
14466   esac
14467   ;;
14468
14469 gnu*)
14470   version_type=linux
14471   need_lib_prefix=no
14472   need_version=no
14473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14474   soname_spec='${libname}${release}${shared_ext}$major'
14475   shlibpath_var=LD_LIBRARY_PATH
14476   hardcode_into_libs=yes
14477   ;;
14478
14479 hpux9* | hpux10* | hpux11*)
14480   # Give a soname corresponding to the major version so that dld.sl refuses to
14481   # link against other versions.
14482   version_type=sunos
14483   need_lib_prefix=no
14484   need_version=no
14485   case $host_cpu in
14486   ia64*)
14487     shrext_cmds='.so'
14488     hardcode_into_libs=yes
14489     dynamic_linker="$host_os dld.so"
14490     shlibpath_var=LD_LIBRARY_PATH
14491     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493     soname_spec='${libname}${release}${shared_ext}$major'
14494     if test "X$HPUX_IA64_MODE" = X32; then
14495       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496     else
14497       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14498     fi
14499     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14500     ;;
14501    hppa*64*)
14502      shrext_cmds='.sl'
14503      hardcode_into_libs=yes
14504      dynamic_linker="$host_os dld.sl"
14505      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14506      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14507      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508      soname_spec='${libname}${release}${shared_ext}$major'
14509      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14510      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14511      ;;
14512    *)
14513     shrext_cmds='.sl'
14514     dynamic_linker="$host_os dld.sl"
14515     shlibpath_var=SHLIB_PATH
14516     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518     soname_spec='${libname}${release}${shared_ext}$major'
14519     ;;
14520   esac
14521   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14522   postinstall_cmds='chmod 555 $lib'
14523   ;;
14524
14525 interix3*)
14526   version_type=linux
14527   need_lib_prefix=no
14528   need_version=no
14529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14530   soname_spec='${libname}${release}${shared_ext}$major'
14531   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14532   shlibpath_var=LD_LIBRARY_PATH
14533   shlibpath_overrides_runpath=no
14534   hardcode_into_libs=yes
14535   ;;
14536
14537 irix5* | irix6* | nonstopux*)
14538   case $host_os in
14539     nonstopux*) version_type=nonstopux ;;
14540     *)
14541         if test "$lt_cv_prog_gnu_ld" = yes; then
14542                 version_type=linux
14543         else
14544                 version_type=irix
14545         fi ;;
14546   esac
14547   need_lib_prefix=no
14548   need_version=no
14549   soname_spec='${libname}${release}${shared_ext}$major'
14550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14551   case $host_os in
14552   irix5* | nonstopux*)
14553     libsuff= shlibsuff=
14554     ;;
14555   *)
14556     case $LD in # libtool.m4 will add one of these switches to LD
14557     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558       libsuff= shlibsuff= libmagic=32-bit;;
14559     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560       libsuff=32 shlibsuff=N32 libmagic=N32;;
14561     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563     *) libsuff= shlibsuff= libmagic=never-match;;
14564     esac
14565     ;;
14566   esac
14567   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568   shlibpath_overrides_runpath=no
14569   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571   hardcode_into_libs=yes
14572   ;;
14573
14574 # No shared lib support for Linux oldld, aout, or coff.
14575 linux*oldld* | linux*aout* | linux*coff*)
14576   dynamic_linker=no
14577   ;;
14578
14579 # This must be Linux ELF.
14580 linux* | k*bsd*-gnu)
14581   version_type=linux
14582   need_lib_prefix=no
14583   need_version=no
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585   soname_spec='${libname}${release}${shared_ext}$major'
14586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587   shlibpath_var=LD_LIBRARY_PATH
14588   shlibpath_overrides_runpath=no
14589   # This implies no fast_install, which is unacceptable.
14590   # Some rework will be needed to allow for fast_install
14591   # before this can be enabled.
14592   hardcode_into_libs=yes
14593
14594   # Append ld.so.conf contents to the search path
14595   if test -f /etc/ld.so.conf; then
14596     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' ' '`
14597     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14598   fi
14599
14600   # We used to test for /lib/ld.so.1 and disable shared libraries on
14601   # powerpc, because MkLinux only supported shared libraries with the
14602   # GNU dynamic linker.  Since this was broken with cross compilers,
14603   # most powerpc-linux boxes support dynamic linking these days and
14604   # people can always --disable-shared, the test was removed, and we
14605   # assume the GNU/Linux dynamic linker is in use.
14606   dynamic_linker='GNU/Linux ld.so'
14607   ;;
14608
14609 netbsdelf*-gnu)
14610   version_type=linux
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   shlibpath_var=LD_LIBRARY_PATH
14616   shlibpath_overrides_runpath=no
14617   hardcode_into_libs=yes
14618   dynamic_linker='NetBSD ld.elf_so'
14619   ;;
14620
14621 netbsd*)
14622   version_type=sunos
14623   need_lib_prefix=no
14624   need_version=no
14625   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14627     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628     dynamic_linker='NetBSD (a.out) ld.so'
14629   else
14630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631     soname_spec='${libname}${release}${shared_ext}$major'
14632     dynamic_linker='NetBSD ld.elf_so'
14633   fi
14634   shlibpath_var=LD_LIBRARY_PATH
14635   shlibpath_overrides_runpath=yes
14636   hardcode_into_libs=yes
14637   ;;
14638
14639 newsos6)
14640   version_type=linux
14641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642   shlibpath_var=LD_LIBRARY_PATH
14643   shlibpath_overrides_runpath=yes
14644   ;;
14645
14646 nto-qnx*)
14647   version_type=linux
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   soname_spec='${libname}${release}${shared_ext}$major'
14652   shlibpath_var=LD_LIBRARY_PATH
14653   shlibpath_overrides_runpath=yes
14654   ;;
14655
14656 openbsd*)
14657   version_type=sunos
14658   sys_lib_dlsearch_path_spec="/usr/lib"
14659   need_lib_prefix=no
14660   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14661   case $host_os in
14662     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14663     *)                         need_version=no  ;;
14664   esac
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14666   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14667   shlibpath_var=LD_LIBRARY_PATH
14668   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14669     case $host_os in
14670       openbsd2.[89] | openbsd2.[89].*)
14671         shlibpath_overrides_runpath=no
14672         ;;
14673       *)
14674         shlibpath_overrides_runpath=yes
14675         ;;
14676       esac
14677   else
14678     shlibpath_overrides_runpath=yes
14679   fi
14680   ;;
14681
14682 os2*)
14683   libname_spec='$name'
14684   shrext_cmds=".dll"
14685   need_lib_prefix=no
14686   library_names_spec='$libname${shared_ext} $libname.a'
14687   dynamic_linker='OS/2 ld.exe'
14688   shlibpath_var=LIBPATH
14689   ;;
14690
14691 osf3* | osf4* | osf5*)
14692   version_type=osf
14693   need_lib_prefix=no
14694   need_version=no
14695   soname_spec='${libname}${release}${shared_ext}$major'
14696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697   shlibpath_var=LD_LIBRARY_PATH
14698   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14699   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14700   ;;
14701
14702 solaris*)
14703   version_type=linux
14704   need_lib_prefix=no
14705   need_version=no
14706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707   soname_spec='${libname}${release}${shared_ext}$major'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   shlibpath_overrides_runpath=yes
14710   hardcode_into_libs=yes
14711   # ldd complains unless libraries are executable
14712   postinstall_cmds='chmod +x $lib'
14713   ;;
14714
14715 sunos4*)
14716   version_type=sunos
14717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14718   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=yes
14721   if test "$with_gnu_ld" = yes; then
14722     need_lib_prefix=no
14723   fi
14724   need_version=yes
14725   ;;
14726
14727 sysv4 | sysv4.3*)
14728   version_type=linux
14729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730   soname_spec='${libname}${release}${shared_ext}$major'
14731   shlibpath_var=LD_LIBRARY_PATH
14732   case $host_vendor in
14733     sni)
14734       shlibpath_overrides_runpath=no
14735       need_lib_prefix=no
14736       export_dynamic_flag_spec='${wl}-Blargedynsym'
14737       runpath_var=LD_RUN_PATH
14738       ;;
14739     siemens)
14740       need_lib_prefix=no
14741       ;;
14742     motorola)
14743       need_lib_prefix=no
14744       need_version=no
14745       shlibpath_overrides_runpath=no
14746       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14747       ;;
14748   esac
14749   ;;
14750
14751 sysv4*MP*)
14752   if test -d /usr/nec ;then
14753     version_type=linux
14754     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14755     soname_spec='$libname${shared_ext}.$major'
14756     shlibpath_var=LD_LIBRARY_PATH
14757   fi
14758   ;;
14759
14760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14761   version_type=freebsd-elf
14762   need_lib_prefix=no
14763   need_version=no
14764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14765   soname_spec='${libname}${release}${shared_ext}$major'
14766   shlibpath_var=LD_LIBRARY_PATH
14767   hardcode_into_libs=yes
14768   if test "$with_gnu_ld" = yes; then
14769     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14770     shlibpath_overrides_runpath=no
14771   else
14772     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14773     shlibpath_overrides_runpath=yes
14774     case $host_os in
14775       sco3.2v5*)
14776         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14777         ;;
14778     esac
14779   fi
14780   sys_lib_dlsearch_path_spec='/usr/lib'
14781   ;;
14782
14783 uts4*)
14784   version_type=linux
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   ;;
14789
14790 *)
14791   dynamic_linker=no
14792   ;;
14793 esac
14794 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14795 echo "${ECHO_T}$dynamic_linker" >&6; }
14796 test "$dynamic_linker" = no && can_build_shared=no
14797
14798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14799 if test "$GCC" = yes; then
14800   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14801 fi
14802
14803 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14805 hardcode_action_CXX=
14806 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14807    test -n "$runpath_var_CXX" || \
14808    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14809
14810   # We can hardcode non-existant directories.
14811   if test "$hardcode_direct_CXX" != no &&
14812      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14813      # have to relink, otherwise we might link with an installed library
14814      # when we should be linking with a yet-to-be-installed one
14815      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14816      test "$hardcode_minus_L_CXX" != no; then
14817     # Linking always hardcodes the temporary library directory.
14818     hardcode_action_CXX=relink
14819   else
14820     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14821     hardcode_action_CXX=immediate
14822   fi
14823 else
14824   # We cannot hardcode anything, or else we can only hardcode existing
14825   # directories.
14826   hardcode_action_CXX=unsupported
14827 fi
14828 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14829 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14830
14831 if test "$hardcode_action_CXX" = relink; then
14832   # Fast installation is not supported
14833   enable_fast_install=no
14834 elif test "$shlibpath_overrides_runpath" = yes ||
14835      test "$enable_shared" = no; then
14836   # Fast installation is not necessary
14837   enable_fast_install=needless
14838 fi
14839
14840
14841 # The else clause should only fire when bootstrapping the
14842 # libtool distribution, otherwise you forgot to ship ltmain.sh
14843 # with your package, and you will get complaints that there are
14844 # no rules to generate ltmain.sh.
14845 if test -f "$ltmain"; then
14846   # See if we are running on zsh, and set the options which allow our commands through
14847   # without removal of \ escapes.
14848   if test -n "${ZSH_VERSION+set}" ; then
14849     setopt NO_GLOB_SUBST
14850   fi
14851   # Now quote all the things that may contain metacharacters while being
14852   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14853   # variables and quote the copies for generation of the libtool script.
14854   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14855     SED SHELL STRIP \
14856     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14857     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14858     deplibs_check_method reload_flag reload_cmds need_locks \
14859     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14860     lt_cv_sys_global_symbol_to_c_name_address \
14861     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14862     old_postinstall_cmds old_postuninstall_cmds \
14863     compiler_CXX \
14864     CC_CXX \
14865     LD_CXX \
14866     lt_prog_compiler_wl_CXX \
14867     lt_prog_compiler_pic_CXX \
14868     lt_prog_compiler_static_CXX \
14869     lt_prog_compiler_no_builtin_flag_CXX \
14870     export_dynamic_flag_spec_CXX \
14871     thread_safe_flag_spec_CXX \
14872     whole_archive_flag_spec_CXX \
14873     enable_shared_with_static_runtimes_CXX \
14874     old_archive_cmds_CXX \
14875     old_archive_from_new_cmds_CXX \
14876     predep_objects_CXX \
14877     postdep_objects_CXX \
14878     predeps_CXX \
14879     postdeps_CXX \
14880     compiler_lib_search_path_CXX \
14881     archive_cmds_CXX \
14882     archive_expsym_cmds_CXX \
14883     postinstall_cmds_CXX \
14884     postuninstall_cmds_CXX \
14885     old_archive_from_expsyms_cmds_CXX \
14886     allow_undefined_flag_CXX \
14887     no_undefined_flag_CXX \
14888     export_symbols_cmds_CXX \
14889     hardcode_libdir_flag_spec_CXX \
14890     hardcode_libdir_flag_spec_ld_CXX \
14891     hardcode_libdir_separator_CXX \
14892     hardcode_automatic_CXX \
14893     module_cmds_CXX \
14894     module_expsym_cmds_CXX \
14895     lt_cv_prog_compiler_c_o_CXX \
14896     exclude_expsyms_CXX \
14897     include_expsyms_CXX; do
14898
14899     case $var in
14900     old_archive_cmds_CXX | \
14901     old_archive_from_new_cmds_CXX | \
14902     archive_cmds_CXX | \
14903     archive_expsym_cmds_CXX | \
14904     module_cmds_CXX | \
14905     module_expsym_cmds_CXX | \
14906     old_archive_from_expsyms_cmds_CXX | \
14907     export_symbols_cmds_CXX | \
14908     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14909     postinstall_cmds | postuninstall_cmds | \
14910     old_postinstall_cmds | old_postuninstall_cmds | \
14911     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14912       # Double-quote double-evaled strings.
14913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14914       ;;
14915     *)
14916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14917       ;;
14918     esac
14919   done
14920
14921   case $lt_echo in
14922   *'\$0 --fallback-echo"')
14923     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14924     ;;
14925   esac
14926
14927 cfgfile="$ofile"
14928
14929   cat <<__EOF__ >> "$cfgfile"
14930 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14931
14932 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14933
14934 # Shell to use when invoking shell scripts.
14935 SHELL=$lt_SHELL
14936
14937 # Whether or not to build shared libraries.
14938 build_libtool_libs=$enable_shared
14939
14940 # Whether or not to build static libraries.
14941 build_old_libs=$enable_static
14942
14943 # Whether or not to add -lc for building shared libraries.
14944 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14945
14946 # Whether or not to disallow shared libs when runtime libs are static
14947 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14948
14949 # Whether or not to optimize for fast installation.
14950 fast_install=$enable_fast_install
14951
14952 # The host system.
14953 host_alias=$host_alias
14954 host=$host
14955 host_os=$host_os
14956
14957 # The build system.
14958 build_alias=$build_alias
14959 build=$build
14960 build_os=$build_os
14961
14962 # An echo program that does not interpret backslashes.
14963 echo=$lt_echo
14964
14965 # The archiver.
14966 AR=$lt_AR
14967 AR_FLAGS=$lt_AR_FLAGS
14968
14969 # A C compiler.
14970 LTCC=$lt_LTCC
14971
14972 # LTCC compiler flags.
14973 LTCFLAGS=$lt_LTCFLAGS
14974
14975 # A language-specific compiler.
14976 CC=$lt_compiler_CXX
14977
14978 # Is the compiler the GNU C compiler?
14979 with_gcc=$GCC_CXX
14980
14981 # An ERE matcher.
14982 EGREP=$lt_EGREP
14983
14984 # The linker used to build libraries.
14985 LD=$lt_LD_CXX
14986
14987 # Whether we need hard or soft links.
14988 LN_S=$lt_LN_S
14989
14990 # A BSD-compatible nm program.
14991 NM=$lt_NM
14992
14993 # A symbol stripping program
14994 STRIP=$lt_STRIP
14995
14996 # Used to examine libraries when file_magic_cmd begins "file"
14997 MAGIC_CMD=$MAGIC_CMD
14998
14999 # Used on cygwin: DLL creation program.
15000 DLLTOOL="$DLLTOOL"
15001
15002 # Used on cygwin: object dumper.
15003 OBJDUMP="$OBJDUMP"
15004
15005 # Used on cygwin: assembler.
15006 AS="$AS"
15007
15008 # The name of the directory that contains temporary libtool files.
15009 objdir=$objdir
15010
15011 # How to create reloadable object files.
15012 reload_flag=$lt_reload_flag
15013 reload_cmds=$lt_reload_cmds
15014
15015 # How to pass a linker flag through the compiler.
15016 wl=$lt_lt_prog_compiler_wl_CXX
15017
15018 # Object file suffix (normally "o").
15019 objext="$ac_objext"
15020
15021 # Old archive suffix (normally "a").
15022 libext="$libext"
15023
15024 # Shared library suffix (normally ".so").
15025 shrext_cmds='$shrext_cmds'
15026
15027 # Executable file suffix (normally "").
15028 exeext="$exeext"
15029
15030 # Additional compiler flags for building library objects.
15031 pic_flag=$lt_lt_prog_compiler_pic_CXX
15032 pic_mode=$pic_mode
15033
15034 # What is the maximum length of a command?
15035 max_cmd_len=$lt_cv_sys_max_cmd_len
15036
15037 # Does compiler simultaneously support -c and -o options?
15038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15039
15040 # Must we lock files when doing compilation?
15041 need_locks=$lt_need_locks
15042
15043 # Do we need the lib prefix for modules?
15044 need_lib_prefix=$need_lib_prefix
15045
15046 # Do we need a version for libraries?
15047 need_version=$need_version
15048
15049 # Whether dlopen is supported.
15050 dlopen_support=$enable_dlopen
15051
15052 # Whether dlopen of programs is supported.
15053 dlopen_self=$enable_dlopen_self
15054
15055 # Whether dlopen of statically linked programs is supported.
15056 dlopen_self_static=$enable_dlopen_self_static
15057
15058 # Compiler flag to prevent dynamic linking.
15059 link_static_flag=$lt_lt_prog_compiler_static_CXX
15060
15061 # Compiler flag to turn off builtin functions.
15062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15063
15064 # Compiler flag to allow reflexive dlopens.
15065 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15066
15067 # Compiler flag to generate shared objects directly from archives.
15068 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15069
15070 # Compiler flag to generate thread-safe objects.
15071 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15072
15073 # Library versioning type.
15074 version_type=$version_type
15075
15076 # Format of library name prefix.
15077 libname_spec=$lt_libname_spec
15078
15079 # List of archive names.  First name is the real one, the rest are links.
15080 # The last name is the one that the linker finds with -lNAME.
15081 library_names_spec=$lt_library_names_spec
15082
15083 # The coded name of the library, if different from the real name.
15084 soname_spec=$lt_soname_spec
15085
15086 # Commands used to build and install an old-style archive.
15087 RANLIB=$lt_RANLIB
15088 old_archive_cmds=$lt_old_archive_cmds_CXX
15089 old_postinstall_cmds=$lt_old_postinstall_cmds
15090 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15091
15092 # Create an old-style archive from a shared archive.
15093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15094
15095 # Create a temporary old-style archive to link instead of a shared archive.
15096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15097
15098 # Commands used to build and install a shared archive.
15099 archive_cmds=$lt_archive_cmds_CXX
15100 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15101 postinstall_cmds=$lt_postinstall_cmds
15102 postuninstall_cmds=$lt_postuninstall_cmds
15103
15104 # Commands used to build a loadable module (assumed same as above if empty)
15105 module_cmds=$lt_module_cmds_CXX
15106 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15107
15108 # Commands to strip libraries.
15109 old_striplib=$lt_old_striplib
15110 striplib=$lt_striplib
15111
15112 # Dependencies to place before the objects being linked to create a
15113 # shared library.
15114 predep_objects=$lt_predep_objects_CXX
15115
15116 # Dependencies to place after the objects being linked to create a
15117 # shared library.
15118 postdep_objects=$lt_postdep_objects_CXX
15119
15120 # Dependencies to place before the objects being linked to create a
15121 # shared library.
15122 predeps=$lt_predeps_CXX
15123
15124 # Dependencies to place after the objects being linked to create a
15125 # shared library.
15126 postdeps=$lt_postdeps_CXX
15127
15128 # The library search path used internally by the compiler when linking
15129 # a shared library.
15130 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15131
15132 # Method to check whether dependent libraries are shared objects.
15133 deplibs_check_method=$lt_deplibs_check_method
15134
15135 # Command to use when deplibs_check_method == file_magic.
15136 file_magic_cmd=$lt_file_magic_cmd
15137
15138 # Flag that allows shared libraries with undefined symbols to be built.
15139 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15140
15141 # Flag that forces no undefined symbols.
15142 no_undefined_flag=$lt_no_undefined_flag_CXX
15143
15144 # Commands used to finish a libtool library installation in a directory.
15145 finish_cmds=$lt_finish_cmds
15146
15147 # Same as above, but a single script fragment to be evaled but not shown.
15148 finish_eval=$lt_finish_eval
15149
15150 # Take the output of nm and produce a listing of raw symbols and C names.
15151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15152
15153 # Transform the output of nm in a proper C declaration
15154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15155
15156 # Transform the output of nm in a C name address pair
15157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15158
15159 # This is the shared library runtime path variable.
15160 runpath_var=$runpath_var
15161
15162 # This is the shared library path variable.
15163 shlibpath_var=$shlibpath_var
15164
15165 # Is shlibpath searched before the hard-coded library search path?
15166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15167
15168 # How to hardcode a shared library path into an executable.
15169 hardcode_action=$hardcode_action_CXX
15170
15171 # Whether we should hardcode library paths into libraries.
15172 hardcode_into_libs=$hardcode_into_libs
15173
15174 # Flag to hardcode \$libdir into a binary during linking.
15175 # This must work even if \$libdir does not exist.
15176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15177
15178 # If ld is used when linking, flag to hardcode \$libdir into
15179 # a binary during linking. This must work even if \$libdir does
15180 # not exist.
15181 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15182
15183 # Whether we need a single -rpath flag with a separated argument.
15184 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15185
15186 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15187 # resulting binary.
15188 hardcode_direct=$hardcode_direct_CXX
15189
15190 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15191 # resulting binary.
15192 hardcode_minus_L=$hardcode_minus_L_CXX
15193
15194 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15195 # the resulting binary.
15196 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15197
15198 # Set to yes if building a shared library automatically hardcodes DIR into the library
15199 # and all subsequent libraries and executables linked against it.
15200 hardcode_automatic=$hardcode_automatic_CXX
15201
15202 # Variables whose values should be saved in libtool wrapper scripts and
15203 # restored at relink time.
15204 variables_saved_for_relink="$variables_saved_for_relink"
15205
15206 # Whether libtool must link a program against all its dependency libraries.
15207 link_all_deplibs=$link_all_deplibs_CXX
15208
15209 # Compile-time system search path for libraries
15210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15211
15212 # Run-time system search path for libraries
15213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15214
15215 # Fix the shell variable \$srcfile for the compiler.
15216 fix_srcfile_path="$fix_srcfile_path_CXX"
15217
15218 # Set to yes if exported symbols are required.
15219 always_export_symbols=$always_export_symbols_CXX
15220
15221 # The commands to list exported symbols.
15222 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15223
15224 # The commands to extract the exported symbol list from a shared archive.
15225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15226
15227 # Symbols that should not be listed in the preloaded symbols.
15228 exclude_expsyms=$lt_exclude_expsyms_CXX
15229
15230 # Symbols that must always be exported.
15231 include_expsyms=$lt_include_expsyms_CXX
15232
15233 # ### END LIBTOOL TAG CONFIG: $tagname
15234
15235 __EOF__
15236
15237
15238 else
15239   # If there is no Makefile yet, we rely on a make rule to execute
15240   # `config.status --recheck' to rerun these tests and create the
15241   # libtool script then.
15242   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15243   if test -f "$ltmain_in"; then
15244     test -f Makefile && make "$ltmain"
15245   fi
15246 fi
15247
15248
15249 ac_ext=c
15250 ac_cpp='$CPP $CPPFLAGS'
15251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15254
15255 CC=$lt_save_CC
15256 LDCXX=$LD
15257 LD=$lt_save_LD
15258 GCC=$lt_save_GCC
15259 with_gnu_ldcxx=$with_gnu_ld
15260 with_gnu_ld=$lt_save_with_gnu_ld
15261 lt_cv_path_LDCXX=$lt_cv_path_LD
15262 lt_cv_path_LD=$lt_save_path_LD
15263 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15264 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15265
15266         else
15267           tagname=""
15268         fi
15269         ;;
15270
15271       F77)
15272         if test -n "$F77" && test "X$F77" != "Xno"; then
15273
15274 ac_ext=f
15275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15278
15279
15280 archive_cmds_need_lc_F77=no
15281 allow_undefined_flag_F77=
15282 always_export_symbols_F77=no
15283 archive_expsym_cmds_F77=
15284 export_dynamic_flag_spec_F77=
15285 hardcode_direct_F77=no
15286 hardcode_libdir_flag_spec_F77=
15287 hardcode_libdir_flag_spec_ld_F77=
15288 hardcode_libdir_separator_F77=
15289 hardcode_minus_L_F77=no
15290 hardcode_automatic_F77=no
15291 module_cmds_F77=
15292 module_expsym_cmds_F77=
15293 link_all_deplibs_F77=unknown
15294 old_archive_cmds_F77=$old_archive_cmds
15295 no_undefined_flag_F77=
15296 whole_archive_flag_spec_F77=
15297 enable_shared_with_static_runtimes_F77=no
15298
15299 # Source file extension for f77 test sources.
15300 ac_ext=f
15301
15302 # Object file extension for compiled f77 test sources.
15303 objext=o
15304 objext_F77=$objext
15305
15306 # Code to be used in simple compile tests
15307 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15308
15309 # Code to be used in simple link tests
15310 lt_simple_link_test_code="      program t\n      end\n"
15311
15312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15313
15314 # If no C compiler was specified, use CC.
15315 LTCC=${LTCC-"$CC"}
15316
15317 # If no C compiler flags were specified, use CFLAGS.
15318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15319
15320 # Allow CC to be a program name with arguments.
15321 compiler=$CC
15322
15323
15324 # save warnings/boilerplate of simple test code
15325 ac_outfile=conftest.$ac_objext
15326 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15328 _lt_compiler_boilerplate=`cat conftest.err`
15329 $rm conftest*
15330
15331 ac_outfile=conftest.$ac_objext
15332 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15334 _lt_linker_boilerplate=`cat conftest.err`
15335 $rm conftest*
15336
15337
15338 # Allow CC to be a program name with arguments.
15339 lt_save_CC="$CC"
15340 CC=${F77-"f77"}
15341 compiler=$CC
15342 compiler_F77=$CC
15343 for cc_temp in $compiler""; do
15344   case $cc_temp in
15345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15347     \-*) ;;
15348     *) break;;
15349   esac
15350 done
15351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15352
15353
15354 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15356 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15357 echo "${ECHO_T}$can_build_shared" >&6; }
15358
15359 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15361 test "$can_build_shared" = "no" && enable_shared=no
15362
15363 # On AIX, shared libraries and static libraries use the same namespace, and
15364 # are all built from PIC.
15365 case $host_os in
15366 aix3*)
15367   test "$enable_shared" = yes && enable_static=no
15368   if test -n "$RANLIB"; then
15369     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15370     postinstall_cmds='$RANLIB $lib'
15371   fi
15372   ;;
15373 aix4* | aix5*)
15374   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15375     test "$enable_shared" = yes && enable_static=no
15376   fi
15377   ;;
15378 esac
15379 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15380 echo "${ECHO_T}$enable_shared" >&6; }
15381
15382 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15383 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15384 # Make sure either enable_shared or enable_static is yes.
15385 test "$enable_shared" = yes || enable_static=yes
15386 { echo "$as_me:$LINENO: result: $enable_static" >&5
15387 echo "${ECHO_T}$enable_static" >&6; }
15388
15389 GCC_F77="$G77"
15390 LD_F77="$LD"
15391
15392 lt_prog_compiler_wl_F77=
15393 lt_prog_compiler_pic_F77=
15394 lt_prog_compiler_static_F77=
15395
15396 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15397 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15398
15399   if test "$GCC" = yes; then
15400     lt_prog_compiler_wl_F77='-Wl,'
15401     lt_prog_compiler_static_F77='-static'
15402
15403     case $host_os in
15404       aix*)
15405       # All AIX code is PIC.
15406       if test "$host_cpu" = ia64; then
15407         # AIX 5 now supports IA64 processor
15408         lt_prog_compiler_static_F77='-Bstatic'
15409       fi
15410       ;;
15411
15412     amigaos*)
15413       # FIXME: we need at least 68020 code to build shared libraries, but
15414       # adding the `-m68020' flag to GCC prevents building anything better,
15415       # like `-m68040'.
15416       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15417       ;;
15418
15419     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15420       # PIC is the default for these OSes.
15421       ;;
15422
15423     mingw* | pw32* | os2*)
15424       # This hack is so that the source file can tell whether it is being
15425       # built for inclusion in a dll (and should export symbols for example).
15426       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15427       ;;
15428
15429     darwin* | rhapsody*)
15430       # PIC is the default on this platform
15431       # Common symbols not allowed in MH_DYLIB files
15432       lt_prog_compiler_pic_F77='-fno-common'
15433       ;;
15434
15435     interix3*)
15436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15437       # Instead, we relocate shared libraries at runtime.
15438       ;;
15439
15440     msdosdjgpp*)
15441       # Just because we use GCC doesn't mean we suddenly get shared libraries
15442       # on systems that don't support them.
15443       lt_prog_compiler_can_build_shared_F77=no
15444       enable_shared=no
15445       ;;
15446
15447     sysv4*MP*)
15448       if test -d /usr/nec; then
15449         lt_prog_compiler_pic_F77=-Kconform_pic
15450       fi
15451       ;;
15452
15453     hpux*)
15454       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15455       # not for PA HP-UX.
15456       case $host_cpu in
15457       hppa*64*|ia64*)
15458         # +Z the default
15459         ;;
15460       *)
15461         lt_prog_compiler_pic_F77='-fPIC'
15462         ;;
15463       esac
15464       ;;
15465
15466     *)
15467       lt_prog_compiler_pic_F77='-fPIC'
15468       ;;
15469     esac
15470   else
15471     # PORTME Check for flag to pass linker flags through the system compiler.
15472     case $host_os in
15473     aix*)
15474       lt_prog_compiler_wl_F77='-Wl,'
15475       if test "$host_cpu" = ia64; then
15476         # AIX 5 now supports IA64 processor
15477         lt_prog_compiler_static_F77='-Bstatic'
15478       else
15479         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15480       fi
15481       ;;
15482       darwin*)
15483         # PIC is the default on this platform
15484         # Common symbols not allowed in MH_DYLIB files
15485        case $cc_basename in
15486          xlc*)
15487          lt_prog_compiler_pic_F77='-qnocommon'
15488          lt_prog_compiler_wl_F77='-Wl,'
15489          ;;
15490        esac
15491        ;;
15492
15493     mingw* | pw32* | os2*)
15494       # This hack is so that the source file can tell whether it is being
15495       # built for inclusion in a dll (and should export symbols for example).
15496       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15497       ;;
15498
15499     hpux9* | hpux10* | hpux11*)
15500       lt_prog_compiler_wl_F77='-Wl,'
15501       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15502       # not for PA HP-UX.
15503       case $host_cpu in
15504       hppa*64*|ia64*)
15505         # +Z the default
15506         ;;
15507       *)
15508         lt_prog_compiler_pic_F77='+Z'
15509         ;;
15510       esac
15511       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15512       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15513       ;;
15514
15515     irix5* | irix6* | nonstopux*)
15516       lt_prog_compiler_wl_F77='-Wl,'
15517       # PIC (with -KPIC) is the default.
15518       lt_prog_compiler_static_F77='-non_shared'
15519       ;;
15520
15521     newsos6)
15522       lt_prog_compiler_pic_F77='-KPIC'
15523       lt_prog_compiler_static_F77='-Bstatic'
15524       ;;
15525
15526     linux* | k*bsd*-gnu)
15527       case $cc_basename in
15528       icc* | ecc*)
15529         lt_prog_compiler_wl_F77='-Wl,'
15530         lt_prog_compiler_pic_F77='-KPIC'
15531         lt_prog_compiler_static_F77='-static'
15532         ;;
15533       pgcc* | pgf77* | pgf90* | pgf95*)
15534         # Portland Group compilers (*not* the Pentium gcc compiler,
15535         # which looks to be a dead project)
15536         lt_prog_compiler_wl_F77='-Wl,'
15537         lt_prog_compiler_pic_F77='-fpic'
15538         lt_prog_compiler_static_F77='-Bstatic'
15539         ;;
15540       ccc*)
15541         lt_prog_compiler_wl_F77='-Wl,'
15542         # All Alpha code is PIC.
15543         lt_prog_compiler_static_F77='-non_shared'
15544         ;;
15545       esac
15546       ;;
15547
15548     osf3* | osf4* | osf5*)
15549       lt_prog_compiler_wl_F77='-Wl,'
15550       # All OSF/1 code is PIC.
15551       lt_prog_compiler_static_F77='-non_shared'
15552       ;;
15553
15554     solaris*)
15555       lt_prog_compiler_pic_F77='-KPIC'
15556       lt_prog_compiler_static_F77='-Bstatic'
15557       case $cc_basename in
15558       f77* | f90* | f95*)
15559         lt_prog_compiler_wl_F77='-Qoption ld ';;
15560       *)
15561         lt_prog_compiler_wl_F77='-Wl,';;
15562       esac
15563       ;;
15564
15565     sunos4*)
15566       lt_prog_compiler_wl_F77='-Qoption ld '
15567       lt_prog_compiler_pic_F77='-PIC'
15568       lt_prog_compiler_static_F77='-Bstatic'
15569       ;;
15570
15571     sysv4 | sysv4.2uw2* | sysv4.3*)
15572       lt_prog_compiler_wl_F77='-Wl,'
15573       lt_prog_compiler_pic_F77='-KPIC'
15574       lt_prog_compiler_static_F77='-Bstatic'
15575       ;;
15576
15577     sysv4*MP*)
15578       if test -d /usr/nec ;then
15579         lt_prog_compiler_pic_F77='-Kconform_pic'
15580         lt_prog_compiler_static_F77='-Bstatic'
15581       fi
15582       ;;
15583
15584     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15585       lt_prog_compiler_wl_F77='-Wl,'
15586       lt_prog_compiler_pic_F77='-KPIC'
15587       lt_prog_compiler_static_F77='-Bstatic'
15588       ;;
15589
15590     unicos*)
15591       lt_prog_compiler_wl_F77='-Wl,'
15592       lt_prog_compiler_can_build_shared_F77=no
15593       ;;
15594
15595     uts4*)
15596       lt_prog_compiler_pic_F77='-pic'
15597       lt_prog_compiler_static_F77='-Bstatic'
15598       ;;
15599
15600     *)
15601       lt_prog_compiler_can_build_shared_F77=no
15602       ;;
15603     esac
15604   fi
15605
15606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15607 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15608
15609 #
15610 # Check to make sure the PIC flag actually works.
15611 #
15612 if test -n "$lt_prog_compiler_pic_F77"; then
15613
15614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15616 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   lt_prog_compiler_pic_works_F77=no
15620   ac_outfile=conftest.$ac_objext
15621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15622    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15623    # Insert the option either (1) after the last *FLAGS variable, or
15624    # (2) before a word containing "conftest.", or (3) at the end.
15625    # Note that $ac_compile itself does not contain backslashes and begins
15626    # with a dollar sign (not a hyphen), so the echo should work correctly.
15627    # The option is referenced via a variable to avoid confusing sed.
15628    lt_compile=`echo "$ac_compile" | $SED \
15629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15631    -e 's:$: $lt_compiler_flag:'`
15632    (eval echo "\"\$as_me:15632: $lt_compile\"" >&5)
15633    (eval "$lt_compile" 2>conftest.err)
15634    ac_status=$?
15635    cat conftest.err >&5
15636    echo "$as_me:15636: \$? = $ac_status" >&5
15637    if (exit $ac_status) && test -s "$ac_outfile"; then
15638      # The compiler can only warn and ignore the option if not recognized
15639      # So say no if there are warnings other than the usual output.
15640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15643        lt_prog_compiler_pic_works_F77=yes
15644      fi
15645    fi
15646    $rm conftest*
15647
15648 fi
15649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15650 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15651
15652 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15653     case $lt_prog_compiler_pic_F77 in
15654      "" | " "*) ;;
15655      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15656      esac
15657 else
15658     lt_prog_compiler_pic_F77=
15659      lt_prog_compiler_can_build_shared_F77=no
15660 fi
15661
15662 fi
15663 case $host_os in
15664   # For platforms which do not support PIC, -DPIC is meaningless:
15665   *djgpp*)
15666     lt_prog_compiler_pic_F77=
15667     ;;
15668   *)
15669     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15670     ;;
15671 esac
15672
15673 #
15674 # Check to make sure the static flag actually works.
15675 #
15676 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15679 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   lt_prog_compiler_static_works_F77=no
15683    save_LDFLAGS="$LDFLAGS"
15684    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15685    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15686    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15687      # The linker can only warn and ignore the option if not recognized
15688      # So say no if there are warnings
15689      if test -s conftest.err; then
15690        # Append any errors to the config.log.
15691        cat conftest.err 1>&5
15692        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15693        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15694        if diff conftest.exp conftest.er2 >/dev/null; then
15695          lt_prog_compiler_static_works_F77=yes
15696        fi
15697      else
15698        lt_prog_compiler_static_works_F77=yes
15699      fi
15700    fi
15701    $rm conftest*
15702    LDFLAGS="$save_LDFLAGS"
15703
15704 fi
15705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15706 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15707
15708 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15709     :
15710 else
15711     lt_prog_compiler_static_F77=
15712 fi
15713
15714
15715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   lt_cv_prog_compiler_c_o_F77=no
15721    $rm -r conftest 2>/dev/null
15722    mkdir conftest
15723    cd conftest
15724    mkdir out
15725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15726
15727    lt_compiler_flag="-o out/conftest2.$ac_objext"
15728    # Insert the option either (1) after the last *FLAGS variable, or
15729    # (2) before a word containing "conftest.", or (3) at the end.
15730    # Note that $ac_compile itself does not contain backslashes and begins
15731    # with a dollar sign (not a hyphen), so the echo should work correctly.
15732    lt_compile=`echo "$ac_compile" | $SED \
15733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735    -e 's:$: $lt_compiler_flag:'`
15736    (eval echo "\"\$as_me:15736: $lt_compile\"" >&5)
15737    (eval "$lt_compile" 2>out/conftest.err)
15738    ac_status=$?
15739    cat out/conftest.err >&5
15740    echo "$as_me:15740: \$? = $ac_status" >&5
15741    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15742    then
15743      # The compiler can only warn and ignore the option if not recognized
15744      # So say no if there are warnings
15745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15746      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15747      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15748        lt_cv_prog_compiler_c_o_F77=yes
15749      fi
15750    fi
15751    chmod u+w . 2>&5
15752    $rm conftest*
15753    # SGI C++ compiler will create directory out/ii_files/ for
15754    # template instantiation
15755    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15756    $rm out/* && rmdir out
15757    cd ..
15758    rmdir conftest
15759    $rm conftest*
15760
15761 fi
15762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15764
15765
15766 hard_links="nottested"
15767 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15768   # do not overwrite the value of need_locks provided by the user
15769   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15771   hard_links=yes
15772   $rm conftest*
15773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15774   touch conftest.a
15775   ln conftest.a conftest.b 2>&5 || hard_links=no
15776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777   { echo "$as_me:$LINENO: result: $hard_links" >&5
15778 echo "${ECHO_T}$hard_links" >&6; }
15779   if test "$hard_links" = no; then
15780     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15782     need_locks=warn
15783   fi
15784 else
15785   need_locks=no
15786 fi
15787
15788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15790
15791   runpath_var=
15792   allow_undefined_flag_F77=
15793   enable_shared_with_static_runtimes_F77=no
15794   archive_cmds_F77=
15795   archive_expsym_cmds_F77=
15796   old_archive_From_new_cmds_F77=
15797   old_archive_from_expsyms_cmds_F77=
15798   export_dynamic_flag_spec_F77=
15799   whole_archive_flag_spec_F77=
15800   thread_safe_flag_spec_F77=
15801   hardcode_libdir_flag_spec_F77=
15802   hardcode_libdir_flag_spec_ld_F77=
15803   hardcode_libdir_separator_F77=
15804   hardcode_direct_F77=no
15805   hardcode_minus_L_F77=no
15806   hardcode_shlibpath_var_F77=unsupported
15807   link_all_deplibs_F77=unknown
15808   hardcode_automatic_F77=no
15809   module_cmds_F77=
15810   module_expsym_cmds_F77=
15811   always_export_symbols_F77=no
15812   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15813   # include_expsyms should be a list of space-separated symbols to be *always*
15814   # included in the symbol list
15815   include_expsyms_F77=
15816   # exclude_expsyms can be an extended regexp of symbols to exclude
15817   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15818   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15819   # as well as any symbol that contains `d'.
15820   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15821   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15822   # platforms (ab)use it in PIC code, but their linkers get confused if
15823   # the symbol is explicitly referenced.  Since portable code cannot
15824   # rely on this symbol name, it's probably fine to never include it in
15825   # preloaded symbol tables.
15826   extract_expsyms_cmds=
15827   # Just being paranoid about ensuring that cc_basename is set.
15828   for cc_temp in $compiler""; do
15829   case $cc_temp in
15830     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15831     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15832     \-*) ;;
15833     *) break;;
15834   esac
15835 done
15836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15837
15838   case $host_os in
15839   cygwin* | mingw* | pw32*)
15840     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15841     # When not using gcc, we currently assume that we are using
15842     # Microsoft Visual C++.
15843     if test "$GCC" != yes; then
15844       with_gnu_ld=no
15845     fi
15846     ;;
15847   interix*)
15848     # we just hope/assume this is gcc and not c89 (= MSVC++)
15849     with_gnu_ld=yes
15850     ;;
15851   openbsd*)
15852     with_gnu_ld=no
15853     ;;
15854   esac
15855
15856   ld_shlibs_F77=yes
15857   if test "$with_gnu_ld" = yes; then
15858     # If archive_cmds runs LD, not CC, wlarc should be empty
15859     wlarc='${wl}'
15860
15861     # Set some defaults for GNU ld with shared library support. These
15862     # are reset later if shared libraries are not supported. Putting them
15863     # here allows them to be overridden if necessary.
15864     runpath_var=LD_RUN_PATH
15865     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15866     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15867     # ancient GNU ld didn't support --whole-archive et. al.
15868     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15869         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15870       else
15871         whole_archive_flag_spec_F77=
15872     fi
15873     supports_anon_versioning=no
15874     case `$LD -v 2>/dev/null` in
15875       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878       *\ 2.11.*) ;; # other 2.11 versions
15879       *) supports_anon_versioning=yes ;;
15880     esac
15881
15882     # See if GNU ld supports shared libraries.
15883     case $host_os in
15884     aix3* | aix4* | aix5*)
15885       # On AIX/PPC, the GNU linker is very broken
15886       if test "$host_cpu" != ia64; then
15887         ld_shlibs_F77=no
15888         cat <<EOF 1>&2
15889
15890 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15891 *** to be unable to reliably create shared libraries on AIX.
15892 *** Therefore, libtool is disabling shared libraries support.  If you
15893 *** really care for shared libraries, you may want to modify your PATH
15894 *** so that a non-GNU linker is found, and then restart.
15895
15896 EOF
15897       fi
15898       ;;
15899
15900     amigaos*)
15901       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)'
15902       hardcode_libdir_flag_spec_F77='-L$libdir'
15903       hardcode_minus_L_F77=yes
15904
15905       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15906       # that the semantics of dynamic libraries on AmigaOS, at least up
15907       # to version 4, is to share data among multiple programs linked
15908       # with the same dynamic library.  Since this doesn't match the
15909       # behavior of shared libraries on other platforms, we can't use
15910       # them.
15911       ld_shlibs_F77=no
15912       ;;
15913
15914     beos*)
15915       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15916         allow_undefined_flag_F77=unsupported
15917         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15918         # support --undefined.  This deserves some investigation.  FIXME
15919         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15920       else
15921         ld_shlibs_F77=no
15922       fi
15923       ;;
15924
15925     cygwin* | mingw* | pw32*)
15926       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15927       # as there is no search path for DLLs.
15928       hardcode_libdir_flag_spec_F77='-L$libdir'
15929       allow_undefined_flag_F77=unsupported
15930       always_export_symbols_F77=no
15931       enable_shared_with_static_runtimes_F77=yes
15932       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15933
15934       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15935         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15936         # If the export-symbols file already is a .def file (1st line
15937         # is EXPORTS), use it as is; otherwise, prepend...
15938         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15939           cp $export_symbols $output_objdir/$soname.def;
15940         else
15941           echo EXPORTS > $output_objdir/$soname.def;
15942           cat $export_symbols >> $output_objdir/$soname.def;
15943         fi~
15944         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15945       else
15946         ld_shlibs_F77=no
15947       fi
15948       ;;
15949
15950     interix3*)
15951       hardcode_direct_F77=no
15952       hardcode_shlibpath_var_F77=no
15953       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15954       export_dynamic_flag_spec_F77='${wl}-E'
15955       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15956       # Instead, shared libraries are loaded at an image base (0x10000000 by
15957       # default) and relocated if they conflict, which is a slow very memory
15958       # consuming and fragmenting process.  To avoid this, we pick a random,
15959       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15960       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15961       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'
15962       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'
15963       ;;
15964
15965     linux* | k*bsd*-gnu)
15966       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15967         tmp_addflag=
15968         case $cc_basename,$host_cpu in
15969         pgcc*)                          # Portland Group C compiler
15970           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'
15971           tmp_addflag=' $pic_flag'
15972           ;;
15973         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15974           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'
15975           tmp_addflag=' $pic_flag -Mnomain' ;;
15976         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15977           tmp_addflag=' -i_dynamic' ;;
15978         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15979           tmp_addflag=' -i_dynamic -nofor_main' ;;
15980         ifc* | ifort*)                  # Intel Fortran compiler
15981           tmp_addflag=' -nofor_main' ;;
15982         esac
15983         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984
15985         if test $supports_anon_versioning = yes; then
15986           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15987   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15988   $echo "local: *; };" >> $output_objdir/$libname.ver~
15989           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15990         fi
15991         link_all_deplibs_F77=no
15992       else
15993         ld_shlibs_F77=no
15994       fi
15995       ;;
15996
15997     netbsd* | netbsdelf*-gnu)
15998       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15999         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16000         wlarc=
16001       else
16002         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16003         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16004       fi
16005       ;;
16006
16007     solaris*)
16008       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16009         ld_shlibs_F77=no
16010         cat <<EOF 1>&2
16011
16012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16013 *** create shared libraries on Solaris systems.  Therefore, libtool
16014 *** is disabling shared libraries support.  We urge you to upgrade GNU
16015 *** binutils to release 2.9.1 or newer.  Another option is to modify
16016 *** your PATH or compiler configuration so that the native linker is
16017 *** used, and then restart.
16018
16019 EOF
16020       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16023       else
16024         ld_shlibs_F77=no
16025       fi
16026       ;;
16027
16028     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16029       case `$LD -v 2>&1` in
16030         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16031         ld_shlibs_F77=no
16032         cat <<_LT_EOF 1>&2
16033
16034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16035 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16036 *** is disabling shared libraries support.  We urge you to upgrade GNU
16037 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16038 *** your PATH or compiler configuration so that the native linker is
16039 *** used, and then restart.
16040
16041 _LT_EOF
16042         ;;
16043         *)
16044           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16046             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16047             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16048           else
16049             ld_shlibs_F77=no
16050           fi
16051         ;;
16052       esac
16053       ;;
16054
16055     sunos4*)
16056       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16057       wlarc=
16058       hardcode_direct_F77=yes
16059       hardcode_shlibpath_var_F77=no
16060       ;;
16061
16062     *)
16063       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16065         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16066       else
16067         ld_shlibs_F77=no
16068       fi
16069       ;;
16070     esac
16071
16072     if test "$ld_shlibs_F77" = no; then
16073       runpath_var=
16074       hardcode_libdir_flag_spec_F77=
16075       export_dynamic_flag_spec_F77=
16076       whole_archive_flag_spec_F77=
16077     fi
16078   else
16079     # PORTME fill in a description of your system's linker (not GNU ld)
16080     case $host_os in
16081     aix3*)
16082       allow_undefined_flag_F77=unsupported
16083       always_export_symbols_F77=yes
16084       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'
16085       # Note: this linker hardcodes the directories in LIBPATH if there
16086       # are no directories specified by -L.
16087       hardcode_minus_L_F77=yes
16088       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16089         # Neither direct hardcoding nor static linking is supported with a
16090         # broken collect2.
16091         hardcode_direct_F77=unsupported
16092       fi
16093       ;;
16094
16095     aix4* | aix5*)
16096       if test "$host_cpu" = ia64; then
16097         # On IA64, the linker does run time linking by default, so we don't
16098         # have to do anything special.
16099         aix_use_runtimelinking=no
16100         exp_sym_flag='-Bexport'
16101         no_entry_flag=""
16102       else
16103         # If we're using GNU nm, then we don't want the "-C" option.
16104         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16105         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16106           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'
16107         else
16108           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'
16109         fi
16110         aix_use_runtimelinking=no
16111
16112         # Test if we are trying to use run time linking or normal
16113         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16114         # need to do runtime linking.
16115         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16116           for ld_flag in $LDFLAGS; do
16117           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16118             aix_use_runtimelinking=yes
16119             break
16120           fi
16121           done
16122           ;;
16123         esac
16124
16125         exp_sym_flag='-bexport'
16126         no_entry_flag='-bnoentry'
16127       fi
16128
16129       # When large executables or shared objects are built, AIX ld can
16130       # have problems creating the table of contents.  If linking a library
16131       # or program results in "error TOC overflow" add -mminimal-toc to
16132       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16133       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16134
16135       archive_cmds_F77=''
16136       hardcode_direct_F77=yes
16137       hardcode_libdir_separator_F77=':'
16138       link_all_deplibs_F77=yes
16139
16140       if test "$GCC" = yes; then
16141         case $host_os in aix4.[012]|aix4.[012].*)
16142         # We only want to do this on AIX 4.2 and lower, the check
16143         # below for broken collect2 doesn't work under 4.3+
16144           collect2name=`${CC} -print-prog-name=collect2`
16145           if test -f "$collect2name" && \
16146            strings "$collect2name" | grep resolve_lib_name >/dev/null
16147           then
16148           # We have reworked collect2
16149           hardcode_direct_F77=yes
16150           else
16151           # We have old collect2
16152           hardcode_direct_F77=unsupported
16153           # It fails to find uninstalled libraries when the uninstalled
16154           # path is not listed in the libpath.  Setting hardcode_minus_L
16155           # to unsupported forces relinking
16156           hardcode_minus_L_F77=yes
16157           hardcode_libdir_flag_spec_F77='-L$libdir'
16158           hardcode_libdir_separator_F77=
16159           fi
16160           ;;
16161         esac
16162         shared_flag='-shared'
16163         if test "$aix_use_runtimelinking" = yes; then
16164           shared_flag="$shared_flag "'${wl}-G'
16165         fi
16166       else
16167         # not using gcc
16168         if test "$host_cpu" = ia64; then
16169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16170         # chokes on -Wl,-G. The following line is correct:
16171           shared_flag='-G'
16172         else
16173           if test "$aix_use_runtimelinking" = yes; then
16174             shared_flag='${wl}-G'
16175           else
16176             shared_flag='${wl}-bM:SRE'
16177           fi
16178         fi
16179       fi
16180
16181       # It seems that -bexpall does not export symbols beginning with
16182       # underscore (_), so it is better to generate a list of symbols to export.
16183       always_export_symbols_F77=yes
16184       if test "$aix_use_runtimelinking" = yes; then
16185         # Warning - without using the other runtime loading flags (-brtl),
16186         # -berok will link without error, but may produce a broken library.
16187         allow_undefined_flag_F77='-berok'
16188        # Determine the default libpath from the value encoded in an empty executable.
16189        cat >conftest.$ac_ext <<_ACEOF
16190       program main
16191
16192       end
16193 _ACEOF
16194 rm -f conftest.$ac_objext conftest$ac_exeext
16195 if { (ac_try="$ac_link"
16196 case "(($ac_try" in
16197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198   *) ac_try_echo=$ac_try;;
16199 esac
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201   (eval "$ac_link") 2>conftest.er1
16202   ac_status=$?
16203   grep -v '^ *+' conftest.er1 >conftest.err
16204   rm -f conftest.er1
16205   cat conftest.err >&5
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); } &&
16208          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16209   { (case "(($ac_try" in
16210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211   *) ac_try_echo=$ac_try;;
16212 esac
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214   (eval "$ac_try") 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest$ac_exeext'
16219   { (case "(($ac_try" in
16220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221   *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224   (eval "$ac_try") 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; }; then
16228
16229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16230 }'`
16231 # Check for a 64-bit object if we didn't find anything.
16232 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; }
16233 }'`; fi
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238
16239 fi
16240
16241 rm -f conftest.err conftest.$ac_objext \
16242       conftest$ac_exeext conftest.$ac_ext
16243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16244
16245        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16246         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"
16247        else
16248         if test "$host_cpu" = ia64; then
16249           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16250           allow_undefined_flag_F77="-z nodefs"
16251           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"
16252         else
16253          # Determine the default libpath from the value encoded in an empty executable.
16254          cat >conftest.$ac_ext <<_ACEOF
16255       program main
16256
16257       end
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (ac_try="$ac_link"
16261 case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_link") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } &&
16273          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16274   { (case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_try") 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; } &&
16283          { ac_try='test -s conftest$ac_exeext'
16284   { (case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_try") 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293
16294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16295 }'`
16296 # Check for a 64-bit object if we didn't find anything.
16297 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; }
16298 }'`; fi
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303
16304 fi
16305
16306 rm -f conftest.err conftest.$ac_objext \
16307       conftest$ac_exeext conftest.$ac_ext
16308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
16310          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16311           # Warning - without using the other run time loading flags,
16312           # -berok will link without error, but may produce a broken library.
16313           no_undefined_flag_F77=' ${wl}-bernotok'
16314           allow_undefined_flag_F77=' ${wl}-berok'
16315           # Exported symbols can be pulled into shared objects from archives
16316           whole_archive_flag_spec_F77='$convenience'
16317           archive_cmds_need_lc_F77=yes
16318           # This is similar to how AIX traditionally builds its shared libraries.
16319           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'
16320         fi
16321       fi
16322       ;;
16323
16324     amigaos*)
16325       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)'
16326       hardcode_libdir_flag_spec_F77='-L$libdir'
16327       hardcode_minus_L_F77=yes
16328       # see comment about different semantics on the GNU ld section
16329       ld_shlibs_F77=no
16330       ;;
16331
16332     bsdi[45]*)
16333       export_dynamic_flag_spec_F77=-rdynamic
16334       ;;
16335
16336     cygwin* | mingw* | pw32*)
16337       # When not using gcc, we currently assume that we are using
16338       # Microsoft Visual C++.
16339       # hardcode_libdir_flag_spec is actually meaningless, as there is
16340       # no search path for DLLs.
16341       hardcode_libdir_flag_spec_F77=' '
16342       allow_undefined_flag_F77=unsupported
16343       # Tell ltmain to make .lib files, not .a files.
16344       libext=lib
16345       # Tell ltmain to make .dll files, not .so files.
16346       shrext_cmds=".dll"
16347       # FIXME: Setting linknames here is a bad hack.
16348       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16349       # The linker will automatically build a .lib file if we build a DLL.
16350       old_archive_From_new_cmds_F77='true'
16351       # FIXME: Should let the user specify the lib program.
16352       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16353       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16354       enable_shared_with_static_runtimes_F77=yes
16355       ;;
16356
16357     darwin* | rhapsody*)
16358       case $host_os in
16359         rhapsody* | darwin1.[012])
16360          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16361          ;;
16362        *) # Darwin 1.3 on
16363          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16364            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16365          else
16366            case ${MACOSX_DEPLOYMENT_TARGET} in
16367              10.[012])
16368                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16369                ;;
16370              10.*)
16371                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16372                ;;
16373            esac
16374          fi
16375          ;;
16376       esac
16377       archive_cmds_need_lc_F77=no
16378       hardcode_direct_F77=no
16379       hardcode_automatic_F77=yes
16380       hardcode_shlibpath_var_F77=unsupported
16381       whole_archive_flag_spec_F77=''
16382       link_all_deplibs_F77=yes
16383     if test "$GCC" = yes ; then
16384         output_verbose_link_cmd='echo'
16385         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16386       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16387       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16388       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}'
16389       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}'
16390     else
16391       case $cc_basename in
16392         xlc*)
16393          output_verbose_link_cmd='echo'
16394          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16395          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16396           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16397          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}'
16398           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}'
16399           ;;
16400        *)
16401          ld_shlibs_F77=no
16402           ;;
16403       esac
16404     fi
16405       ;;
16406
16407     dgux*)
16408       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409       hardcode_libdir_flag_spec_F77='-L$libdir'
16410       hardcode_shlibpath_var_F77=no
16411       ;;
16412
16413     freebsd1*)
16414       ld_shlibs_F77=no
16415       ;;
16416
16417     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16418     # support.  Future versions do this automatically, but an explicit c++rt0.o
16419     # does not break anything, and helps significantly (at the cost of a little
16420     # extra space).
16421     freebsd2.2*)
16422       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16423       hardcode_libdir_flag_spec_F77='-R$libdir'
16424       hardcode_direct_F77=yes
16425       hardcode_shlibpath_var_F77=no
16426       ;;
16427
16428     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16429     freebsd2*)
16430       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16431       hardcode_direct_F77=yes
16432       hardcode_minus_L_F77=yes
16433       hardcode_shlibpath_var_F77=no
16434       ;;
16435
16436     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16437     freebsd* | dragonfly*)
16438       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16439       hardcode_libdir_flag_spec_F77='-R$libdir'
16440       hardcode_direct_F77=yes
16441       hardcode_shlibpath_var_F77=no
16442       ;;
16443
16444     hpux9*)
16445       if test "$GCC" = yes; then
16446         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'
16447       else
16448         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'
16449       fi
16450       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16451       hardcode_libdir_separator_F77=:
16452       hardcode_direct_F77=yes
16453
16454       # hardcode_minus_L: Not really in the search PATH,
16455       # but as the default location of the library.
16456       hardcode_minus_L_F77=yes
16457       export_dynamic_flag_spec_F77='${wl}-E'
16458       ;;
16459
16460     hpux10*)
16461       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16462         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463       else
16464         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16465       fi
16466       if test "$with_gnu_ld" = no; then
16467         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16468         hardcode_libdir_separator_F77=:
16469
16470         hardcode_direct_F77=yes
16471         export_dynamic_flag_spec_F77='${wl}-E'
16472
16473         # hardcode_minus_L: Not really in the search PATH,
16474         # but as the default location of the library.
16475         hardcode_minus_L_F77=yes
16476       fi
16477       ;;
16478
16479     hpux11*)
16480       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16481         case $host_cpu in
16482         hppa*64*)
16483           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16484           ;;
16485         ia64*)
16486           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16487           ;;
16488         *)
16489           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16490           ;;
16491         esac
16492       else
16493         case $host_cpu in
16494         hppa*64*)
16495           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16496           ;;
16497         ia64*)
16498           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16499           ;;
16500         *)
16501           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16502           ;;
16503         esac
16504       fi
16505       if test "$with_gnu_ld" = no; then
16506         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507         hardcode_libdir_separator_F77=:
16508
16509         case $host_cpu in
16510         hppa*64*|ia64*)
16511           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16512           hardcode_direct_F77=no
16513           hardcode_shlibpath_var_F77=no
16514           ;;
16515         *)
16516           hardcode_direct_F77=yes
16517           export_dynamic_flag_spec_F77='${wl}-E'
16518
16519           # hardcode_minus_L: Not really in the search PATH,
16520           # but as the default location of the library.
16521           hardcode_minus_L_F77=yes
16522           ;;
16523         esac
16524       fi
16525       ;;
16526
16527     irix5* | irix6* | nonstopux*)
16528       if test "$GCC" = yes; then
16529         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'
16530       else
16531         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'
16532         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16533       fi
16534       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16535       hardcode_libdir_separator_F77=:
16536       link_all_deplibs_F77=yes
16537       ;;
16538
16539     netbsd* | netbsdelf*-gnu)
16540       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16541         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16542       else
16543         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16544       fi
16545       hardcode_libdir_flag_spec_F77='-R$libdir'
16546       hardcode_direct_F77=yes
16547       hardcode_shlibpath_var_F77=no
16548       ;;
16549
16550     newsos6)
16551       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552       hardcode_direct_F77=yes
16553       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16554       hardcode_libdir_separator_F77=:
16555       hardcode_shlibpath_var_F77=no
16556       ;;
16557
16558     openbsd*)
16559       hardcode_direct_F77=yes
16560       hardcode_shlibpath_var_F77=no
16561       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16562         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16563         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16564         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16565         export_dynamic_flag_spec_F77='${wl}-E'
16566       else
16567        case $host_os in
16568          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16569            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16570            hardcode_libdir_flag_spec_F77='-R$libdir'
16571            ;;
16572          *)
16573            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16574            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16575            ;;
16576        esac
16577       fi
16578       ;;
16579
16580     os2*)
16581       hardcode_libdir_flag_spec_F77='-L$libdir'
16582       hardcode_minus_L_F77=yes
16583       allow_undefined_flag_F77=unsupported
16584       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'
16585       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16586       ;;
16587
16588     osf3*)
16589       if test "$GCC" = yes; then
16590         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16591         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'
16592       else
16593         allow_undefined_flag_F77=' -expect_unresolved \*'
16594         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'
16595       fi
16596       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16597       hardcode_libdir_separator_F77=:
16598       ;;
16599
16600     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16601       if test "$GCC" = yes; then
16602         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16603         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'
16604         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605       else
16606         allow_undefined_flag_F77=' -expect_unresolved \*'
16607         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'
16608         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~
16609         $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'
16610
16611         # Both c and cxx compiler support -rpath directly
16612         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16613       fi
16614       hardcode_libdir_separator_F77=:
16615       ;;
16616
16617     solaris*)
16618       no_undefined_flag_F77=' -z text'
16619       if test "$GCC" = yes; then
16620         wlarc='${wl}'
16621         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16622         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16624       else
16625         wlarc=''
16626         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16628         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16629       fi
16630       hardcode_libdir_flag_spec_F77='-R$libdir'
16631       hardcode_shlibpath_var_F77=no
16632       case $host_os in
16633       solaris2.[0-5] | solaris2.[0-5].*) ;;
16634       *)
16635         # The compiler driver will combine linker options so we
16636         # cannot just pass the convience library names through
16637         # without $wl, iff we do not link with $LD.
16638         # Luckily, gcc supports the same syntax we need for Sun Studio.
16639         # Supported since Solaris 2.6 (maybe 2.5.1?)
16640         case $wlarc in
16641         '')
16642           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16643         *)
16644           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' ;;
16645         esac ;;
16646       esac
16647       link_all_deplibs_F77=yes
16648       ;;
16649
16650     sunos4*)
16651       if test "x$host_vendor" = xsequent; then
16652         # Use $CC to link under sequent, because it throws in some extra .o
16653         # files that make .init and .fini sections work.
16654         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16655       else
16656         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16657       fi
16658       hardcode_libdir_flag_spec_F77='-L$libdir'
16659       hardcode_direct_F77=yes
16660       hardcode_minus_L_F77=yes
16661       hardcode_shlibpath_var_F77=no
16662       ;;
16663
16664     sysv4)
16665       case $host_vendor in
16666         sni)
16667           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16668           hardcode_direct_F77=yes # is this really true???
16669         ;;
16670         siemens)
16671           ## LD is ld it makes a PLAMLIB
16672           ## CC just makes a GrossModule.
16673           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16674           reload_cmds_F77='$CC -r -o $output$reload_objs'
16675           hardcode_direct_F77=no
16676         ;;
16677         motorola)
16678           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16680         ;;
16681       esac
16682       runpath_var='LD_RUN_PATH'
16683       hardcode_shlibpath_var_F77=no
16684       ;;
16685
16686     sysv4.3*)
16687       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688       hardcode_shlibpath_var_F77=no
16689       export_dynamic_flag_spec_F77='-Bexport'
16690       ;;
16691
16692     sysv4*MP*)
16693       if test -d /usr/nec; then
16694         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695         hardcode_shlibpath_var_F77=no
16696         runpath_var=LD_RUN_PATH
16697         hardcode_runpath_var=yes
16698         ld_shlibs_F77=yes
16699       fi
16700       ;;
16701
16702     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16703       no_undefined_flag_F77='${wl}-z,text'
16704       archive_cmds_need_lc_F77=no
16705       hardcode_shlibpath_var_F77=no
16706       runpath_var='LD_RUN_PATH'
16707
16708       if test "$GCC" = yes; then
16709         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711       else
16712         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16713         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714       fi
16715       ;;
16716
16717     sysv5* | sco3.2v5* | sco5v6*)
16718       # Note: We can NOT use -z defs as we might desire, because we do not
16719       # link with -lc, and that would cause any symbols used from libc to
16720       # always be unresolved, which means just about no library would
16721       # ever link correctly.  If we're not using GNU ld we use -z text
16722       # though, which does catch some bad symbols but isn't as heavy-handed
16723       # as -z defs.
16724       no_undefined_flag_F77='${wl}-z,text'
16725       allow_undefined_flag_F77='${wl}-z,nodefs'
16726       archive_cmds_need_lc_F77=no
16727       hardcode_shlibpath_var_F77=no
16728       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16729       hardcode_libdir_separator_F77=':'
16730       link_all_deplibs_F77=yes
16731       export_dynamic_flag_spec_F77='${wl}-Bexport'
16732       runpath_var='LD_RUN_PATH'
16733
16734       if test "$GCC" = yes; then
16735         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737       else
16738         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740       fi
16741       ;;
16742
16743     uts4*)
16744       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745       hardcode_libdir_flag_spec_F77='-L$libdir'
16746       hardcode_shlibpath_var_F77=no
16747       ;;
16748
16749     *)
16750       ld_shlibs_F77=no
16751       ;;
16752     esac
16753   fi
16754
16755 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16756 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16757 test "$ld_shlibs_F77" = no && can_build_shared=no
16758
16759 #
16760 # Do we need to explicitly link libc?
16761 #
16762 case "x$archive_cmds_need_lc_F77" in
16763 x|xyes)
16764   # Assume -lc should be added
16765   archive_cmds_need_lc_F77=yes
16766
16767   if test "$enable_shared" = yes && test "$GCC" = yes; then
16768     case $archive_cmds_F77 in
16769     *'~'*)
16770       # FIXME: we may have to deal with multi-command sequences.
16771       ;;
16772     '$CC '*)
16773       # Test whether the compiler implicitly links with -lc since on some
16774       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16775       # to ld, don't add -lc before -lgcc.
16776       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16777 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16778       $rm conftest*
16779       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16780
16781       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782   (eval $ac_compile) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } 2>conftest.err; then
16786         soname=conftest
16787         lib=conftest
16788         libobjs=conftest.$ac_objext
16789         deplibs=
16790         wl=$lt_prog_compiler_wl_F77
16791         pic_flag=$lt_prog_compiler_pic_F77
16792         compiler_flags=-v
16793         linker_flags=-v
16794         verstring=
16795         output_objdir=.
16796         libname=conftest
16797         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16798         allow_undefined_flag_F77=
16799         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16800   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }
16804         then
16805           archive_cmds_need_lc_F77=no
16806         else
16807           archive_cmds_need_lc_F77=yes
16808         fi
16809         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16810       else
16811         cat conftest.err 1>&5
16812       fi
16813       $rm conftest*
16814       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16815 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16816       ;;
16817     esac
16818   fi
16819   ;;
16820 esac
16821
16822 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16824 library_names_spec=
16825 libname_spec='lib$name'
16826 soname_spec=
16827 shrext_cmds=".so"
16828 postinstall_cmds=
16829 postuninstall_cmds=
16830 finish_cmds=
16831 finish_eval=
16832 shlibpath_var=
16833 shlibpath_overrides_runpath=unknown
16834 version_type=none
16835 dynamic_linker="$host_os ld.so"
16836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16837 if test "$GCC" = yes; then
16838   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16839   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16840     # if the path contains ";" then we assume it to be the separator
16841     # otherwise default to the standard path separator (i.e. ":") - it is
16842     # assumed that no part of a normal pathname contains ";" but that should
16843     # okay in the real world where ";" in dirpaths is itself problematic.
16844     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16845   else
16846     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16847   fi
16848 else
16849   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16850 fi
16851 need_lib_prefix=unknown
16852 hardcode_into_libs=no
16853
16854 # when you set need_version to no, make sure it does not cause -set_version
16855 # flags to be left without arguments
16856 need_version=unknown
16857
16858 case $host_os in
16859 aix3*)
16860   version_type=linux
16861   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16862   shlibpath_var=LIBPATH
16863
16864   # AIX 3 has no versioning support, so we append a major version to the name.
16865   soname_spec='${libname}${release}${shared_ext}$major'
16866   ;;
16867
16868 aix4* | aix5*)
16869   version_type=linux
16870   need_lib_prefix=no
16871   need_version=no
16872   hardcode_into_libs=yes
16873   if test "$host_cpu" = ia64; then
16874     # AIX 5 supports IA64
16875     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16876     shlibpath_var=LD_LIBRARY_PATH
16877   else
16878     # With GCC up to 2.95.x, collect2 would create an import file
16879     # for dependence libraries.  The import file would start with
16880     # the line `#! .'.  This would cause the generated library to
16881     # depend on `.', always an invalid library.  This was fixed in
16882     # development snapshots of GCC prior to 3.0.
16883     case $host_os in
16884       aix4 | aix4.[01] | aix4.[01].*)
16885       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16886            echo ' yes '
16887            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16888         :
16889       else
16890         can_build_shared=no
16891       fi
16892       ;;
16893     esac
16894     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16895     # soname into executable. Probably we can add versioning support to
16896     # collect2, so additional links can be useful in future.
16897     if test "$aix_use_runtimelinking" = yes; then
16898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16899       # instead of lib<name>.a to let people know that these are not
16900       # typical AIX shared libraries.
16901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16902     else
16903       # We preserve .a as extension for shared libraries through AIX4.2
16904       # and later when we are not doing run time linking.
16905       library_names_spec='${libname}${release}.a $libname.a'
16906       soname_spec='${libname}${release}${shared_ext}$major'
16907     fi
16908     shlibpath_var=LIBPATH
16909   fi
16910   ;;
16911
16912 amigaos*)
16913   library_names_spec='$libname.ixlibrary $libname.a'
16914   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16915   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'
16916   ;;
16917
16918 beos*)
16919   library_names_spec='${libname}${shared_ext}'
16920   dynamic_linker="$host_os ld.so"
16921   shlibpath_var=LIBRARY_PATH
16922   ;;
16923
16924 bsdi[45]*)
16925   version_type=linux
16926   need_version=no
16927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928   soname_spec='${libname}${release}${shared_ext}$major'
16929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16930   shlibpath_var=LD_LIBRARY_PATH
16931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16933   # the default ld.so.conf also contains /usr/contrib/lib and
16934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16935   # libtool to hard-code these into programs
16936   ;;
16937
16938 cygwin* | mingw* | pw32*)
16939   version_type=windows
16940   shrext_cmds=".dll"
16941   need_version=no
16942   need_lib_prefix=no
16943
16944   case $GCC,$host_os in
16945   yes,cygwin* | yes,mingw* | yes,pw32*)
16946     library_names_spec='$libname.dll.a'
16947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16948     postinstall_cmds='base_file=`basename \${file}`~
16949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16950       dldir=$destdir/`dirname \$dlpath`~
16951       test -d \$dldir || mkdir -p \$dldir~
16952       $install_prog $dir/$dlname \$dldir/$dlname~
16953       chmod a+x \$dldir/$dlname'
16954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16955       dlpath=$dir/\$dldll~
16956        $rm \$dlpath'
16957     shlibpath_overrides_runpath=yes
16958
16959     case $host_os in
16960     cygwin*)
16961       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16962       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16963       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16964       ;;
16965     mingw*)
16966       # MinGW DLLs use traditional 'lib' prefix
16967       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16968       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16969       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16970         # It is most probably a Windows format PATH printed by
16971         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16972         # path with ; separators, and with drive letters. We can handle the
16973         # drive letters (cygwin fileutils understands them), so leave them,
16974         # especially as we might pass files found there to a mingw objdump,
16975         # which wouldn't understand a cygwinified path. Ahh.
16976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16977       else
16978         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16979       fi
16980       ;;
16981     pw32*)
16982       # pw32 DLLs use 'pw' prefix rather than 'lib'
16983       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16984       ;;
16985     esac
16986     ;;
16987
16988   *)
16989     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16990     ;;
16991   esac
16992   dynamic_linker='Win32 ld.exe'
16993   # FIXME: first we should search . and the directory the executable is in
16994   shlibpath_var=PATH
16995   ;;
16996
16997 darwin* | rhapsody*)
16998   dynamic_linker="$host_os dyld"
16999   version_type=darwin
17000   need_lib_prefix=no
17001   need_version=no
17002   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17003   soname_spec='${libname}${release}${major}$shared_ext'
17004   shlibpath_overrides_runpath=yes
17005   shlibpath_var=DYLD_LIBRARY_PATH
17006   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17007   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17008   if test "$GCC" = yes; then
17009     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"`
17010   else
17011     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17012   fi
17013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17014   ;;
17015
17016 dgux*)
17017   version_type=linux
17018   need_lib_prefix=no
17019   need_version=no
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17021   soname_spec='${libname}${release}${shared_ext}$major'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   ;;
17024
17025 freebsd1*)
17026   dynamic_linker=no
17027   ;;
17028
17029 freebsd* | dragonfly*)
17030   # DragonFly does not have aout.  When/if they implement a new
17031   # versioning mechanism, adjust this.
17032   if test -x /usr/bin/objformat; then
17033     objformat=`/usr/bin/objformat`
17034   else
17035     case $host_os in
17036     freebsd[123]*) objformat=aout ;;
17037     *) objformat=elf ;;
17038     esac
17039   fi
17040   version_type=freebsd-$objformat
17041   case $version_type in
17042     freebsd-elf*)
17043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17044       need_version=no
17045       need_lib_prefix=no
17046       ;;
17047     freebsd-*)
17048       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17049       need_version=yes
17050       ;;
17051   esac
17052   shlibpath_var=LD_LIBRARY_PATH
17053   case $host_os in
17054   freebsd2*)
17055     shlibpath_overrides_runpath=yes
17056     ;;
17057   freebsd3.[01]* | freebsdelf3.[01]*)
17058     shlibpath_overrides_runpath=yes
17059     hardcode_into_libs=yes
17060     ;;
17061   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17062   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17063     shlibpath_overrides_runpath=no
17064     hardcode_into_libs=yes
17065     ;;
17066   freebsd*) # from 4.6 on
17067     shlibpath_overrides_runpath=yes
17068     hardcode_into_libs=yes
17069     ;;
17070   esac
17071   ;;
17072
17073 gnu*)
17074   version_type=linux
17075   need_lib_prefix=no
17076   need_version=no
17077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   shlibpath_var=LD_LIBRARY_PATH
17080   hardcode_into_libs=yes
17081   ;;
17082
17083 hpux9* | hpux10* | hpux11*)
17084   # Give a soname corresponding to the major version so that dld.sl refuses to
17085   # link against other versions.
17086   version_type=sunos
17087   need_lib_prefix=no
17088   need_version=no
17089   case $host_cpu in
17090   ia64*)
17091     shrext_cmds='.so'
17092     hardcode_into_libs=yes
17093     dynamic_linker="$host_os dld.so"
17094     shlibpath_var=LD_LIBRARY_PATH
17095     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097     soname_spec='${libname}${release}${shared_ext}$major'
17098     if test "X$HPUX_IA64_MODE" = X32; then
17099       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17100     else
17101       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17102     fi
17103     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17104     ;;
17105    hppa*64*)
17106      shrext_cmds='.sl'
17107      hardcode_into_libs=yes
17108      dynamic_linker="$host_os dld.sl"
17109      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17110      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112      soname_spec='${libname}${release}${shared_ext}$major'
17113      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17114      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17115      ;;
17116    *)
17117     shrext_cmds='.sl'
17118     dynamic_linker="$host_os dld.sl"
17119     shlibpath_var=SHLIB_PATH
17120     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122     soname_spec='${libname}${release}${shared_ext}$major'
17123     ;;
17124   esac
17125   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17126   postinstall_cmds='chmod 555 $lib'
17127   ;;
17128
17129 interix3*)
17130   version_type=linux
17131   need_lib_prefix=no
17132   need_version=no
17133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17134   soname_spec='${libname}${release}${shared_ext}$major'
17135   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17136   shlibpath_var=LD_LIBRARY_PATH
17137   shlibpath_overrides_runpath=no
17138   hardcode_into_libs=yes
17139   ;;
17140
17141 irix5* | irix6* | nonstopux*)
17142   case $host_os in
17143     nonstopux*) version_type=nonstopux ;;
17144     *)
17145         if test "$lt_cv_prog_gnu_ld" = yes; then
17146                 version_type=linux
17147         else
17148                 version_type=irix
17149         fi ;;
17150   esac
17151   need_lib_prefix=no
17152   need_version=no
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17155   case $host_os in
17156   irix5* | nonstopux*)
17157     libsuff= shlibsuff=
17158     ;;
17159   *)
17160     case $LD in # libtool.m4 will add one of these switches to LD
17161     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17162       libsuff= shlibsuff= libmagic=32-bit;;
17163     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17164       libsuff=32 shlibsuff=N32 libmagic=N32;;
17165     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17166       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17167     *) libsuff= shlibsuff= libmagic=never-match;;
17168     esac
17169     ;;
17170   esac
17171   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17172   shlibpath_overrides_runpath=no
17173   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17174   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17175   hardcode_into_libs=yes
17176   ;;
17177
17178 # No shared lib support for Linux oldld, aout, or coff.
17179 linux*oldld* | linux*aout* | linux*coff*)
17180   dynamic_linker=no
17181   ;;
17182
17183 # This must be Linux ELF.
17184 linux* | k*bsd*-gnu)
17185   version_type=linux
17186   need_lib_prefix=no
17187   need_version=no
17188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189   soname_spec='${libname}${release}${shared_ext}$major'
17190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17191   shlibpath_var=LD_LIBRARY_PATH
17192   shlibpath_overrides_runpath=no
17193   # This implies no fast_install, which is unacceptable.
17194   # Some rework will be needed to allow for fast_install
17195   # before this can be enabled.
17196   hardcode_into_libs=yes
17197
17198   # Append ld.so.conf contents to the search path
17199   if test -f /etc/ld.so.conf; then
17200     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' ' '`
17201     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17202   fi
17203
17204   # We used to test for /lib/ld.so.1 and disable shared libraries on
17205   # powerpc, because MkLinux only supported shared libraries with the
17206   # GNU dynamic linker.  Since this was broken with cross compilers,
17207   # most powerpc-linux boxes support dynamic linking these days and
17208   # people can always --disable-shared, the test was removed, and we
17209   # assume the GNU/Linux dynamic linker is in use.
17210   dynamic_linker='GNU/Linux ld.so'
17211   ;;
17212
17213 netbsdelf*-gnu)
17214   version_type=linux
17215   need_lib_prefix=no
17216   need_version=no
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17218   soname_spec='${libname}${release}${shared_ext}$major'
17219   shlibpath_var=LD_LIBRARY_PATH
17220   shlibpath_overrides_runpath=no
17221   hardcode_into_libs=yes
17222   dynamic_linker='NetBSD ld.elf_so'
17223   ;;
17224
17225 netbsd*)
17226   version_type=sunos
17227   need_lib_prefix=no
17228   need_version=no
17229   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232     dynamic_linker='NetBSD (a.out) ld.so'
17233   else
17234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17235     soname_spec='${libname}${release}${shared_ext}$major'
17236     dynamic_linker='NetBSD ld.elf_so'
17237   fi
17238   shlibpath_var=LD_LIBRARY_PATH
17239   shlibpath_overrides_runpath=yes
17240   hardcode_into_libs=yes
17241   ;;
17242
17243 newsos6)
17244   version_type=linux
17245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   shlibpath_overrides_runpath=yes
17248   ;;
17249
17250 nto-qnx*)
17251   version_type=linux
17252   need_lib_prefix=no
17253   need_version=no
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   shlibpath_overrides_runpath=yes
17258   ;;
17259
17260 openbsd*)
17261   version_type=sunos
17262   sys_lib_dlsearch_path_spec="/usr/lib"
17263   need_lib_prefix=no
17264   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17265   case $host_os in
17266     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17267     *)                         need_version=no  ;;
17268   esac
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17270   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17273     case $host_os in
17274       openbsd2.[89] | openbsd2.[89].*)
17275         shlibpath_overrides_runpath=no
17276         ;;
17277       *)
17278         shlibpath_overrides_runpath=yes
17279         ;;
17280       esac
17281   else
17282     shlibpath_overrides_runpath=yes
17283   fi
17284   ;;
17285
17286 os2*)
17287   libname_spec='$name'
17288   shrext_cmds=".dll"
17289   need_lib_prefix=no
17290   library_names_spec='$libname${shared_ext} $libname.a'
17291   dynamic_linker='OS/2 ld.exe'
17292   shlibpath_var=LIBPATH
17293   ;;
17294
17295 osf3* | osf4* | osf5*)
17296   version_type=osf
17297   need_lib_prefix=no
17298   need_version=no
17299   soname_spec='${libname}${release}${shared_ext}$major'
17300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301   shlibpath_var=LD_LIBRARY_PATH
17302   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17303   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17304   ;;
17305
17306 solaris*)
17307   version_type=linux
17308   need_lib_prefix=no
17309   need_version=no
17310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311   soname_spec='${libname}${release}${shared_ext}$major'
17312   shlibpath_var=LD_LIBRARY_PATH
17313   shlibpath_overrides_runpath=yes
17314   hardcode_into_libs=yes
17315   # ldd complains unless libraries are executable
17316   postinstall_cmds='chmod +x $lib'
17317   ;;
17318
17319 sunos4*)
17320   version_type=sunos
17321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17322   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17323   shlibpath_var=LD_LIBRARY_PATH
17324   shlibpath_overrides_runpath=yes
17325   if test "$with_gnu_ld" = yes; then
17326     need_lib_prefix=no
17327   fi
17328   need_version=yes
17329   ;;
17330
17331 sysv4 | sysv4.3*)
17332   version_type=linux
17333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334   soname_spec='${libname}${release}${shared_ext}$major'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   case $host_vendor in
17337     sni)
17338       shlibpath_overrides_runpath=no
17339       need_lib_prefix=no
17340       export_dynamic_flag_spec='${wl}-Blargedynsym'
17341       runpath_var=LD_RUN_PATH
17342       ;;
17343     siemens)
17344       need_lib_prefix=no
17345       ;;
17346     motorola)
17347       need_lib_prefix=no
17348       need_version=no
17349       shlibpath_overrides_runpath=no
17350       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17351       ;;
17352   esac
17353   ;;
17354
17355 sysv4*MP*)
17356   if test -d /usr/nec ;then
17357     version_type=linux
17358     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17359     soname_spec='$libname${shared_ext}.$major'
17360     shlibpath_var=LD_LIBRARY_PATH
17361   fi
17362   ;;
17363
17364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17365   version_type=freebsd-elf
17366   need_lib_prefix=no
17367   need_version=no
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   hardcode_into_libs=yes
17372   if test "$with_gnu_ld" = yes; then
17373     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17374     shlibpath_overrides_runpath=no
17375   else
17376     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17377     shlibpath_overrides_runpath=yes
17378     case $host_os in
17379       sco3.2v5*)
17380         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17381         ;;
17382     esac
17383   fi
17384   sys_lib_dlsearch_path_spec='/usr/lib'
17385   ;;
17386
17387 uts4*)
17388   version_type=linux
17389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390   soname_spec='${libname}${release}${shared_ext}$major'
17391   shlibpath_var=LD_LIBRARY_PATH
17392   ;;
17393
17394 *)
17395   dynamic_linker=no
17396   ;;
17397 esac
17398 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17399 echo "${ECHO_T}$dynamic_linker" >&6; }
17400 test "$dynamic_linker" = no && can_build_shared=no
17401
17402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17403 if test "$GCC" = yes; then
17404   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17405 fi
17406
17407 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17408 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17409 hardcode_action_F77=
17410 if test -n "$hardcode_libdir_flag_spec_F77" || \
17411    test -n "$runpath_var_F77" || \
17412    test "X$hardcode_automatic_F77" = "Xyes" ; then
17413
17414   # We can hardcode non-existant directories.
17415   if test "$hardcode_direct_F77" != no &&
17416      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17417      # have to relink, otherwise we might link with an installed library
17418      # when we should be linking with a yet-to-be-installed one
17419      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17420      test "$hardcode_minus_L_F77" != no; then
17421     # Linking always hardcodes the temporary library directory.
17422     hardcode_action_F77=relink
17423   else
17424     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17425     hardcode_action_F77=immediate
17426   fi
17427 else
17428   # We cannot hardcode anything, or else we can only hardcode existing
17429   # directories.
17430   hardcode_action_F77=unsupported
17431 fi
17432 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17433 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17434
17435 if test "$hardcode_action_F77" = relink; then
17436   # Fast installation is not supported
17437   enable_fast_install=no
17438 elif test "$shlibpath_overrides_runpath" = yes ||
17439      test "$enable_shared" = no; then
17440   # Fast installation is not necessary
17441   enable_fast_install=needless
17442 fi
17443
17444
17445 # The else clause should only fire when bootstrapping the
17446 # libtool distribution, otherwise you forgot to ship ltmain.sh
17447 # with your package, and you will get complaints that there are
17448 # no rules to generate ltmain.sh.
17449 if test -f "$ltmain"; then
17450   # See if we are running on zsh, and set the options which allow our commands through
17451   # without removal of \ escapes.
17452   if test -n "${ZSH_VERSION+set}" ; then
17453     setopt NO_GLOB_SUBST
17454   fi
17455   # Now quote all the things that may contain metacharacters while being
17456   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17457   # variables and quote the copies for generation of the libtool script.
17458   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17459     SED SHELL STRIP \
17460     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17461     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17462     deplibs_check_method reload_flag reload_cmds need_locks \
17463     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17464     lt_cv_sys_global_symbol_to_c_name_address \
17465     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17466     old_postinstall_cmds old_postuninstall_cmds \
17467     compiler_F77 \
17468     CC_F77 \
17469     LD_F77 \
17470     lt_prog_compiler_wl_F77 \
17471     lt_prog_compiler_pic_F77 \
17472     lt_prog_compiler_static_F77 \
17473     lt_prog_compiler_no_builtin_flag_F77 \
17474     export_dynamic_flag_spec_F77 \
17475     thread_safe_flag_spec_F77 \
17476     whole_archive_flag_spec_F77 \
17477     enable_shared_with_static_runtimes_F77 \
17478     old_archive_cmds_F77 \
17479     old_archive_from_new_cmds_F77 \
17480     predep_objects_F77 \
17481     postdep_objects_F77 \
17482     predeps_F77 \
17483     postdeps_F77 \
17484     compiler_lib_search_path_F77 \
17485     archive_cmds_F77 \
17486     archive_expsym_cmds_F77 \
17487     postinstall_cmds_F77 \
17488     postuninstall_cmds_F77 \
17489     old_archive_from_expsyms_cmds_F77 \
17490     allow_undefined_flag_F77 \
17491     no_undefined_flag_F77 \
17492     export_symbols_cmds_F77 \
17493     hardcode_libdir_flag_spec_F77 \
17494     hardcode_libdir_flag_spec_ld_F77 \
17495     hardcode_libdir_separator_F77 \
17496     hardcode_automatic_F77 \
17497     module_cmds_F77 \
17498     module_expsym_cmds_F77 \
17499     lt_cv_prog_compiler_c_o_F77 \
17500     exclude_expsyms_F77 \
17501     include_expsyms_F77; do
17502
17503     case $var in
17504     old_archive_cmds_F77 | \
17505     old_archive_from_new_cmds_F77 | \
17506     archive_cmds_F77 | \
17507     archive_expsym_cmds_F77 | \
17508     module_cmds_F77 | \
17509     module_expsym_cmds_F77 | \
17510     old_archive_from_expsyms_cmds_F77 | \
17511     export_symbols_cmds_F77 | \
17512     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17513     postinstall_cmds | postuninstall_cmds | \
17514     old_postinstall_cmds | old_postuninstall_cmds | \
17515     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17516       # Double-quote double-evaled strings.
17517       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17518       ;;
17519     *)
17520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17521       ;;
17522     esac
17523   done
17524
17525   case $lt_echo in
17526   *'\$0 --fallback-echo"')
17527     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17528     ;;
17529   esac
17530
17531 cfgfile="$ofile"
17532
17533   cat <<__EOF__ >> "$cfgfile"
17534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17535
17536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17537
17538 # Shell to use when invoking shell scripts.
17539 SHELL=$lt_SHELL
17540
17541 # Whether or not to build shared libraries.
17542 build_libtool_libs=$enable_shared
17543
17544 # Whether or not to build static libraries.
17545 build_old_libs=$enable_static
17546
17547 # Whether or not to add -lc for building shared libraries.
17548 build_libtool_need_lc=$archive_cmds_need_lc_F77
17549
17550 # Whether or not to disallow shared libs when runtime libs are static
17551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17552
17553 # Whether or not to optimize for fast installation.
17554 fast_install=$enable_fast_install
17555
17556 # The host system.
17557 host_alias=$host_alias
17558 host=$host
17559 host_os=$host_os
17560
17561 # The build system.
17562 build_alias=$build_alias
17563 build=$build
17564 build_os=$build_os
17565
17566 # An echo program that does not interpret backslashes.
17567 echo=$lt_echo
17568
17569 # The archiver.
17570 AR=$lt_AR
17571 AR_FLAGS=$lt_AR_FLAGS
17572
17573 # A C compiler.
17574 LTCC=$lt_LTCC
17575
17576 # LTCC compiler flags.
17577 LTCFLAGS=$lt_LTCFLAGS
17578
17579 # A language-specific compiler.
17580 CC=$lt_compiler_F77
17581
17582 # Is the compiler the GNU C compiler?
17583 with_gcc=$GCC_F77
17584
17585 # An ERE matcher.
17586 EGREP=$lt_EGREP
17587
17588 # The linker used to build libraries.
17589 LD=$lt_LD_F77
17590
17591 # Whether we need hard or soft links.
17592 LN_S=$lt_LN_S
17593
17594 # A BSD-compatible nm program.
17595 NM=$lt_NM
17596
17597 # A symbol stripping program
17598 STRIP=$lt_STRIP
17599
17600 # Used to examine libraries when file_magic_cmd begins "file"
17601 MAGIC_CMD=$MAGIC_CMD
17602
17603 # Used on cygwin: DLL creation program.
17604 DLLTOOL="$DLLTOOL"
17605
17606 # Used on cygwin: object dumper.
17607 OBJDUMP="$OBJDUMP"
17608
17609 # Used on cygwin: assembler.
17610 AS="$AS"
17611
17612 # The name of the directory that contains temporary libtool files.
17613 objdir=$objdir
17614
17615 # How to create reloadable object files.
17616 reload_flag=$lt_reload_flag
17617 reload_cmds=$lt_reload_cmds
17618
17619 # How to pass a linker flag through the compiler.
17620 wl=$lt_lt_prog_compiler_wl_F77
17621
17622 # Object file suffix (normally "o").
17623 objext="$ac_objext"
17624
17625 # Old archive suffix (normally "a").
17626 libext="$libext"
17627
17628 # Shared library suffix (normally ".so").
17629 shrext_cmds='$shrext_cmds'
17630
17631 # Executable file suffix (normally "").
17632 exeext="$exeext"
17633
17634 # Additional compiler flags for building library objects.
17635 pic_flag=$lt_lt_prog_compiler_pic_F77
17636 pic_mode=$pic_mode
17637
17638 # What is the maximum length of a command?
17639 max_cmd_len=$lt_cv_sys_max_cmd_len
17640
17641 # Does compiler simultaneously support -c and -o options?
17642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17643
17644 # Must we lock files when doing compilation?
17645 need_locks=$lt_need_locks
17646
17647 # Do we need the lib prefix for modules?
17648 need_lib_prefix=$need_lib_prefix
17649
17650 # Do we need a version for libraries?
17651 need_version=$need_version
17652
17653 # Whether dlopen is supported.
17654 dlopen_support=$enable_dlopen
17655
17656 # Whether dlopen of programs is supported.
17657 dlopen_self=$enable_dlopen_self
17658
17659 # Whether dlopen of statically linked programs is supported.
17660 dlopen_self_static=$enable_dlopen_self_static
17661
17662 # Compiler flag to prevent dynamic linking.
17663 link_static_flag=$lt_lt_prog_compiler_static_F77
17664
17665 # Compiler flag to turn off builtin functions.
17666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17667
17668 # Compiler flag to allow reflexive dlopens.
17669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17670
17671 # Compiler flag to generate shared objects directly from archives.
17672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17673
17674 # Compiler flag to generate thread-safe objects.
17675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17676
17677 # Library versioning type.
17678 version_type=$version_type
17679
17680 # Format of library name prefix.
17681 libname_spec=$lt_libname_spec
17682
17683 # List of archive names.  First name is the real one, the rest are links.
17684 # The last name is the one that the linker finds with -lNAME.
17685 library_names_spec=$lt_library_names_spec
17686
17687 # The coded name of the library, if different from the real name.
17688 soname_spec=$lt_soname_spec
17689
17690 # Commands used to build and install an old-style archive.
17691 RANLIB=$lt_RANLIB
17692 old_archive_cmds=$lt_old_archive_cmds_F77
17693 old_postinstall_cmds=$lt_old_postinstall_cmds
17694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17695
17696 # Create an old-style archive from a shared archive.
17697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17698
17699 # Create a temporary old-style archive to link instead of a shared archive.
17700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17701
17702 # Commands used to build and install a shared archive.
17703 archive_cmds=$lt_archive_cmds_F77
17704 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17705 postinstall_cmds=$lt_postinstall_cmds
17706 postuninstall_cmds=$lt_postuninstall_cmds
17707
17708 # Commands used to build a loadable module (assumed same as above if empty)
17709 module_cmds=$lt_module_cmds_F77
17710 module_expsym_cmds=$lt_module_expsym_cmds_F77
17711
17712 # Commands to strip libraries.
17713 old_striplib=$lt_old_striplib
17714 striplib=$lt_striplib
17715
17716 # Dependencies to place before the objects being linked to create a
17717 # shared library.
17718 predep_objects=$lt_predep_objects_F77
17719
17720 # Dependencies to place after the objects being linked to create a
17721 # shared library.
17722 postdep_objects=$lt_postdep_objects_F77
17723
17724 # Dependencies to place before the objects being linked to create a
17725 # shared library.
17726 predeps=$lt_predeps_F77
17727
17728 # Dependencies to place after the objects being linked to create a
17729 # shared library.
17730 postdeps=$lt_postdeps_F77
17731
17732 # The library search path used internally by the compiler when linking
17733 # a shared library.
17734 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17735
17736 # Method to check whether dependent libraries are shared objects.
17737 deplibs_check_method=$lt_deplibs_check_method
17738
17739 # Command to use when deplibs_check_method == file_magic.
17740 file_magic_cmd=$lt_file_magic_cmd
17741
17742 # Flag that allows shared libraries with undefined symbols to be built.
17743 allow_undefined_flag=$lt_allow_undefined_flag_F77
17744
17745 # Flag that forces no undefined symbols.
17746 no_undefined_flag=$lt_no_undefined_flag_F77
17747
17748 # Commands used to finish a libtool library installation in a directory.
17749 finish_cmds=$lt_finish_cmds
17750
17751 # Same as above, but a single script fragment to be evaled but not shown.
17752 finish_eval=$lt_finish_eval
17753
17754 # Take the output of nm and produce a listing of raw symbols and C names.
17755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17756
17757 # Transform the output of nm in a proper C declaration
17758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17759
17760 # Transform the output of nm in a C name address pair
17761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17762
17763 # This is the shared library runtime path variable.
17764 runpath_var=$runpath_var
17765
17766 # This is the shared library path variable.
17767 shlibpath_var=$shlibpath_var
17768
17769 # Is shlibpath searched before the hard-coded library search path?
17770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17771
17772 # How to hardcode a shared library path into an executable.
17773 hardcode_action=$hardcode_action_F77
17774
17775 # Whether we should hardcode library paths into libraries.
17776 hardcode_into_libs=$hardcode_into_libs
17777
17778 # Flag to hardcode \$libdir into a binary during linking.
17779 # This must work even if \$libdir does not exist.
17780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17781
17782 # If ld is used when linking, flag to hardcode \$libdir into
17783 # a binary during linking. This must work even if \$libdir does
17784 # not exist.
17785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17786
17787 # Whether we need a single -rpath flag with a separated argument.
17788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17789
17790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17791 # resulting binary.
17792 hardcode_direct=$hardcode_direct_F77
17793
17794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17795 # resulting binary.
17796 hardcode_minus_L=$hardcode_minus_L_F77
17797
17798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17799 # the resulting binary.
17800 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17801
17802 # Set to yes if building a shared library automatically hardcodes DIR into the library
17803 # and all subsequent libraries and executables linked against it.
17804 hardcode_automatic=$hardcode_automatic_F77
17805
17806 # Variables whose values should be saved in libtool wrapper scripts and
17807 # restored at relink time.
17808 variables_saved_for_relink="$variables_saved_for_relink"
17809
17810 # Whether libtool must link a program against all its dependency libraries.
17811 link_all_deplibs=$link_all_deplibs_F77
17812
17813 # Compile-time system search path for libraries
17814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17815
17816 # Run-time system search path for libraries
17817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17818
17819 # Fix the shell variable \$srcfile for the compiler.
17820 fix_srcfile_path="$fix_srcfile_path_F77"
17821
17822 # Set to yes if exported symbols are required.
17823 always_export_symbols=$always_export_symbols_F77
17824
17825 # The commands to list exported symbols.
17826 export_symbols_cmds=$lt_export_symbols_cmds_F77
17827
17828 # The commands to extract the exported symbol list from a shared archive.
17829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17830
17831 # Symbols that should not be listed in the preloaded symbols.
17832 exclude_expsyms=$lt_exclude_expsyms_F77
17833
17834 # Symbols that must always be exported.
17835 include_expsyms=$lt_include_expsyms_F77
17836
17837 # ### END LIBTOOL TAG CONFIG: $tagname
17838
17839 __EOF__
17840
17841
17842 else
17843   # If there is no Makefile yet, we rely on a make rule to execute
17844   # `config.status --recheck' to rerun these tests and create the
17845   # libtool script then.
17846   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17847   if test -f "$ltmain_in"; then
17848     test -f Makefile && make "$ltmain"
17849   fi
17850 fi
17851
17852
17853 ac_ext=c
17854 ac_cpp='$CPP $CPPFLAGS'
17855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17858
17859 CC="$lt_save_CC"
17860
17861         else
17862           tagname=""
17863         fi
17864         ;;
17865
17866       GCJ)
17867         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17868
17869
17870 # Source file extension for Java test sources.
17871 ac_ext=java
17872
17873 # Object file extension for compiled Java test sources.
17874 objext=o
17875 objext_GCJ=$objext
17876
17877 # Code to be used in simple compile tests
17878 lt_simple_compile_test_code="class foo {}\n"
17879
17880 # Code to be used in simple link tests
17881 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17882
17883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17884
17885 # If no C compiler was specified, use CC.
17886 LTCC=${LTCC-"$CC"}
17887
17888 # If no C compiler flags were specified, use CFLAGS.
17889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17890
17891 # Allow CC to be a program name with arguments.
17892 compiler=$CC
17893
17894
17895 # save warnings/boilerplate of simple test code
17896 ac_outfile=conftest.$ac_objext
17897 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17899 _lt_compiler_boilerplate=`cat conftest.err`
17900 $rm conftest*
17901
17902 ac_outfile=conftest.$ac_objext
17903 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17905 _lt_linker_boilerplate=`cat conftest.err`
17906 $rm conftest*
17907
17908
17909 # Allow CC to be a program name with arguments.
17910 lt_save_CC="$CC"
17911 CC=${GCJ-"gcj"}
17912 compiler=$CC
17913 compiler_GCJ=$CC
17914 for cc_temp in $compiler""; do
17915   case $cc_temp in
17916     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17917     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17918     \-*) ;;
17919     *) break;;
17920   esac
17921 done
17922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17923
17924
17925 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17926 archive_cmds_need_lc_GCJ=no
17927
17928 old_archive_cmds_GCJ=$old_archive_cmds
17929
17930
17931 lt_prog_compiler_no_builtin_flag_GCJ=
17932
17933 if test "$GCC" = yes; then
17934   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17935
17936
17937 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17938 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17939 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   lt_cv_prog_compiler_rtti_exceptions=no
17943   ac_outfile=conftest.$ac_objext
17944    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17945    lt_compiler_flag="-fno-rtti -fno-exceptions"
17946    # Insert the option either (1) after the last *FLAGS variable, or
17947    # (2) before a word containing "conftest.", or (3) at the end.
17948    # Note that $ac_compile itself does not contain backslashes and begins
17949    # with a dollar sign (not a hyphen), so the echo should work correctly.
17950    # The option is referenced via a variable to avoid confusing sed.
17951    lt_compile=`echo "$ac_compile" | $SED \
17952    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17953    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17954    -e 's:$: $lt_compiler_flag:'`
17955    (eval echo "\"\$as_me:17955: $lt_compile\"" >&5)
17956    (eval "$lt_compile" 2>conftest.err)
17957    ac_status=$?
17958    cat conftest.err >&5
17959    echo "$as_me:17959: \$? = $ac_status" >&5
17960    if (exit $ac_status) && test -s "$ac_outfile"; then
17961      # The compiler can only warn and ignore the option if not recognized
17962      # So say no if there are warnings other than the usual output.
17963      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17964      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17965      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17966        lt_cv_prog_compiler_rtti_exceptions=yes
17967      fi
17968    fi
17969    $rm conftest*
17970
17971 fi
17972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17973 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17974
17975 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17976     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17977 else
17978     :
17979 fi
17980
17981 fi
17982
17983 lt_prog_compiler_wl_GCJ=
17984 lt_prog_compiler_pic_GCJ=
17985 lt_prog_compiler_static_GCJ=
17986
17987 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17988 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17989
17990   if test "$GCC" = yes; then
17991     lt_prog_compiler_wl_GCJ='-Wl,'
17992     lt_prog_compiler_static_GCJ='-static'
17993
17994     case $host_os in
17995       aix*)
17996       # All AIX code is PIC.
17997       if test "$host_cpu" = ia64; then
17998         # AIX 5 now supports IA64 processor
17999         lt_prog_compiler_static_GCJ='-Bstatic'
18000       fi
18001       ;;
18002
18003     amigaos*)
18004       # FIXME: we need at least 68020 code to build shared libraries, but
18005       # adding the `-m68020' flag to GCC prevents building anything better,
18006       # like `-m68040'.
18007       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18008       ;;
18009
18010     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18011       # PIC is the default for these OSes.
18012       ;;
18013
18014     mingw* | pw32* | os2*)
18015       # This hack is so that the source file can tell whether it is being
18016       # built for inclusion in a dll (and should export symbols for example).
18017       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18018       ;;
18019
18020     darwin* | rhapsody*)
18021       # PIC is the default on this platform
18022       # Common symbols not allowed in MH_DYLIB files
18023       lt_prog_compiler_pic_GCJ='-fno-common'
18024       ;;
18025
18026     interix3*)
18027       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18028       # Instead, we relocate shared libraries at runtime.
18029       ;;
18030
18031     msdosdjgpp*)
18032       # Just because we use GCC doesn't mean we suddenly get shared libraries
18033       # on systems that don't support them.
18034       lt_prog_compiler_can_build_shared_GCJ=no
18035       enable_shared=no
18036       ;;
18037
18038     sysv4*MP*)
18039       if test -d /usr/nec; then
18040         lt_prog_compiler_pic_GCJ=-Kconform_pic
18041       fi
18042       ;;
18043
18044     hpux*)
18045       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18046       # not for PA HP-UX.
18047       case $host_cpu in
18048       hppa*64*|ia64*)
18049         # +Z the default
18050         ;;
18051       *)
18052         lt_prog_compiler_pic_GCJ='-fPIC'
18053         ;;
18054       esac
18055       ;;
18056
18057     *)
18058       lt_prog_compiler_pic_GCJ='-fPIC'
18059       ;;
18060     esac
18061   else
18062     # PORTME Check for flag to pass linker flags through the system compiler.
18063     case $host_os in
18064     aix*)
18065       lt_prog_compiler_wl_GCJ='-Wl,'
18066       if test "$host_cpu" = ia64; then
18067         # AIX 5 now supports IA64 processor
18068         lt_prog_compiler_static_GCJ='-Bstatic'
18069       else
18070         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18071       fi
18072       ;;
18073       darwin*)
18074         # PIC is the default on this platform
18075         # Common symbols not allowed in MH_DYLIB files
18076        case $cc_basename in
18077          xlc*)
18078          lt_prog_compiler_pic_GCJ='-qnocommon'
18079          lt_prog_compiler_wl_GCJ='-Wl,'
18080          ;;
18081        esac
18082        ;;
18083
18084     mingw* | pw32* | os2*)
18085       # This hack is so that the source file can tell whether it is being
18086       # built for inclusion in a dll (and should export symbols for example).
18087       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18088       ;;
18089
18090     hpux9* | hpux10* | hpux11*)
18091       lt_prog_compiler_wl_GCJ='-Wl,'
18092       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18093       # not for PA HP-UX.
18094       case $host_cpu in
18095       hppa*64*|ia64*)
18096         # +Z the default
18097         ;;
18098       *)
18099         lt_prog_compiler_pic_GCJ='+Z'
18100         ;;
18101       esac
18102       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18103       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18104       ;;
18105
18106     irix5* | irix6* | nonstopux*)
18107       lt_prog_compiler_wl_GCJ='-Wl,'
18108       # PIC (with -KPIC) is the default.
18109       lt_prog_compiler_static_GCJ='-non_shared'
18110       ;;
18111
18112     newsos6)
18113       lt_prog_compiler_pic_GCJ='-KPIC'
18114       lt_prog_compiler_static_GCJ='-Bstatic'
18115       ;;
18116
18117     linux* | k*bsd*-gnu)
18118       case $cc_basename in
18119       icc* | ecc*)
18120         lt_prog_compiler_wl_GCJ='-Wl,'
18121         lt_prog_compiler_pic_GCJ='-KPIC'
18122         lt_prog_compiler_static_GCJ='-static'
18123         ;;
18124       pgcc* | pgf77* | pgf90* | pgf95*)
18125         # Portland Group compilers (*not* the Pentium gcc compiler,
18126         # which looks to be a dead project)
18127         lt_prog_compiler_wl_GCJ='-Wl,'
18128         lt_prog_compiler_pic_GCJ='-fpic'
18129         lt_prog_compiler_static_GCJ='-Bstatic'
18130         ;;
18131       ccc*)
18132         lt_prog_compiler_wl_GCJ='-Wl,'
18133         # All Alpha code is PIC.
18134         lt_prog_compiler_static_GCJ='-non_shared'
18135         ;;
18136       esac
18137       ;;
18138
18139     osf3* | osf4* | osf5*)
18140       lt_prog_compiler_wl_GCJ='-Wl,'
18141       # All OSF/1 code is PIC.
18142       lt_prog_compiler_static_GCJ='-non_shared'
18143       ;;
18144
18145     solaris*)
18146       lt_prog_compiler_pic_GCJ='-KPIC'
18147       lt_prog_compiler_static_GCJ='-Bstatic'
18148       case $cc_basename in
18149       f77* | f90* | f95*)
18150         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18151       *)
18152         lt_prog_compiler_wl_GCJ='-Wl,';;
18153       esac
18154       ;;
18155
18156     sunos4*)
18157       lt_prog_compiler_wl_GCJ='-Qoption ld '
18158       lt_prog_compiler_pic_GCJ='-PIC'
18159       lt_prog_compiler_static_GCJ='-Bstatic'
18160       ;;
18161
18162     sysv4 | sysv4.2uw2* | sysv4.3*)
18163       lt_prog_compiler_wl_GCJ='-Wl,'
18164       lt_prog_compiler_pic_GCJ='-KPIC'
18165       lt_prog_compiler_static_GCJ='-Bstatic'
18166       ;;
18167
18168     sysv4*MP*)
18169       if test -d /usr/nec ;then
18170         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18171         lt_prog_compiler_static_GCJ='-Bstatic'
18172       fi
18173       ;;
18174
18175     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18176       lt_prog_compiler_wl_GCJ='-Wl,'
18177       lt_prog_compiler_pic_GCJ='-KPIC'
18178       lt_prog_compiler_static_GCJ='-Bstatic'
18179       ;;
18180
18181     unicos*)
18182       lt_prog_compiler_wl_GCJ='-Wl,'
18183       lt_prog_compiler_can_build_shared_GCJ=no
18184       ;;
18185
18186     uts4*)
18187       lt_prog_compiler_pic_GCJ='-pic'
18188       lt_prog_compiler_static_GCJ='-Bstatic'
18189       ;;
18190
18191     *)
18192       lt_prog_compiler_can_build_shared_GCJ=no
18193       ;;
18194     esac
18195   fi
18196
18197 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18198 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18199
18200 #
18201 # Check to make sure the PIC flag actually works.
18202 #
18203 if test -n "$lt_prog_compiler_pic_GCJ"; then
18204
18205 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18206 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18207 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   lt_prog_compiler_pic_works_GCJ=no
18211   ac_outfile=conftest.$ac_objext
18212    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18213    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18214    # Insert the option either (1) after the last *FLAGS variable, or
18215    # (2) before a word containing "conftest.", or (3) at the end.
18216    # Note that $ac_compile itself does not contain backslashes and begins
18217    # with a dollar sign (not a hyphen), so the echo should work correctly.
18218    # The option is referenced via a variable to avoid confusing sed.
18219    lt_compile=`echo "$ac_compile" | $SED \
18220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18222    -e 's:$: $lt_compiler_flag:'`
18223    (eval echo "\"\$as_me:18223: $lt_compile\"" >&5)
18224    (eval "$lt_compile" 2>conftest.err)
18225    ac_status=$?
18226    cat conftest.err >&5
18227    echo "$as_me:18227: \$? = $ac_status" >&5
18228    if (exit $ac_status) && test -s "$ac_outfile"; then
18229      # The compiler can only warn and ignore the option if not recognized
18230      # So say no if there are warnings other than the usual output.
18231      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18232      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18233      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18234        lt_prog_compiler_pic_works_GCJ=yes
18235      fi
18236    fi
18237    $rm conftest*
18238
18239 fi
18240 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18241 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18242
18243 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18244     case $lt_prog_compiler_pic_GCJ in
18245      "" | " "*) ;;
18246      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18247      esac
18248 else
18249     lt_prog_compiler_pic_GCJ=
18250      lt_prog_compiler_can_build_shared_GCJ=no
18251 fi
18252
18253 fi
18254 case $host_os in
18255   # For platforms which do not support PIC, -DPIC is meaningless:
18256   *djgpp*)
18257     lt_prog_compiler_pic_GCJ=
18258     ;;
18259   *)
18260     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18261     ;;
18262 esac
18263
18264 #
18265 # Check to make sure the static flag actually works.
18266 #
18267 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18268 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18269 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18270 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   lt_prog_compiler_static_works_GCJ=no
18274    save_LDFLAGS="$LDFLAGS"
18275    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18276    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18277    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18278      # The linker can only warn and ignore the option if not recognized
18279      # So say no if there are warnings
18280      if test -s conftest.err; then
18281        # Append any errors to the config.log.
18282        cat conftest.err 1>&5
18283        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18284        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18285        if diff conftest.exp conftest.er2 >/dev/null; then
18286          lt_prog_compiler_static_works_GCJ=yes
18287        fi
18288      else
18289        lt_prog_compiler_static_works_GCJ=yes
18290      fi
18291    fi
18292    $rm conftest*
18293    LDFLAGS="$save_LDFLAGS"
18294
18295 fi
18296 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18297 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18298
18299 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18300     :
18301 else
18302     lt_prog_compiler_static_GCJ=
18303 fi
18304
18305
18306 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18307 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18308 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   lt_cv_prog_compiler_c_o_GCJ=no
18312    $rm -r conftest 2>/dev/null
18313    mkdir conftest
18314    cd conftest
18315    mkdir out
18316    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18317
18318    lt_compiler_flag="-o out/conftest2.$ac_objext"
18319    # Insert the option either (1) after the last *FLAGS variable, or
18320    # (2) before a word containing "conftest.", or (3) at the end.
18321    # Note that $ac_compile itself does not contain backslashes and begins
18322    # with a dollar sign (not a hyphen), so the echo should work correctly.
18323    lt_compile=`echo "$ac_compile" | $SED \
18324    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18326    -e 's:$: $lt_compiler_flag:'`
18327    (eval echo "\"\$as_me:18327: $lt_compile\"" >&5)
18328    (eval "$lt_compile" 2>out/conftest.err)
18329    ac_status=$?
18330    cat out/conftest.err >&5
18331    echo "$as_me:18331: \$? = $ac_status" >&5
18332    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18333    then
18334      # The compiler can only warn and ignore the option if not recognized
18335      # So say no if there are warnings
18336      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18337      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18338      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18339        lt_cv_prog_compiler_c_o_GCJ=yes
18340      fi
18341    fi
18342    chmod u+w . 2>&5
18343    $rm conftest*
18344    # SGI C++ compiler will create directory out/ii_files/ for
18345    # template instantiation
18346    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18347    $rm out/* && rmdir out
18348    cd ..
18349    rmdir conftest
18350    $rm conftest*
18351
18352 fi
18353 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18354 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18355
18356
18357 hard_links="nottested"
18358 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18359   # do not overwrite the value of need_locks provided by the user
18360   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18361 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18362   hard_links=yes
18363   $rm conftest*
18364   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18365   touch conftest.a
18366   ln conftest.a conftest.b 2>&5 || hard_links=no
18367   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18368   { echo "$as_me:$LINENO: result: $hard_links" >&5
18369 echo "${ECHO_T}$hard_links" >&6; }
18370   if test "$hard_links" = no; then
18371     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18372 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18373     need_locks=warn
18374   fi
18375 else
18376   need_locks=no
18377 fi
18378
18379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18381
18382   runpath_var=
18383   allow_undefined_flag_GCJ=
18384   enable_shared_with_static_runtimes_GCJ=no
18385   archive_cmds_GCJ=
18386   archive_expsym_cmds_GCJ=
18387   old_archive_From_new_cmds_GCJ=
18388   old_archive_from_expsyms_cmds_GCJ=
18389   export_dynamic_flag_spec_GCJ=
18390   whole_archive_flag_spec_GCJ=
18391   thread_safe_flag_spec_GCJ=
18392   hardcode_libdir_flag_spec_GCJ=
18393   hardcode_libdir_flag_spec_ld_GCJ=
18394   hardcode_libdir_separator_GCJ=
18395   hardcode_direct_GCJ=no
18396   hardcode_minus_L_GCJ=no
18397   hardcode_shlibpath_var_GCJ=unsupported
18398   link_all_deplibs_GCJ=unknown
18399   hardcode_automatic_GCJ=no
18400   module_cmds_GCJ=
18401   module_expsym_cmds_GCJ=
18402   always_export_symbols_GCJ=no
18403   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18404   # include_expsyms should be a list of space-separated symbols to be *always*
18405   # included in the symbol list
18406   include_expsyms_GCJ=
18407   # exclude_expsyms can be an extended regexp of symbols to exclude
18408   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18409   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18410   # as well as any symbol that contains `d'.
18411   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18412   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18413   # platforms (ab)use it in PIC code, but their linkers get confused if
18414   # the symbol is explicitly referenced.  Since portable code cannot
18415   # rely on this symbol name, it's probably fine to never include it in
18416   # preloaded symbol tables.
18417   extract_expsyms_cmds=
18418   # Just being paranoid about ensuring that cc_basename is set.
18419   for cc_temp in $compiler""; do
18420   case $cc_temp in
18421     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18422     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18423     \-*) ;;
18424     *) break;;
18425   esac
18426 done
18427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18428
18429   case $host_os in
18430   cygwin* | mingw* | pw32*)
18431     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18432     # When not using gcc, we currently assume that we are using
18433     # Microsoft Visual C++.
18434     if test "$GCC" != yes; then
18435       with_gnu_ld=no
18436     fi
18437     ;;
18438   interix*)
18439     # we just hope/assume this is gcc and not c89 (= MSVC++)
18440     with_gnu_ld=yes
18441     ;;
18442   openbsd*)
18443     with_gnu_ld=no
18444     ;;
18445   esac
18446
18447   ld_shlibs_GCJ=yes
18448   if test "$with_gnu_ld" = yes; then
18449     # If archive_cmds runs LD, not CC, wlarc should be empty
18450     wlarc='${wl}'
18451
18452     # Set some defaults for GNU ld with shared library support. These
18453     # are reset later if shared libraries are not supported. Putting them
18454     # here allows them to be overridden if necessary.
18455     runpath_var=LD_RUN_PATH
18456     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18457     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18458     # ancient GNU ld didn't support --whole-archive et. al.
18459     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18460         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18461       else
18462         whole_archive_flag_spec_GCJ=
18463     fi
18464     supports_anon_versioning=no
18465     case `$LD -v 2>/dev/null` in
18466       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18467       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18468       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18469       *\ 2.11.*) ;; # other 2.11 versions
18470       *) supports_anon_versioning=yes ;;
18471     esac
18472
18473     # See if GNU ld supports shared libraries.
18474     case $host_os in
18475     aix3* | aix4* | aix5*)
18476       # On AIX/PPC, the GNU linker is very broken
18477       if test "$host_cpu" != ia64; then
18478         ld_shlibs_GCJ=no
18479         cat <<EOF 1>&2
18480
18481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18482 *** to be unable to reliably create shared libraries on AIX.
18483 *** Therefore, libtool is disabling shared libraries support.  If you
18484 *** really care for shared libraries, you may want to modify your PATH
18485 *** so that a non-GNU linker is found, and then restart.
18486
18487 EOF
18488       fi
18489       ;;
18490
18491     amigaos*)
18492       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)'
18493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494       hardcode_minus_L_GCJ=yes
18495
18496       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18497       # that the semantics of dynamic libraries on AmigaOS, at least up
18498       # to version 4, is to share data among multiple programs linked
18499       # with the same dynamic library.  Since this doesn't match the
18500       # behavior of shared libraries on other platforms, we can't use
18501       # them.
18502       ld_shlibs_GCJ=no
18503       ;;
18504
18505     beos*)
18506       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18507         allow_undefined_flag_GCJ=unsupported
18508         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18509         # support --undefined.  This deserves some investigation.  FIXME
18510         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18511       else
18512         ld_shlibs_GCJ=no
18513       fi
18514       ;;
18515
18516     cygwin* | mingw* | pw32*)
18517       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18518       # as there is no search path for DLLs.
18519       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18520       allow_undefined_flag_GCJ=unsupported
18521       always_export_symbols_GCJ=no
18522       enable_shared_with_static_runtimes_GCJ=yes
18523       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18524
18525       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18526         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18527         # If the export-symbols file already is a .def file (1st line
18528         # is EXPORTS), use it as is; otherwise, prepend...
18529         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18530           cp $export_symbols $output_objdir/$soname.def;
18531         else
18532           echo EXPORTS > $output_objdir/$soname.def;
18533           cat $export_symbols >> $output_objdir/$soname.def;
18534         fi~
18535         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18536       else
18537         ld_shlibs_GCJ=no
18538       fi
18539       ;;
18540
18541     interix3*)
18542       hardcode_direct_GCJ=no
18543       hardcode_shlibpath_var_GCJ=no
18544       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18545       export_dynamic_flag_spec_GCJ='${wl}-E'
18546       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18547       # Instead, shared libraries are loaded at an image base (0x10000000 by
18548       # default) and relocated if they conflict, which is a slow very memory
18549       # consuming and fragmenting process.  To avoid this, we pick a random,
18550       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18551       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18552       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'
18553       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'
18554       ;;
18555
18556     linux* | k*bsd*-gnu)
18557       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18558         tmp_addflag=
18559         case $cc_basename,$host_cpu in
18560         pgcc*)                          # Portland Group C compiler
18561           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'
18562           tmp_addflag=' $pic_flag'
18563           ;;
18564         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18565           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'
18566           tmp_addflag=' $pic_flag -Mnomain' ;;
18567         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18568           tmp_addflag=' -i_dynamic' ;;
18569         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18570           tmp_addflag=' -i_dynamic -nofor_main' ;;
18571         ifc* | ifort*)                  # Intel Fortran compiler
18572           tmp_addflag=' -nofor_main' ;;
18573         esac
18574         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18575
18576         if test $supports_anon_versioning = yes; then
18577           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18578   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18579   $echo "local: *; };" >> $output_objdir/$libname.ver~
18580           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18581         fi
18582         link_all_deplibs_GCJ=no
18583       else
18584         ld_shlibs_GCJ=no
18585       fi
18586       ;;
18587
18588     netbsd* | netbsdelf*-gnu)
18589       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18590         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18591         wlarc=
18592       else
18593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18594         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18595       fi
18596       ;;
18597
18598     solaris*)
18599       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18600         ld_shlibs_GCJ=no
18601         cat <<EOF 1>&2
18602
18603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18604 *** create shared libraries on Solaris systems.  Therefore, libtool
18605 *** is disabling shared libraries support.  We urge you to upgrade GNU
18606 *** binutils to release 2.9.1 or newer.  Another option is to modify
18607 *** your PATH or compiler configuration so that the native linker is
18608 *** used, and then restart.
18609
18610 EOF
18611       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18613         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18614       else
18615         ld_shlibs_GCJ=no
18616       fi
18617       ;;
18618
18619     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18620       case `$LD -v 2>&1` in
18621         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18622         ld_shlibs_GCJ=no
18623         cat <<_LT_EOF 1>&2
18624
18625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18626 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18627 *** is disabling shared libraries support.  We urge you to upgrade GNU
18628 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18629 *** your PATH or compiler configuration so that the native linker is
18630 *** used, and then restart.
18631
18632 _LT_EOF
18633         ;;
18634         *)
18635           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18637             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18638             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18639           else
18640             ld_shlibs_GCJ=no
18641           fi
18642         ;;
18643       esac
18644       ;;
18645
18646     sunos4*)
18647       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18648       wlarc=
18649       hardcode_direct_GCJ=yes
18650       hardcode_shlibpath_var_GCJ=no
18651       ;;
18652
18653     *)
18654       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18655         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18657       else
18658         ld_shlibs_GCJ=no
18659       fi
18660       ;;
18661     esac
18662
18663     if test "$ld_shlibs_GCJ" = no; then
18664       runpath_var=
18665       hardcode_libdir_flag_spec_GCJ=
18666       export_dynamic_flag_spec_GCJ=
18667       whole_archive_flag_spec_GCJ=
18668     fi
18669   else
18670     # PORTME fill in a description of your system's linker (not GNU ld)
18671     case $host_os in
18672     aix3*)
18673       allow_undefined_flag_GCJ=unsupported
18674       always_export_symbols_GCJ=yes
18675       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'
18676       # Note: this linker hardcodes the directories in LIBPATH if there
18677       # are no directories specified by -L.
18678       hardcode_minus_L_GCJ=yes
18679       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18680         # Neither direct hardcoding nor static linking is supported with a
18681         # broken collect2.
18682         hardcode_direct_GCJ=unsupported
18683       fi
18684       ;;
18685
18686     aix4* | aix5*)
18687       if test "$host_cpu" = ia64; then
18688         # On IA64, the linker does run time linking by default, so we don't
18689         # have to do anything special.
18690         aix_use_runtimelinking=no
18691         exp_sym_flag='-Bexport'
18692         no_entry_flag=""
18693       else
18694         # If we're using GNU nm, then we don't want the "-C" option.
18695         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18696         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18697           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'
18698         else
18699           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'
18700         fi
18701         aix_use_runtimelinking=no
18702
18703         # Test if we are trying to use run time linking or normal
18704         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18705         # need to do runtime linking.
18706         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18707           for ld_flag in $LDFLAGS; do
18708           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18709             aix_use_runtimelinking=yes
18710             break
18711           fi
18712           done
18713           ;;
18714         esac
18715
18716         exp_sym_flag='-bexport'
18717         no_entry_flag='-bnoentry'
18718       fi
18719
18720       # When large executables or shared objects are built, AIX ld can
18721       # have problems creating the table of contents.  If linking a library
18722       # or program results in "error TOC overflow" add -mminimal-toc to
18723       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18724       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18725
18726       archive_cmds_GCJ=''
18727       hardcode_direct_GCJ=yes
18728       hardcode_libdir_separator_GCJ=':'
18729       link_all_deplibs_GCJ=yes
18730
18731       if test "$GCC" = yes; then
18732         case $host_os in aix4.[012]|aix4.[012].*)
18733         # We only want to do this on AIX 4.2 and lower, the check
18734         # below for broken collect2 doesn't work under 4.3+
18735           collect2name=`${CC} -print-prog-name=collect2`
18736           if test -f "$collect2name" && \
18737            strings "$collect2name" | grep resolve_lib_name >/dev/null
18738           then
18739           # We have reworked collect2
18740           hardcode_direct_GCJ=yes
18741           else
18742           # We have old collect2
18743           hardcode_direct_GCJ=unsupported
18744           # It fails to find uninstalled libraries when the uninstalled
18745           # path is not listed in the libpath.  Setting hardcode_minus_L
18746           # to unsupported forces relinking
18747           hardcode_minus_L_GCJ=yes
18748           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18749           hardcode_libdir_separator_GCJ=
18750           fi
18751           ;;
18752         esac
18753         shared_flag='-shared'
18754         if test "$aix_use_runtimelinking" = yes; then
18755           shared_flag="$shared_flag "'${wl}-G'
18756         fi
18757       else
18758         # not using gcc
18759         if test "$host_cpu" = ia64; then
18760         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18761         # chokes on -Wl,-G. The following line is correct:
18762           shared_flag='-G'
18763         else
18764           if test "$aix_use_runtimelinking" = yes; then
18765             shared_flag='${wl}-G'
18766           else
18767             shared_flag='${wl}-bM:SRE'
18768           fi
18769         fi
18770       fi
18771
18772       # It seems that -bexpall does not export symbols beginning with
18773       # underscore (_), so it is better to generate a list of symbols to export.
18774       always_export_symbols_GCJ=yes
18775       if test "$aix_use_runtimelinking" = yes; then
18776         # Warning - without using the other runtime loading flags (-brtl),
18777         # -berok will link without error, but may produce a broken library.
18778         allow_undefined_flag_GCJ='-berok'
18779        # Determine the default libpath from the value encoded in an empty executable.
18780        cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h.  */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h.  */
18786
18787 int
18788 main ()
18789 {
18790
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_link") 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } &&
18809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810   { (case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_try") 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; } &&
18819          { ac_try='test -s conftest$ac_exeext'
18820   { (case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_try") 2>&5
18826   ac_status=$?
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); }; }; then
18829
18830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18831 }'`
18832 # Check for a 64-bit object if we didn't find anything.
18833 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; }
18834 }'`; fi
18835 else
18836   echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18838
18839
18840 fi
18841
18842 rm -f conftest.err conftest.$ac_objext \
18843       conftest$ac_exeext conftest.$ac_ext
18844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18845
18846        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18847         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"
18848        else
18849         if test "$host_cpu" = ia64; then
18850           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18851           allow_undefined_flag_GCJ="-z nodefs"
18852           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"
18853         else
18854          # Determine the default libpath from the value encoded in an empty executable.
18855          cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861
18862 int
18863 main ()
18864 {
18865
18866   ;
18867   return 0;
18868 }
18869 _ACEOF
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_link") 2>conftest.er1
18878   ac_status=$?
18879   grep -v '^ *+' conftest.er1 >conftest.err
18880   rm -f conftest.er1
18881   cat conftest.err >&5
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18885   { (case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_try") 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest$ac_exeext'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904
18905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18906 }'`
18907 # Check for a 64-bit object if we didn't find anything.
18908 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; }
18909 }'`; fi
18910 else
18911   echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914
18915 fi
18916
18917 rm -f conftest.err conftest.$ac_objext \
18918       conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18920
18921          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18922           # Warning - without using the other run time loading flags,
18923           # -berok will link without error, but may produce a broken library.
18924           no_undefined_flag_GCJ=' ${wl}-bernotok'
18925           allow_undefined_flag_GCJ=' ${wl}-berok'
18926           # Exported symbols can be pulled into shared objects from archives
18927           whole_archive_flag_spec_GCJ='$convenience'
18928           archive_cmds_need_lc_GCJ=yes
18929           # This is similar to how AIX traditionally builds its shared libraries.
18930           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'
18931         fi
18932       fi
18933       ;;
18934
18935     amigaos*)
18936       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)'
18937       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18938       hardcode_minus_L_GCJ=yes
18939       # see comment about different semantics on the GNU ld section
18940       ld_shlibs_GCJ=no
18941       ;;
18942
18943     bsdi[45]*)
18944       export_dynamic_flag_spec_GCJ=-rdynamic
18945       ;;
18946
18947     cygwin* | mingw* | pw32*)
18948       # When not using gcc, we currently assume that we are using
18949       # Microsoft Visual C++.
18950       # hardcode_libdir_flag_spec is actually meaningless, as there is
18951       # no search path for DLLs.
18952       hardcode_libdir_flag_spec_GCJ=' '
18953       allow_undefined_flag_GCJ=unsupported
18954       # Tell ltmain to make .lib files, not .a files.
18955       libext=lib
18956       # Tell ltmain to make .dll files, not .so files.
18957       shrext_cmds=".dll"
18958       # FIXME: Setting linknames here is a bad hack.
18959       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18960       # The linker will automatically build a .lib file if we build a DLL.
18961       old_archive_From_new_cmds_GCJ='true'
18962       # FIXME: Should let the user specify the lib program.
18963       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18964       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18965       enable_shared_with_static_runtimes_GCJ=yes
18966       ;;
18967
18968     darwin* | rhapsody*)
18969       case $host_os in
18970         rhapsody* | darwin1.[012])
18971          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18972          ;;
18973        *) # Darwin 1.3 on
18974          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18975            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18976          else
18977            case ${MACOSX_DEPLOYMENT_TARGET} in
18978              10.[012])
18979                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18980                ;;
18981              10.*)
18982                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18983                ;;
18984            esac
18985          fi
18986          ;;
18987       esac
18988       archive_cmds_need_lc_GCJ=no
18989       hardcode_direct_GCJ=no
18990       hardcode_automatic_GCJ=yes
18991       hardcode_shlibpath_var_GCJ=unsupported
18992       whole_archive_flag_spec_GCJ=''
18993       link_all_deplibs_GCJ=yes
18994     if test "$GCC" = yes ; then
18995         output_verbose_link_cmd='echo'
18996         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18997       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18998       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18999       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}'
19000       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}'
19001     else
19002       case $cc_basename in
19003         xlc*)
19004          output_verbose_link_cmd='echo'
19005          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19006          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19007           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19008          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}'
19009           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}'
19010           ;;
19011        *)
19012          ld_shlibs_GCJ=no
19013           ;;
19014       esac
19015     fi
19016       ;;
19017
19018     dgux*)
19019       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19020       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19021       hardcode_shlibpath_var_GCJ=no
19022       ;;
19023
19024     freebsd1*)
19025       ld_shlibs_GCJ=no
19026       ;;
19027
19028     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19029     # support.  Future versions do this automatically, but an explicit c++rt0.o
19030     # does not break anything, and helps significantly (at the cost of a little
19031     # extra space).
19032     freebsd2.2*)
19033       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19034       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19035       hardcode_direct_GCJ=yes
19036       hardcode_shlibpath_var_GCJ=no
19037       ;;
19038
19039     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19040     freebsd2*)
19041       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19042       hardcode_direct_GCJ=yes
19043       hardcode_minus_L_GCJ=yes
19044       hardcode_shlibpath_var_GCJ=no
19045       ;;
19046
19047     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19048     freebsd* | dragonfly*)
19049       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19050       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19051       hardcode_direct_GCJ=yes
19052       hardcode_shlibpath_var_GCJ=no
19053       ;;
19054
19055     hpux9*)
19056       if test "$GCC" = yes; then
19057         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'
19058       else
19059         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'
19060       fi
19061       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19062       hardcode_libdir_separator_GCJ=:
19063       hardcode_direct_GCJ=yes
19064
19065       # hardcode_minus_L: Not really in the search PATH,
19066       # but as the default location of the library.
19067       hardcode_minus_L_GCJ=yes
19068       export_dynamic_flag_spec_GCJ='${wl}-E'
19069       ;;
19070
19071     hpux10*)
19072       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19073         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19074       else
19075         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19076       fi
19077       if test "$with_gnu_ld" = no; then
19078         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19079         hardcode_libdir_separator_GCJ=:
19080
19081         hardcode_direct_GCJ=yes
19082         export_dynamic_flag_spec_GCJ='${wl}-E'
19083
19084         # hardcode_minus_L: Not really in the search PATH,
19085         # but as the default location of the library.
19086         hardcode_minus_L_GCJ=yes
19087       fi
19088       ;;
19089
19090     hpux11*)
19091       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19092         case $host_cpu in
19093         hppa*64*)
19094           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19095           ;;
19096         ia64*)
19097           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19098           ;;
19099         *)
19100           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19101           ;;
19102         esac
19103       else
19104         case $host_cpu in
19105         hppa*64*)
19106           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19107           ;;
19108         ia64*)
19109           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19110           ;;
19111         *)
19112           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19113           ;;
19114         esac
19115       fi
19116       if test "$with_gnu_ld" = no; then
19117         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19118         hardcode_libdir_separator_GCJ=:
19119
19120         case $host_cpu in
19121         hppa*64*|ia64*)
19122           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19123           hardcode_direct_GCJ=no
19124           hardcode_shlibpath_var_GCJ=no
19125           ;;
19126         *)
19127           hardcode_direct_GCJ=yes
19128           export_dynamic_flag_spec_GCJ='${wl}-E'
19129
19130           # hardcode_minus_L: Not really in the search PATH,
19131           # but as the default location of the library.
19132           hardcode_minus_L_GCJ=yes
19133           ;;
19134         esac
19135       fi
19136       ;;
19137
19138     irix5* | irix6* | nonstopux*)
19139       if test "$GCC" = yes; then
19140         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'
19141       else
19142         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'
19143         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19144       fi
19145       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19146       hardcode_libdir_separator_GCJ=:
19147       link_all_deplibs_GCJ=yes
19148       ;;
19149
19150     netbsd* | netbsdelf*-gnu)
19151       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19153       else
19154         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19155       fi
19156       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19157       hardcode_direct_GCJ=yes
19158       hardcode_shlibpath_var_GCJ=no
19159       ;;
19160
19161     newsos6)
19162       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19163       hardcode_direct_GCJ=yes
19164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19165       hardcode_libdir_separator_GCJ=:
19166       hardcode_shlibpath_var_GCJ=no
19167       ;;
19168
19169     openbsd*)
19170       hardcode_direct_GCJ=yes
19171       hardcode_shlibpath_var_GCJ=no
19172       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19173         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19174         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19175         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19176         export_dynamic_flag_spec_GCJ='${wl}-E'
19177       else
19178        case $host_os in
19179          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19180            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19181            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19182            ;;
19183          *)
19184            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19185            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19186            ;;
19187        esac
19188       fi
19189       ;;
19190
19191     os2*)
19192       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19193       hardcode_minus_L_GCJ=yes
19194       allow_undefined_flag_GCJ=unsupported
19195       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'
19196       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19197       ;;
19198
19199     osf3*)
19200       if test "$GCC" = yes; then
19201         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19202         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'
19203       else
19204         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19205         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'
19206       fi
19207       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19208       hardcode_libdir_separator_GCJ=:
19209       ;;
19210
19211     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19212       if test "$GCC" = yes; then
19213         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19214         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'
19215         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19216       else
19217         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19218         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'
19219         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~
19220         $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'
19221
19222         # Both c and cxx compiler support -rpath directly
19223         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19224       fi
19225       hardcode_libdir_separator_GCJ=:
19226       ;;
19227
19228     solaris*)
19229       no_undefined_flag_GCJ=' -z text'
19230       if test "$GCC" = yes; then
19231         wlarc='${wl}'
19232         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19234           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19235       else
19236         wlarc=''
19237         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19238         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19239         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19240       fi
19241       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19242       hardcode_shlibpath_var_GCJ=no
19243       case $host_os in
19244       solaris2.[0-5] | solaris2.[0-5].*) ;;
19245       *)
19246         # The compiler driver will combine linker options so we
19247         # cannot just pass the convience library names through
19248         # without $wl, iff we do not link with $LD.
19249         # Luckily, gcc supports the same syntax we need for Sun Studio.
19250         # Supported since Solaris 2.6 (maybe 2.5.1?)
19251         case $wlarc in
19252         '')
19253           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19254         *)
19255           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' ;;
19256         esac ;;
19257       esac
19258       link_all_deplibs_GCJ=yes
19259       ;;
19260
19261     sunos4*)
19262       if test "x$host_vendor" = xsequent; then
19263         # Use $CC to link under sequent, because it throws in some extra .o
19264         # files that make .init and .fini sections work.
19265         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19266       else
19267         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19268       fi
19269       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19270       hardcode_direct_GCJ=yes
19271       hardcode_minus_L_GCJ=yes
19272       hardcode_shlibpath_var_GCJ=no
19273       ;;
19274
19275     sysv4)
19276       case $host_vendor in
19277         sni)
19278           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19279           hardcode_direct_GCJ=yes # is this really true???
19280         ;;
19281         siemens)
19282           ## LD is ld it makes a PLAMLIB
19283           ## CC just makes a GrossModule.
19284           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19285           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19286           hardcode_direct_GCJ=no
19287         ;;
19288         motorola)
19289           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19291         ;;
19292       esac
19293       runpath_var='LD_RUN_PATH'
19294       hardcode_shlibpath_var_GCJ=no
19295       ;;
19296
19297     sysv4.3*)
19298       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19299       hardcode_shlibpath_var_GCJ=no
19300       export_dynamic_flag_spec_GCJ='-Bexport'
19301       ;;
19302
19303     sysv4*MP*)
19304       if test -d /usr/nec; then
19305         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19306         hardcode_shlibpath_var_GCJ=no
19307         runpath_var=LD_RUN_PATH
19308         hardcode_runpath_var=yes
19309         ld_shlibs_GCJ=yes
19310       fi
19311       ;;
19312
19313     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19314       no_undefined_flag_GCJ='${wl}-z,text'
19315       archive_cmds_need_lc_GCJ=no
19316       hardcode_shlibpath_var_GCJ=no
19317       runpath_var='LD_RUN_PATH'
19318
19319       if test "$GCC" = yes; then
19320         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322       else
19323         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325       fi
19326       ;;
19327
19328     sysv5* | sco3.2v5* | sco5v6*)
19329       # Note: We can NOT use -z defs as we might desire, because we do not
19330       # link with -lc, and that would cause any symbols used from libc to
19331       # always be unresolved, which means just about no library would
19332       # ever link correctly.  If we're not using GNU ld we use -z text
19333       # though, which does catch some bad symbols but isn't as heavy-handed
19334       # as -z defs.
19335       no_undefined_flag_GCJ='${wl}-z,text'
19336       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19337       archive_cmds_need_lc_GCJ=no
19338       hardcode_shlibpath_var_GCJ=no
19339       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19340       hardcode_libdir_separator_GCJ=':'
19341       link_all_deplibs_GCJ=yes
19342       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19343       runpath_var='LD_RUN_PATH'
19344
19345       if test "$GCC" = yes; then
19346         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19347         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19348       else
19349         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19350         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19351       fi
19352       ;;
19353
19354     uts4*)
19355       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19357       hardcode_shlibpath_var_GCJ=no
19358       ;;
19359
19360     *)
19361       ld_shlibs_GCJ=no
19362       ;;
19363     esac
19364   fi
19365
19366 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19367 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19368 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19369
19370 #
19371 # Do we need to explicitly link libc?
19372 #
19373 case "x$archive_cmds_need_lc_GCJ" in
19374 x|xyes)
19375   # Assume -lc should be added
19376   archive_cmds_need_lc_GCJ=yes
19377
19378   if test "$enable_shared" = yes && test "$GCC" = yes; then
19379     case $archive_cmds_GCJ in
19380     *'~'*)
19381       # FIXME: we may have to deal with multi-command sequences.
19382       ;;
19383     '$CC '*)
19384       # Test whether the compiler implicitly links with -lc since on some
19385       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19386       # to ld, don't add -lc before -lgcc.
19387       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19389       $rm conftest*
19390       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19391
19392       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393   (eval $ac_compile) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); } 2>conftest.err; then
19397         soname=conftest
19398         lib=conftest
19399         libobjs=conftest.$ac_objext
19400         deplibs=
19401         wl=$lt_prog_compiler_wl_GCJ
19402         pic_flag=$lt_prog_compiler_pic_GCJ
19403         compiler_flags=-v
19404         linker_flags=-v
19405         verstring=
19406         output_objdir=.
19407         libname=conftest
19408         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19409         allow_undefined_flag_GCJ=
19410         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19411   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19412   ac_status=$?
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); }
19415         then
19416           archive_cmds_need_lc_GCJ=no
19417         else
19418           archive_cmds_need_lc_GCJ=yes
19419         fi
19420         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19421       else
19422         cat conftest.err 1>&5
19423       fi
19424       $rm conftest*
19425       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19426 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19427       ;;
19428     esac
19429   fi
19430   ;;
19431 esac
19432
19433 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19435 library_names_spec=
19436 libname_spec='lib$name'
19437 soname_spec=
19438 shrext_cmds=".so"
19439 postinstall_cmds=
19440 postuninstall_cmds=
19441 finish_cmds=
19442 finish_eval=
19443 shlibpath_var=
19444 shlibpath_overrides_runpath=unknown
19445 version_type=none
19446 dynamic_linker="$host_os ld.so"
19447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19448 if test "$GCC" = yes; then
19449   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19450   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19451     # if the path contains ";" then we assume it to be the separator
19452     # otherwise default to the standard path separator (i.e. ":") - it is
19453     # assumed that no part of a normal pathname contains ";" but that should
19454     # okay in the real world where ";" in dirpaths is itself problematic.
19455     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19456   else
19457     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19458   fi
19459 else
19460   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19461 fi
19462 need_lib_prefix=unknown
19463 hardcode_into_libs=no
19464
19465 # when you set need_version to no, make sure it does not cause -set_version
19466 # flags to be left without arguments
19467 need_version=unknown
19468
19469 case $host_os in
19470 aix3*)
19471   version_type=linux
19472   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19473   shlibpath_var=LIBPATH
19474
19475   # AIX 3 has no versioning support, so we append a major version to the name.
19476   soname_spec='${libname}${release}${shared_ext}$major'
19477   ;;
19478
19479 aix4* | aix5*)
19480   version_type=linux
19481   need_lib_prefix=no
19482   need_version=no
19483   hardcode_into_libs=yes
19484   if test "$host_cpu" = ia64; then
19485     # AIX 5 supports IA64
19486     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19487     shlibpath_var=LD_LIBRARY_PATH
19488   else
19489     # With GCC up to 2.95.x, collect2 would create an import file
19490     # for dependence libraries.  The import file would start with
19491     # the line `#! .'.  This would cause the generated library to
19492     # depend on `.', always an invalid library.  This was fixed in
19493     # development snapshots of GCC prior to 3.0.
19494     case $host_os in
19495       aix4 | aix4.[01] | aix4.[01].*)
19496       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19497            echo ' yes '
19498            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19499         :
19500       else
19501         can_build_shared=no
19502       fi
19503       ;;
19504     esac
19505     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19506     # soname into executable. Probably we can add versioning support to
19507     # collect2, so additional links can be useful in future.
19508     if test "$aix_use_runtimelinking" = yes; then
19509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19510       # instead of lib<name>.a to let people know that these are not
19511       # typical AIX shared libraries.
19512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513     else
19514       # We preserve .a as extension for shared libraries through AIX4.2
19515       # and later when we are not doing run time linking.
19516       library_names_spec='${libname}${release}.a $libname.a'
19517       soname_spec='${libname}${release}${shared_ext}$major'
19518     fi
19519     shlibpath_var=LIBPATH
19520   fi
19521   ;;
19522
19523 amigaos*)
19524   library_names_spec='$libname.ixlibrary $libname.a'
19525   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19526   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'
19527   ;;
19528
19529 beos*)
19530   library_names_spec='${libname}${shared_ext}'
19531   dynamic_linker="$host_os ld.so"
19532   shlibpath_var=LIBRARY_PATH
19533   ;;
19534
19535 bsdi[45]*)
19536   version_type=linux
19537   need_version=no
19538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19539   soname_spec='${libname}${release}${shared_ext}$major'
19540   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19541   shlibpath_var=LD_LIBRARY_PATH
19542   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19543   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19544   # the default ld.so.conf also contains /usr/contrib/lib and
19545   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19546   # libtool to hard-code these into programs
19547   ;;
19548
19549 cygwin* | mingw* | pw32*)
19550   version_type=windows
19551   shrext_cmds=".dll"
19552   need_version=no
19553   need_lib_prefix=no
19554
19555   case $GCC,$host_os in
19556   yes,cygwin* | yes,mingw* | yes,pw32*)
19557     library_names_spec='$libname.dll.a'
19558     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19559     postinstall_cmds='base_file=`basename \${file}`~
19560       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19561       dldir=$destdir/`dirname \$dlpath`~
19562       test -d \$dldir || mkdir -p \$dldir~
19563       $install_prog $dir/$dlname \$dldir/$dlname~
19564       chmod a+x \$dldir/$dlname'
19565     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19566       dlpath=$dir/\$dldll~
19567        $rm \$dlpath'
19568     shlibpath_overrides_runpath=yes
19569
19570     case $host_os in
19571     cygwin*)
19572       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19573       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19574       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19575       ;;
19576     mingw*)
19577       # MinGW DLLs use traditional 'lib' prefix
19578       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19579       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19580       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19581         # It is most probably a Windows format PATH printed by
19582         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19583         # path with ; separators, and with drive letters. We can handle the
19584         # drive letters (cygwin fileutils understands them), so leave them,
19585         # especially as we might pass files found there to a mingw objdump,
19586         # which wouldn't understand a cygwinified path. Ahh.
19587         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19588       else
19589         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19590       fi
19591       ;;
19592     pw32*)
19593       # pw32 DLLs use 'pw' prefix rather than 'lib'
19594       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19595       ;;
19596     esac
19597     ;;
19598
19599   *)
19600     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19601     ;;
19602   esac
19603   dynamic_linker='Win32 ld.exe'
19604   # FIXME: first we should search . and the directory the executable is in
19605   shlibpath_var=PATH
19606   ;;
19607
19608 darwin* | rhapsody*)
19609   dynamic_linker="$host_os dyld"
19610   version_type=darwin
19611   need_lib_prefix=no
19612   need_version=no
19613   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19614   soname_spec='${libname}${release}${major}$shared_ext'
19615   shlibpath_overrides_runpath=yes
19616   shlibpath_var=DYLD_LIBRARY_PATH
19617   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19618   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19619   if test "$GCC" = yes; then
19620     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"`
19621   else
19622     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19623   fi
19624   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19625   ;;
19626
19627 dgux*)
19628   version_type=linux
19629   need_lib_prefix=no
19630   need_version=no
19631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19632   soname_spec='${libname}${release}${shared_ext}$major'
19633   shlibpath_var=LD_LIBRARY_PATH
19634   ;;
19635
19636 freebsd1*)
19637   dynamic_linker=no
19638   ;;
19639
19640 freebsd* | dragonfly*)
19641   # DragonFly does not have aout.  When/if they implement a new
19642   # versioning mechanism, adjust this.
19643   if test -x /usr/bin/objformat; then
19644     objformat=`/usr/bin/objformat`
19645   else
19646     case $host_os in
19647     freebsd[123]*) objformat=aout ;;
19648     *) objformat=elf ;;
19649     esac
19650   fi
19651   version_type=freebsd-$objformat
19652   case $version_type in
19653     freebsd-elf*)
19654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19655       need_version=no
19656       need_lib_prefix=no
19657       ;;
19658     freebsd-*)
19659       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19660       need_version=yes
19661       ;;
19662   esac
19663   shlibpath_var=LD_LIBRARY_PATH
19664   case $host_os in
19665   freebsd2*)
19666     shlibpath_overrides_runpath=yes
19667     ;;
19668   freebsd3.[01]* | freebsdelf3.[01]*)
19669     shlibpath_overrides_runpath=yes
19670     hardcode_into_libs=yes
19671     ;;
19672   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19673   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19674     shlibpath_overrides_runpath=no
19675     hardcode_into_libs=yes
19676     ;;
19677   freebsd*) # from 4.6 on
19678     shlibpath_overrides_runpath=yes
19679     hardcode_into_libs=yes
19680     ;;
19681   esac
19682   ;;
19683
19684 gnu*)
19685   version_type=linux
19686   need_lib_prefix=no
19687   need_version=no
19688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19689   soname_spec='${libname}${release}${shared_ext}$major'
19690   shlibpath_var=LD_LIBRARY_PATH
19691   hardcode_into_libs=yes
19692   ;;
19693
19694 hpux9* | hpux10* | hpux11*)
19695   # Give a soname corresponding to the major version so that dld.sl refuses to
19696   # link against other versions.
19697   version_type=sunos
19698   need_lib_prefix=no
19699   need_version=no
19700   case $host_cpu in
19701   ia64*)
19702     shrext_cmds='.so'
19703     hardcode_into_libs=yes
19704     dynamic_linker="$host_os dld.so"
19705     shlibpath_var=LD_LIBRARY_PATH
19706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19708     soname_spec='${libname}${release}${shared_ext}$major'
19709     if test "X$HPUX_IA64_MODE" = X32; then
19710       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19711     else
19712       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19713     fi
19714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19715     ;;
19716    hppa*64*)
19717      shrext_cmds='.sl'
19718      hardcode_into_libs=yes
19719      dynamic_linker="$host_os dld.sl"
19720      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19721      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19723      soname_spec='${libname}${release}${shared_ext}$major'
19724      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19725      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19726      ;;
19727    *)
19728     shrext_cmds='.sl'
19729     dynamic_linker="$host_os dld.sl"
19730     shlibpath_var=SHLIB_PATH
19731     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19733     soname_spec='${libname}${release}${shared_ext}$major'
19734     ;;
19735   esac
19736   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19737   postinstall_cmds='chmod 555 $lib'
19738   ;;
19739
19740 interix3*)
19741   version_type=linux
19742   need_lib_prefix=no
19743   need_version=no
19744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19745   soname_spec='${libname}${release}${shared_ext}$major'
19746   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19747   shlibpath_var=LD_LIBRARY_PATH
19748   shlibpath_overrides_runpath=no
19749   hardcode_into_libs=yes
19750   ;;
19751
19752 irix5* | irix6* | nonstopux*)
19753   case $host_os in
19754     nonstopux*) version_type=nonstopux ;;
19755     *)
19756         if test "$lt_cv_prog_gnu_ld" = yes; then
19757                 version_type=linux
19758         else
19759                 version_type=irix
19760         fi ;;
19761   esac
19762   need_lib_prefix=no
19763   need_version=no
19764   soname_spec='${libname}${release}${shared_ext}$major'
19765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19766   case $host_os in
19767   irix5* | nonstopux*)
19768     libsuff= shlibsuff=
19769     ;;
19770   *)
19771     case $LD in # libtool.m4 will add one of these switches to LD
19772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19773       libsuff= shlibsuff= libmagic=32-bit;;
19774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19775       libsuff=32 shlibsuff=N32 libmagic=N32;;
19776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19778     *) libsuff= shlibsuff= libmagic=never-match;;
19779     esac
19780     ;;
19781   esac
19782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19783   shlibpath_overrides_runpath=no
19784   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19785   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19786   hardcode_into_libs=yes
19787   ;;
19788
19789 # No shared lib support for Linux oldld, aout, or coff.
19790 linux*oldld* | linux*aout* | linux*coff*)
19791   dynamic_linker=no
19792   ;;
19793
19794 # This must be Linux ELF.
19795 linux* | k*bsd*-gnu)
19796   version_type=linux
19797   need_lib_prefix=no
19798   need_version=no
19799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800   soname_spec='${libname}${release}${shared_ext}$major'
19801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19802   shlibpath_var=LD_LIBRARY_PATH
19803   shlibpath_overrides_runpath=no
19804   # This implies no fast_install, which is unacceptable.
19805   # Some rework will be needed to allow for fast_install
19806   # before this can be enabled.
19807   hardcode_into_libs=yes
19808
19809   # Append ld.so.conf contents to the search path
19810   if test -f /etc/ld.so.conf; then
19811     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' ' '`
19812     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19813   fi
19814
19815   # We used to test for /lib/ld.so.1 and disable shared libraries on
19816   # powerpc, because MkLinux only supported shared libraries with the
19817   # GNU dynamic linker.  Since this was broken with cross compilers,
19818   # most powerpc-linux boxes support dynamic linking these days and
19819   # people can always --disable-shared, the test was removed, and we
19820   # assume the GNU/Linux dynamic linker is in use.
19821   dynamic_linker='GNU/Linux ld.so'
19822   ;;
19823
19824 netbsdelf*-gnu)
19825   version_type=linux
19826   need_lib_prefix=no
19827   need_version=no
19828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19829   soname_spec='${libname}${release}${shared_ext}$major'
19830   shlibpath_var=LD_LIBRARY_PATH
19831   shlibpath_overrides_runpath=no
19832   hardcode_into_libs=yes
19833   dynamic_linker='NetBSD ld.elf_so'
19834   ;;
19835
19836 netbsd*)
19837   version_type=sunos
19838   need_lib_prefix=no
19839   need_version=no
19840   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19842     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19843     dynamic_linker='NetBSD (a.out) ld.so'
19844   else
19845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19846     soname_spec='${libname}${release}${shared_ext}$major'
19847     dynamic_linker='NetBSD ld.elf_so'
19848   fi
19849   shlibpath_var=LD_LIBRARY_PATH
19850   shlibpath_overrides_runpath=yes
19851   hardcode_into_libs=yes
19852   ;;
19853
19854 newsos6)
19855   version_type=linux
19856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857   shlibpath_var=LD_LIBRARY_PATH
19858   shlibpath_overrides_runpath=yes
19859   ;;
19860
19861 nto-qnx*)
19862   version_type=linux
19863   need_lib_prefix=no
19864   need_version=no
19865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19866   soname_spec='${libname}${release}${shared_ext}$major'
19867   shlibpath_var=LD_LIBRARY_PATH
19868   shlibpath_overrides_runpath=yes
19869   ;;
19870
19871 openbsd*)
19872   version_type=sunos
19873   sys_lib_dlsearch_path_spec="/usr/lib"
19874   need_lib_prefix=no
19875   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19876   case $host_os in
19877     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19878     *)                         need_version=no  ;;
19879   esac
19880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19882   shlibpath_var=LD_LIBRARY_PATH
19883   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19884     case $host_os in
19885       openbsd2.[89] | openbsd2.[89].*)
19886         shlibpath_overrides_runpath=no
19887         ;;
19888       *)
19889         shlibpath_overrides_runpath=yes
19890         ;;
19891       esac
19892   else
19893     shlibpath_overrides_runpath=yes
19894   fi
19895   ;;
19896
19897 os2*)
19898   libname_spec='$name'
19899   shrext_cmds=".dll"
19900   need_lib_prefix=no
19901   library_names_spec='$libname${shared_ext} $libname.a'
19902   dynamic_linker='OS/2 ld.exe'
19903   shlibpath_var=LIBPATH
19904   ;;
19905
19906 osf3* | osf4* | osf5*)
19907   version_type=osf
19908   need_lib_prefix=no
19909   need_version=no
19910   soname_spec='${libname}${release}${shared_ext}$major'
19911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912   shlibpath_var=LD_LIBRARY_PATH
19913   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19914   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19915   ;;
19916
19917 solaris*)
19918   version_type=linux
19919   need_lib_prefix=no
19920   need_version=no
19921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19922   soname_spec='${libname}${release}${shared_ext}$major'
19923   shlibpath_var=LD_LIBRARY_PATH
19924   shlibpath_overrides_runpath=yes
19925   hardcode_into_libs=yes
19926   # ldd complains unless libraries are executable
19927   postinstall_cmds='chmod +x $lib'
19928   ;;
19929
19930 sunos4*)
19931   version_type=sunos
19932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19933   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19934   shlibpath_var=LD_LIBRARY_PATH
19935   shlibpath_overrides_runpath=yes
19936   if test "$with_gnu_ld" = yes; then
19937     need_lib_prefix=no
19938   fi
19939   need_version=yes
19940   ;;
19941
19942 sysv4 | sysv4.3*)
19943   version_type=linux
19944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19945   soname_spec='${libname}${release}${shared_ext}$major'
19946   shlibpath_var=LD_LIBRARY_PATH
19947   case $host_vendor in
19948     sni)
19949       shlibpath_overrides_runpath=no
19950       need_lib_prefix=no
19951       export_dynamic_flag_spec='${wl}-Blargedynsym'
19952       runpath_var=LD_RUN_PATH
19953       ;;
19954     siemens)
19955       need_lib_prefix=no
19956       ;;
19957     motorola)
19958       need_lib_prefix=no
19959       need_version=no
19960       shlibpath_overrides_runpath=no
19961       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19962       ;;
19963   esac
19964   ;;
19965
19966 sysv4*MP*)
19967   if test -d /usr/nec ;then
19968     version_type=linux
19969     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19970     soname_spec='$libname${shared_ext}.$major'
19971     shlibpath_var=LD_LIBRARY_PATH
19972   fi
19973   ;;
19974
19975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19976   version_type=freebsd-elf
19977   need_lib_prefix=no
19978   need_version=no
19979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19980   soname_spec='${libname}${release}${shared_ext}$major'
19981   shlibpath_var=LD_LIBRARY_PATH
19982   hardcode_into_libs=yes
19983   if test "$with_gnu_ld" = yes; then
19984     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19985     shlibpath_overrides_runpath=no
19986   else
19987     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19988     shlibpath_overrides_runpath=yes
19989     case $host_os in
19990       sco3.2v5*)
19991         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19992         ;;
19993     esac
19994   fi
19995   sys_lib_dlsearch_path_spec='/usr/lib'
19996   ;;
19997
19998 uts4*)
19999   version_type=linux
20000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20001   soname_spec='${libname}${release}${shared_ext}$major'
20002   shlibpath_var=LD_LIBRARY_PATH
20003   ;;
20004
20005 *)
20006   dynamic_linker=no
20007   ;;
20008 esac
20009 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20010 echo "${ECHO_T}$dynamic_linker" >&6; }
20011 test "$dynamic_linker" = no && can_build_shared=no
20012
20013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20014 if test "$GCC" = yes; then
20015   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20016 fi
20017
20018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20020 hardcode_action_GCJ=
20021 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20022    test -n "$runpath_var_GCJ" || \
20023    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20024
20025   # We can hardcode non-existant directories.
20026   if test "$hardcode_direct_GCJ" != no &&
20027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20028      # have to relink, otherwise we might link with an installed library
20029      # when we should be linking with a yet-to-be-installed one
20030      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20031      test "$hardcode_minus_L_GCJ" != no; then
20032     # Linking always hardcodes the temporary library directory.
20033     hardcode_action_GCJ=relink
20034   else
20035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20036     hardcode_action_GCJ=immediate
20037   fi
20038 else
20039   # We cannot hardcode anything, or else we can only hardcode existing
20040   # directories.
20041   hardcode_action_GCJ=unsupported
20042 fi
20043 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20044 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20045
20046 if test "$hardcode_action_GCJ" = relink; then
20047   # Fast installation is not supported
20048   enable_fast_install=no
20049 elif test "$shlibpath_overrides_runpath" = yes ||
20050      test "$enable_shared" = no; then
20051   # Fast installation is not necessary
20052   enable_fast_install=needless
20053 fi
20054
20055
20056 # The else clause should only fire when bootstrapping the
20057 # libtool distribution, otherwise you forgot to ship ltmain.sh
20058 # with your package, and you will get complaints that there are
20059 # no rules to generate ltmain.sh.
20060 if test -f "$ltmain"; then
20061   # See if we are running on zsh, and set the options which allow our commands through
20062   # without removal of \ escapes.
20063   if test -n "${ZSH_VERSION+set}" ; then
20064     setopt NO_GLOB_SUBST
20065   fi
20066   # Now quote all the things that may contain metacharacters while being
20067   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20068   # variables and quote the copies for generation of the libtool script.
20069   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20070     SED SHELL STRIP \
20071     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20072     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20073     deplibs_check_method reload_flag reload_cmds need_locks \
20074     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20075     lt_cv_sys_global_symbol_to_c_name_address \
20076     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20077     old_postinstall_cmds old_postuninstall_cmds \
20078     compiler_GCJ \
20079     CC_GCJ \
20080     LD_GCJ \
20081     lt_prog_compiler_wl_GCJ \
20082     lt_prog_compiler_pic_GCJ \
20083     lt_prog_compiler_static_GCJ \
20084     lt_prog_compiler_no_builtin_flag_GCJ \
20085     export_dynamic_flag_spec_GCJ \
20086     thread_safe_flag_spec_GCJ \
20087     whole_archive_flag_spec_GCJ \
20088     enable_shared_with_static_runtimes_GCJ \
20089     old_archive_cmds_GCJ \
20090     old_archive_from_new_cmds_GCJ \
20091     predep_objects_GCJ \
20092     postdep_objects_GCJ \
20093     predeps_GCJ \
20094     postdeps_GCJ \
20095     compiler_lib_search_path_GCJ \
20096     archive_cmds_GCJ \
20097     archive_expsym_cmds_GCJ \
20098     postinstall_cmds_GCJ \
20099     postuninstall_cmds_GCJ \
20100     old_archive_from_expsyms_cmds_GCJ \
20101     allow_undefined_flag_GCJ \
20102     no_undefined_flag_GCJ \
20103     export_symbols_cmds_GCJ \
20104     hardcode_libdir_flag_spec_GCJ \
20105     hardcode_libdir_flag_spec_ld_GCJ \
20106     hardcode_libdir_separator_GCJ \
20107     hardcode_automatic_GCJ \
20108     module_cmds_GCJ \
20109     module_expsym_cmds_GCJ \
20110     lt_cv_prog_compiler_c_o_GCJ \
20111     exclude_expsyms_GCJ \
20112     include_expsyms_GCJ; do
20113
20114     case $var in
20115     old_archive_cmds_GCJ | \
20116     old_archive_from_new_cmds_GCJ | \
20117     archive_cmds_GCJ | \
20118     archive_expsym_cmds_GCJ | \
20119     module_cmds_GCJ | \
20120     module_expsym_cmds_GCJ | \
20121     old_archive_from_expsyms_cmds_GCJ | \
20122     export_symbols_cmds_GCJ | \
20123     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20124     postinstall_cmds | postuninstall_cmds | \
20125     old_postinstall_cmds | old_postuninstall_cmds | \
20126     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20127       # Double-quote double-evaled strings.
20128       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20129       ;;
20130     *)
20131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20132       ;;
20133     esac
20134   done
20135
20136   case $lt_echo in
20137   *'\$0 --fallback-echo"')
20138     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20139     ;;
20140   esac
20141
20142 cfgfile="$ofile"
20143
20144   cat <<__EOF__ >> "$cfgfile"
20145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20146
20147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20148
20149 # Shell to use when invoking shell scripts.
20150 SHELL=$lt_SHELL
20151
20152 # Whether or not to build shared libraries.
20153 build_libtool_libs=$enable_shared
20154
20155 # Whether or not to build static libraries.
20156 build_old_libs=$enable_static
20157
20158 # Whether or not to add -lc for building shared libraries.
20159 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20160
20161 # Whether or not to disallow shared libs when runtime libs are static
20162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20163
20164 # Whether or not to optimize for fast installation.
20165 fast_install=$enable_fast_install
20166
20167 # The host system.
20168 host_alias=$host_alias
20169 host=$host
20170 host_os=$host_os
20171
20172 # The build system.
20173 build_alias=$build_alias
20174 build=$build
20175 build_os=$build_os
20176
20177 # An echo program that does not interpret backslashes.
20178 echo=$lt_echo
20179
20180 # The archiver.
20181 AR=$lt_AR
20182 AR_FLAGS=$lt_AR_FLAGS
20183
20184 # A C compiler.
20185 LTCC=$lt_LTCC
20186
20187 # LTCC compiler flags.
20188 LTCFLAGS=$lt_LTCFLAGS
20189
20190 # A language-specific compiler.
20191 CC=$lt_compiler_GCJ
20192
20193 # Is the compiler the GNU C compiler?
20194 with_gcc=$GCC_GCJ
20195
20196 # An ERE matcher.
20197 EGREP=$lt_EGREP
20198
20199 # The linker used to build libraries.
20200 LD=$lt_LD_GCJ
20201
20202 # Whether we need hard or soft links.
20203 LN_S=$lt_LN_S
20204
20205 # A BSD-compatible nm program.
20206 NM=$lt_NM
20207
20208 # A symbol stripping program
20209 STRIP=$lt_STRIP
20210
20211 # Used to examine libraries when file_magic_cmd begins "file"
20212 MAGIC_CMD=$MAGIC_CMD
20213
20214 # Used on cygwin: DLL creation program.
20215 DLLTOOL="$DLLTOOL"
20216
20217 # Used on cygwin: object dumper.
20218 OBJDUMP="$OBJDUMP"
20219
20220 # Used on cygwin: assembler.
20221 AS="$AS"
20222
20223 # The name of the directory that contains temporary libtool files.
20224 objdir=$objdir
20225
20226 # How to create reloadable object files.
20227 reload_flag=$lt_reload_flag
20228 reload_cmds=$lt_reload_cmds
20229
20230 # How to pass a linker flag through the compiler.
20231 wl=$lt_lt_prog_compiler_wl_GCJ
20232
20233 # Object file suffix (normally "o").
20234 objext="$ac_objext"
20235
20236 # Old archive suffix (normally "a").
20237 libext="$libext"
20238
20239 # Shared library suffix (normally ".so").
20240 shrext_cmds='$shrext_cmds'
20241
20242 # Executable file suffix (normally "").
20243 exeext="$exeext"
20244
20245 # Additional compiler flags for building library objects.
20246 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20247 pic_mode=$pic_mode
20248
20249 # What is the maximum length of a command?
20250 max_cmd_len=$lt_cv_sys_max_cmd_len
20251
20252 # Does compiler simultaneously support -c and -o options?
20253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20254
20255 # Must we lock files when doing compilation?
20256 need_locks=$lt_need_locks
20257
20258 # Do we need the lib prefix for modules?
20259 need_lib_prefix=$need_lib_prefix
20260
20261 # Do we need a version for libraries?
20262 need_version=$need_version
20263
20264 # Whether dlopen is supported.
20265 dlopen_support=$enable_dlopen
20266
20267 # Whether dlopen of programs is supported.
20268 dlopen_self=$enable_dlopen_self
20269
20270 # Whether dlopen of statically linked programs is supported.
20271 dlopen_self_static=$enable_dlopen_self_static
20272
20273 # Compiler flag to prevent dynamic linking.
20274 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20275
20276 # Compiler flag to turn off builtin functions.
20277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20278
20279 # Compiler flag to allow reflexive dlopens.
20280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20281
20282 # Compiler flag to generate shared objects directly from archives.
20283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20284
20285 # Compiler flag to generate thread-safe objects.
20286 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20287
20288 # Library versioning type.
20289 version_type=$version_type
20290
20291 # Format of library name prefix.
20292 libname_spec=$lt_libname_spec
20293
20294 # List of archive names.  First name is the real one, the rest are links.
20295 # The last name is the one that the linker finds with -lNAME.
20296 library_names_spec=$lt_library_names_spec
20297
20298 # The coded name of the library, if different from the real name.
20299 soname_spec=$lt_soname_spec
20300
20301 # Commands used to build and install an old-style archive.
20302 RANLIB=$lt_RANLIB
20303 old_archive_cmds=$lt_old_archive_cmds_GCJ
20304 old_postinstall_cmds=$lt_old_postinstall_cmds
20305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20306
20307 # Create an old-style archive from a shared archive.
20308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20309
20310 # Create a temporary old-style archive to link instead of a shared archive.
20311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20312
20313 # Commands used to build and install a shared archive.
20314 archive_cmds=$lt_archive_cmds_GCJ
20315 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20316 postinstall_cmds=$lt_postinstall_cmds
20317 postuninstall_cmds=$lt_postuninstall_cmds
20318
20319 # Commands used to build a loadable module (assumed same as above if empty)
20320 module_cmds=$lt_module_cmds_GCJ
20321 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20322
20323 # Commands to strip libraries.
20324 old_striplib=$lt_old_striplib
20325 striplib=$lt_striplib
20326
20327 # Dependencies to place before the objects being linked to create a
20328 # shared library.
20329 predep_objects=$lt_predep_objects_GCJ
20330
20331 # Dependencies to place after the objects being linked to create a
20332 # shared library.
20333 postdep_objects=$lt_postdep_objects_GCJ
20334
20335 # Dependencies to place before the objects being linked to create a
20336 # shared library.
20337 predeps=$lt_predeps_GCJ
20338
20339 # Dependencies to place after the objects being linked to create a
20340 # shared library.
20341 postdeps=$lt_postdeps_GCJ
20342
20343 # The library search path used internally by the compiler when linking
20344 # a shared library.
20345 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20346
20347 # Method to check whether dependent libraries are shared objects.
20348 deplibs_check_method=$lt_deplibs_check_method
20349
20350 # Command to use when deplibs_check_method == file_magic.
20351 file_magic_cmd=$lt_file_magic_cmd
20352
20353 # Flag that allows shared libraries with undefined symbols to be built.
20354 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20355
20356 # Flag that forces no undefined symbols.
20357 no_undefined_flag=$lt_no_undefined_flag_GCJ
20358
20359 # Commands used to finish a libtool library installation in a directory.
20360 finish_cmds=$lt_finish_cmds
20361
20362 # Same as above, but a single script fragment to be evaled but not shown.
20363 finish_eval=$lt_finish_eval
20364
20365 # Take the output of nm and produce a listing of raw symbols and C names.
20366 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20367
20368 # Transform the output of nm in a proper C declaration
20369 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20370
20371 # Transform the output of nm in a C name address pair
20372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20373
20374 # This is the shared library runtime path variable.
20375 runpath_var=$runpath_var
20376
20377 # This is the shared library path variable.
20378 shlibpath_var=$shlibpath_var
20379
20380 # Is shlibpath searched before the hard-coded library search path?
20381 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20382
20383 # How to hardcode a shared library path into an executable.
20384 hardcode_action=$hardcode_action_GCJ
20385
20386 # Whether we should hardcode library paths into libraries.
20387 hardcode_into_libs=$hardcode_into_libs
20388
20389 # Flag to hardcode \$libdir into a binary during linking.
20390 # This must work even if \$libdir does not exist.
20391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20392
20393 # If ld is used when linking, flag to hardcode \$libdir into
20394 # a binary during linking. This must work even if \$libdir does
20395 # not exist.
20396 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20397
20398 # Whether we need a single -rpath flag with a separated argument.
20399 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20400
20401 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20402 # resulting binary.
20403 hardcode_direct=$hardcode_direct_GCJ
20404
20405 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20406 # resulting binary.
20407 hardcode_minus_L=$hardcode_minus_L_GCJ
20408
20409 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20410 # the resulting binary.
20411 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20412
20413 # Set to yes if building a shared library automatically hardcodes DIR into the library
20414 # and all subsequent libraries and executables linked against it.
20415 hardcode_automatic=$hardcode_automatic_GCJ
20416
20417 # Variables whose values should be saved in libtool wrapper scripts and
20418 # restored at relink time.
20419 variables_saved_for_relink="$variables_saved_for_relink"
20420
20421 # Whether libtool must link a program against all its dependency libraries.
20422 link_all_deplibs=$link_all_deplibs_GCJ
20423
20424 # Compile-time system search path for libraries
20425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20426
20427 # Run-time system search path for libraries
20428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20429
20430 # Fix the shell variable \$srcfile for the compiler.
20431 fix_srcfile_path="$fix_srcfile_path_GCJ"
20432
20433 # Set to yes if exported symbols are required.
20434 always_export_symbols=$always_export_symbols_GCJ
20435
20436 # The commands to list exported symbols.
20437 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20438
20439 # The commands to extract the exported symbol list from a shared archive.
20440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20441
20442 # Symbols that should not be listed in the preloaded symbols.
20443 exclude_expsyms=$lt_exclude_expsyms_GCJ
20444
20445 # Symbols that must always be exported.
20446 include_expsyms=$lt_include_expsyms_GCJ
20447
20448 # ### END LIBTOOL TAG CONFIG: $tagname
20449
20450 __EOF__
20451
20452
20453 else
20454   # If there is no Makefile yet, we rely on a make rule to execute
20455   # `config.status --recheck' to rerun these tests and create the
20456   # libtool script then.
20457   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20458   if test -f "$ltmain_in"; then
20459     test -f Makefile && make "$ltmain"
20460   fi
20461 fi
20462
20463
20464 ac_ext=c
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469
20470 CC="$lt_save_CC"
20471
20472         else
20473           tagname=""
20474         fi
20475         ;;
20476
20477       RC)
20478
20479
20480 # Source file extension for RC test sources.
20481 ac_ext=rc
20482
20483 # Object file extension for compiled RC test sources.
20484 objext=o
20485 objext_RC=$objext
20486
20487 # Code to be used in simple compile tests
20488 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20489
20490 # Code to be used in simple link tests
20491 lt_simple_link_test_code="$lt_simple_compile_test_code"
20492
20493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20494
20495 # If no C compiler was specified, use CC.
20496 LTCC=${LTCC-"$CC"}
20497
20498 # If no C compiler flags were specified, use CFLAGS.
20499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20500
20501 # Allow CC to be a program name with arguments.
20502 compiler=$CC
20503
20504
20505 # save warnings/boilerplate of simple test code
20506 ac_outfile=conftest.$ac_objext
20507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20509 _lt_compiler_boilerplate=`cat conftest.err`
20510 $rm conftest*
20511
20512 ac_outfile=conftest.$ac_objext
20513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20515 _lt_linker_boilerplate=`cat conftest.err`
20516 $rm conftest*
20517
20518
20519 # Allow CC to be a program name with arguments.
20520 lt_save_CC="$CC"
20521 CC=${RC-"windres"}
20522 compiler=$CC
20523 compiler_RC=$CC
20524 for cc_temp in $compiler""; do
20525   case $cc_temp in
20526     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20527     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20528     \-*) ;;
20529     *) break;;
20530   esac
20531 done
20532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20533
20534 lt_cv_prog_compiler_c_o_RC=yes
20535
20536 # The else clause should only fire when bootstrapping the
20537 # libtool distribution, otherwise you forgot to ship ltmain.sh
20538 # with your package, and you will get complaints that there are
20539 # no rules to generate ltmain.sh.
20540 if test -f "$ltmain"; then
20541   # See if we are running on zsh, and set the options which allow our commands through
20542   # without removal of \ escapes.
20543   if test -n "${ZSH_VERSION+set}" ; then
20544     setopt NO_GLOB_SUBST
20545   fi
20546   # Now quote all the things that may contain metacharacters while being
20547   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20548   # variables and quote the copies for generation of the libtool script.
20549   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20550     SED SHELL STRIP \
20551     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20552     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20553     deplibs_check_method reload_flag reload_cmds need_locks \
20554     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20555     lt_cv_sys_global_symbol_to_c_name_address \
20556     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20557     old_postinstall_cmds old_postuninstall_cmds \
20558     compiler_RC \
20559     CC_RC \
20560     LD_RC \
20561     lt_prog_compiler_wl_RC \
20562     lt_prog_compiler_pic_RC \
20563     lt_prog_compiler_static_RC \
20564     lt_prog_compiler_no_builtin_flag_RC \
20565     export_dynamic_flag_spec_RC \
20566     thread_safe_flag_spec_RC \
20567     whole_archive_flag_spec_RC \
20568     enable_shared_with_static_runtimes_RC \
20569     old_archive_cmds_RC \
20570     old_archive_from_new_cmds_RC \
20571     predep_objects_RC \
20572     postdep_objects_RC \
20573     predeps_RC \
20574     postdeps_RC \
20575     compiler_lib_search_path_RC \
20576     archive_cmds_RC \
20577     archive_expsym_cmds_RC \
20578     postinstall_cmds_RC \
20579     postuninstall_cmds_RC \
20580     old_archive_from_expsyms_cmds_RC \
20581     allow_undefined_flag_RC \
20582     no_undefined_flag_RC \
20583     export_symbols_cmds_RC \
20584     hardcode_libdir_flag_spec_RC \
20585     hardcode_libdir_flag_spec_ld_RC \
20586     hardcode_libdir_separator_RC \
20587     hardcode_automatic_RC \
20588     module_cmds_RC \
20589     module_expsym_cmds_RC \
20590     lt_cv_prog_compiler_c_o_RC \
20591     exclude_expsyms_RC \
20592     include_expsyms_RC; do
20593
20594     case $var in
20595     old_archive_cmds_RC | \
20596     old_archive_from_new_cmds_RC | \
20597     archive_cmds_RC | \
20598     archive_expsym_cmds_RC | \
20599     module_cmds_RC | \
20600     module_expsym_cmds_RC | \
20601     old_archive_from_expsyms_cmds_RC | \
20602     export_symbols_cmds_RC | \
20603     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20604     postinstall_cmds | postuninstall_cmds | \
20605     old_postinstall_cmds | old_postuninstall_cmds | \
20606     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20607       # Double-quote double-evaled strings.
20608       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20609       ;;
20610     *)
20611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20612       ;;
20613     esac
20614   done
20615
20616   case $lt_echo in
20617   *'\$0 --fallback-echo"')
20618     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20619     ;;
20620   esac
20621
20622 cfgfile="$ofile"
20623
20624   cat <<__EOF__ >> "$cfgfile"
20625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20626
20627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20628
20629 # Shell to use when invoking shell scripts.
20630 SHELL=$lt_SHELL
20631
20632 # Whether or not to build shared libraries.
20633 build_libtool_libs=$enable_shared
20634
20635 # Whether or not to build static libraries.
20636 build_old_libs=$enable_static
20637
20638 # Whether or not to add -lc for building shared libraries.
20639 build_libtool_need_lc=$archive_cmds_need_lc_RC
20640
20641 # Whether or not to disallow shared libs when runtime libs are static
20642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20643
20644 # Whether or not to optimize for fast installation.
20645 fast_install=$enable_fast_install
20646
20647 # The host system.
20648 host_alias=$host_alias
20649 host=$host
20650 host_os=$host_os
20651
20652 # The build system.
20653 build_alias=$build_alias
20654 build=$build
20655 build_os=$build_os
20656
20657 # An echo program that does not interpret backslashes.
20658 echo=$lt_echo
20659
20660 # The archiver.
20661 AR=$lt_AR
20662 AR_FLAGS=$lt_AR_FLAGS
20663
20664 # A C compiler.
20665 LTCC=$lt_LTCC
20666
20667 # LTCC compiler flags.
20668 LTCFLAGS=$lt_LTCFLAGS
20669
20670 # A language-specific compiler.
20671 CC=$lt_compiler_RC
20672
20673 # Is the compiler the GNU C compiler?
20674 with_gcc=$GCC_RC
20675
20676 # An ERE matcher.
20677 EGREP=$lt_EGREP
20678
20679 # The linker used to build libraries.
20680 LD=$lt_LD_RC
20681
20682 # Whether we need hard or soft links.
20683 LN_S=$lt_LN_S
20684
20685 # A BSD-compatible nm program.
20686 NM=$lt_NM
20687
20688 # A symbol stripping program
20689 STRIP=$lt_STRIP
20690
20691 # Used to examine libraries when file_magic_cmd begins "file"
20692 MAGIC_CMD=$MAGIC_CMD
20693
20694 # Used on cygwin: DLL creation program.
20695 DLLTOOL="$DLLTOOL"
20696
20697 # Used on cygwin: object dumper.
20698 OBJDUMP="$OBJDUMP"
20699
20700 # Used on cygwin: assembler.
20701 AS="$AS"
20702
20703 # The name of the directory that contains temporary libtool files.
20704 objdir=$objdir
20705
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag
20708 reload_cmds=$lt_reload_cmds
20709
20710 # How to pass a linker flag through the compiler.
20711 wl=$lt_lt_prog_compiler_wl_RC
20712
20713 # Object file suffix (normally "o").
20714 objext="$ac_objext"
20715
20716 # Old archive suffix (normally "a").
20717 libext="$libext"
20718
20719 # Shared library suffix (normally ".so").
20720 shrext_cmds='$shrext_cmds'
20721
20722 # Executable file suffix (normally "").
20723 exeext="$exeext"
20724
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic_RC
20727 pic_mode=$pic_mode
20728
20729 # What is the maximum length of a command?
20730 max_cmd_len=$lt_cv_sys_max_cmd_len
20731
20732 # Does compiler simultaneously support -c and -o options?
20733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20734
20735 # Must we lock files when doing compilation?
20736 need_locks=$lt_need_locks
20737
20738 # Do we need the lib prefix for modules?
20739 need_lib_prefix=$need_lib_prefix
20740
20741 # Do we need a version for libraries?
20742 need_version=$need_version
20743
20744 # Whether dlopen is supported.
20745 dlopen_support=$enable_dlopen
20746
20747 # Whether dlopen of programs is supported.
20748 dlopen_self=$enable_dlopen_self
20749
20750 # Whether dlopen of statically linked programs is supported.
20751 dlopen_self_static=$enable_dlopen_self_static
20752
20753 # Compiler flag to prevent dynamic linking.
20754 link_static_flag=$lt_lt_prog_compiler_static_RC
20755
20756 # Compiler flag to turn off builtin functions.
20757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20758
20759 # Compiler flag to allow reflexive dlopens.
20760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20761
20762 # Compiler flag to generate shared objects directly from archives.
20763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20764
20765 # Compiler flag to generate thread-safe objects.
20766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20767
20768 # Library versioning type.
20769 version_type=$version_type
20770
20771 # Format of library name prefix.
20772 libname_spec=$lt_libname_spec
20773
20774 # List of archive names.  First name is the real one, the rest are links.
20775 # The last name is the one that the linker finds with -lNAME.
20776 library_names_spec=$lt_library_names_spec
20777
20778 # The coded name of the library, if different from the real name.
20779 soname_spec=$lt_soname_spec
20780
20781 # Commands used to build and install an old-style archive.
20782 RANLIB=$lt_RANLIB
20783 old_archive_cmds=$lt_old_archive_cmds_RC
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20786
20787 # Create an old-style archive from a shared archive.
20788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20789
20790 # Create a temporary old-style archive to link instead of a shared archive.
20791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20792
20793 # Commands used to build and install a shared archive.
20794 archive_cmds=$lt_archive_cmds_RC
20795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20796 postinstall_cmds=$lt_postinstall_cmds
20797 postuninstall_cmds=$lt_postuninstall_cmds
20798
20799 # Commands used to build a loadable module (assumed same as above if empty)
20800 module_cmds=$lt_module_cmds_RC
20801 module_expsym_cmds=$lt_module_expsym_cmds_RC
20802
20803 # Commands to strip libraries.
20804 old_striplib=$lt_old_striplib
20805 striplib=$lt_striplib
20806
20807 # Dependencies to place before the objects being linked to create a
20808 # shared library.
20809 predep_objects=$lt_predep_objects_RC
20810
20811 # Dependencies to place after the objects being linked to create a
20812 # shared library.
20813 postdep_objects=$lt_postdep_objects_RC
20814
20815 # Dependencies to place before the objects being linked to create a
20816 # shared library.
20817 predeps=$lt_predeps_RC
20818
20819 # Dependencies to place after the objects being linked to create a
20820 # shared library.
20821 postdeps=$lt_postdeps_RC
20822
20823 # The library search path used internally by the compiler when linking
20824 # a shared library.
20825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20826
20827 # Method to check whether dependent libraries are shared objects.
20828 deplibs_check_method=$lt_deplibs_check_method
20829
20830 # Command to use when deplibs_check_method == file_magic.
20831 file_magic_cmd=$lt_file_magic_cmd
20832
20833 # Flag that allows shared libraries with undefined symbols to be built.
20834 allow_undefined_flag=$lt_allow_undefined_flag_RC
20835
20836 # Flag that forces no undefined symbols.
20837 no_undefined_flag=$lt_no_undefined_flag_RC
20838
20839 # Commands used to finish a libtool library installation in a directory.
20840 finish_cmds=$lt_finish_cmds
20841
20842 # Same as above, but a single script fragment to be evaled but not shown.
20843 finish_eval=$lt_finish_eval
20844
20845 # Take the output of nm and produce a listing of raw symbols and C names.
20846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20847
20848 # Transform the output of nm in a proper C declaration
20849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20850
20851 # Transform the output of nm in a C name address pair
20852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20853
20854 # This is the shared library runtime path variable.
20855 runpath_var=$runpath_var
20856
20857 # This is the shared library path variable.
20858 shlibpath_var=$shlibpath_var
20859
20860 # Is shlibpath searched before the hard-coded library search path?
20861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20862
20863 # How to hardcode a shared library path into an executable.
20864 hardcode_action=$hardcode_action_RC
20865
20866 # Whether we should hardcode library paths into libraries.
20867 hardcode_into_libs=$hardcode_into_libs
20868
20869 # Flag to hardcode \$libdir into a binary during linking.
20870 # This must work even if \$libdir does not exist.
20871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20872
20873 # If ld is used when linking, flag to hardcode \$libdir into
20874 # a binary during linking. This must work even if \$libdir does
20875 # not exist.
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20877
20878 # Whether we need a single -rpath flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20880
20881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20882 # resulting binary.
20883 hardcode_direct=$hardcode_direct_RC
20884
20885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_minus_L=$hardcode_minus_L_RC
20888
20889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20890 # the resulting binary.
20891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20892
20893 # Set to yes if building a shared library automatically hardcodes DIR into the library
20894 # and all subsequent libraries and executables linked against it.
20895 hardcode_automatic=$hardcode_automatic_RC
20896
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at relink time.
20899 variables_saved_for_relink="$variables_saved_for_relink"
20900
20901 # Whether libtool must link a program against all its dependency libraries.
20902 link_all_deplibs=$link_all_deplibs_RC
20903
20904 # Compile-time system search path for libraries
20905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20906
20907 # Run-time system search path for libraries
20908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20909
20910 # Fix the shell variable \$srcfile for the compiler.
20911 fix_srcfile_path="$fix_srcfile_path_RC"
20912
20913 # Set to yes if exported symbols are required.
20914 always_export_symbols=$always_export_symbols_RC
20915
20916 # The commands to list exported symbols.
20917 export_symbols_cmds=$lt_export_symbols_cmds_RC
20918
20919 # The commands to extract the exported symbol list from a shared archive.
20920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20921
20922 # Symbols that should not be listed in the preloaded symbols.
20923 exclude_expsyms=$lt_exclude_expsyms_RC
20924
20925 # Symbols that must always be exported.
20926 include_expsyms=$lt_include_expsyms_RC
20927
20928 # ### END LIBTOOL TAG CONFIG: $tagname
20929
20930 __EOF__
20931
20932
20933 else
20934   # If there is no Makefile yet, we rely on a make rule to execute
20935   # `config.status --recheck' to rerun these tests and create the
20936   # libtool script then.
20937   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20938   if test -f "$ltmain_in"; then
20939     test -f Makefile && make "$ltmain"
20940   fi
20941 fi
20942
20943
20944 ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950 CC="$lt_save_CC"
20951
20952         ;;
20953
20954       *)
20955         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20957    { (exit 1); exit 1; }; }
20958         ;;
20959       esac
20960
20961       # Append the new tag name to the list of available tags.
20962       if test -n "$tagname" ; then
20963       available_tags="$available_tags $tagname"
20964     fi
20965     fi
20966   done
20967   IFS="$lt_save_ifs"
20968
20969   # Now substitute the updated list of available tags.
20970   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20971     mv "${ofile}T" "$ofile"
20972     chmod +x "$ofile"
20973   else
20974     rm -f "${ofile}T"
20975     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20977    { (exit 1); exit 1; }; }
20978   fi
20979 fi
20980
20981
20982
20983 # This can be used to rebuild libtool when needed
20984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20985
20986 # Always use our own libtool.
20987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20988
20989 # Prevent multiple expansion
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011 if test "x$cross_compiling" = "xno"; then
21012         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21013 else
21014         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21015 fi
21016
21017
21018
21019 if test -n "$ac_tool_prefix"; then
21020   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21021 set dummy ${ac_tool_prefix}ar; ac_word=$2
21022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21024 if test "${ac_cv_prog_AR+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027   if test -n "$AR"; then
21028   ac_cv_prog_AR="$AR" # Let the user override the test.
21029 else
21030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21031 for as_dir in $PATH
21032 do
21033   IFS=$as_save_IFS
21034   test -z "$as_dir" && as_dir=.
21035   for ac_exec_ext in '' $ac_executable_extensions; do
21036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21037     ac_cv_prog_AR="${ac_tool_prefix}ar"
21038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21039     break 2
21040   fi
21041 done
21042 done
21043 IFS=$as_save_IFS
21044
21045 fi
21046 fi
21047 AR=$ac_cv_prog_AR
21048 if test -n "$AR"; then
21049   { echo "$as_me:$LINENO: result: $AR" >&5
21050 echo "${ECHO_T}$AR" >&6; }
21051 else
21052   { echo "$as_me:$LINENO: result: no" >&5
21053 echo "${ECHO_T}no" >&6; }
21054 fi
21055
21056
21057 fi
21058 if test -z "$ac_cv_prog_AR"; then
21059   ac_ct_AR=$AR
21060   # Extract the first word of "ar", so it can be a program name with args.
21061 set dummy ar; ac_word=$2
21062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21064 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067   if test -n "$ac_ct_AR"; then
21068   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21069 else
21070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21071 for as_dir in $PATH
21072 do
21073   IFS=$as_save_IFS
21074   test -z "$as_dir" && as_dir=.
21075   for ac_exec_ext in '' $ac_executable_extensions; do
21076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21077     ac_cv_prog_ac_ct_AR="ar"
21078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21079     break 2
21080   fi
21081 done
21082 done
21083 IFS=$as_save_IFS
21084
21085 fi
21086 fi
21087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21088 if test -n "$ac_ct_AR"; then
21089   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21090 echo "${ECHO_T}$ac_ct_AR" >&6; }
21091 else
21092   { echo "$as_me:$LINENO: result: no" >&5
21093 echo "${ECHO_T}no" >&6; }
21094 fi
21095
21096   if test "x$ac_ct_AR" = x; then
21097     AR=""
21098   else
21099     case $cross_compiling:$ac_tool_warned in
21100 yes:)
21101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21102 whose name does not start with the host triplet.  If you think this
21103 configuration is useful to you, please write to autoconf@gnu.org." >&5
21104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21105 whose name does not start with the host triplet.  If you think this
21106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21107 ac_tool_warned=yes ;;
21108 esac
21109     AR=$ac_ct_AR
21110   fi
21111 else
21112   AR="$ac_cv_prog_AR"
21113 fi
21114
21115 if test -n "$ac_tool_prefix"; then
21116   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21117 set dummy ${ac_tool_prefix}ld; ac_word=$2
21118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21120 if test "${ac_cv_prog_LD+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123   if test -n "$LD"; then
21124   ac_cv_prog_LD="$LD" # Let the user override the test.
21125 else
21126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $PATH
21128 do
21129   IFS=$as_save_IFS
21130   test -z "$as_dir" && as_dir=.
21131   for ac_exec_ext in '' $ac_executable_extensions; do
21132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21133     ac_cv_prog_LD="${ac_tool_prefix}ld"
21134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21135     break 2
21136   fi
21137 done
21138 done
21139 IFS=$as_save_IFS
21140
21141 fi
21142 fi
21143 LD=$ac_cv_prog_LD
21144 if test -n "$LD"; then
21145   { echo "$as_me:$LINENO: result: $LD" >&5
21146 echo "${ECHO_T}$LD" >&6; }
21147 else
21148   { echo "$as_me:$LINENO: result: no" >&5
21149 echo "${ECHO_T}no" >&6; }
21150 fi
21151
21152
21153 fi
21154 if test -z "$ac_cv_prog_LD"; then
21155   ac_ct_LD=$LD
21156   # Extract the first word of "ld", so it can be a program name with args.
21157 set dummy ld; ac_word=$2
21158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21160 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   if test -n "$ac_ct_LD"; then
21164   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21165 else
21166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $PATH
21168 do
21169   IFS=$as_save_IFS
21170   test -z "$as_dir" && as_dir=.
21171   for ac_exec_ext in '' $ac_executable_extensions; do
21172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21173     ac_cv_prog_ac_ct_LD="ld"
21174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21175     break 2
21176   fi
21177 done
21178 done
21179 IFS=$as_save_IFS
21180
21181 fi
21182 fi
21183 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21184 if test -n "$ac_ct_LD"; then
21185   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21186 echo "${ECHO_T}$ac_ct_LD" >&6; }
21187 else
21188   { echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6; }
21190 fi
21191
21192   if test "x$ac_ct_LD" = x; then
21193     LD=""
21194   else
21195     case $cross_compiling:$ac_tool_warned in
21196 yes:)
21197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21198 whose name does not start with the host triplet.  If you think this
21199 configuration is useful to you, please write to autoconf@gnu.org." >&5
21200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21201 whose name does not start with the host triplet.  If you think this
21202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21203 ac_tool_warned=yes ;;
21204 esac
21205     LD=$ac_ct_LD
21206   fi
21207 else
21208   LD="$ac_cv_prog_LD"
21209 fi
21210
21211
21212 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21213 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21214 if test "${ac_cv_header_stdc+set}" = set; then
21215   echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217   cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 #include <stdlib.h>
21224 #include <stdarg.h>
21225 #include <string.h>
21226 #include <float.h>
21227
21228 int
21229 main ()
21230 {
21231
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext
21237 if { (ac_try="$ac_compile"
21238 case "(($ac_try" in
21239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240   *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243   (eval "$ac_compile") 2>conftest.er1
21244   ac_status=$?
21245   grep -v '^ *+' conftest.er1 >conftest.err
21246   rm -f conftest.er1
21247   cat conftest.err >&5
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); } &&
21250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21251   { (case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256   (eval "$ac_try") 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); }; } &&
21260          { ac_try='test -s conftest.$ac_objext'
21261   { (case "(($ac_try" in
21262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263   *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266   (eval "$ac_try") 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ac_cv_header_stdc=yes
21271 else
21272   echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21274
21275         ac_cv_header_stdc=no
21276 fi
21277
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280 if test $ac_cv_header_stdc = yes; then
21281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21282   cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288 #include <string.h>
21289
21290 _ACEOF
21291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21292   $EGREP "memchr" >/dev/null 2>&1; then
21293   :
21294 else
21295   ac_cv_header_stdc=no
21296 fi
21297 rm -f conftest*
21298
21299 fi
21300
21301 if test $ac_cv_header_stdc = yes; then
21302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21303   cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 #include <stdlib.h>
21310
21311 _ACEOF
21312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21313   $EGREP "free" >/dev/null 2>&1; then
21314   :
21315 else
21316   ac_cv_header_stdc=no
21317 fi
21318 rm -f conftest*
21319
21320 fi
21321
21322 if test $ac_cv_header_stdc = yes; then
21323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21324   if test "$cross_compiling" = yes; then
21325   :
21326 else
21327   cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 #include <ctype.h>
21334 #include <stdlib.h>
21335 #if ((' ' & 0x0FF) == 0x020)
21336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21338 #else
21339 # define ISLOWER(c) \
21340                    (('a' <= (c) && (c) <= 'i') \
21341                      || ('j' <= (c) && (c) <= 'r') \
21342                      || ('s' <= (c) && (c) <= 'z'))
21343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21344 #endif
21345
21346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21347 int
21348 main ()
21349 {
21350   int i;
21351   for (i = 0; i < 256; i++)
21352     if (XOR (islower (i), ISLOWER (i))
21353         || toupper (i) != TOUPPER (i))
21354       return 2;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_link") 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21369   { (case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_try") 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); }; }; then
21378   :
21379 else
21380   echo "$as_me: program exited with status $ac_status" >&5
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 ( exit $ac_status )
21385 ac_cv_header_stdc=no
21386 fi
21387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21388 fi
21389
21390
21391 fi
21392 fi
21393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21395 if test $ac_cv_header_stdc = yes; then
21396
21397 cat >>confdefs.h <<\_ACEOF
21398 #define STDC_HEADERS 1
21399 _ACEOF
21400
21401 fi
21402
21403
21404   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21405 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21406   if test "${knfsd_cv_glibc2+set}" = set; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409   cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415
21416       #include <features.h>
21417       #if !defined(__GLIBC__)
21418       # error Nope
21419       #endif
21420
21421 _ACEOF
21422 if { (ac_try="$ac_cpp conftest.$ac_ext"
21423 case "(($ac_try" in
21424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425   *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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   knfsd_cv_glibc2=yes
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450   knfsd_cv_glibc2=no
21451 fi
21452
21453 rm -f conftest.err conftest.$ac_ext
21454 fi
21455
21456   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21457 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21458   if test $knfsd_cv_glibc2 = yes; then
21459     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21460     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21461   fi
21462
21463
21464   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21465 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21466   if test "${knfsd_cv_bsd_signals+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469   if test "$cross_compiling" = yes; then
21470   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21471 See \`config.log' for more details." >&5
21472 echo "$as_me: error: cannot run test program while cross compiling
21473 See \`config.log' for more details." >&2;}
21474    { (exit 1); exit 1; }; }
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483         #include <signal.h>
21484         #include <unistd.h>
21485         #include <sys/wait.h>
21486
21487         static int counter = 0;
21488         static RETSIGTYPE handler(int num) { counter++; }
21489
21490         int main()
21491         {
21492                 int     s;
21493                 if ((s = fork()) < 0) return 1;
21494                 if (s != 0) {
21495                         if (wait(&s) < 0) return 1;
21496                         return WIFSIGNALED(s)? 1 : 0;
21497                 }
21498
21499                 signal(SIGHUP, handler);
21500                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21501                 return (counter == 2)? 0 : 1;
21502         }
21503
21504 _ACEOF
21505 rm -f conftest$ac_exeext
21506 if { (ac_try="$ac_link"
21507 case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_link") 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21516   { (case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_try") 2>&5
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   knfsd_cv_bsd_signals=yes
21526 else
21527   echo "$as_me: program exited with status $ac_status" >&5
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21530
21531 ( exit $ac_status )
21532 knfsd_cv_bsd_signals=no
21533 fi
21534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21535 fi
21536
21537
21538 fi
21539      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21540 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21541     test $knfsd_cv_bsd_signals = yes &&
21542 cat >>confdefs.h <<\_ACEOF
21543 #define HAVE_BSD_SIGNALS 1
21544 _ACEOF
21545
21546
21547
21548 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21549 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_socket_main+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553   ac_check_lib_save_LIBS=$LIBS
21554 LIBS="-lsocket  $LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561
21562
21563 int
21564 main ()
21565 {
21566 return main ();
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext conftest$ac_exeext
21572 if { (ac_try="$ac_link"
21573 case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578   (eval "$ac_link") 2>conftest.er1
21579   ac_status=$?
21580   grep -v '^ *+' conftest.er1 >conftest.err
21581   rm -f conftest.er1
21582   cat conftest.err >&5
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); } &&
21585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21586   { (case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_try") 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; } &&
21595          { ac_try='test -s conftest$ac_exeext'
21596   { (case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_try") 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); }; }; then
21605   ac_cv_lib_socket_main=yes
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         ac_cv_lib_socket_main=no
21611 fi
21612
21613 rm -f conftest.err conftest.$ac_objext \
21614       conftest$ac_exeext conftest.$ac_ext
21615 LIBS=$ac_check_lib_save_LIBS
21616 fi
21617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21618 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21619 if test $ac_cv_lib_socket_main = yes; then
21620   LIBSOCKET="-lnsl"
21621 fi
21622
21623 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21624 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21625 if test "${ac_cv_lib_nsl_main+set}" = set; then
21626   echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628   ac_check_lib_save_LIBS=$LIBS
21629 LIBS="-lnsl  $LIBS"
21630 cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636
21637
21638 int
21639 main ()
21640 {
21641 return main ();
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650   *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653   (eval "$ac_link") 2>conftest.er1
21654   ac_status=$?
21655   grep -v '^ *+' conftest.er1 >conftest.err
21656   rm -f conftest.er1
21657   cat conftest.err >&5
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } &&
21660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21661   { (case "(($ac_try" in
21662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663   *) ac_try_echo=$ac_try;;
21664 esac
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666   (eval "$ac_try") 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; } &&
21670          { ac_try='test -s conftest$ac_exeext'
21671   { (case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_try") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ac_cv_lib_nsl_main=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685         ac_cv_lib_nsl_main=no
21686 fi
21687
21688 rm -f conftest.err conftest.$ac_objext \
21689       conftest$ac_exeext conftest.$ac_ext
21690 LIBS=$ac_check_lib_save_LIBS
21691 fi
21692 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21693 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21694 if test $ac_cv_lib_nsl_main = yes; then
21695   LIBNSL="-lnsl"
21696 fi
21697
21698 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21699 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21700 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21701   echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703   ac_check_lib_save_LIBS=$LIBS
21704 LIBS="-lcrypt  $LIBS"
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711
21712 /* Override any GCC internal prototype to avoid an error.
21713    Use char because int might match the return type of a GCC
21714    builtin and then its argument prototype would still apply.  */
21715 #ifdef __cplusplus
21716 extern "C"
21717 #endif
21718 char crypt ();
21719 int
21720 main ()
21721 {
21722 return crypt ();
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731   *) ac_try_echo=$ac_try;;
21732 esac
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734   (eval "$ac_link") 2>conftest.er1
21735   ac_status=$?
21736   grep -v '^ *+' conftest.er1 >conftest.err
21737   rm -f conftest.er1
21738   cat conftest.err >&5
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } &&
21741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21742   { (case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747   (eval "$ac_try") 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; } &&
21751          { ac_try='test -s conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   ac_cv_lib_crypt_crypt=yes
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         ac_cv_lib_crypt_crypt=no
21767 fi
21768
21769 rm -f conftest.err conftest.$ac_objext \
21770       conftest$ac_exeext conftest.$ac_ext
21771 LIBS=$ac_check_lib_save_LIBS
21772 fi
21773 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21774 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21775 if test $ac_cv_lib_crypt_crypt = yes; then
21776   LIBCRYPT="-lcrypt"
21777 fi
21778
21779 if test "$enable_nfsv4" = yes; then
21780     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21781 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21782 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21783   echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785   ac_check_lib_save_LIBS=$LIBS
21786 LIBS="-levent  $LIBS"
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793
21794 /* Override any GCC internal prototype to avoid an error.
21795    Use char because int might match the return type of a GCC
21796    builtin and then its argument prototype would still apply.  */
21797 #ifdef __cplusplus
21798 extern "C"
21799 #endif
21800 char event_dispatch ();
21801 int
21802 main ()
21803 {
21804 return event_dispatch ();
21805   ;
21806   return 0;
21807 }
21808 _ACEOF
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813   *) ac_try_echo=$ac_try;;
21814 esac
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816   (eval "$ac_link") 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } &&
21823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21824   { (case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829   (eval "$ac_try") 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; } &&
21833          { ac_try='test -s conftest$ac_exeext'
21834   { (case "(($ac_try" in
21835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836   *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839   (eval "$ac_try") 2>&5
21840   ac_status=$?
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); }; }; then
21843   ac_cv_lib_event_event_dispatch=yes
21844 else
21845   echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21847
21848         ac_cv_lib_event_event_dispatch=no
21849 fi
21850
21851 rm -f conftest.err conftest.$ac_objext \
21852       conftest$ac_exeext conftest.$ac_ext
21853 LIBS=$ac_check_lib_save_LIBS
21854 fi
21855 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21856 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21857 if test $ac_cv_lib_event_event_dispatch = yes; then
21858   libevent=1
21859 else
21860   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21861 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21862    { (exit 1); exit 1; }; }
21863 fi
21864
21865     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21866 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21867 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21868   echo $ECHO_N "(cached) $ECHO_C" >&6
21869 else
21870   ac_check_lib_save_LIBS=$LIBS
21871 LIBS="-lnfsidmap  $LIBS"
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878
21879 /* Override any GCC internal prototype to avoid an error.
21880    Use char because int might match the return type of a GCC
21881    builtin and then its argument prototype would still apply.  */
21882 #ifdef __cplusplus
21883 extern "C"
21884 #endif
21885 char nfs4_init_name_mapping ();
21886 int
21887 main ()
21888 {
21889 return nfs4_init_name_mapping ();
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (ac_try="$ac_link"
21896 case "(($ac_try" in
21897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898   *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901   (eval "$ac_link") 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } &&
21908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21909   { (case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_try") 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; } &&
21918          { ac_try='test -s conftest$ac_exeext'
21919   { (case "(($ac_try" in
21920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921   *) ac_try_echo=$ac_try;;
21922 esac
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924   (eval "$ac_try") 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21934 fi
21935
21936 rm -f conftest.err conftest.$ac_objext \
21937       conftest$ac_exeext conftest.$ac_ext
21938 LIBS=$ac_check_lib_save_LIBS
21939 fi
21940 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21941 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21942 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21943   libnfsidmap=1
21944 else
21945   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21946 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21947    { (exit 1); exit 1; }; }
21948 fi
21949
21950
21951 for ac_header in event.h
21952 do
21953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21955   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21958   echo $ECHO_N "(cached) $ECHO_C" >&6
21959 fi
21960 ac_res=`eval echo '${'$as_ac_Header'}'`
21961                { echo "$as_me:$LINENO: result: $ac_res" >&5
21962 echo "${ECHO_T}$ac_res" >&6; }
21963 else
21964   # Is the header compilable?
21965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974 #include <$ac_header>
21975 _ACEOF
21976 rm -f conftest.$ac_objext
21977 if { (ac_try="$ac_compile"
21978 case "(($ac_try" in
21979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980   *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983   (eval "$ac_compile") 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } &&
21990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21991   { (case "(($ac_try" in
21992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993   *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996   (eval "$ac_try") 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest.$ac_objext'
22001   { (case "(($ac_try" in
22002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003   *) ac_try_echo=$ac_try;;
22004 esac
22005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006   (eval "$ac_try") 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; }; then
22010   ac_header_compiler=yes
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         ac_header_compiler=no
22016 fi
22017
22018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22020 echo "${ECHO_T}$ac_header_compiler" >&6; }
22021
22022 # Is the header present?
22023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22025 cat >conftest.$ac_ext <<_ACEOF
22026 /* confdefs.h.  */
22027 _ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h.  */
22031 #include <$ac_header>
22032 _ACEOF
22033 if { (ac_try="$ac_cpp conftest.$ac_ext"
22034 case "(($ac_try" in
22035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036   *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22040   ac_status=$?
22041   grep -v '^ *+' conftest.er1 >conftest.err
22042   rm -f conftest.er1
22043   cat conftest.err >&5
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); } >/dev/null; then
22046   if test -s conftest.err; then
22047     ac_cpp_err=$ac_c_preproc_warn_flag
22048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22049   else
22050     ac_cpp_err=
22051   fi
22052 else
22053   ac_cpp_err=yes
22054 fi
22055 if test -z "$ac_cpp_err"; then
22056   ac_header_preproc=yes
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061   ac_header_preproc=no
22062 fi
22063
22064 rm -f conftest.err conftest.$ac_ext
22065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 echo "${ECHO_T}$ac_header_preproc" >&6; }
22067
22068 # So?  What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22070   yes:no: )
22071     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22075     ac_header_preproc=yes
22076     ;;
22077   no:yes:* )
22078     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22080     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22081 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22082     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22084     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22085 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22090     ( cat <<\_ASBOX
22091 ## ------------------------------- ##
22092 ## Report this to nfs@lists.sf.net ##
22093 ## ------------------------------- ##
22094 _ASBOX
22095      ) | sed "s/^/$as_me: WARNING:     /" >&2
22096     ;;
22097 esac
22098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   eval "$as_ac_Header=\$ac_header_preproc"
22104 fi
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106                { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22108
22109 fi
22110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22111   cat >>confdefs.h <<_ACEOF
22112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22113 _ACEOF
22114
22115 else
22116   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22117 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22118    { (exit 1); exit 1; }; }
22119 fi
22120
22121 done
22122
22123
22124 for ac_header in nfsidmap.h
22125 do
22126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22131   echo $ECHO_N "(cached) $ECHO_C" >&6
22132 fi
22133 ac_res=`eval echo '${'$as_ac_Header'}'`
22134                { echo "$as_me:$LINENO: result: $ac_res" >&5
22135 echo "${ECHO_T}$ac_res" >&6; }
22136 else
22137   # Is the header compilable?
22138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146 $ac_includes_default
22147 #include <$ac_header>
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156   (eval "$ac_compile") 2>conftest.er1
22157   ac_status=$?
22158   grep -v '^ *+' conftest.er1 >conftest.err
22159   rm -f conftest.er1
22160   cat conftest.err >&5
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } &&
22163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22164   { (case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169   (eval "$ac_try") 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; } &&
22173          { ac_try='test -s conftest.$ac_objext'
22174   { (case "(($ac_try" in
22175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176   *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179   (eval "$ac_try") 2>&5
22180   ac_status=$?
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); }; }; then
22183   ac_header_compiler=yes
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188         ac_header_compiler=no
22189 fi
22190
22191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22193 echo "${ECHO_T}$ac_header_compiler" >&6; }
22194
22195 # Is the header present?
22196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 #include <$ac_header>
22205 _ACEOF
22206 if { (ac_try="$ac_cpp conftest.$ac_ext"
22207 case "(($ac_try" in
22208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209   *) ac_try_echo=$ac_try;;
22210 esac
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22213   ac_status=$?
22214   grep -v '^ *+' conftest.er1 >conftest.err
22215   rm -f conftest.er1
22216   cat conftest.err >&5
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); } >/dev/null; then
22219   if test -s conftest.err; then
22220     ac_cpp_err=$ac_c_preproc_warn_flag
22221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22222   else
22223     ac_cpp_err=
22224   fi
22225 else
22226   ac_cpp_err=yes
22227 fi
22228 if test -z "$ac_cpp_err"; then
22229   ac_header_preproc=yes
22230 else
22231   echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234   ac_header_preproc=no
22235 fi
22236
22237 rm -f conftest.err conftest.$ac_ext
22238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22239 echo "${ECHO_T}$ac_header_preproc" >&6; }
22240
22241 # So?  What about this header?
22242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22243   yes:no: )
22244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22248     ac_header_preproc=yes
22249     ;;
22250   no:yes:* )
22251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22263     ( cat <<\_ASBOX
22264 ## ------------------------------- ##
22265 ## Report this to nfs@lists.sf.net ##
22266 ## ------------------------------- ##
22267 _ASBOX
22268      ) | sed "s/^/$as_me: WARNING:     /" >&2
22269     ;;
22270 esac
22271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   eval "$as_ac_Header=\$ac_header_preproc"
22277 fi
22278 ac_res=`eval echo '${'$as_ac_Header'}'`
22279                { echo "$as_me:$LINENO: result: $ac_res" >&5
22280 echo "${ECHO_T}$ac_res" >&6; }
22281
22282 fi
22283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22284   cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22286 _ACEOF
22287
22288 else
22289   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22290 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22291    { (exit 1); exit 1; }; }
22292 fi
22293
22294 done
22295
22296             if test "$enable_gss" = yes; then
22297
22298
22299 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22300         if test -n "$ac_tool_prefix"; then
22301   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22306   echo $ECHO_N "(cached) $ECHO_C" >&6
22307 else
22308   case $PKG_CONFIG in
22309   [\\/]* | ?:[\\/]*)
22310   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22311   ;;
22312   *)
22313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22314 for as_dir in $PATH
22315 do
22316   IFS=$as_save_IFS
22317   test -z "$as_dir" && as_dir=.
22318   for ac_exec_ext in '' $ac_executable_extensions; do
22319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22320     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22322     break 2
22323   fi
22324 done
22325 done
22326 IFS=$as_save_IFS
22327
22328   ;;
22329 esac
22330 fi
22331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22332 if test -n "$PKG_CONFIG"; then
22333   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22334 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22335 else
22336   { echo "$as_me:$LINENO: result: no" >&5
22337 echo "${ECHO_T}no" >&6; }
22338 fi
22339
22340
22341 fi
22342 if test -z "$ac_cv_path_PKG_CONFIG"; then
22343   ac_pt_PKG_CONFIG=$PKG_CONFIG
22344   # Extract the first word of "pkg-config", so it can be a program name with args.
22345 set dummy pkg-config; ac_word=$2
22346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22348 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   case $ac_pt_PKG_CONFIG in
22352   [\\/]* | ?:[\\/]*)
22353   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22354   ;;
22355   *)
22356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22358 do
22359   IFS=$as_save_IFS
22360   test -z "$as_dir" && as_dir=.
22361   for ac_exec_ext in '' $ac_executable_extensions; do
22362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22363     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22365     break 2
22366   fi
22367 done
22368 done
22369 IFS=$as_save_IFS
22370
22371   ;;
22372 esac
22373 fi
22374 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22375 if test -n "$ac_pt_PKG_CONFIG"; then
22376   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22377 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22378 else
22379   { echo "$as_me:$LINENO: result: no" >&5
22380 echo "${ECHO_T}no" >&6; }
22381 fi
22382
22383   if test "x$ac_pt_PKG_CONFIG" = x; then
22384     PKG_CONFIG=""
22385   else
22386     case $cross_compiling:$ac_tool_warned in
22387 yes:)
22388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22389 whose name does not start with the host triplet.  If you think this
22390 configuration is useful to you, please write to autoconf@gnu.org." >&5
22391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22392 whose name does not start with the host triplet.  If you think this
22393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22394 ac_tool_warned=yes ;;
22395 esac
22396     PKG_CONFIG=$ac_pt_PKG_CONFIG
22397   fi
22398 else
22399   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22400 fi
22401
22402 fi
22403 if test -n "$PKG_CONFIG"; then
22404         _pkg_min_version=0.9.0
22405         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22406 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22407         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22408                 { echo "$as_me:$LINENO: result: yes" >&5
22409 echo "${ECHO_T}yes" >&6; }
22410         else
22411                 { echo "$as_me:$LINENO: result: no" >&5
22412 echo "${ECHO_T}no" >&6; }
22413                 PKG_CONFIG=""
22414         fi
22415
22416 fi
22417
22418 pkg_failed=no
22419 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22420 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22421
22422 if test -n "$PKG_CONFIG"; then
22423     if test -n "$RPCSECGSS_CFLAGS"; then
22424         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22425     else
22426         if test -n "$PKG_CONFIG" && \
22427     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22428   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22429   ac_status=$?
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); }; then
22432   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22433 else
22434   pkg_failed=yes
22435 fi
22436     fi
22437 else
22438         pkg_failed=untried
22439 fi
22440 if test -n "$PKG_CONFIG"; then
22441     if test -n "$RPCSECGSS_LIBS"; then
22442         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22443     else
22444         if test -n "$PKG_CONFIG" && \
22445     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22446   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; then
22450   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22451 else
22452   pkg_failed=yes
22453 fi
22454     fi
22455 else
22456         pkg_failed=untried
22457 fi
22458
22459
22460
22461 if test $pkg_failed = yes; then
22462
22463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22464         _pkg_short_errors_supported=yes
22465 else
22466         _pkg_short_errors_supported=no
22467 fi
22468         if test $_pkg_short_errors_supported = yes; then
22469                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22470         else
22471                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22472         fi
22473         # Put the nasty error message in config.log where it belongs
22474         echo "$RPCSECGSS_PKG_ERRORS" >&5
22475
22476         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22477        If you have pkgconfig installed, you might try setting environment
22478        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22479 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22480        If you have pkgconfig installed, you might try setting environment
22481        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22482    { (exit 1); exit 1; }; }
22483
22484
22485 elif test $pkg_failed = untried; then
22486         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
22487        If you have pkgconfig installed, you might try setting environment
22488        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22489 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
22490        If you have pkgconfig installed, you might try setting environment
22491        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22492    { (exit 1); exit 1; }; }
22493
22494
22495 else
22496         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22497         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22498         { echo "$as_me:$LINENO: result: yes" >&5
22499 echo "${ECHO_T}yes" >&6; }
22500         :
22501 fi
22502
22503 pkg_failed=no
22504 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22505 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22506
22507 if test -n "$PKG_CONFIG"; then
22508     if test -n "$GSSAPI_CFLAGS"; then
22509         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22510     else
22511         if test -n "$PKG_CONFIG" && \
22512     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22513   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22514   ac_status=$?
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); }; then
22517   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22518 else
22519   pkg_failed=yes
22520 fi
22521     fi
22522 else
22523         pkg_failed=untried
22524 fi
22525 if test -n "$PKG_CONFIG"; then
22526     if test -n "$GSSAPI_LIBS"; then
22527         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22528     else
22529         if test -n "$PKG_CONFIG" && \
22530     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22531   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); }; then
22535   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22536 else
22537   pkg_failed=yes
22538 fi
22539     fi
22540 else
22541         pkg_failed=untried
22542 fi
22543
22544
22545
22546 if test $pkg_failed = yes; then
22547
22548 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22549         _pkg_short_errors_supported=yes
22550 else
22551         _pkg_short_errors_supported=no
22552 fi
22553         if test $_pkg_short_errors_supported = yes; then
22554                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22555         else
22556                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22557         fi
22558         # Put the nasty error message in config.log where it belongs
22559         echo "$GSSAPI_PKG_ERRORS" >&5
22560
22561         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22562
22563 $GSSAPI_PKG_ERRORS
22564
22565 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22566 installed software in a non-standard prefix.
22567
22568 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22569 and GSSAPI_LIBS to avoid the need to call pkg-config.
22570 See the pkg-config man page for more details.
22571 " >&5
22572 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22573
22574 $GSSAPI_PKG_ERRORS
22575
22576 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22577 installed software in a non-standard prefix.
22578
22579 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22580 and GSSAPI_LIBS to avoid the need to call pkg-config.
22581 See the pkg-config man page for more details.
22582 " >&2;}
22583    { (exit 1); exit 1; }; }
22584 elif test $pkg_failed = untried; then
22585         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22586 is in your PATH or set the PKG_CONFIG environment variable to the full
22587 path to pkg-config.
22588
22589 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22590 and GSSAPI_LIBS to avoid the need to call pkg-config.
22591 See the pkg-config man page for more details.
22592
22593 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22594 See \`config.log' for more details." >&5
22595 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22596 is in your PATH or set the PKG_CONFIG environment variable to the full
22597 path to pkg-config.
22598
22599 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22600 and GSSAPI_LIBS to avoid the need to call pkg-config.
22601 See the pkg-config man page for more details.
22602
22603 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22604 See \`config.log' for more details." >&2;}
22605    { (exit 1); exit 1; }; }
22606 else
22607         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22608         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22609         { echo "$as_me:$LINENO: result: yes" >&5
22610 echo "${ECHO_T}yes" >&6; }
22611         :
22612 fi
22613     fi
22614
22615 fi
22616 if test "$knfsd_cv_glibc2" = no; then
22617     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22618 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22619 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lbsd  $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630
22631 /* Override any GCC internal prototype to avoid an error.
22632    Use char because int might match the return type of a GCC
22633    builtin and then its argument prototype would still apply.  */
22634 #ifdef __cplusplus
22635 extern "C"
22636 #endif
22637 char daemon ();
22638 int
22639 main ()
22640 {
22641 return daemon ();
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_link") 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } &&
22660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22661   { (case "(($ac_try" in
22662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663   *) ac_try_echo=$ac_try;;
22664 esac
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666   (eval "$ac_try") 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; } &&
22670          { ac_try='test -s conftest$ac_exeext'
22671   { (case "(($ac_try" in
22672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673   *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676   (eval "$ac_try") 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; }; then
22680   ac_cv_lib_bsd_daemon=yes
22681 else
22682   echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22684
22685         ac_cv_lib_bsd_daemon=no
22686 fi
22687
22688 rm -f conftest.err conftest.$ac_objext \
22689       conftest$ac_exeext conftest.$ac_ext
22690 LIBS=$ac_check_lib_save_LIBS
22691 fi
22692 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22693 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22694 if test $ac_cv_lib_bsd_daemon = yes; then
22695   LIBBSD="-lbsd"
22696 fi
22697
22698 fi
22699
22700
22701
22702
22703
22704 if test "$enable_gss" = yes; then
22705
22706 for ac_header in nfsidmap.h
22707 do
22708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713   echo $ECHO_N "(cached) $ECHO_C" >&6
22714 fi
22715 ac_res=`eval echo '${'$as_ac_Header'}'`
22716                { echo "$as_me:$LINENO: result: $ac_res" >&5
22717 echo "${ECHO_T}$ac_res" >&6; }
22718 else
22719   # Is the header compilable?
22720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 $ac_includes_default
22729 #include <$ac_header>
22730 _ACEOF
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_compile") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } &&
22745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22746   { (case "(($ac_try" in
22747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748   *) ac_try_echo=$ac_try;;
22749 esac
22750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751   (eval "$ac_try") 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); }; } &&
22755          { ac_try='test -s conftest.$ac_objext'
22756   { (case "(($ac_try" in
22757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758   *) ac_try_echo=$ac_try;;
22759 esac
22760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761   (eval "$ac_try") 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); }; }; then
22765   ac_header_compiler=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770         ac_header_compiler=no
22771 fi
22772
22773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22775 echo "${ECHO_T}$ac_header_compiler" >&6; }
22776
22777 # Is the header present?
22778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 #include <$ac_header>
22787 _ACEOF
22788 if { (ac_try="$ac_cpp conftest.$ac_ext"
22789 case "(($ac_try" in
22790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791   *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } >/dev/null; then
22801   if test -s conftest.err; then
22802     ac_cpp_err=$ac_c_preproc_warn_flag
22803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22804   else
22805     ac_cpp_err=
22806   fi
22807 else
22808   ac_cpp_err=yes
22809 fi
22810 if test -z "$ac_cpp_err"; then
22811   ac_header_preproc=yes
22812 else
22813   echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816   ac_header_preproc=no
22817 fi
22818
22819 rm -f conftest.err conftest.$ac_ext
22820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22821 echo "${ECHO_T}$ac_header_preproc" >&6; }
22822
22823 # So?  What about this header?
22824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22825   yes:no: )
22826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22830     ac_header_preproc=yes
22831     ;;
22832   no:yes:* )
22833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22845     ( cat <<\_ASBOX
22846 ## ------------------------------- ##
22847 ## Report this to nfs@lists.sf.net ##
22848 ## ------------------------------- ##
22849 _ASBOX
22850      ) | sed "s/^/$as_me: WARNING:     /" >&2
22851     ;;
22852 esac
22853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858   eval "$as_ac_Header=\$ac_header_preproc"
22859 fi
22860 ac_res=`eval echo '${'$as_ac_Header'}'`
22861                { echo "$as_me:$LINENO: result: $ac_res" >&5
22862 echo "${ECHO_T}$ac_res" >&6; }
22863
22864 fi
22865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22866   cat >>confdefs.h <<_ACEOF
22867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22868 _ACEOF
22869
22870 else
22871   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22872 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22873    { (exit 1); exit 1; }; }
22874 fi
22875
22876 done
22877
22878
22879 for ac_header in spkm3.h
22880 do
22881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22883   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 fi
22888 ac_res=`eval echo '${'$as_ac_Header'}'`
22889                { echo "$as_me:$LINENO: result: $ac_res" >&5
22890 echo "${ECHO_T}$ac_res" >&6; }
22891 else
22892   # Is the header compilable?
22893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22895 cat >conftest.$ac_ext <<_ACEOF
22896 /* confdefs.h.  */
22897 _ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h.  */
22901 $ac_includes_default
22902 #include <$ac_header>
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908   *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911   (eval "$ac_compile") 2>conftest.er1
22912   ac_status=$?
22913   grep -v '^ *+' conftest.er1 >conftest.err
22914   rm -f conftest.er1
22915   cat conftest.err >&5
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); } &&
22918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22919   { (case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924   (eval "$ac_try") 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); }; } &&
22928          { ac_try='test -s conftest.$ac_objext'
22929   { (case "(($ac_try" in
22930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931   *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934   (eval "$ac_try") 2>&5
22935   ac_status=$?
22936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937   (exit $ac_status); }; }; then
22938   ac_header_compiler=yes
22939 else
22940   echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943         ac_header_compiler=no
22944 fi
22945
22946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22948 echo "${ECHO_T}$ac_header_compiler" >&6; }
22949
22950 # Is the header present?
22951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 #include <$ac_header>
22960 _ACEOF
22961 if { (ac_try="$ac_cpp conftest.$ac_ext"
22962 case "(($ac_try" in
22963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964   *) ac_try_echo=$ac_try;;
22965 esac
22966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22968   ac_status=$?
22969   grep -v '^ *+' conftest.er1 >conftest.err
22970   rm -f conftest.er1
22971   cat conftest.err >&5
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } >/dev/null; then
22974   if test -s conftest.err; then
22975     ac_cpp_err=$ac_c_preproc_warn_flag
22976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22977   else
22978     ac_cpp_err=
22979   fi
22980 else
22981   ac_cpp_err=yes
22982 fi
22983 if test -z "$ac_cpp_err"; then
22984   ac_header_preproc=yes
22985 else
22986   echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989   ac_header_preproc=no
22990 fi
22991
22992 rm -f conftest.err conftest.$ac_ext
22993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22994 echo "${ECHO_T}$ac_header_preproc" >&6; }
22995
22996 # So?  What about this header?
22997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22998   yes:no: )
22999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23003     ac_header_preproc=yes
23004     ;;
23005   no:yes:* )
23006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23018     ( cat <<\_ASBOX
23019 ## ------------------------------- ##
23020 ## Report this to nfs@lists.sf.net ##
23021 ## ------------------------------- ##
23022 _ASBOX
23023      ) | sed "s/^/$as_me: WARNING:     /" >&2
23024     ;;
23025 esac
23026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23029   echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031   eval "$as_ac_Header=\$ac_header_preproc"
23032 fi
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034                { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23036
23037 fi
23038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23039   cat >>confdefs.h <<_ACEOF
23040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23041 _ACEOF
23042
23043 else
23044   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23045 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23046 fi
23047
23048 done
23049
23050
23051
23052   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23053 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23054
23055 # Check whether --with-krb5 was given.
23056 if test "${with_krb5+set}" = set; then
23057   withval=$with_krb5;  case "$withval" in
23058     yes|no)
23059        krb5_with=""
23060        ;;
23061     *)
23062        krb5_with="$withval"
23063        ;;
23064     esac
23065
23066 fi
23067
23068
23069   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23070              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23071             K5CONFIG=""
23072     if test -f $dir/bin/krb5-config; then
23073       K5CONFIG=$dir/bin/krb5-config
23074     elif test -f "/usr/kerberos/bin/krb5-config"; then
23075       K5CONFIG="/usr/kerberos/bin/krb5-config"
23076     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23077       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23078     fi
23079     if test "$K5CONFIG" != ""; then
23080       KRBCFLAGS=`$K5CONFIG --cflags`
23081       KRBLIBS=`$K5CONFIG --libs gssapi`
23082       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23083
23084 cat >>confdefs.h <<_ACEOF
23085 #define KRB5_VERSION $K5VERS
23086 _ACEOF
23087
23088       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23089                 \( -f $dir/lib/libgssapi_krb5.a -o \
23090                    -f $dir/lib/libgssapi_krb5.so \) ; then
23091
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_KRB5 1
23094 _ACEOF
23095
23096          KRBDIR="$dir"
23097                      if test $K5VERS -le 131; then
23098
23099 cat >>confdefs.h <<\_ACEOF
23100 #define USE_GSS_KRB5_CCACHE_NAME 1
23101 _ACEOF
23102
23103          fi
23104          gssapi_lib=gssapi_krb5
23105          break
23106                   elif test \( -f $dir/include/heim_err.h -o\
23107                  -f $dir/include/heimdal/heim_err.h \) -a \
23108                 -f $dir/lib/libroken.a; then
23109
23110 cat >>confdefs.h <<\_ACEOF
23111 #define HAVE_HEIMDAL 1
23112 _ACEOF
23113
23114          KRBDIR="$dir"
23115          gssapi_lib=gssapi
23116         break
23117       fi
23118     fi
23119   done
23120     if test "x$KRBDIR" = "x"; then
23121     if test "x$krb5_with" = "x"; then
23122       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23123 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23124    { (exit 1); exit 1; }; }
23125     else
23126       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23127 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23128    { (exit 1); exit 1; }; }
23129     fi
23130   fi
23131   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23132 echo "${ECHO_T}$KRBDIR" >&6; }
23133
23134     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23135 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23136 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23137 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23138   echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140   ac_check_lib_save_LIBS=$LIBS
23141 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23142 cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h.  */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h.  */
23148
23149 /* Override any GCC internal prototype to avoid an error.
23150    Use char because int might match the return type of a GCC
23151    builtin and then its argument prototype would still apply.  */
23152 #ifdef __cplusplus
23153 extern "C"
23154 #endif
23155 char gss_krb5_export_lucid_sec_context ();
23156 int
23157 main ()
23158 {
23159 return gss_krb5_export_lucid_sec_context ();
23160   ;
23161   return 0;
23162 }
23163 _ACEOF
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168   *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171   (eval "$ac_link") 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23179   { (case "(($ac_try" in
23180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181   *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184   (eval "$ac_try") 2>&5
23185   ac_status=$?
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); }; } &&
23188          { ac_try='test -s conftest$ac_exeext'
23189   { (case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_try") 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); }; }; then
23198   eval "$as_ac_Lib=yes"
23199 else
23200   echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23202
23203         eval "$as_ac_Lib=no"
23204 fi
23205
23206 rm -f conftest.err conftest.$ac_objext \
23207       conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23209 fi
23210 ac_res=`eval echo '${'$as_ac_Lib'}'`
23211                { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23213 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23214
23215 cat >>confdefs.h <<\_ACEOF
23216 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23217 _ACEOF
23218
23219 fi
23220
23221   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23222 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23223 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23224 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227   ac_check_lib_save_LIBS=$LIBS
23228 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23229 cat >conftest.$ac_ext <<_ACEOF
23230 /* confdefs.h.  */
23231 _ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h.  */
23235
23236 /* Override any GCC internal prototype to avoid an error.
23237    Use char because int might match the return type of a GCC
23238    builtin and then its argument prototype would still apply.  */
23239 #ifdef __cplusplus
23240 extern "C"
23241 #endif
23242 char gss_krb5_set_allowable_enctypes ();
23243 int
23244 main ()
23245 {
23246 return gss_krb5_set_allowable_enctypes ();
23247   ;
23248   return 0;
23249 }
23250 _ACEOF
23251 rm -f conftest.$ac_objext conftest$ac_exeext
23252 if { (ac_try="$ac_link"
23253 case "(($ac_try" in
23254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255   *) ac_try_echo=$ac_try;;
23256 esac
23257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23258   (eval "$ac_link") 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23266   { (case "(($ac_try" in
23267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268   *) ac_try_echo=$ac_try;;
23269 esac
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271   (eval "$ac_try") 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
23276   { (case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_try") 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; }; then
23285   eval "$as_ac_Lib=yes"
23286 else
23287   echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290         eval "$as_ac_Lib=no"
23291 fi
23292
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23296 fi
23297 ac_res=`eval echo '${'$as_ac_Lib'}'`
23298                { echo "$as_me:$LINENO: result: $ac_res" >&5
23299 echo "${ECHO_T}$ac_res" >&6; }
23300 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23301
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23304 _ACEOF
23305
23306 fi
23307
23308   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23309 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23310 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23311 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23312   echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314   ac_check_lib_save_LIBS=$LIBS
23315 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23316 cat >conftest.$ac_ext <<_ACEOF
23317 /* confdefs.h.  */
23318 _ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h.  */
23322
23323 /* Override any GCC internal prototype to avoid an error.
23324    Use char because int might match the return type of a GCC
23325    builtin and then its argument prototype would still apply.  */
23326 #ifdef __cplusplus
23327 extern "C"
23328 #endif
23329 char gss_krb5_ccache_name ();
23330 int
23331 main ()
23332 {
23333 return gss_krb5_ccache_name ();
23334   ;
23335   return 0;
23336 }
23337 _ACEOF
23338 rm -f conftest.$ac_objext conftest$ac_exeext
23339 if { (ac_try="$ac_link"
23340 case "(($ac_try" in
23341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342   *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345   (eval "$ac_link") 2>conftest.er1
23346   ac_status=$?
23347   grep -v '^ *+' conftest.er1 >conftest.err
23348   rm -f conftest.er1
23349   cat conftest.err >&5
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } &&
23352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23353   { (case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358   (eval "$ac_try") 2>&5
23359   ac_status=$?
23360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361   (exit $ac_status); }; } &&
23362          { ac_try='test -s conftest$ac_exeext'
23363   { (case "(($ac_try" in
23364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365   *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368   (eval "$ac_try") 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; }; then
23372   eval "$as_ac_Lib=yes"
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377         eval "$as_ac_Lib=no"
23378 fi
23379
23380 rm -f conftest.err conftest.$ac_objext \
23381       conftest$ac_exeext conftest.$ac_ext
23382 LIBS=$ac_check_lib_save_LIBS
23383 fi
23384 ac_res=`eval echo '${'$as_ac_Lib'}'`
23385                { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23387 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23388
23389 cat >>confdefs.h <<\_ACEOF
23390 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23391 _ACEOF
23392
23393 fi
23394
23395
23396     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23397     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23398 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23399   fi
23400
23401
23402
23403
23404
23405
23406
23407
23408       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23409 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23410 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23411   echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413   ac_check_lib_save_LIBS=$LIBS
23414 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h.  */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h.  */
23421
23422 /* Override any GCC internal prototype to avoid an error.
23423    Use char because int might match the return type of a GCC
23424    builtin and then its argument prototype would still apply.  */
23425 #ifdef __cplusplus
23426 extern "C"
23427 #endif
23428 char authgss_create_default ();
23429 int
23430 main ()
23431 {
23432 return authgss_create_default ();
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_link") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } &&
23451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452   { (case "(($ac_try" in
23453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454   *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457   (eval "$ac_try") 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; } &&
23461          { ac_try='test -s conftest$ac_exeext'
23462   { (case "(($ac_try" in
23463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464   *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467   (eval "$ac_try") 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; }; then
23471   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_cv_lib_rpcsecgss_authgss_create_default=no
23477 fi
23478
23479 rm -f conftest.err conftest.$ac_objext \
23480       conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23482 fi
23483 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23484 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23485 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23486   librpcsecgss=1
23487 else
23488   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23489 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23490    { (exit 1); exit 1; }; }
23491 fi
23492
23493   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23494 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23495 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23496   echo $ECHO_N "(cached) $ECHO_C" >&6
23497 else
23498   ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506
23507 /* Override any GCC internal prototype to avoid an error.
23508    Use char because int might match the return type of a GCC
23509    builtin and then its argument prototype would still apply.  */
23510 #ifdef __cplusplus
23511 extern "C"
23512 #endif
23513 char authgss_set_debug_level ();
23514 int
23515 main ()
23516 {
23517 return authgss_set_debug_level ();
23518   ;
23519   return 0;
23520 }
23521 _ACEOF
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (ac_try="$ac_link"
23524 case "(($ac_try" in
23525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526   *) ac_try_echo=$ac_try;;
23527 esac
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529   (eval "$ac_link") 2>conftest.er1
23530   ac_status=$?
23531   grep -v '^ *+' conftest.er1 >conftest.err
23532   rm -f conftest.er1
23533   cat conftest.err >&5
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } &&
23536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23537   { (case "(($ac_try" in
23538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539   *) ac_try_echo=$ac_try;;
23540 esac
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542   (eval "$ac_try") 2>&5
23543   ac_status=$?
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); }; } &&
23546          { ac_try='test -s conftest$ac_exeext'
23547   { (case "(($ac_try" in
23548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549   *) ac_try_echo=$ac_try;;
23550 esac
23551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23552   (eval "$ac_try") 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); }; }; then
23556   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23557 else
23558   echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23560
23561         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23562 fi
23563
23564 rm -f conftest.err conftest.$ac_objext \
23565       conftest$ac_exeext conftest.$ac_ext
23566 LIBS=$ac_check_lib_save_LIBS
23567 fi
23568 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23569 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23570 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23571
23572 cat >>confdefs.h <<\_ACEOF
23573 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23574 _ACEOF
23575
23576 fi
23577
23578
23579 fi
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23605                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23606                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23607                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23608                  syslog.h unistd.h com_err.h et/com_err.h \
23609                  ifaddrs.h
23610 do
23611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23616   echo $ECHO_N "(cached) $ECHO_C" >&6
23617 fi
23618 ac_res=`eval echo '${'$as_ac_Header'}'`
23619                { echo "$as_me:$LINENO: result: $ac_res" >&5
23620 echo "${ECHO_T}$ac_res" >&6; }
23621 else
23622   # Is the header compilable?
23623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23625 cat >conftest.$ac_ext <<_ACEOF
23626 /* confdefs.h.  */
23627 _ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h.  */
23631 $ac_includes_default
23632 #include <$ac_header>
23633 _ACEOF
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641   (eval "$ac_compile") 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } &&
23648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23649   { (case "(($ac_try" in
23650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651   *) ac_try_echo=$ac_try;;
23652 esac
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654   (eval "$ac_try") 2>&5
23655   ac_status=$?
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); }; } &&
23658          { ac_try='test -s conftest.$ac_objext'
23659   { (case "(($ac_try" in
23660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661   *) ac_try_echo=$ac_try;;
23662 esac
23663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664   (eval "$ac_try") 2>&5
23665   ac_status=$?
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); }; }; then
23668   ac_header_compiler=yes
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673         ac_header_compiler=no
23674 fi
23675
23676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23678 echo "${ECHO_T}$ac_header_compiler" >&6; }
23679
23680 # Is the header present?
23681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689 #include <$ac_header>
23690 _ACEOF
23691 if { (ac_try="$ac_cpp conftest.$ac_ext"
23692 case "(($ac_try" in
23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694   *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23698   ac_status=$?
23699   grep -v '^ *+' conftest.er1 >conftest.err
23700   rm -f conftest.er1
23701   cat conftest.err >&5
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); } >/dev/null; then
23704   if test -s conftest.err; then
23705     ac_cpp_err=$ac_c_preproc_warn_flag
23706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23707   else
23708     ac_cpp_err=
23709   fi
23710 else
23711   ac_cpp_err=yes
23712 fi
23713 if test -z "$ac_cpp_err"; then
23714   ac_header_preproc=yes
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719   ac_header_preproc=no
23720 fi
23721
23722 rm -f conftest.err conftest.$ac_ext
23723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23724 echo "${ECHO_T}$ac_header_preproc" >&6; }
23725
23726 # So?  What about this header?
23727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23728   yes:no: )
23729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23733     ac_header_preproc=yes
23734     ;;
23735   no:yes:* )
23736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23748     ( cat <<\_ASBOX
23749 ## ------------------------------- ##
23750 ## Report this to nfs@lists.sf.net ##
23751 ## ------------------------------- ##
23752 _ASBOX
23753      ) | sed "s/^/$as_me: WARNING:     /" >&2
23754     ;;
23755 esac
23756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23759   echo $ECHO_N "(cached) $ECHO_C" >&6
23760 else
23761   eval "$as_ac_Header=\$ac_header_preproc"
23762 fi
23763 ac_res=`eval echo '${'$as_ac_Header'}'`
23764                { echo "$as_me:$LINENO: result: $ac_res" >&5
23765 echo "${ECHO_T}$ac_res" >&6; }
23766
23767 fi
23768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23769   cat >>confdefs.h <<_ACEOF
23770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23771 _ACEOF
23772
23773 fi
23774
23775 done
23776
23777
23778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23780 if test "${ac_cv_c_const+set}" = set; then
23781   echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783   cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h.  */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h.  */
23789
23790 int
23791 main ()
23792 {
23793 /* FIXME: Include the comments suggested by Paul. */
23794 #ifndef __cplusplus
23795   /* Ultrix mips cc rejects this.  */
23796   typedef int charset[2];
23797   const charset x;
23798   /* SunOS 4.1.1 cc rejects this.  */
23799   char const *const *ccp;
23800   char **p;
23801   /* NEC SVR4.0.2 mips cc rejects this.  */
23802   struct point {int x, y;};
23803   static struct point const zero = {0,0};
23804   /* AIX XL C 1.02.0.0 rejects this.
23805      It does not let you subtract one const X* pointer from another in
23806      an arm of an if-expression whose if-part is not a constant
23807      expression */
23808   const char *g = "string";
23809   ccp = &g + (g ? g-g : 0);
23810   /* HPUX 7.0 cc rejects these. */
23811   ++ccp;
23812   p = (char**) ccp;
23813   ccp = (char const *const *) p;
23814   { /* SCO 3.2v4 cc rejects this.  */
23815     char *t;
23816     char const *s = 0 ? (char *) 0 : (char const *) 0;
23817
23818     *t++ = 0;
23819     if (s) return 0;
23820   }
23821   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23822     int x[] = {25, 17};
23823     const int *foo = &x[0];
23824     ++foo;
23825   }
23826   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23827     typedef const int *iptr;
23828     iptr p = 0;
23829     ++p;
23830   }
23831   { /* AIX XL C 1.02.0.0 rejects this saying
23832        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23833     struct s { int j; const int *ap[3]; };
23834     struct s *b; b->j = 5;
23835   }
23836   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23837     const int foo = 10;
23838     if (!foo) return 0;
23839   }
23840   return !x[0] && !zero.x;
23841 #endif
23842
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851   *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854   (eval "$ac_compile") 2>conftest.er1
23855   ac_status=$?
23856   grep -v '^ *+' conftest.er1 >conftest.err
23857   rm -f conftest.er1
23858   cat conftest.err >&5
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); } &&
23861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23862   { (case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_try") 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; } &&
23871          { ac_try='test -s conftest.$ac_objext'
23872   { (case "(($ac_try" in
23873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874   *) ac_try_echo=$ac_try;;
23875 esac
23876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877   (eval "$ac_try") 2>&5
23878   ac_status=$?
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); }; }; then
23881   ac_cv_c_const=yes
23882 else
23883   echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886         ac_cv_c_const=no
23887 fi
23888
23889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23890 fi
23891 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23892 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23893 if test $ac_cv_c_const = no; then
23894
23895 cat >>confdefs.h <<\_ACEOF
23896 #define const
23897 _ACEOF
23898
23899 fi
23900
23901 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23902 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23903 if test "${ac_cv_type_uid_t+set}" = set; then
23904   echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906   cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h.  */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h.  */
23912 #include <sys/types.h>
23913
23914 _ACEOF
23915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23916   $EGREP "uid_t" >/dev/null 2>&1; then
23917   ac_cv_type_uid_t=yes
23918 else
23919   ac_cv_type_uid_t=no
23920 fi
23921 rm -f conftest*
23922
23923 fi
23924 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23925 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23926 if test $ac_cv_type_uid_t = no; then
23927
23928 cat >>confdefs.h <<\_ACEOF
23929 #define uid_t int
23930 _ACEOF
23931
23932
23933 cat >>confdefs.h <<\_ACEOF
23934 #define gid_t int
23935 _ACEOF
23936
23937 fi
23938
23939 { echo "$as_me:$LINENO: checking for inline" >&5
23940 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23941 if test "${ac_cv_c_inline+set}" = set; then
23942   echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944   ac_cv_c_inline=no
23945 for ac_kw in inline __inline__ __inline; do
23946   cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952 #ifndef __cplusplus
23953 typedef int foo_t;
23954 static $ac_kw foo_t static_foo () {return 0; }
23955 $ac_kw foo_t foo () {return 0; }
23956 #endif
23957
23958 _ACEOF
23959 rm -f conftest.$ac_objext
23960 if { (ac_try="$ac_compile"
23961 case "(($ac_try" in
23962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963   *) ac_try_echo=$ac_try;;
23964 esac
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966   (eval "$ac_compile") 2>conftest.er1
23967   ac_status=$?
23968   grep -v '^ *+' conftest.er1 >conftest.err
23969   rm -f conftest.er1
23970   cat conftest.err >&5
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); } &&
23973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23974   { (case "(($ac_try" in
23975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976   *) ac_try_echo=$ac_try;;
23977 esac
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979   (eval "$ac_try") 2>&5
23980   ac_status=$?
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); }; } &&
23983          { ac_try='test -s conftest.$ac_objext'
23984   { (case "(($ac_try" in
23985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986   *) ac_try_echo=$ac_try;;
23987 esac
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989   (eval "$ac_try") 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); }; }; then
23993   ac_cv_c_inline=$ac_kw
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998
23999 fi
24000
24001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24002   test "$ac_cv_c_inline" != no && break
24003 done
24004
24005 fi
24006 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24007 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24008
24009
24010 case $ac_cv_c_inline in
24011   inline | yes) ;;
24012   *)
24013     case $ac_cv_c_inline in
24014       no) ac_val=;;
24015       *) ac_val=$ac_cv_c_inline;;
24016     esac
24017     cat >>confdefs.h <<_ACEOF
24018 #ifndef __cplusplus
24019 #define inline $ac_val
24020 #endif
24021 _ACEOF
24022     ;;
24023 esac
24024
24025 { echo "$as_me:$LINENO: checking for off_t" >&5
24026 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24027 if test "${ac_cv_type_off_t+set}" = set; then
24028   echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030   cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 $ac_includes_default
24037 typedef off_t ac__type_new_;
24038 int
24039 main ()
24040 {
24041 if ((ac__type_new_ *) 0)
24042   return 0;
24043 if (sizeof (ac__type_new_))
24044   return 0;
24045   ;
24046   return 0;
24047 }
24048 _ACEOF
24049 rm -f conftest.$ac_objext
24050 if { (ac_try="$ac_compile"
24051 case "(($ac_try" in
24052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053   *) ac_try_echo=$ac_try;;
24054 esac
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056   (eval "$ac_compile") 2>conftest.er1
24057   ac_status=$?
24058   grep -v '^ *+' conftest.er1 >conftest.err
24059   rm -f conftest.er1
24060   cat conftest.err >&5
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); } &&
24063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24064   { (case "(($ac_try" in
24065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24066   *) ac_try_echo=$ac_try;;
24067 esac
24068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24069   (eval "$ac_try") 2>&5
24070   ac_status=$?
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); }; } &&
24073          { ac_try='test -s conftest.$ac_objext'
24074   { (case "(($ac_try" in
24075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24076   *) ac_try_echo=$ac_try;;
24077 esac
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079   (eval "$ac_try") 2>&5
24080   ac_status=$?
24081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); }; }; then
24083   ac_cv_type_off_t=yes
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088         ac_cv_type_off_t=no
24089 fi
24090
24091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24092 fi
24093 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24094 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24095 if test $ac_cv_type_off_t = yes; then
24096   :
24097 else
24098
24099 cat >>confdefs.h <<_ACEOF
24100 #define off_t long int
24101 _ACEOF
24102
24103 fi
24104
24105 { echo "$as_me:$LINENO: checking for pid_t" >&5
24106 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24107 if test "${ac_cv_type_pid_t+set}" = set; then
24108   echo $ECHO_N "(cached) $ECHO_C" >&6
24109 else
24110   cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 $ac_includes_default
24117 typedef pid_t ac__type_new_;
24118 int
24119 main ()
24120 {
24121 if ((ac__type_new_ *) 0)
24122   return 0;
24123 if (sizeof (ac__type_new_))
24124   return 0;
24125   ;
24126   return 0;
24127 }
24128 _ACEOF
24129 rm -f conftest.$ac_objext
24130 if { (ac_try="$ac_compile"
24131 case "(($ac_try" in
24132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133   *) ac_try_echo=$ac_try;;
24134 esac
24135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24136   (eval "$ac_compile") 2>conftest.er1
24137   ac_status=$?
24138   grep -v '^ *+' conftest.er1 >conftest.err
24139   rm -f conftest.er1
24140   cat conftest.err >&5
24141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142   (exit $ac_status); } &&
24143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24144   { (case "(($ac_try" in
24145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24146   *) ac_try_echo=$ac_try;;
24147 esac
24148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24149   (eval "$ac_try") 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; } &&
24153          { ac_try='test -s conftest.$ac_objext'
24154   { (case "(($ac_try" in
24155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156   *) ac_try_echo=$ac_try;;
24157 esac
24158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24159   (eval "$ac_try") 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; }; then
24163   ac_cv_type_pid_t=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168         ac_cv_type_pid_t=no
24169 fi
24170
24171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24172 fi
24173 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24174 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24175 if test $ac_cv_type_pid_t = yes; then
24176   :
24177 else
24178
24179 cat >>confdefs.h <<_ACEOF
24180 #define pid_t int
24181 _ACEOF
24182
24183 fi
24184
24185 { echo "$as_me:$LINENO: checking for size_t" >&5
24186 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24187 if test "${ac_cv_type_size_t+set}" = set; then
24188   echo $ECHO_N "(cached) $ECHO_C" >&6
24189 else
24190   cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196 $ac_includes_default
24197 typedef size_t ac__type_new_;
24198 int
24199 main ()
24200 {
24201 if ((ac__type_new_ *) 0)
24202   return 0;
24203 if (sizeof (ac__type_new_))
24204   return 0;
24205   ;
24206   return 0;
24207 }
24208 _ACEOF
24209 rm -f conftest.$ac_objext
24210 if { (ac_try="$ac_compile"
24211 case "(($ac_try" in
24212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213   *) ac_try_echo=$ac_try;;
24214 esac
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216   (eval "$ac_compile") 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); } &&
24223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24224   { (case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229   (eval "$ac_try") 2>&5
24230   ac_status=$?
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); }; } &&
24233          { ac_try='test -s conftest.$ac_objext'
24234   { (case "(($ac_try" in
24235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236   *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239   (eval "$ac_try") 2>&5
24240   ac_status=$?
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); }; }; then
24243   ac_cv_type_size_t=yes
24244 else
24245   echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24247
24248         ac_cv_type_size_t=no
24249 fi
24250
24251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24252 fi
24253 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24254 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24255 if test $ac_cv_type_size_t = yes; then
24256   :
24257 else
24258
24259 cat >>confdefs.h <<_ACEOF
24260 #define size_t unsigned int
24261 _ACEOF
24262
24263 fi
24264
24265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24267 if test "${ac_cv_header_time+set}" = set; then
24268   echo $ECHO_N "(cached) $ECHO_C" >&6
24269 else
24270   cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276 #include <sys/types.h>
24277 #include <sys/time.h>
24278 #include <time.h>
24279
24280 int
24281 main ()
24282 {
24283 if ((struct tm *) 0)
24284 return 0;
24285   ;
24286   return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest.$ac_objext
24290 if { (ac_try="$ac_compile"
24291 case "(($ac_try" in
24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293   *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296   (eval "$ac_compile") 2>conftest.er1
24297   ac_status=$?
24298   grep -v '^ *+' conftest.er1 >conftest.err
24299   rm -f conftest.er1
24300   cat conftest.err >&5
24301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302   (exit $ac_status); } &&
24303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24304   { (case "(($ac_try" in
24305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306   *) ac_try_echo=$ac_try;;
24307 esac
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309   (eval "$ac_try") 2>&5
24310   ac_status=$?
24311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); }; } &&
24313          { ac_try='test -s conftest.$ac_objext'
24314   { (case "(($ac_try" in
24315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316   *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319   (eval "$ac_try") 2>&5
24320   ac_status=$?
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); }; }; then
24323   ac_cv_header_time=yes
24324 else
24325   echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328         ac_cv_header_time=no
24329 fi
24330
24331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24332 fi
24333 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24334 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24335 if test $ac_cv_header_time = yes; then
24336
24337 cat >>confdefs.h <<\_ACEOF
24338 #define TIME_WITH_SYS_TIME 1
24339 _ACEOF
24340
24341 fi
24342
24343 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24344 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24345 if test "${ac_cv_struct_tm+set}" = set; then
24346   echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348   cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h.  */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h.  */
24354 #include <sys/types.h>
24355 #include <time.h>
24356
24357 int
24358 main ()
24359 {
24360 struct tm *tp; tp->tm_sec;
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372   (eval "$ac_compile") 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380   { (case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_try") 2>&5
24386   ac_status=$?
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; } &&
24389          { ac_try='test -s conftest.$ac_objext'
24390   { (case "(($ac_try" in
24391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392   *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395   (eval "$ac_try") 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; }; then
24399   ac_cv_struct_tm=time.h
24400 else
24401   echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.$ac_ext >&5
24403
24404         ac_cv_struct_tm=sys/time.h
24405 fi
24406
24407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24408 fi
24409 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24410 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24411 if test $ac_cv_struct_tm = sys/time.h; then
24412
24413 cat >>confdefs.h <<\_ACEOF
24414 #define TM_IN_SYS_TIME 1
24415 _ACEOF
24416
24417 fi
24418
24419
24420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24421 # for constant arguments.  Useless!
24422 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24423 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24424 if test "${ac_cv_working_alloca_h+set}" = set; then
24425   echo $ECHO_N "(cached) $ECHO_C" >&6
24426 else
24427   cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h.  */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h.  */
24433 #include <alloca.h>
24434 int
24435 main ()
24436 {
24437 char *p = (char *) alloca (2 * sizeof (int));
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_link") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } &&
24456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24457   { (case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_try") 2>&5
24463   ac_status=$?
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); }; } &&
24466          { ac_try='test -s conftest$ac_exeext'
24467   { (case "(($ac_try" in
24468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469   *) ac_try_echo=$ac_try;;
24470 esac
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472   (eval "$ac_try") 2>&5
24473   ac_status=$?
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); }; }; then
24476   ac_cv_working_alloca_h=yes
24477 else
24478   echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481         ac_cv_working_alloca_h=no
24482 fi
24483
24484 rm -f conftest.err conftest.$ac_objext \
24485       conftest$ac_exeext conftest.$ac_ext
24486 fi
24487 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24488 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24489 if test $ac_cv_working_alloca_h = yes; then
24490
24491 cat >>confdefs.h <<\_ACEOF
24492 #define HAVE_ALLOCA_H 1
24493 _ACEOF
24494
24495 fi
24496
24497 { echo "$as_me:$LINENO: checking for alloca" >&5
24498 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24499 if test "${ac_cv_func_alloca_works+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502   cat >conftest.$ac_ext <<_ACEOF
24503 /* confdefs.h.  */
24504 _ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h.  */
24508 #ifdef __GNUC__
24509 # define alloca __builtin_alloca
24510 #else
24511 # ifdef _MSC_VER
24512 #  include <malloc.h>
24513 #  define alloca _alloca
24514 # else
24515 #  if HAVE_ALLOCA_H
24516 #   include <alloca.h>
24517 #  else
24518 #   ifdef _AIX
24519  #pragma alloca
24520 #   else
24521 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24522 char *alloca ();
24523 #    endif
24524 #   endif
24525 #  endif
24526 # endif
24527 #endif
24528
24529 int
24530 main ()
24531 {
24532 char *p = (char *) alloca (1);
24533   ;
24534   return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544   (eval "$ac_link") 2>conftest.er1
24545   ac_status=$?
24546   grep -v '^ *+' conftest.er1 >conftest.err
24547   rm -f conftest.er1
24548   cat conftest.err >&5
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); } &&
24551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24552   { (case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557   (eval "$ac_try") 2>&5
24558   ac_status=$?
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); }; } &&
24561          { ac_try='test -s conftest$ac_exeext'
24562   { (case "(($ac_try" in
24563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564   *) ac_try_echo=$ac_try;;
24565 esac
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567   (eval "$ac_try") 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; }; then
24571   ac_cv_func_alloca_works=yes
24572 else
24573   echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24575
24576         ac_cv_func_alloca_works=no
24577 fi
24578
24579 rm -f conftest.err conftest.$ac_objext \
24580       conftest$ac_exeext conftest.$ac_ext
24581 fi
24582 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24583 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24584
24585 if test $ac_cv_func_alloca_works = yes; then
24586
24587 cat >>confdefs.h <<\_ACEOF
24588 #define HAVE_ALLOCA 1
24589 _ACEOF
24590
24591 else
24592   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24593 # that cause trouble.  Some versions do not even contain alloca or
24594 # contain a buggy version.  If you still want to use their alloca,
24595 # use ar to extract alloca.o from them instead of compiling alloca.c.
24596
24597 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24598
24599 cat >>confdefs.h <<\_ACEOF
24600 #define C_ALLOCA 1
24601 _ACEOF
24602
24603
24604 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24605 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24606 if test "${ac_cv_os_cray+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   cat >conftest.$ac_ext <<_ACEOF
24610 /* confdefs.h.  */
24611 _ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h.  */
24615 #if defined CRAY && ! defined CRAY2
24616 webecray
24617 #else
24618 wenotbecray
24619 #endif
24620
24621 _ACEOF
24622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24623   $EGREP "webecray" >/dev/null 2>&1; then
24624   ac_cv_os_cray=yes
24625 else
24626   ac_cv_os_cray=no
24627 fi
24628 rm -f conftest*
24629
24630 fi
24631 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24632 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24633 if test $ac_cv_os_cray = yes; then
24634   for ac_func in _getb67 GETB67 getb67; do
24635     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24639   echo $ECHO_N "(cached) $ECHO_C" >&6
24640 else
24641   cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24649 #define $ac_func innocuous_$ac_func
24650
24651 /* System header to define __stub macros and hopefully few prototypes,
24652     which can conflict with char $ac_func (); below.
24653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24654     <limits.h> exists even on freestanding compilers.  */
24655
24656 #ifdef __STDC__
24657 # include <limits.h>
24658 #else
24659 # include <assert.h>
24660 #endif
24661
24662 #undef $ac_func
24663
24664 /* Override any GCC internal prototype to avoid an error.
24665    Use char because int might match the return type of a GCC
24666    builtin and then its argument prototype would still apply.  */
24667 #ifdef __cplusplus
24668 extern "C"
24669 #endif
24670 char $ac_func ();
24671 /* The GNU C library defines this for functions which it implements
24672     to always fail with ENOSYS.  Some functions are actually named
24673     something starting with __ and the normal name is an alias.  */
24674 #if defined __stub_$ac_func || defined __stub___$ac_func
24675 choke me
24676 #endif
24677
24678 int
24679 main ()
24680 {
24681 return $ac_func ();
24682   ;
24683   return 0;
24684 }
24685 _ACEOF
24686 rm -f conftest.$ac_objext conftest$ac_exeext
24687 if { (ac_try="$ac_link"
24688 case "(($ac_try" in
24689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24690   *) ac_try_echo=$ac_try;;
24691 esac
24692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24693   (eval "$ac_link") 2>conftest.er1
24694   ac_status=$?
24695   grep -v '^ *+' conftest.er1 >conftest.err
24696   rm -f conftest.er1
24697   cat conftest.err >&5
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } &&
24700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24701   { (case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706   (eval "$ac_try") 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); }; } &&
24710          { ac_try='test -s conftest$ac_exeext'
24711   { (case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716   (eval "$ac_try") 2>&5
24717   ac_status=$?
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); }; }; then
24720   eval "$as_ac_var=yes"
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725         eval "$as_ac_var=no"
24726 fi
24727
24728 rm -f conftest.err conftest.$ac_objext \
24729       conftest$ac_exeext conftest.$ac_ext
24730 fi
24731 ac_res=`eval echo '${'$as_ac_var'}'`
24732                { echo "$as_me:$LINENO: result: $ac_res" >&5
24733 echo "${ECHO_T}$ac_res" >&6; }
24734 if test `eval echo '${'$as_ac_var'}'` = yes; then
24735
24736 cat >>confdefs.h <<_ACEOF
24737 #define CRAY_STACKSEG_END $ac_func
24738 _ACEOF
24739
24740     break
24741 fi
24742
24743   done
24744 fi
24745
24746 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24748 if test "${ac_cv_c_stack_direction+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   if test "$cross_compiling" = yes; then
24752   ac_cv_c_stack_direction=0
24753 else
24754   cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760 $ac_includes_default
24761 int
24762 find_stack_direction ()
24763 {
24764   static char *addr = 0;
24765   auto char dummy;
24766   if (addr == 0)
24767     {
24768       addr = &dummy;
24769       return find_stack_direction ();
24770     }
24771   else
24772     return (&dummy > addr) ? 1 : -1;
24773 }
24774
24775 int
24776 main ()
24777 {
24778   return find_stack_direction () < 0;
24779 }
24780 _ACEOF
24781 rm -f conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785   *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788   (eval "$ac_link") 2>&5
24789   ac_status=$?
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24792   { (case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_try") 2>&5
24798   ac_status=$?
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); }; }; then
24801   ac_cv_c_stack_direction=1
24802 else
24803   echo "$as_me: program exited with status $ac_status" >&5
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 ( exit $ac_status )
24808 ac_cv_c_stack_direction=-1
24809 fi
24810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24811 fi
24812
24813
24814 fi
24815 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24817
24818 cat >>confdefs.h <<_ACEOF
24819 #define STACK_DIRECTION $ac_cv_c_stack_direction
24820 _ACEOF
24821
24822
24823 fi
24824
24825
24826
24827
24828
24829
24830 ac_header_dirent=no
24831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24832   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24833 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h.  */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h.  */
24844 #include <sys/types.h>
24845 #include <$ac_hdr>
24846
24847 int
24848 main ()
24849 {
24850 if ((DIR *) 0)
24851 return 0;
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860   *) ac_try_echo=$ac_try;;
24861 esac
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863   (eval "$ac_compile") 2>conftest.er1
24864   ac_status=$?
24865   grep -v '^ *+' conftest.er1 >conftest.err
24866   rm -f conftest.er1
24867   cat conftest.err >&5
24868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869   (exit $ac_status); } &&
24870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24871   { (case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876   (eval "$ac_try") 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; } &&
24880          { ac_try='test -s conftest.$ac_objext'
24881   { (case "(($ac_try" in
24882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883   *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886   (eval "$ac_try") 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890   eval "$as_ac_Header=yes"
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895         eval "$as_ac_Header=no"
24896 fi
24897
24898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24899 fi
24900 ac_res=`eval echo '${'$as_ac_Header'}'`
24901                { echo "$as_me:$LINENO: result: $ac_res" >&5
24902 echo "${ECHO_T}$ac_res" >&6; }
24903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24904   cat >>confdefs.h <<_ACEOF
24905 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24906 _ACEOF
24907
24908 ac_header_dirent=$ac_hdr; break
24909 fi
24910
24911 done
24912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24913 if test $ac_header_dirent = dirent.h; then
24914   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24915 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24916 if test "${ac_cv_search_opendir+set}" = set; then
24917   echo $ECHO_N "(cached) $ECHO_C" >&6
24918 else
24919   ac_func_search_save_LIBS=$LIBS
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926
24927 /* Override any GCC internal prototype to avoid an error.
24928    Use char because int might match the return type of a GCC
24929    builtin and then its argument prototype would still apply.  */
24930 #ifdef __cplusplus
24931 extern "C"
24932 #endif
24933 char opendir ();
24934 int
24935 main ()
24936 {
24937 return opendir ();
24938   ;
24939   return 0;
24940 }
24941 _ACEOF
24942 for ac_lib in '' dir; do
24943   if test -z "$ac_lib"; then
24944     ac_res="none required"
24945   else
24946     ac_res=-l$ac_lib
24947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24948   fi
24949   rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953   *) ac_try_echo=$ac_try;;
24954 esac
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956   (eval "$ac_link") 2>conftest.er1
24957   ac_status=$?
24958   grep -v '^ *+' conftest.er1 >conftest.err
24959   rm -f conftest.er1
24960   cat conftest.err >&5
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); } &&
24963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24964   { (case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969   (eval "$ac_try") 2>&5
24970   ac_status=$?
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); }; } &&
24973          { ac_try='test -s conftest$ac_exeext'
24974   { (case "(($ac_try" in
24975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976   *) ac_try_echo=$ac_try;;
24977 esac
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979   (eval "$ac_try") 2>&5
24980   ac_status=$?
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); }; }; then
24983   ac_cv_search_opendir=$ac_res
24984 else
24985   echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988
24989 fi
24990
24991 rm -f conftest.err conftest.$ac_objext \
24992       conftest$ac_exeext
24993   if test "${ac_cv_search_opendir+set}" = set; then
24994   break
24995 fi
24996 done
24997 if test "${ac_cv_search_opendir+set}" = set; then
24998   :
24999 else
25000   ac_cv_search_opendir=no
25001 fi
25002 rm conftest.$ac_ext
25003 LIBS=$ac_func_search_save_LIBS
25004 fi
25005 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25006 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25007 ac_res=$ac_cv_search_opendir
25008 if test "$ac_res" != no; then
25009   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25010
25011 fi
25012
25013 else
25014   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25015 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25016 if test "${ac_cv_search_opendir+set}" = set; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019   ac_func_search_save_LIBS=$LIBS
25020 cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h.  */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h.  */
25026
25027 /* Override any GCC internal prototype to avoid an error.
25028    Use char because int might match the return type of a GCC
25029    builtin and then its argument prototype would still apply.  */
25030 #ifdef __cplusplus
25031 extern "C"
25032 #endif
25033 char opendir ();
25034 int
25035 main ()
25036 {
25037 return opendir ();
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 for ac_lib in '' x; do
25043   if test -z "$ac_lib"; then
25044     ac_res="none required"
25045   else
25046     ac_res=-l$ac_lib
25047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25048   fi
25049   rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (ac_try="$ac_link"
25051 case "(($ac_try" in
25052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053   *) ac_try_echo=$ac_try;;
25054 esac
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056   (eval "$ac_link") 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } &&
25063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25064   { (case "(($ac_try" in
25065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25066   *) ac_try_echo=$ac_try;;
25067 esac
25068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25069   (eval "$ac_try") 2>&5
25070   ac_status=$?
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); }; } &&
25073          { ac_try='test -s conftest$ac_exeext'
25074   { (case "(($ac_try" in
25075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076   *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079   (eval "$ac_try") 2>&5
25080   ac_status=$?
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); }; }; then
25083   ac_cv_search_opendir=$ac_res
25084 else
25085   echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25087
25088
25089 fi
25090
25091 rm -f conftest.err conftest.$ac_objext \
25092       conftest$ac_exeext
25093   if test "${ac_cv_search_opendir+set}" = set; then
25094   break
25095 fi
25096 done
25097 if test "${ac_cv_search_opendir+set}" = set; then
25098   :
25099 else
25100   ac_cv_search_opendir=no
25101 fi
25102 rm conftest.$ac_ext
25103 LIBS=$ac_func_search_save_LIBS
25104 fi
25105 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25106 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25107 ac_res=$ac_cv_search_opendir
25108 if test "$ac_res" != no; then
25109   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25110
25111 fi
25112
25113 fi
25114
25115 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25116 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25117 if test "${ac_cv_func_closedir_void+set}" = set; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120   if test "$cross_compiling" = yes; then
25121   ac_cv_func_closedir_void=yes
25122 else
25123   cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129 $ac_includes_default
25130 #include <$ac_header_dirent>
25131 #ifndef __cplusplus
25132 int closedir ();
25133 #endif
25134
25135 int
25136 main ()
25137 {
25138 return closedir (opendir (".")) != 0;
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 rm -f conftest$ac_exeext
25144 if { (ac_try="$ac_link"
25145 case "(($ac_try" in
25146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147   *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150   (eval "$ac_link") 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25154   { (case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_try") 2>&5
25160   ac_status=$?
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); }; }; then
25163   ac_cv_func_closedir_void=no
25164 else
25165   echo "$as_me: program exited with status $ac_status" >&5
25166 echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 ( exit $ac_status )
25170 ac_cv_func_closedir_void=yes
25171 fi
25172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25173 fi
25174
25175
25176 fi
25177 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25178 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25179 if test $ac_cv_func_closedir_void = yes; then
25180
25181 cat >>confdefs.h <<\_ACEOF
25182 #define CLOSEDIR_VOID 1
25183 _ACEOF
25184
25185 fi
25186
25187 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25188 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25189 if test "${ac_cv_lib_error_at_line+set}" = set; then
25190   echo $ECHO_N "(cached) $ECHO_C" >&6
25191 else
25192   cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198 $ac_includes_default
25199 int
25200 main ()
25201 {
25202 error_at_line (0, 0, "", 0, "");
25203   ;
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211   *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214   (eval "$ac_link") 2>conftest.er1
25215   ac_status=$?
25216   grep -v '^ *+' conftest.er1 >conftest.err
25217   rm -f conftest.er1
25218   cat conftest.err >&5
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); } &&
25221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25222   { (case "(($ac_try" in
25223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224   *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227   (eval "$ac_try") 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; } &&
25231          { ac_try='test -s conftest$ac_exeext'
25232   { (case "(($ac_try" in
25233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25234   *) ac_try_echo=$ac_try;;
25235 esac
25236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25237   (eval "$ac_try") 2>&5
25238   ac_status=$?
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); }; }; then
25241   ac_cv_lib_error_at_line=yes
25242 else
25243   echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25245
25246         ac_cv_lib_error_at_line=no
25247 fi
25248
25249 rm -f conftest.err conftest.$ac_objext \
25250       conftest$ac_exeext conftest.$ac_ext
25251 fi
25252 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25253 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25254 if test $ac_cv_lib_error_at_line = no; then
25255   case " $LIBOBJS " in
25256   *" error.$ac_objext "* ) ;;
25257   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25258  ;;
25259 esac
25260
25261 fi
25262
25263
25264 for ac_header in vfork.h
25265 do
25266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25271   echo $ECHO_N "(cached) $ECHO_C" >&6
25272 fi
25273 ac_res=`eval echo '${'$as_ac_Header'}'`
25274                { echo "$as_me:$LINENO: result: $ac_res" >&5
25275 echo "${ECHO_T}$ac_res" >&6; }
25276 else
25277   # Is the header compilable?
25278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25280 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 $ac_includes_default
25287 #include <$ac_header>
25288 _ACEOF
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293   *) ac_try_echo=$ac_try;;
25294 esac
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296   (eval "$ac_compile") 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } &&
25303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25304   { (case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_try") 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; } &&
25313          { ac_try='test -s conftest.$ac_objext'
25314   { (case "(($ac_try" in
25315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316   *) ac_try_echo=$ac_try;;
25317 esac
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319   (eval "$ac_try") 2>&5
25320   ac_status=$?
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); }; }; then
25323   ac_header_compiler=yes
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_header_compiler=no
25329 fi
25330
25331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25333 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334
25335 # Is the header present?
25336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344 #include <$ac_header>
25345 _ACEOF
25346 if { (ac_try="$ac_cpp conftest.$ac_ext"
25347 case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } >/dev/null; then
25359   if test -s conftest.err; then
25360     ac_cpp_err=$ac_c_preproc_warn_flag
25361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25362   else
25363     ac_cpp_err=
25364   fi
25365 else
25366   ac_cpp_err=yes
25367 fi
25368 if test -z "$ac_cpp_err"; then
25369   ac_header_preproc=yes
25370 else
25371   echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374   ac_header_preproc=no
25375 fi
25376
25377 rm -f conftest.err conftest.$ac_ext
25378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 echo "${ECHO_T}$ac_header_preproc" >&6; }
25380
25381 # So?  What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25383   yes:no: )
25384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25388     ac_header_preproc=yes
25389     ;;
25390   no:yes:* )
25391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25403     ( cat <<\_ASBOX
25404 ## ------------------------------- ##
25405 ## Report this to nfs@lists.sf.net ##
25406 ## ------------------------------- ##
25407 _ASBOX
25408      ) | sed "s/^/$as_me: WARNING:     /" >&2
25409     ;;
25410 esac
25411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25414   echo $ECHO_N "(cached) $ECHO_C" >&6
25415 else
25416   eval "$as_ac_Header=\$ac_header_preproc"
25417 fi
25418 ac_res=`eval echo '${'$as_ac_Header'}'`
25419                { echo "$as_me:$LINENO: result: $ac_res" >&5
25420 echo "${ECHO_T}$ac_res" >&6; }
25421
25422 fi
25423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25424   cat >>confdefs.h <<_ACEOF
25425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25426 _ACEOF
25427
25428 fi
25429
25430 done
25431
25432
25433
25434 for ac_func in fork vfork
25435 do
25436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25440   echo $ECHO_N "(cached) $ECHO_C" >&6
25441 else
25442   cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h.  */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h.  */
25448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25450 #define $ac_func innocuous_$ac_func
25451
25452 /* System header to define __stub macros and hopefully few prototypes,
25453     which can conflict with char $ac_func (); below.
25454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25455     <limits.h> exists even on freestanding compilers.  */
25456
25457 #ifdef __STDC__
25458 # include <limits.h>
25459 #else
25460 # include <assert.h>
25461 #endif
25462
25463 #undef $ac_func
25464
25465 /* Override any GCC internal prototype to avoid an error.
25466    Use char because int might match the return type of a GCC
25467    builtin and then its argument prototype would still apply.  */
25468 #ifdef __cplusplus
25469 extern "C"
25470 #endif
25471 char $ac_func ();
25472 /* The GNU C library defines this for functions which it implements
25473     to always fail with ENOSYS.  Some functions are actually named
25474     something starting with __ and the normal name is an alias.  */
25475 #if defined __stub_$ac_func || defined __stub___$ac_func
25476 choke me
25477 #endif
25478
25479 int
25480 main ()
25481 {
25482 return $ac_func ();
25483   ;
25484   return 0;
25485 }
25486 _ACEOF
25487 rm -f conftest.$ac_objext conftest$ac_exeext
25488 if { (ac_try="$ac_link"
25489 case "(($ac_try" in
25490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491   *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494   (eval "$ac_link") 2>conftest.er1
25495   ac_status=$?
25496   grep -v '^ *+' conftest.er1 >conftest.err
25497   rm -f conftest.er1
25498   cat conftest.err >&5
25499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500   (exit $ac_status); } &&
25501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25502   { (case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_try") 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; } &&
25511          { ac_try='test -s conftest$ac_exeext'
25512   { (case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_try") 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; }; then
25521   eval "$as_ac_var=yes"
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526         eval "$as_ac_var=no"
25527 fi
25528
25529 rm -f conftest.err conftest.$ac_objext \
25530       conftest$ac_exeext conftest.$ac_ext
25531 fi
25532 ac_res=`eval echo '${'$as_ac_var'}'`
25533                { echo "$as_me:$LINENO: result: $ac_res" >&5
25534 echo "${ECHO_T}$ac_res" >&6; }
25535 if test `eval echo '${'$as_ac_var'}'` = yes; then
25536   cat >>confdefs.h <<_ACEOF
25537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25538 _ACEOF
25539
25540 fi
25541 done
25542
25543 if test "x$ac_cv_func_fork" = xyes; then
25544   { echo "$as_me:$LINENO: checking for working fork" >&5
25545 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25546 if test "${ac_cv_func_fork_works+set}" = set; then
25547   echo $ECHO_N "(cached) $ECHO_C" >&6
25548 else
25549   if test "$cross_compiling" = yes; then
25550   ac_cv_func_fork_works=cross
25551 else
25552   cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558 $ac_includes_default
25559 int
25560 main ()
25561 {
25562
25563           /* By Ruediger Kuhlmann. */
25564           return fork () < 0;
25565
25566   ;
25567   return 0;
25568 }
25569 _ACEOF
25570 rm -f conftest$ac_exeext
25571 if { (ac_try="$ac_link"
25572 case "(($ac_try" in
25573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25574   *) ac_try_echo=$ac_try;;
25575 esac
25576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25577   (eval "$ac_link") 2>&5
25578   ac_status=$?
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25581   { (case "(($ac_try" in
25582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583   *) ac_try_echo=$ac_try;;
25584 esac
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586   (eval "$ac_try") 2>&5
25587   ac_status=$?
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); }; }; then
25590   ac_cv_func_fork_works=yes
25591 else
25592   echo "$as_me: program exited with status $ac_status" >&5
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25595
25596 ( exit $ac_status )
25597 ac_cv_func_fork_works=no
25598 fi
25599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25600 fi
25601
25602
25603 fi
25604 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25605 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25606
25607 else
25608   ac_cv_func_fork_works=$ac_cv_func_fork
25609 fi
25610 if test "x$ac_cv_func_fork_works" = xcross; then
25611   case $host in
25612     *-*-amigaos* | *-*-msdosdjgpp*)
25613       # Override, as these systems have only a dummy fork() stub
25614       ac_cv_func_fork_works=no
25615       ;;
25616     *)
25617       ac_cv_func_fork_works=yes
25618       ;;
25619   esac
25620   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25621 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25622 fi
25623 ac_cv_func_vfork_works=$ac_cv_func_vfork
25624 if test "x$ac_cv_func_vfork" = xyes; then
25625   { echo "$as_me:$LINENO: checking for working vfork" >&5
25626 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25627 if test "${ac_cv_func_vfork_works+set}" = set; then
25628   echo $ECHO_N "(cached) $ECHO_C" >&6
25629 else
25630   if test "$cross_compiling" = yes; then
25631   ac_cv_func_vfork_works=cross
25632 else
25633   cat >conftest.$ac_ext <<_ACEOF
25634 /* confdefs.h.  */
25635 _ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h.  */
25639 /* Thanks to Paul Eggert for this test.  */
25640 $ac_includes_default
25641 #include <sys/wait.h>
25642 #if HAVE_VFORK_H
25643 # include <vfork.h>
25644 #endif
25645 /* On some sparc systems, changes by the child to local and incoming
25646    argument registers are propagated back to the parent.  The compiler
25647    is told about this with #include <vfork.h>, but some compilers
25648    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25649    static variable whose address is put into a register that is
25650    clobbered by the vfork.  */
25651 static void
25652 #ifdef __cplusplus
25653 sparc_address_test (int arg)
25654 # else
25655 sparc_address_test (arg) int arg;
25656 #endif
25657 {
25658   static pid_t child;
25659   if (!child) {
25660     child = vfork ();
25661     if (child < 0) {
25662       perror ("vfork");
25663       _exit(2);
25664     }
25665     if (!child) {
25666       arg = getpid();
25667       write(-1, "", 0);
25668       _exit (arg);
25669     }
25670   }
25671 }
25672
25673 int
25674 main ()
25675 {
25676   pid_t parent = getpid ();
25677   pid_t child;
25678
25679   sparc_address_test (0);
25680
25681   child = vfork ();
25682
25683   if (child == 0) {
25684     /* Here is another test for sparc vfork register problems.  This
25685        test uses lots of local variables, at least as many local
25686        variables as main has allocated so far including compiler
25687        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25688        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25689        reuse the register of parent for one of the local variables,
25690        since it will think that parent can't possibly be used any more
25691        in this routine.  Assigning to the local variable will thus
25692        munge parent in the parent process.  */
25693     pid_t
25694       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25695       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25696     /* Convince the compiler that p..p7 are live; otherwise, it might
25697        use the same hardware register for all 8 local variables.  */
25698     if (p != p1 || p != p2 || p != p3 || p != p4
25699         || p != p5 || p != p6 || p != p7)
25700       _exit(1);
25701
25702     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25703        from child file descriptors.  If the child closes a descriptor
25704        before it execs or exits, this munges the parent's descriptor
25705        as well.  Test for this by closing stdout in the child.  */
25706     _exit(close(fileno(stdout)) != 0);
25707   } else {
25708     int status;
25709     struct stat st;
25710
25711     while (wait(&status) != child)
25712       ;
25713     return (
25714          /* Was there some problem with vforking?  */
25715          child < 0
25716
25717          /* Did the child fail?  (This shouldn't happen.)  */
25718          || status
25719
25720          /* Did the vfork/compiler bug occur?  */
25721          || parent != getpid()
25722
25723          /* Did the file descriptor bug occur?  */
25724          || fstat(fileno(stdout), &st) != 0
25725          );
25726   }
25727 }
25728 _ACEOF
25729 rm -f conftest$ac_exeext
25730 if { (ac_try="$ac_link"
25731 case "(($ac_try" in
25732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733   *) ac_try_echo=$ac_try;;
25734 esac
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736   (eval "$ac_link") 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25740   { (case "(($ac_try" in
25741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742   *) ac_try_echo=$ac_try;;
25743 esac
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745   (eval "$ac_try") 2>&5
25746   ac_status=$?
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); }; }; then
25749   ac_cv_func_vfork_works=yes
25750 else
25751   echo "$as_me: program exited with status $ac_status" >&5
25752 echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755 ( exit $ac_status )
25756 ac_cv_func_vfork_works=no
25757 fi
25758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25759 fi
25760
25761
25762 fi
25763 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25764 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25765
25766 fi;
25767 if test "x$ac_cv_func_fork_works" = xcross; then
25768   ac_cv_func_vfork_works=$ac_cv_func_vfork
25769   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25770 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25771 fi
25772
25773 if test "x$ac_cv_func_vfork_works" = xyes; then
25774
25775 cat >>confdefs.h <<\_ACEOF
25776 #define HAVE_WORKING_VFORK 1
25777 _ACEOF
25778
25779 else
25780
25781 cat >>confdefs.h <<\_ACEOF
25782 #define vfork fork
25783 _ACEOF
25784
25785 fi
25786 if test "x$ac_cv_func_fork_works" = xyes; then
25787
25788 cat >>confdefs.h <<\_ACEOF
25789 #define HAVE_WORKING_FORK 1
25790 _ACEOF
25791
25792 fi
25793
25794 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25795 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25796 if test "${ac_cv_type_getgroups+set}" = set; then
25797   echo $ECHO_N "(cached) $ECHO_C" >&6
25798 else
25799   if test "$cross_compiling" = yes; then
25800   ac_cv_type_getgroups=cross
25801 else
25802   cat >conftest.$ac_ext <<_ACEOF
25803 /* confdefs.h.  */
25804 _ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h.  */
25808 /* Thanks to Mike Rendell for this test.  */
25809 $ac_includes_default
25810 #define NGID 256
25811 #undef MAX
25812 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25813
25814 int
25815 main ()
25816 {
25817   gid_t gidset[NGID];
25818   int i, n;
25819   union { gid_t gval; long int lval; }  val;
25820
25821   val.lval = -1;
25822   for (i = 0; i < NGID; i++)
25823     gidset[i] = val.gval;
25824   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25825                  gidset);
25826   /* Exit non-zero if getgroups seems to require an array of ints.  This
25827      happens when gid_t is short int but getgroups modifies an array
25828      of ints.  */
25829   return n > 0 && gidset[n] != val.gval;
25830 }
25831 _ACEOF
25832 rm -f conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836   *) ac_try_echo=$ac_try;;
25837 esac
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839   (eval "$ac_link") 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843   { (case "(($ac_try" in
25844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845   *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848   (eval "$ac_try") 2>&5
25849   ac_status=$?
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); }; }; then
25852   ac_cv_type_getgroups=gid_t
25853 else
25854   echo "$as_me: program exited with status $ac_status" >&5
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858 ( exit $ac_status )
25859 ac_cv_type_getgroups=int
25860 fi
25861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25862 fi
25863
25864
25865 if test $ac_cv_type_getgroups = cross; then
25866         cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872 #include <unistd.h>
25873
25874 _ACEOF
25875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25876   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25877   ac_cv_type_getgroups=gid_t
25878 else
25879   ac_cv_type_getgroups=int
25880 fi
25881 rm -f conftest*
25882
25883 fi
25884 fi
25885 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25886 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25887
25888 cat >>confdefs.h <<_ACEOF
25889 #define GETGROUPS_T $ac_cv_type_getgroups
25890 _ACEOF
25891
25892
25893 { echo "$as_me:$LINENO: checking for getgroups" >&5
25894 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25895 if test "${ac_cv_func_getgroups+set}" = set; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898   cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
25905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25906 #define getgroups innocuous_getgroups
25907
25908 /* System header to define __stub macros and hopefully few prototypes,
25909     which can conflict with char getgroups (); below.
25910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25911     <limits.h> exists even on freestanding compilers.  */
25912
25913 #ifdef __STDC__
25914 # include <limits.h>
25915 #else
25916 # include <assert.h>
25917 #endif
25918
25919 #undef getgroups
25920
25921 /* Override any GCC internal prototype to avoid an error.
25922    Use char because int might match the return type of a GCC
25923    builtin and then its argument prototype would still apply.  */
25924 #ifdef __cplusplus
25925 extern "C"
25926 #endif
25927 char getgroups ();
25928 /* The GNU C library defines this for functions which it implements
25929     to always fail with ENOSYS.  Some functions are actually named
25930     something starting with __ and the normal name is an alias.  */
25931 #if defined __stub_getgroups || defined __stub___getgroups
25932 choke me
25933 #endif
25934
25935 int
25936 main ()
25937 {
25938 return getgroups ();
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_link") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } &&
25957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25958   { (case "(($ac_try" in
25959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960   *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963   (eval "$ac_try") 2>&5
25964   ac_status=$?
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); }; } &&
25967          { ac_try='test -s conftest$ac_exeext'
25968   { (case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_try") 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; }; then
25977   ac_cv_func_getgroups=yes
25978 else
25979   echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25981
25982         ac_cv_func_getgroups=no
25983 fi
25984
25985 rm -f conftest.err conftest.$ac_objext \
25986       conftest$ac_exeext conftest.$ac_ext
25987 fi
25988 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25989 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25990
25991
25992 # If we don't yet have getgroups, see if it's in -lbsd.
25993 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25994 ac_save_LIBS=$LIBS
25995 if test $ac_cv_func_getgroups = no; then
25996   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25997 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25998 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001   ac_check_lib_save_LIBS=$LIBS
26002 LIBS="-lbsd  $LIBS"
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h.  */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h.  */
26009
26010 /* Override any GCC internal prototype to avoid an error.
26011    Use char because int might match the return type of a GCC
26012    builtin and then its argument prototype would still apply.  */
26013 #ifdef __cplusplus
26014 extern "C"
26015 #endif
26016 char getgroups ();
26017 int
26018 main ()
26019 {
26020 return getgroups ();
26021   ;
26022   return 0;
26023 }
26024 _ACEOF
26025 rm -f conftest.$ac_objext conftest$ac_exeext
26026 if { (ac_try="$ac_link"
26027 case "(($ac_try" in
26028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029   *) ac_try_echo=$ac_try;;
26030 esac
26031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032   (eval "$ac_link") 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26040   { (case "(($ac_try" in
26041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26042   *) ac_try_echo=$ac_try;;
26043 esac
26044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26045   (eval "$ac_try") 2>&5
26046   ac_status=$?
26047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048   (exit $ac_status); }; } &&
26049          { ac_try='test -s conftest$ac_exeext'
26050   { (case "(($ac_try" in
26051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052   *) ac_try_echo=$ac_try;;
26053 esac
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055   (eval "$ac_try") 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); }; }; then
26059   ac_cv_lib_bsd_getgroups=yes
26060 else
26061   echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064         ac_cv_lib_bsd_getgroups=no
26065 fi
26066
26067 rm -f conftest.err conftest.$ac_objext \
26068       conftest$ac_exeext conftest.$ac_ext
26069 LIBS=$ac_check_lib_save_LIBS
26070 fi
26071 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26072 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26073 if test $ac_cv_lib_bsd_getgroups = yes; then
26074   GETGROUPS_LIB=-lbsd
26075 fi
26076
26077 fi
26078
26079 # Run the program to test the functionality of the system-supplied
26080 # getgroups function only if there is such a function.
26081 if test $ac_cv_func_getgroups = yes; then
26082   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26083 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26084 if test "${ac_cv_func_getgroups_works+set}" = set; then
26085   echo $ECHO_N "(cached) $ECHO_C" >&6
26086 else
26087   if test "$cross_compiling" = yes; then
26088   ac_cv_func_getgroups_works=no
26089 else
26090   cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096 $ac_includes_default
26097 int
26098 main ()
26099 {
26100 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26101        return getgroups (0, 0) == -1;
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 rm -f conftest$ac_exeext
26107 if { (ac_try="$ac_link"
26108 case "(($ac_try" in
26109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110   *) ac_try_echo=$ac_try;;
26111 esac
26112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113   (eval "$ac_link") 2>&5
26114   ac_status=$?
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26117   { (case "(($ac_try" in
26118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26119   *) ac_try_echo=$ac_try;;
26120 esac
26121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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_func_getgroups_works=yes
26127 else
26128   echo "$as_me: program exited with status $ac_status" >&5
26129 echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132 ( exit $ac_status )
26133 ac_cv_func_getgroups_works=no
26134 fi
26135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26136 fi
26137
26138
26139
26140 fi
26141 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26142 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26143   if test $ac_cv_func_getgroups_works = yes; then
26144
26145 cat >>confdefs.h <<\_ACEOF
26146 #define HAVE_GETGROUPS 1
26147 _ACEOF
26148
26149   fi
26150 fi
26151 LIBS=$ac_save_LIBS
26152
26153 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26154 # -lseq on Dynix/PTX, -lgen on Unixware.
26155 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26156 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26157 if test "${ac_cv_search_getmntent+set}" = set; then
26158   echo $ECHO_N "(cached) $ECHO_C" >&6
26159 else
26160   ac_func_search_save_LIBS=$LIBS
26161 cat >conftest.$ac_ext <<_ACEOF
26162 /* confdefs.h.  */
26163 _ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h.  */
26167
26168 /* Override any GCC internal prototype to avoid an error.
26169    Use char because int might match the return type of a GCC
26170    builtin and then its argument prototype would still apply.  */
26171 #ifdef __cplusplus
26172 extern "C"
26173 #endif
26174 char getmntent ();
26175 int
26176 main ()
26177 {
26178 return getmntent ();
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 for ac_lib in '' sun seq gen; do
26184   if test -z "$ac_lib"; then
26185     ac_res="none required"
26186   else
26187     ac_res=-l$ac_lib
26188     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26189   fi
26190   rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197   (eval "$ac_link") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } &&
26204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26205   { (case "(($ac_try" in
26206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26207   *) ac_try_echo=$ac_try;;
26208 esac
26209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26210   (eval "$ac_try") 2>&5
26211   ac_status=$?
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); }; } &&
26214          { ac_try='test -s conftest$ac_exeext'
26215   { (case "(($ac_try" in
26216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217   *) ac_try_echo=$ac_try;;
26218 esac
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220   (eval "$ac_try") 2>&5
26221   ac_status=$?
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); }; }; then
26224   ac_cv_search_getmntent=$ac_res
26225 else
26226   echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26228
26229
26230 fi
26231
26232 rm -f conftest.err conftest.$ac_objext \
26233       conftest$ac_exeext
26234   if test "${ac_cv_search_getmntent+set}" = set; then
26235   break
26236 fi
26237 done
26238 if test "${ac_cv_search_getmntent+set}" = set; then
26239   :
26240 else
26241   ac_cv_search_getmntent=no
26242 fi
26243 rm conftest.$ac_ext
26244 LIBS=$ac_func_search_save_LIBS
26245 fi
26246 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26247 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26248 ac_res=$ac_cv_search_getmntent
26249 if test "$ac_res" != no; then
26250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26251
26252 fi
26253
26254
26255 for ac_func in getmntent
26256 do
26257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26261   echo $ECHO_N "(cached) $ECHO_C" >&6
26262 else
26263   cat >conftest.$ac_ext <<_ACEOF
26264 /* confdefs.h.  */
26265 _ACEOF
26266 cat confdefs.h >>conftest.$ac_ext
26267 cat >>conftest.$ac_ext <<_ACEOF
26268 /* end confdefs.h.  */
26269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26271 #define $ac_func innocuous_$ac_func
26272
26273 /* System header to define __stub macros and hopefully few prototypes,
26274     which can conflict with char $ac_func (); below.
26275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26276     <limits.h> exists even on freestanding compilers.  */
26277
26278 #ifdef __STDC__
26279 # include <limits.h>
26280 #else
26281 # include <assert.h>
26282 #endif
26283
26284 #undef $ac_func
26285
26286 /* Override any GCC internal prototype to avoid an error.
26287    Use char because int might match the return type of a GCC
26288    builtin and then its argument prototype would still apply.  */
26289 #ifdef __cplusplus
26290 extern "C"
26291 #endif
26292 char $ac_func ();
26293 /* The GNU C library defines this for functions which it implements
26294     to always fail with ENOSYS.  Some functions are actually named
26295     something starting with __ and the normal name is an alias.  */
26296 #if defined __stub_$ac_func || defined __stub___$ac_func
26297 choke me
26298 #endif
26299
26300 int
26301 main ()
26302 {
26303 return $ac_func ();
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext conftest$ac_exeext
26309 if { (ac_try="$ac_link"
26310 case "(($ac_try" in
26311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312   *) ac_try_echo=$ac_try;;
26313 esac
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315   (eval "$ac_link") 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26323   { (case "(($ac_try" in
26324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325   *) ac_try_echo=$ac_try;;
26326 esac
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328   (eval "$ac_try") 2>&5
26329   ac_status=$?
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); }; } &&
26332          { ac_try='test -s conftest$ac_exeext'
26333   { (case "(($ac_try" in
26334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335   *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338   (eval "$ac_try") 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; }; then
26342   eval "$as_ac_var=yes"
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347         eval "$as_ac_var=no"
26348 fi
26349
26350 rm -f conftest.err conftest.$ac_objext \
26351       conftest$ac_exeext conftest.$ac_ext
26352 fi
26353 ac_res=`eval echo '${'$as_ac_var'}'`
26354                { echo "$as_me:$LINENO: result: $ac_res" >&5
26355 echo "${ECHO_T}$ac_res" >&6; }
26356 if test `eval echo '${'$as_ac_var'}'` = yes; then
26357   cat >>confdefs.h <<_ACEOF
26358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26359 _ACEOF
26360
26361 fi
26362 done
26363
26364
26365 if test $ac_cv_c_compiler_gnu = yes; then
26366     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26367 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26368 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26369   echo $ECHO_N "(cached) $ECHO_C" >&6
26370 else
26371     ac_pattern="Autoconf.*'x'"
26372   cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378 #include <sgtty.h>
26379 Autoconf TIOCGETP
26380 _ACEOF
26381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26382   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26383   ac_cv_prog_gcc_traditional=yes
26384 else
26385   ac_cv_prog_gcc_traditional=no
26386 fi
26387 rm -f conftest*
26388
26389
26390   if test $ac_cv_prog_gcc_traditional = no; then
26391     cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h.  */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h.  */
26397 #include <termio.h>
26398 Autoconf TCGETA
26399 _ACEOF
26400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26401   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26402   ac_cv_prog_gcc_traditional=yes
26403 fi
26404 rm -f conftest*
26405
26406   fi
26407 fi
26408 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26409 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26410   if test $ac_cv_prog_gcc_traditional = yes; then
26411     CC="$CC -traditional"
26412   fi
26413 fi
26414
26415 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26416 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26417 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   rm -f conftest.sym conftest.file
26421 echo >conftest.file
26422 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26423   if test "$cross_compiling" = yes; then
26424   ac_cv_func_lstat_dereferences_slashed_symlink=no
26425 else
26426   cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432 $ac_includes_default
26433 int
26434 main ()
26435 {
26436 struct stat sbuf;
26437      /* Linux will dereference the symlink and fail.
26438         That is better in the sense that it means we will not
26439         have to compile and use the lstat wrapper.  */
26440      return lstat ("conftest.sym/", &sbuf) == 0;
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 rm -f conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_link") 2>&5
26453   ac_status=$?
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26456   { (case "(($ac_try" in
26457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458   *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461   (eval "$ac_try") 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); }; }; then
26465   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26466 else
26467   echo "$as_me: program exited with status $ac_status" >&5
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26470
26471 ( exit $ac_status )
26472 ac_cv_func_lstat_dereferences_slashed_symlink=no
26473 fi
26474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26475 fi
26476
26477
26478 else
26479   # If the `ln -s' command failed, then we probably don't even
26480   # have an lstat function.
26481   ac_cv_func_lstat_dereferences_slashed_symlink=no
26482 fi
26483 rm -f conftest.sym conftest.file
26484
26485 fi
26486 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26487 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26488
26489 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26490
26491 cat >>confdefs.h <<_ACEOF
26492 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26493 _ACEOF
26494
26495
26496 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26497   case " $LIBOBJS " in
26498   *" lstat.$ac_objext "* ) ;;
26499   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26500  ;;
26501 esac
26502
26503 fi
26504
26505 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26506 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26507 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26508   echo $ECHO_N "(cached) $ECHO_C" >&6
26509 else
26510   if test "$cross_compiling" = yes; then
26511   ac_cv_func_lstat_empty_string_bug=yes
26512 else
26513   cat >conftest.$ac_ext <<_ACEOF
26514 /* confdefs.h.  */
26515 _ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h.  */
26519 $ac_includes_default
26520 int
26521 main ()
26522 {
26523 struct stat sbuf;
26524   return lstat ("", &sbuf) == 0;
26525   ;
26526   return 0;
26527 }
26528 _ACEOF
26529 rm -f conftest$ac_exeext
26530 if { (ac_try="$ac_link"
26531 case "(($ac_try" in
26532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26533   *) ac_try_echo=$ac_try;;
26534 esac
26535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26536   (eval "$ac_link") 2>&5
26537   ac_status=$?
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26540   { (case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545   (eval "$ac_try") 2>&5
26546   ac_status=$?
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); }; }; then
26549   ac_cv_func_lstat_empty_string_bug=no
26550 else
26551   echo "$as_me: program exited with status $ac_status" >&5
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26554
26555 ( exit $ac_status )
26556 ac_cv_func_lstat_empty_string_bug=yes
26557 fi
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26559 fi
26560
26561
26562 fi
26563 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26564 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26565 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26566   case " $LIBOBJS " in
26567   *" lstat.$ac_objext "* ) ;;
26568   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26569  ;;
26570 esac
26571
26572
26573 cat >>confdefs.h <<_ACEOF
26574 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26575 _ACEOF
26576
26577 fi
26578
26579 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26580 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26581 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 else
26584   rm -f conftest.sym conftest.file
26585 echo >conftest.file
26586 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26587   if test "$cross_compiling" = yes; then
26588   ac_cv_func_lstat_dereferences_slashed_symlink=no
26589 else
26590   cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 $ac_includes_default
26597 int
26598 main ()
26599 {
26600 struct stat sbuf;
26601      /* Linux will dereference the symlink and fail.
26602         That is better in the sense that it means we will not
26603         have to compile and use the lstat wrapper.  */
26604      return lstat ("conftest.sym/", &sbuf) == 0;
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest$ac_exeext
26610 if { (ac_try="$ac_link"
26611 case "(($ac_try" in
26612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613   *) ac_try_echo=$ac_try;;
26614 esac
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616   (eval "$ac_link") 2>&5
26617   ac_status=$?
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26620   { (case "(($ac_try" in
26621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622   *) ac_try_echo=$ac_try;;
26623 esac
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625   (eval "$ac_try") 2>&5
26626   ac_status=$?
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); }; }; then
26629   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26630 else
26631   echo "$as_me: program exited with status $ac_status" >&5
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635 ( exit $ac_status )
26636 ac_cv_func_lstat_dereferences_slashed_symlink=no
26637 fi
26638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26639 fi
26640
26641
26642 else
26643   # If the `ln -s' command failed, then we probably don't even
26644   # have an lstat function.
26645   ac_cv_func_lstat_dereferences_slashed_symlink=no
26646 fi
26647 rm -f conftest.sym conftest.file
26648
26649 fi
26650 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26651 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26652
26653 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26654
26655 cat >>confdefs.h <<_ACEOF
26656 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26657 _ACEOF
26658
26659
26660 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26661   case " $LIBOBJS " in
26662   *" lstat.$ac_objext "* ) ;;
26663   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26664  ;;
26665 esac
26666
26667 fi
26668
26669 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26670 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26671 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26672   echo $ECHO_N "(cached) $ECHO_C" >&6
26673 else
26674   cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h.  */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h.  */
26680 #include <sys/types.h>
26681 int
26682 main ()
26683 {
26684 return makedev(0, 0);
26685   ;
26686   return 0;
26687 }
26688 _ACEOF
26689 rm -f conftest.$ac_objext conftest$ac_exeext
26690 if { (ac_try="$ac_link"
26691 case "(($ac_try" in
26692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693   *) ac_try_echo=$ac_try;;
26694 esac
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696   (eval "$ac_link") 2>conftest.er1
26697   ac_status=$?
26698   grep -v '^ *+' conftest.er1 >conftest.err
26699   rm -f conftest.er1
26700   cat conftest.err >&5
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); } &&
26703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26704   { (case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_try") 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; } &&
26713          { ac_try='test -s conftest$ac_exeext'
26714   { (case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_try") 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; }; then
26723   ac_cv_header_sys_types_h_makedev=yes
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728         ac_cv_header_sys_types_h_makedev=no
26729 fi
26730
26731 rm -f conftest.err conftest.$ac_objext \
26732       conftest$ac_exeext conftest.$ac_ext
26733
26734 fi
26735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26736 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26737
26738 if test $ac_cv_header_sys_types_h_makedev = no; then
26739 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26740   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26741 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26742 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26743   echo $ECHO_N "(cached) $ECHO_C" >&6
26744 fi
26745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26746 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26747 else
26748   # Is the header compilable?
26749 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26750 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26751 cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757 $ac_includes_default
26758 #include <sys/mkdev.h>
26759 _ACEOF
26760 rm -f conftest.$ac_objext
26761 if { (ac_try="$ac_compile"
26762 case "(($ac_try" in
26763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764   *) ac_try_echo=$ac_try;;
26765 esac
26766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767   (eval "$ac_compile") 2>conftest.er1
26768   ac_status=$?
26769   grep -v '^ *+' conftest.er1 >conftest.err
26770   rm -f conftest.er1
26771   cat conftest.err >&5
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); } &&
26774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26775   { (case "(($ac_try" in
26776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777   *) ac_try_echo=$ac_try;;
26778 esac
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780   (eval "$ac_try") 2>&5
26781   ac_status=$?
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); }; } &&
26784          { ac_try='test -s conftest.$ac_objext'
26785   { (case "(($ac_try" in
26786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787   *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790   (eval "$ac_try") 2>&5
26791   ac_status=$?
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); }; }; then
26794   ac_header_compiler=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799         ac_header_compiler=no
26800 fi
26801
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6; }
26805
26806 # Is the header present?
26807 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26808 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <sys/mkdev.h>
26816 _ACEOF
26817 if { (ac_try="$ac_cpp conftest.$ac_ext"
26818 case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } >/dev/null; then
26830   if test -s conftest.err; then
26831     ac_cpp_err=$ac_c_preproc_warn_flag
26832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26833   else
26834     ac_cpp_err=
26835   fi
26836 else
26837   ac_cpp_err=yes
26838 fi
26839 if test -z "$ac_cpp_err"; then
26840   ac_header_preproc=yes
26841 else
26842   echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26844
26845   ac_header_preproc=no
26846 fi
26847
26848 rm -f conftest.err conftest.$ac_ext
26849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26850 echo "${ECHO_T}$ac_header_preproc" >&6; }
26851
26852 # So?  What about this header?
26853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26854   yes:no: )
26855     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26856 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26858 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26859     ac_header_preproc=yes
26860     ;;
26861   no:yes:* )
26862     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26863 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26864     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26865 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26867 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26868     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26869 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26870     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26871 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26872     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26873 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26874     ( cat <<\_ASBOX
26875 ## ------------------------------- ##
26876 ## Report this to nfs@lists.sf.net ##
26877 ## ------------------------------- ##
26878 _ASBOX
26879      ) | sed "s/^/$as_me: WARNING:     /" >&2
26880     ;;
26881 esac
26882 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26883 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26884 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26885   echo $ECHO_N "(cached) $ECHO_C" >&6
26886 else
26887   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26888 fi
26889 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26890 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26891
26892 fi
26893 if test $ac_cv_header_sys_mkdev_h = yes; then
26894
26895 cat >>confdefs.h <<\_ACEOF
26896 #define MAJOR_IN_MKDEV 1
26897 _ACEOF
26898
26899 fi
26900
26901
26902
26903   if test $ac_cv_header_sys_mkdev_h = no; then
26904     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26905   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26906 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26907 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26908   echo $ECHO_N "(cached) $ECHO_C" >&6
26909 fi
26910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26911 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26912 else
26913   # Is the header compilable?
26914 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26915 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922 $ac_includes_default
26923 #include <sys/sysmacros.h>
26924 _ACEOF
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929   *) ac_try_echo=$ac_try;;
26930 esac
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932   (eval "$ac_compile") 2>conftest.er1
26933   ac_status=$?
26934   grep -v '^ *+' conftest.er1 >conftest.err
26935   rm -f conftest.er1
26936   cat conftest.err >&5
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); } &&
26939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940   { (case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_try") 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; } &&
26949          { ac_try='test -s conftest.$ac_objext'
26950   { (case "(($ac_try" in
26951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952   *) ac_try_echo=$ac_try;;
26953 esac
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955   (eval "$ac_try") 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; }; then
26959   ac_header_compiler=yes
26960 else
26961   echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26963
26964         ac_header_compiler=no
26965 fi
26966
26967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26969 echo "${ECHO_T}$ac_header_compiler" >&6; }
26970
26971 # Is the header present?
26972 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
26973 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
26974 cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980 #include <sys/sysmacros.h>
26981 _ACEOF
26982 if { (ac_try="$ac_cpp conftest.$ac_ext"
26983 case "(($ac_try" in
26984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985   *) ac_try_echo=$ac_try;;
26986 esac
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26989   ac_status=$?
26990   grep -v '^ *+' conftest.er1 >conftest.err
26991   rm -f conftest.er1
26992   cat conftest.err >&5
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } >/dev/null; then
26995   if test -s conftest.err; then
26996     ac_cpp_err=$ac_c_preproc_warn_flag
26997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26998   else
26999     ac_cpp_err=
27000   fi
27001 else
27002   ac_cpp_err=yes
27003 fi
27004 if test -z "$ac_cpp_err"; then
27005   ac_header_preproc=yes
27006 else
27007   echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27009
27010   ac_header_preproc=no
27011 fi
27012
27013 rm -f conftest.err conftest.$ac_ext
27014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27015 echo "${ECHO_T}$ac_header_preproc" >&6; }
27016
27017 # So?  What about this header?
27018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27019   yes:no: )
27020     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27021 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27022     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27023 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27024     ac_header_preproc=yes
27025     ;;
27026   no:yes:* )
27027     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27028 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27029     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27030 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27031     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27032 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27033     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27034 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27035     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27036 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27037     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27038 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27039     ( cat <<\_ASBOX
27040 ## ------------------------------- ##
27041 ## Report this to nfs@lists.sf.net ##
27042 ## ------------------------------- ##
27043 _ASBOX
27044      ) | sed "s/^/$as_me: WARNING:     /" >&2
27045     ;;
27046 esac
27047 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27048 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27049 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27053 fi
27054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27055 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27056
27057 fi
27058 if test $ac_cv_header_sys_sysmacros_h = yes; then
27059
27060 cat >>confdefs.h <<\_ACEOF
27061 #define MAJOR_IN_SYSMACROS 1
27062 _ACEOF
27063
27064 fi
27065
27066
27067   fi
27068 fi
27069
27070 #AC_FUNC_MALLOC
27071 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27072 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27073 if test "${ac_cv_func_memcmp_working+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   if test "$cross_compiling" = yes; then
27077   ac_cv_func_memcmp_working=no
27078 else
27079   cat >conftest.$ac_ext <<_ACEOF
27080 /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085 $ac_includes_default
27086 int
27087 main ()
27088 {
27089
27090   /* Some versions of memcmp are not 8-bit clean.  */
27091   char c0 = '\100', c1 = '\200', c2 = '\201';
27092   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27093     return 1;
27094
27095   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27096      or more and with at least one buffer not starting on a 4-byte boundary.
27097      William Lewis provided this test program.   */
27098   {
27099     char foo[21];
27100     char bar[21];
27101     int i;
27102     for (i = 0; i < 4; i++)
27103       {
27104         char *a = foo + i;
27105         char *b = bar + i;
27106         strcpy (a, "--------01111111");
27107         strcpy (b, "--------10000000");
27108         if (memcmp (a, b, 16) >= 0)
27109           return 1;
27110       }
27111     return 0;
27112   }
27113
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest$ac_exeext
27119 if { (ac_try="$ac_link"
27120 case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_link") 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27129   { (case "(($ac_try" in
27130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131   *) ac_try_echo=$ac_try;;
27132 esac
27133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134   (eval "$ac_try") 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); }; }; then
27138   ac_cv_func_memcmp_working=yes
27139 else
27140   echo "$as_me: program exited with status $ac_status" >&5
27141 echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27143
27144 ( exit $ac_status )
27145 ac_cv_func_memcmp_working=no
27146 fi
27147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27148 fi
27149
27150
27151 fi
27152 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27153 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27154 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27155   *" memcmp.$ac_objext "* ) ;;
27156   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27157  ;;
27158 esac
27159
27160
27161 #AC_FUNC_REALLOC
27162
27163
27164 for ac_header in sys/select.h sys/socket.h
27165 do
27166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27168   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27171   echo $ECHO_N "(cached) $ECHO_C" >&6
27172 fi
27173 ac_res=`eval echo '${'$as_ac_Header'}'`
27174                { echo "$as_me:$LINENO: result: $ac_res" >&5
27175 echo "${ECHO_T}$ac_res" >&6; }
27176 else
27177   # Is the header compilable?
27178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27180 cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186 $ac_includes_default
27187 #include <$ac_header>
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_compile") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } &&
27203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27204   { (case "(($ac_try" in
27205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206   *) ac_try_echo=$ac_try;;
27207 esac
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209   (eval "$ac_try") 2>&5
27210   ac_status=$?
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); }; } &&
27213          { ac_try='test -s conftest.$ac_objext'
27214   { (case "(($ac_try" in
27215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216   *) ac_try_echo=$ac_try;;
27217 esac
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219   (eval "$ac_try") 2>&5
27220   ac_status=$?
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); }; }; then
27223   ac_header_compiler=yes
27224 else
27225   echo "$as_me: failed program was:" >&5
27226 sed 's/^/| /' conftest.$ac_ext >&5
27227
27228         ac_header_compiler=no
27229 fi
27230
27231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27233 echo "${ECHO_T}$ac_header_compiler" >&6; }
27234
27235 # Is the header present?
27236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27238 cat >conftest.$ac_ext <<_ACEOF
27239 /* confdefs.h.  */
27240 _ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h.  */
27244 #include <$ac_header>
27245 _ACEOF
27246 if { (ac_try="$ac_cpp conftest.$ac_ext"
27247 case "(($ac_try" in
27248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249   *) ac_try_echo=$ac_try;;
27250 esac
27251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } >/dev/null; then
27259   if test -s conftest.err; then
27260     ac_cpp_err=$ac_c_preproc_warn_flag
27261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27262   else
27263     ac_cpp_err=
27264   fi
27265 else
27266   ac_cpp_err=yes
27267 fi
27268 if test -z "$ac_cpp_err"; then
27269   ac_header_preproc=yes
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274   ac_header_preproc=no
27275 fi
27276
27277 rm -f conftest.err conftest.$ac_ext
27278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27279 echo "${ECHO_T}$ac_header_preproc" >&6; }
27280
27281 # So?  What about this header?
27282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27283   yes:no: )
27284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27288     ac_header_preproc=yes
27289     ;;
27290   no:yes:* )
27291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27303     ( cat <<\_ASBOX
27304 ## ------------------------------- ##
27305 ## Report this to nfs@lists.sf.net ##
27306 ## ------------------------------- ##
27307 _ASBOX
27308      ) | sed "s/^/$as_me: WARNING:     /" >&2
27309     ;;
27310 esac
27311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27314   echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316   eval "$as_ac_Header=\$ac_header_preproc"
27317 fi
27318 ac_res=`eval echo '${'$as_ac_Header'}'`
27319                { echo "$as_me:$LINENO: result: $ac_res" >&5
27320 echo "${ECHO_T}$ac_res" >&6; }
27321
27322 fi
27323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27324   cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27326 _ACEOF
27327
27328 fi
27329
27330 done
27331
27332 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27333 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27334 if test "${ac_cv_func_select_args+set}" = set; then
27335   echo $ECHO_N "(cached) $ECHO_C" >&6
27336 else
27337   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27338  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27339   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27340    cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346 $ac_includes_default
27347 #if HAVE_SYS_SELECT_H
27348 # include <sys/select.h>
27349 #endif
27350 #if HAVE_SYS_SOCKET_H
27351 # include <sys/socket.h>
27352 #endif
27353
27354 int
27355 main ()
27356 {
27357 extern int select ($ac_arg1,
27358                                             $ac_arg234, $ac_arg234, $ac_arg234,
27359                                             $ac_arg5);
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_compile") 2>conftest.er1
27372   ac_status=$?
27373   grep -v '^ *+' conftest.er1 >conftest.err
27374   rm -f conftest.er1
27375   cat conftest.err >&5
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); } &&
27378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379   { (case "(($ac_try" in
27380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381   *) ac_try_echo=$ac_try;;
27382 esac
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384   (eval "$ac_try") 2>&5
27385   ac_status=$?
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); }; } &&
27388          { ac_try='test -s conftest.$ac_objext'
27389   { (case "(($ac_try" in
27390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391   *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394   (eval "$ac_try") 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; }; then
27398   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27399 else
27400   echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27402
27403
27404 fi
27405
27406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27407   done
27408  done
27409 done
27410 # Provide a safe default value.
27411 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27412
27413 fi
27414 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27415 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27416 ac_save_IFS=$IFS; IFS=','
27417 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27418 IFS=$ac_save_IFS
27419 shift
27420
27421 cat >>confdefs.h <<_ACEOF
27422 #define SELECT_TYPE_ARG1 $1
27423 _ACEOF
27424
27425
27426 cat >>confdefs.h <<_ACEOF
27427 #define SELECT_TYPE_ARG234 ($2)
27428 _ACEOF
27429
27430
27431 cat >>confdefs.h <<_ACEOF
27432 #define SELECT_TYPE_ARG5 ($3)
27433 _ACEOF
27434
27435 rm -f conftest*
27436
27437 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27438 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27439 if test "${ac_cv_type_signal+set}" = set; then
27440   echo $ECHO_N "(cached) $ECHO_C" >&6
27441 else
27442   cat >conftest.$ac_ext <<_ACEOF
27443 /* confdefs.h.  */
27444 _ACEOF
27445 cat confdefs.h >>conftest.$ac_ext
27446 cat >>conftest.$ac_ext <<_ACEOF
27447 /* end confdefs.h.  */
27448 #include <sys/types.h>
27449 #include <signal.h>
27450
27451 int
27452 main ()
27453 {
27454 return *(signal (0, 0)) (0) == 1;
27455   ;
27456   return 0;
27457 }
27458 _ACEOF
27459 rm -f conftest.$ac_objext
27460 if { (ac_try="$ac_compile"
27461 case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466   (eval "$ac_compile") 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } &&
27473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27474   { (case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479   (eval "$ac_try") 2>&5
27480   ac_status=$?
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); }; } &&
27483          { ac_try='test -s conftest.$ac_objext'
27484   { (case "(($ac_try" in
27485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486   *) ac_try_echo=$ac_try;;
27487 esac
27488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489   (eval "$ac_try") 2>&5
27490   ac_status=$?
27491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492   (exit $ac_status); }; }; then
27493   ac_cv_type_signal=int
27494 else
27495   echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27497
27498         ac_cv_type_signal=void
27499 fi
27500
27501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27502 fi
27503 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27504 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27505
27506 cat >>confdefs.h <<_ACEOF
27507 #define RETSIGTYPE $ac_cv_type_signal
27508 _ACEOF
27509
27510
27511 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27512 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27513 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27514   echo $ECHO_N "(cached) $ECHO_C" >&6
27515 else
27516   if test "$cross_compiling" = yes; then
27517   ac_cv_func_stat_empty_string_bug=yes
27518 else
27519   cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 $ac_includes_default
27526 int
27527 main ()
27528 {
27529 struct stat sbuf;
27530   return stat ("", &sbuf) == 0;
27531   ;
27532   return 0;
27533 }
27534 _ACEOF
27535 rm -f conftest$ac_exeext
27536 if { (ac_try="$ac_link"
27537 case "(($ac_try" in
27538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539   *) ac_try_echo=$ac_try;;
27540 esac
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542   (eval "$ac_link") 2>&5
27543   ac_status=$?
27544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27546   { (case "(($ac_try" in
27547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27548   *) ac_try_echo=$ac_try;;
27549 esac
27550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27551   (eval "$ac_try") 2>&5
27552   ac_status=$?
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); }; }; then
27555   ac_cv_func_stat_empty_string_bug=no
27556 else
27557   echo "$as_me: program exited with status $ac_status" >&5
27558 echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27560
27561 ( exit $ac_status )
27562 ac_cv_func_stat_empty_string_bug=yes
27563 fi
27564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27565 fi
27566
27567
27568 fi
27569 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27570 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27571 if test $ac_cv_func_stat_empty_string_bug = yes; then
27572   case " $LIBOBJS " in
27573   *" stat.$ac_objext "* ) ;;
27574   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27575  ;;
27576 esac
27577
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define HAVE_STAT_EMPTY_STRING_BUG 1
27581 _ACEOF
27582
27583 fi
27584
27585
27586 for ac_func in vprintf
27587 do
27588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27592   echo $ECHO_N "(cached) $ECHO_C" >&6
27593 else
27594   cat >conftest.$ac_ext <<_ACEOF
27595 /* confdefs.h.  */
27596 _ACEOF
27597 cat confdefs.h >>conftest.$ac_ext
27598 cat >>conftest.$ac_ext <<_ACEOF
27599 /* end confdefs.h.  */
27600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27602 #define $ac_func innocuous_$ac_func
27603
27604 /* System header to define __stub macros and hopefully few prototypes,
27605     which can conflict with char $ac_func (); below.
27606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27607     <limits.h> exists even on freestanding compilers.  */
27608
27609 #ifdef __STDC__
27610 # include <limits.h>
27611 #else
27612 # include <assert.h>
27613 #endif
27614
27615 #undef $ac_func
27616
27617 /* Override any GCC internal prototype to avoid an error.
27618    Use char because int might match the return type of a GCC
27619    builtin and then its argument prototype would still apply.  */
27620 #ifdef __cplusplus
27621 extern "C"
27622 #endif
27623 char $ac_func ();
27624 /* The GNU C library defines this for functions which it implements
27625     to always fail with ENOSYS.  Some functions are actually named
27626     something starting with __ and the normal name is an alias.  */
27627 #if defined __stub_$ac_func || defined __stub___$ac_func
27628 choke me
27629 #endif
27630
27631 int
27632 main ()
27633 {
27634 return $ac_func ();
27635   ;
27636   return 0;
27637 }
27638 _ACEOF
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640 if { (ac_try="$ac_link"
27641 case "(($ac_try" in
27642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643   *) ac_try_echo=$ac_try;;
27644 esac
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646   (eval "$ac_link") 2>conftest.er1
27647   ac_status=$?
27648   grep -v '^ *+' conftest.er1 >conftest.err
27649   rm -f conftest.er1
27650   cat conftest.err >&5
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } &&
27653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654   { (case "(($ac_try" in
27655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656   *) ac_try_echo=$ac_try;;
27657 esac
27658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659   (eval "$ac_try") 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; } &&
27663          { ac_try='test -s conftest$ac_exeext'
27664   { (case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_try") 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; }; then
27673   eval "$as_ac_var=yes"
27674 else
27675   echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27677
27678         eval "$as_ac_var=no"
27679 fi
27680
27681 rm -f conftest.err conftest.$ac_objext \
27682       conftest$ac_exeext conftest.$ac_ext
27683 fi
27684 ac_res=`eval echo '${'$as_ac_var'}'`
27685                { echo "$as_me:$LINENO: result: $ac_res" >&5
27686 echo "${ECHO_T}$ac_res" >&6; }
27687 if test `eval echo '${'$as_ac_var'}'` = yes; then
27688   cat >>confdefs.h <<_ACEOF
27689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27690 _ACEOF
27691
27692 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27693 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27694 if test "${ac_cv_func__doprnt+set}" = set; then
27695   echo $ECHO_N "(cached) $ECHO_C" >&6
27696 else
27697   cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h.  */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h.  */
27703 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27705 #define _doprnt innocuous__doprnt
27706
27707 /* System header to define __stub macros and hopefully few prototypes,
27708     which can conflict with char _doprnt (); below.
27709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27710     <limits.h> exists even on freestanding compilers.  */
27711
27712 #ifdef __STDC__
27713 # include <limits.h>
27714 #else
27715 # include <assert.h>
27716 #endif
27717
27718 #undef _doprnt
27719
27720 /* Override any GCC internal prototype to avoid an error.
27721    Use char because int might match the return type of a GCC
27722    builtin and then its argument prototype would still apply.  */
27723 #ifdef __cplusplus
27724 extern "C"
27725 #endif
27726 char _doprnt ();
27727 /* The GNU C library defines this for functions which it implements
27728     to always fail with ENOSYS.  Some functions are actually named
27729     something starting with __ and the normal name is an alias.  */
27730 #if defined __stub__doprnt || defined __stub____doprnt
27731 choke me
27732 #endif
27733
27734 int
27735 main ()
27736 {
27737 return _doprnt ();
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743 if { (ac_try="$ac_link"
27744 case "(($ac_try" in
27745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746   *) ac_try_echo=$ac_try;;
27747 esac
27748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749   (eval "$ac_link") 2>conftest.er1
27750   ac_status=$?
27751   grep -v '^ *+' conftest.er1 >conftest.err
27752   rm -f conftest.er1
27753   cat conftest.err >&5
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); } &&
27756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757   { (case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_try") 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); }; } &&
27766          { ac_try='test -s conftest$ac_exeext'
27767   { (case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772   (eval "$ac_try") 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   ac_cv_func__doprnt=yes
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781         ac_cv_func__doprnt=no
27782 fi
27783
27784 rm -f conftest.err conftest.$ac_objext \
27785       conftest$ac_exeext conftest.$ac_ext
27786 fi
27787 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27788 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27789 if test $ac_cv_func__doprnt = yes; then
27790
27791 cat >>confdefs.h <<\_ACEOF
27792 #define HAVE_DOPRNT 1
27793 _ACEOF
27794
27795 fi
27796
27797 fi
27798 done
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27830                gethostbyaddr gethostbyname gethostname getmntent \
27831                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27832                realpath rmdir select socket strcasecmp strchr strdup \
27833                strerror strrchr strtol strtoul
27834 do
27835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841   cat >conftest.$ac_ext <<_ACEOF
27842 /* confdefs.h.  */
27843 _ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h.  */
27847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27849 #define $ac_func innocuous_$ac_func
27850
27851 /* System header to define __stub macros and hopefully few prototypes,
27852     which can conflict with char $ac_func (); below.
27853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27854     <limits.h> exists even on freestanding compilers.  */
27855
27856 #ifdef __STDC__
27857 # include <limits.h>
27858 #else
27859 # include <assert.h>
27860 #endif
27861
27862 #undef $ac_func
27863
27864 /* Override any GCC internal prototype to avoid an error.
27865    Use char because int might match the return type of a GCC
27866    builtin and then its argument prototype would still apply.  */
27867 #ifdef __cplusplus
27868 extern "C"
27869 #endif
27870 char $ac_func ();
27871 /* The GNU C library defines this for functions which it implements
27872     to always fail with ENOSYS.  Some functions are actually named
27873     something starting with __ and the normal name is an alias.  */
27874 #if defined __stub_$ac_func || defined __stub___$ac_func
27875 choke me
27876 #endif
27877
27878 int
27879 main ()
27880 {
27881 return $ac_func ();
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext conftest$ac_exeext
27887 if { (ac_try="$ac_link"
27888 case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_link") 2>conftest.er1
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
27897   cat conftest.err >&5
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } &&
27900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27901   { (case "(($ac_try" in
27902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903   *) ac_try_echo=$ac_try;;
27904 esac
27905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906   (eval "$ac_try") 2>&5
27907   ac_status=$?
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); }; } &&
27910          { ac_try='test -s conftest$ac_exeext'
27911   { (case "(($ac_try" in
27912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27913   *) ac_try_echo=$ac_try;;
27914 esac
27915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27916   (eval "$ac_try") 2>&5
27917   ac_status=$?
27918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); }; }; then
27920   eval "$as_ac_var=yes"
27921 else
27922   echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27924
27925         eval "$as_ac_var=no"
27926 fi
27927
27928 rm -f conftest.err conftest.$ac_objext \
27929       conftest$ac_exeext conftest.$ac_ext
27930 fi
27931 ac_res=`eval echo '${'$as_ac_var'}'`
27932                { echo "$as_me:$LINENO: result: $ac_res" >&5
27933 echo "${ECHO_T}$ac_res" >&6; }
27934 if test `eval echo '${'$as_ac_var'}'` = yes; then
27935   cat >>confdefs.h <<_ACEOF
27936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27937 _ACEOF
27938
27939 fi
27940 done
27941
27942
27943
27944 { echo "$as_me:$LINENO: checking for short" >&5
27945 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27946 if test "${ac_cv_type_short+set}" = set; then
27947   echo $ECHO_N "(cached) $ECHO_C" >&6
27948 else
27949   cat >conftest.$ac_ext <<_ACEOF
27950 /* confdefs.h.  */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h.  */
27955 $ac_includes_default
27956 typedef short ac__type_new_;
27957 int
27958 main ()
27959 {
27960 if ((ac__type_new_ *) 0)
27961   return 0;
27962 if (sizeof (ac__type_new_))
27963   return 0;
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext
27969 if { (ac_try="$ac_compile"
27970 case "(($ac_try" in
27971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972   *) ac_try_echo=$ac_try;;
27973 esac
27974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975   (eval "$ac_compile") 2>conftest.er1
27976   ac_status=$?
27977   grep -v '^ *+' conftest.er1 >conftest.err
27978   rm -f conftest.er1
27979   cat conftest.err >&5
27980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981   (exit $ac_status); } &&
27982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983   { (case "(($ac_try" in
27984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985   *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988   (eval "$ac_try") 2>&5
27989   ac_status=$?
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); }; } &&
27992          { ac_try='test -s conftest.$ac_objext'
27993   { (case "(($ac_try" in
27994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995   *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998   (eval "$ac_try") 2>&5
27999   ac_status=$?
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); }; }; then
28002   ac_cv_type_short=yes
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007         ac_cv_type_short=no
28008 fi
28009
28010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28011 fi
28012 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28013 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28014
28015 { echo "$as_me:$LINENO: checking size of short" >&5
28016 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28017 if test "${ac_cv_sizeof_short+set}" = set; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   if test "$ac_cv_type_short" = yes; then
28021   # The cast to long int works around a bug in the HP C Compiler
28022   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28023   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28024   # This bug is HP SR number 8606223364.
28025   if test "$cross_compiling" = yes; then
28026   # Depending upon the size, compute the lo and hi bounds.
28027 cat >conftest.$ac_ext <<_ACEOF
28028 /* confdefs.h.  */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h.  */
28033 $ac_includes_default
28034                    typedef short ac__type_sizeof_;
28035 int
28036 main ()
28037 {
28038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28039 test_array [0] = 0
28040
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 rm -f conftest.$ac_objext
28046 if { (ac_try="$ac_compile"
28047 case "(($ac_try" in
28048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28049   *) ac_try_echo=$ac_try;;
28050 esac
28051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28052   (eval "$ac_compile") 2>conftest.er1
28053   ac_status=$?
28054   grep -v '^ *+' conftest.er1 >conftest.err
28055   rm -f conftest.er1
28056   cat conftest.err >&5
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); } &&
28059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28060   { (case "(($ac_try" in
28061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062   *) ac_try_echo=$ac_try;;
28063 esac
28064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065   (eval "$ac_try") 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); }; } &&
28069          { ac_try='test -s conftest.$ac_objext'
28070   { (case "(($ac_try" in
28071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072   *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075   (eval "$ac_try") 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   ac_lo=0 ac_mid=0
28080   while :; do
28081     cat >conftest.$ac_ext <<_ACEOF
28082 /* confdefs.h.  */
28083 _ACEOF
28084 cat confdefs.h >>conftest.$ac_ext
28085 cat >>conftest.$ac_ext <<_ACEOF
28086 /* end confdefs.h.  */
28087 $ac_includes_default
28088                    typedef short ac__type_sizeof_;
28089 int
28090 main ()
28091 {
28092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28093 test_array [0] = 0
28094
28095   ;
28096   return 0;
28097 }
28098 _ACEOF
28099 rm -f conftest.$ac_objext
28100 if { (ac_try="$ac_compile"
28101 case "(($ac_try" in
28102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103   *) ac_try_echo=$ac_try;;
28104 esac
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106   (eval "$ac_compile") 2>conftest.er1
28107   ac_status=$?
28108   grep -v '^ *+' conftest.er1 >conftest.err
28109   rm -f conftest.er1
28110   cat conftest.err >&5
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); } &&
28113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28114   { (case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28119   (eval "$ac_try") 2>&5
28120   ac_status=$?
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); }; } &&
28123          { ac_try='test -s conftest.$ac_objext'
28124   { (case "(($ac_try" in
28125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126   *) ac_try_echo=$ac_try;;
28127 esac
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129   (eval "$ac_try") 2>&5
28130   ac_status=$?
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); }; }; then
28133   ac_hi=$ac_mid; break
28134 else
28135   echo "$as_me: failed program was:" >&5
28136 sed 's/^/| /' conftest.$ac_ext >&5
28137
28138         ac_lo=`expr $ac_mid + 1`
28139                         if test $ac_lo -le $ac_mid; then
28140                           ac_lo= ac_hi=
28141                           break
28142                         fi
28143                         ac_mid=`expr 2 '*' $ac_mid + 1`
28144 fi
28145
28146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28147   done
28148 else
28149   echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28151
28152         cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h.  */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h.  */
28158 $ac_includes_default
28159                    typedef short ac__type_sizeof_;
28160 int
28161 main ()
28162 {
28163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28164 test_array [0] = 0
28165
28166   ;
28167   return 0;
28168 }
28169 _ACEOF
28170 rm -f conftest.$ac_objext
28171 if { (ac_try="$ac_compile"
28172 case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_compile") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } &&
28184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185   { (case "(($ac_try" in
28186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187   *) ac_try_echo=$ac_try;;
28188 esac
28189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190   (eval "$ac_try") 2>&5
28191   ac_status=$?
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); }; } &&
28194          { ac_try='test -s conftest.$ac_objext'
28195   { (case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_try") 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); }; }; then
28204   ac_hi=-1 ac_mid=-1
28205   while :; do
28206     cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 $ac_includes_default
28213                    typedef short ac__type_sizeof_;
28214 int
28215 main ()
28216 {
28217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28218 test_array [0] = 0
28219
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext
28225 if { (ac_try="$ac_compile"
28226 case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_compile") 2>conftest.er1
28232   ac_status=$?
28233   grep -v '^ *+' conftest.er1 >conftest.err
28234   rm -f conftest.er1
28235   cat conftest.err >&5
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); } &&
28238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28239   { (case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_try") 2>&5
28245   ac_status=$?
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); }; } &&
28248          { ac_try='test -s conftest.$ac_objext'
28249   { (case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_try") 2>&5
28255   ac_status=$?
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); }; }; then
28258   ac_lo=$ac_mid; break
28259 else
28260   echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28262
28263         ac_hi=`expr '(' $ac_mid ')' - 1`
28264                         if test $ac_mid -le $ac_hi; then
28265                           ac_lo= ac_hi=
28266                           break
28267                         fi
28268                         ac_mid=`expr 2 '*' $ac_mid`
28269 fi
28270
28271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28272   done
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277         ac_lo= ac_hi=
28278 fi
28279
28280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28281 fi
28282
28283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28284 # Binary search between lo and hi bounds.
28285 while test "x$ac_lo" != "x$ac_hi"; do
28286   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28287   cat >conftest.$ac_ext <<_ACEOF
28288 /* confdefs.h.  */
28289 _ACEOF
28290 cat confdefs.h >>conftest.$ac_ext
28291 cat >>conftest.$ac_ext <<_ACEOF
28292 /* end confdefs.h.  */
28293 $ac_includes_default
28294                    typedef short ac__type_sizeof_;
28295 int
28296 main ()
28297 {
28298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28299 test_array [0] = 0
28300
28301   ;
28302   return 0;
28303 }
28304 _ACEOF
28305 rm -f conftest.$ac_objext
28306 if { (ac_try="$ac_compile"
28307 case "(($ac_try" in
28308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28309   *) ac_try_echo=$ac_try;;
28310 esac
28311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28312   (eval "$ac_compile") 2>conftest.er1
28313   ac_status=$?
28314   grep -v '^ *+' conftest.er1 >conftest.err
28315   rm -f conftest.er1
28316   cat conftest.err >&5
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); } &&
28319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28320   { (case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325   (eval "$ac_try") 2>&5
28326   ac_status=$?
28327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328   (exit $ac_status); }; } &&
28329          { ac_try='test -s conftest.$ac_objext'
28330   { (case "(($ac_try" in
28331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332   *) ac_try_echo=$ac_try;;
28333 esac
28334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335   (eval "$ac_try") 2>&5
28336   ac_status=$?
28337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338   (exit $ac_status); }; }; then
28339   ac_hi=$ac_mid
28340 else
28341   echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28343
28344         ac_lo=`expr '(' $ac_mid ')' + 1`
28345 fi
28346
28347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28348 done
28349 case $ac_lo in
28350 ?*) ac_cv_sizeof_short=$ac_lo;;
28351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28352 See \`config.log' for more details." >&5
28353 echo "$as_me: error: cannot compute sizeof (short)
28354 See \`config.log' for more details." >&2;}
28355    { (exit 77); exit 77; }; } ;;
28356 esac
28357 else
28358   cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364 $ac_includes_default
28365                    typedef short ac__type_sizeof_;
28366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28368 #include <stdio.h>
28369 #include <stdlib.h>
28370 int
28371 main ()
28372 {
28373
28374   FILE *f = fopen ("conftest.val", "w");
28375   if (! f)
28376     return 1;
28377   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28378     {
28379       long int i = longval ();
28380       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28381         return 1;
28382       fprintf (f, "%ld\n", i);
28383     }
28384   else
28385     {
28386       unsigned long int i = ulongval ();
28387       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28388         return 1;
28389       fprintf (f, "%lu\n", i);
28390     }
28391   return ferror (f) || fclose (f) != 0;
28392
28393   ;
28394   return 0;
28395 }
28396 _ACEOF
28397 rm -f conftest$ac_exeext
28398 if { (ac_try="$ac_link"
28399 case "(($ac_try" in
28400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401   *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404   (eval "$ac_link") 2>&5
28405   ac_status=$?
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28408   { (case "(($ac_try" in
28409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410   *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413   (eval "$ac_try") 2>&5
28414   ac_status=$?
28415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416   (exit $ac_status); }; }; then
28417   ac_cv_sizeof_short=`cat conftest.val`
28418 else
28419   echo "$as_me: program exited with status $ac_status" >&5
28420 echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28422
28423 ( exit $ac_status )
28424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28425 See \`config.log' for more details." >&5
28426 echo "$as_me: error: cannot compute sizeof (short)
28427 See \`config.log' for more details." >&2;}
28428    { (exit 77); exit 77; }; }
28429 fi
28430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28431 fi
28432 rm -f conftest.val
28433 else
28434   ac_cv_sizeof_short=0
28435 fi
28436 fi
28437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28438 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28439 cat >>confdefs.h <<_ACEOF
28440 #define SIZEOF_SHORT $ac_cv_sizeof_short
28441 _ACEOF
28442
28443
28444 { echo "$as_me:$LINENO: checking for int" >&5
28445 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28446 if test "${ac_cv_type_int+set}" = set; then
28447   echo $ECHO_N "(cached) $ECHO_C" >&6
28448 else
28449   cat >conftest.$ac_ext <<_ACEOF
28450 /* confdefs.h.  */
28451 _ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h.  */
28455 $ac_includes_default
28456 typedef int ac__type_new_;
28457 int
28458 main ()
28459 {
28460 if ((ac__type_new_ *) 0)
28461   return 0;
28462 if (sizeof (ac__type_new_))
28463   return 0;
28464   ;
28465   return 0;
28466 }
28467 _ACEOF
28468 rm -f conftest.$ac_objext
28469 if { (ac_try="$ac_compile"
28470 case "(($ac_try" in
28471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28472   *) ac_try_echo=$ac_try;;
28473 esac
28474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28475   (eval "$ac_compile") 2>conftest.er1
28476   ac_status=$?
28477   grep -v '^ *+' conftest.er1 >conftest.err
28478   rm -f conftest.er1
28479   cat conftest.err >&5
28480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481   (exit $ac_status); } &&
28482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28483   { (case "(($ac_try" in
28484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485   *) ac_try_echo=$ac_try;;
28486 esac
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488   (eval "$ac_try") 2>&5
28489   ac_status=$?
28490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491   (exit $ac_status); }; } &&
28492          { ac_try='test -s conftest.$ac_objext'
28493   { (case "(($ac_try" in
28494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495   *) ac_try_echo=$ac_try;;
28496 esac
28497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498   (eval "$ac_try") 2>&5
28499   ac_status=$?
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); }; }; then
28502   ac_cv_type_int=yes
28503 else
28504   echo "$as_me: failed program was:" >&5
28505 sed 's/^/| /' conftest.$ac_ext >&5
28506
28507         ac_cv_type_int=no
28508 fi
28509
28510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28511 fi
28512 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28513 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28514
28515 { echo "$as_me:$LINENO: checking size of int" >&5
28516 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28517 if test "${ac_cv_sizeof_int+set}" = set; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520   if test "$ac_cv_type_int" = yes; then
28521   # The cast to long int works around a bug in the HP C Compiler
28522   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28523   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28524   # This bug is HP SR number 8606223364.
28525   if test "$cross_compiling" = yes; then
28526   # Depending upon the size, compute the lo and hi bounds.
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h.  */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h.  */
28533 $ac_includes_default
28534                    typedef int ac__type_sizeof_;
28535 int
28536 main ()
28537 {
28538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28539 test_array [0] = 0
28540
28541   ;
28542   return 0;
28543 }
28544 _ACEOF
28545 rm -f conftest.$ac_objext
28546 if { (ac_try="$ac_compile"
28547 case "(($ac_try" in
28548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28549   *) ac_try_echo=$ac_try;;
28550 esac
28551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28552   (eval "$ac_compile") 2>conftest.er1
28553   ac_status=$?
28554   grep -v '^ *+' conftest.er1 >conftest.err
28555   rm -f conftest.er1
28556   cat conftest.err >&5
28557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558   (exit $ac_status); } &&
28559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28560   { (case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_try") 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); }; } &&
28569          { ac_try='test -s conftest.$ac_objext'
28570   { (case "(($ac_try" in
28571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572   *) ac_try_echo=$ac_try;;
28573 esac
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575   (eval "$ac_try") 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   ac_lo=0 ac_mid=0
28580   while :; do
28581     cat >conftest.$ac_ext <<_ACEOF
28582 /* confdefs.h.  */
28583 _ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h.  */
28587 $ac_includes_default
28588                    typedef int ac__type_sizeof_;
28589 int
28590 main ()
28591 {
28592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28593 test_array [0] = 0
28594
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext
28600 if { (ac_try="$ac_compile"
28601 case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_compile") 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } &&
28613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28614   { (case "(($ac_try" in
28615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616   *) ac_try_echo=$ac_try;;
28617 esac
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619   (eval "$ac_try") 2>&5
28620   ac_status=$?
28621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622   (exit $ac_status); }; } &&
28623          { ac_try='test -s conftest.$ac_objext'
28624   { (case "(($ac_try" in
28625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626   *) ac_try_echo=$ac_try;;
28627 esac
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629   (eval "$ac_try") 2>&5
28630   ac_status=$?
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); }; }; then
28633   ac_hi=$ac_mid; break
28634 else
28635   echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638         ac_lo=`expr $ac_mid + 1`
28639                         if test $ac_lo -le $ac_mid; then
28640                           ac_lo= ac_hi=
28641                           break
28642                         fi
28643                         ac_mid=`expr 2 '*' $ac_mid + 1`
28644 fi
28645
28646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28647   done
28648 else
28649   echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652         cat >conftest.$ac_ext <<_ACEOF
28653 /* confdefs.h.  */
28654 _ACEOF
28655 cat confdefs.h >>conftest.$ac_ext
28656 cat >>conftest.$ac_ext <<_ACEOF
28657 /* end confdefs.h.  */
28658 $ac_includes_default
28659                    typedef int ac__type_sizeof_;
28660 int
28661 main ()
28662 {
28663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28664 test_array [0] = 0
28665
28666   ;
28667   return 0;
28668 }
28669 _ACEOF
28670 rm -f conftest.$ac_objext
28671 if { (ac_try="$ac_compile"
28672 case "(($ac_try" in
28673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674   *) ac_try_echo=$ac_try;;
28675 esac
28676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28677   (eval "$ac_compile") 2>conftest.er1
28678   ac_status=$?
28679   grep -v '^ *+' conftest.er1 >conftest.err
28680   rm -f conftest.er1
28681   cat conftest.err >&5
28682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683   (exit $ac_status); } &&
28684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28685   { (case "(($ac_try" in
28686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28687   *) ac_try_echo=$ac_try;;
28688 esac
28689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28690   (eval "$ac_try") 2>&5
28691   ac_status=$?
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); }; } &&
28694          { ac_try='test -s conftest.$ac_objext'
28695   { (case "(($ac_try" in
28696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697   *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700   (eval "$ac_try") 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; }; then
28704   ac_hi=-1 ac_mid=-1
28705   while :; do
28706     cat >conftest.$ac_ext <<_ACEOF
28707 /* confdefs.h.  */
28708 _ACEOF
28709 cat confdefs.h >>conftest.$ac_ext
28710 cat >>conftest.$ac_ext <<_ACEOF
28711 /* end confdefs.h.  */
28712 $ac_includes_default
28713                    typedef int ac__type_sizeof_;
28714 int
28715 main ()
28716 {
28717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28718 test_array [0] = 0
28719
28720   ;
28721   return 0;
28722 }
28723 _ACEOF
28724 rm -f conftest.$ac_objext
28725 if { (ac_try="$ac_compile"
28726 case "(($ac_try" in
28727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28728   *) ac_try_echo=$ac_try;;
28729 esac
28730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28731   (eval "$ac_compile") 2>conftest.er1
28732   ac_status=$?
28733   grep -v '^ *+' conftest.er1 >conftest.err
28734   rm -f conftest.er1
28735   cat conftest.err >&5
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); } &&
28738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28739   { (case "(($ac_try" in
28740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741   *) ac_try_echo=$ac_try;;
28742 esac
28743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744   (eval "$ac_try") 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; } &&
28748          { ac_try='test -s conftest.$ac_objext'
28749   { (case "(($ac_try" in
28750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751   *) ac_try_echo=$ac_try;;
28752 esac
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754   (eval "$ac_try") 2>&5
28755   ac_status=$?
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); }; }; then
28758   ac_lo=$ac_mid; break
28759 else
28760   echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28762
28763         ac_hi=`expr '(' $ac_mid ')' - 1`
28764                         if test $ac_mid -le $ac_hi; then
28765                           ac_lo= ac_hi=
28766                           break
28767                         fi
28768                         ac_mid=`expr 2 '*' $ac_mid`
28769 fi
28770
28771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28772   done
28773 else
28774   echo "$as_me: failed program was:" >&5
28775 sed 's/^/| /' conftest.$ac_ext >&5
28776
28777         ac_lo= ac_hi=
28778 fi
28779
28780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28781 fi
28782
28783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28784 # Binary search between lo and hi bounds.
28785 while test "x$ac_lo" != "x$ac_hi"; do
28786   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28787   cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793 $ac_includes_default
28794                    typedef int ac__type_sizeof_;
28795 int
28796 main ()
28797 {
28798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28799 test_array [0] = 0
28800
28801   ;
28802   return 0;
28803 }
28804 _ACEOF
28805 rm -f conftest.$ac_objext
28806 if { (ac_try="$ac_compile"
28807 case "(($ac_try" in
28808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809   *) ac_try_echo=$ac_try;;
28810 esac
28811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812   (eval "$ac_compile") 2>conftest.er1
28813   ac_status=$?
28814   grep -v '^ *+' conftest.er1 >conftest.err
28815   rm -f conftest.er1
28816   cat conftest.err >&5
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); } &&
28819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28820   { (case "(($ac_try" in
28821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822   *) ac_try_echo=$ac_try;;
28823 esac
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825   (eval "$ac_try") 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; } &&
28829          { ac_try='test -s conftest.$ac_objext'
28830   { (case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_try") 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; }; then
28839   ac_hi=$ac_mid
28840 else
28841   echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28843
28844         ac_lo=`expr '(' $ac_mid ')' + 1`
28845 fi
28846
28847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28848 done
28849 case $ac_lo in
28850 ?*) ac_cv_sizeof_int=$ac_lo;;
28851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28852 See \`config.log' for more details." >&5
28853 echo "$as_me: error: cannot compute sizeof (int)
28854 See \`config.log' for more details." >&2;}
28855    { (exit 77); exit 77; }; } ;;
28856 esac
28857 else
28858   cat >conftest.$ac_ext <<_ACEOF
28859 /* confdefs.h.  */
28860 _ACEOF
28861 cat confdefs.h >>conftest.$ac_ext
28862 cat >>conftest.$ac_ext <<_ACEOF
28863 /* end confdefs.h.  */
28864 $ac_includes_default
28865                    typedef int ac__type_sizeof_;
28866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28868 #include <stdio.h>
28869 #include <stdlib.h>
28870 int
28871 main ()
28872 {
28873
28874   FILE *f = fopen ("conftest.val", "w");
28875   if (! f)
28876     return 1;
28877   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28878     {
28879       long int i = longval ();
28880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28881         return 1;
28882       fprintf (f, "%ld\n", i);
28883     }
28884   else
28885     {
28886       unsigned long int i = ulongval ();
28887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28888         return 1;
28889       fprintf (f, "%lu\n", i);
28890     }
28891   return ferror (f) || fclose (f) != 0;
28892
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_link") 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28908   { (case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913   (eval "$ac_try") 2>&5
28914   ac_status=$?
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); }; }; then
28917   ac_cv_sizeof_int=`cat conftest.val`
28918 else
28919   echo "$as_me: program exited with status $ac_status" >&5
28920 echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 ( exit $ac_status )
28924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28925 See \`config.log' for more details." >&5
28926 echo "$as_me: error: cannot compute sizeof (int)
28927 See \`config.log' for more details." >&2;}
28928    { (exit 77); exit 77; }; }
28929 fi
28930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28931 fi
28932 rm -f conftest.val
28933 else
28934   ac_cv_sizeof_int=0
28935 fi
28936 fi
28937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28938 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28939 cat >>confdefs.h <<_ACEOF
28940 #define SIZEOF_INT $ac_cv_sizeof_int
28941 _ACEOF
28942
28943
28944 { echo "$as_me:$LINENO: checking for long" >&5
28945 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28946 if test "${ac_cv_type_long+set}" = set; then
28947   echo $ECHO_N "(cached) $ECHO_C" >&6
28948 else
28949   cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h.  */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h.  */
28955 $ac_includes_default
28956 typedef long ac__type_new_;
28957 int
28958 main ()
28959 {
28960 if ((ac__type_new_ *) 0)
28961   return 0;
28962 if (sizeof (ac__type_new_))
28963   return 0;
28964   ;
28965   return 0;
28966 }
28967 _ACEOF
28968 rm -f conftest.$ac_objext
28969 if { (ac_try="$ac_compile"
28970 case "(($ac_try" in
28971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972   *) ac_try_echo=$ac_try;;
28973 esac
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975   (eval "$ac_compile") 2>conftest.er1
28976   ac_status=$?
28977   grep -v '^ *+' conftest.er1 >conftest.err
28978   rm -f conftest.er1
28979   cat conftest.err >&5
28980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981   (exit $ac_status); } &&
28982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28983   { (case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_try") 2>&5
28989   ac_status=$?
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); }; } &&
28992          { ac_try='test -s conftest.$ac_objext'
28993   { (case "(($ac_try" in
28994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995   *) ac_try_echo=$ac_try;;
28996 esac
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998   (eval "$ac_try") 2>&5
28999   ac_status=$?
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); }; }; then
29002   ac_cv_type_long=yes
29003 else
29004   echo "$as_me: failed program was:" >&5
29005 sed 's/^/| /' conftest.$ac_ext >&5
29006
29007         ac_cv_type_long=no
29008 fi
29009
29010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29011 fi
29012 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29013 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29014
29015 { echo "$as_me:$LINENO: checking size of long" >&5
29016 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29017 if test "${ac_cv_sizeof_long+set}" = set; then
29018   echo $ECHO_N "(cached) $ECHO_C" >&6
29019 else
29020   if test "$ac_cv_type_long" = yes; then
29021   # The cast to long int works around a bug in the HP C Compiler
29022   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29023   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29024   # This bug is HP SR number 8606223364.
29025   if test "$cross_compiling" = yes; then
29026   # Depending upon the size, compute the lo and hi bounds.
29027 cat >conftest.$ac_ext <<_ACEOF
29028 /* confdefs.h.  */
29029 _ACEOF
29030 cat confdefs.h >>conftest.$ac_ext
29031 cat >>conftest.$ac_ext <<_ACEOF
29032 /* end confdefs.h.  */
29033 $ac_includes_default
29034                    typedef long ac__type_sizeof_;
29035 int
29036 main ()
29037 {
29038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29039 test_array [0] = 0
29040
29041   ;
29042   return 0;
29043 }
29044 _ACEOF
29045 rm -f conftest.$ac_objext
29046 if { (ac_try="$ac_compile"
29047 case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_compile") 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } &&
29059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29060   { (case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_try") 2>&5
29066   ac_status=$?
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); }; } &&
29069          { ac_try='test -s conftest.$ac_objext'
29070   { (case "(($ac_try" in
29071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072   *) ac_try_echo=$ac_try;;
29073 esac
29074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075   (eval "$ac_try") 2>&5
29076   ac_status=$?
29077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078   (exit $ac_status); }; }; then
29079   ac_lo=0 ac_mid=0
29080   while :; do
29081     cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h.  */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h.  */
29087 $ac_includes_default
29088                    typedef long ac__type_sizeof_;
29089 int
29090 main ()
29091 {
29092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29093 test_array [0] = 0
29094
29095   ;
29096   return 0;
29097 }
29098 _ACEOF
29099 rm -f conftest.$ac_objext
29100 if { (ac_try="$ac_compile"
29101 case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106   (eval "$ac_compile") 2>conftest.er1
29107   ac_status=$?
29108   grep -v '^ *+' conftest.er1 >conftest.err
29109   rm -f conftest.er1
29110   cat conftest.err >&5
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); } &&
29113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29114   { (case "(($ac_try" in
29115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116   *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119   (eval "$ac_try") 2>&5
29120   ac_status=$?
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); }; } &&
29123          { ac_try='test -s conftest.$ac_objext'
29124   { (case "(($ac_try" in
29125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126   *) ac_try_echo=$ac_try;;
29127 esac
29128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29129   (eval "$ac_try") 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); }; }; then
29133   ac_hi=$ac_mid; break
29134 else
29135   echo "$as_me: failed program was:" >&5
29136 sed 's/^/| /' conftest.$ac_ext >&5
29137
29138         ac_lo=`expr $ac_mid + 1`
29139                         if test $ac_lo -le $ac_mid; then
29140                           ac_lo= ac_hi=
29141                           break
29142                         fi
29143                         ac_mid=`expr 2 '*' $ac_mid + 1`
29144 fi
29145
29146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29147   done
29148 else
29149   echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29151
29152         cat >conftest.$ac_ext <<_ACEOF
29153 /* confdefs.h.  */
29154 _ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h.  */
29158 $ac_includes_default
29159                    typedef long ac__type_sizeof_;
29160 int
29161 main ()
29162 {
29163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29164 test_array [0] = 0
29165
29166   ;
29167   return 0;
29168 }
29169 _ACEOF
29170 rm -f conftest.$ac_objext
29171 if { (ac_try="$ac_compile"
29172 case "(($ac_try" in
29173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174   *) ac_try_echo=$ac_try;;
29175 esac
29176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177   (eval "$ac_compile") 2>conftest.er1
29178   ac_status=$?
29179   grep -v '^ *+' conftest.er1 >conftest.err
29180   rm -f conftest.er1
29181   cat conftest.err >&5
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); } &&
29184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29185   { (case "(($ac_try" in
29186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187   *) ac_try_echo=$ac_try;;
29188 esac
29189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190   (eval "$ac_try") 2>&5
29191   ac_status=$?
29192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193   (exit $ac_status); }; } &&
29194          { ac_try='test -s conftest.$ac_objext'
29195   { (case "(($ac_try" in
29196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197   *) ac_try_echo=$ac_try;;
29198 esac
29199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200   (eval "$ac_try") 2>&5
29201   ac_status=$?
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); }; }; then
29204   ac_hi=-1 ac_mid=-1
29205   while :; do
29206     cat >conftest.$ac_ext <<_ACEOF
29207 /* confdefs.h.  */
29208 _ACEOF
29209 cat confdefs.h >>conftest.$ac_ext
29210 cat >>conftest.$ac_ext <<_ACEOF
29211 /* end confdefs.h.  */
29212 $ac_includes_default
29213                    typedef long ac__type_sizeof_;
29214 int
29215 main ()
29216 {
29217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29218 test_array [0] = 0
29219
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest.$ac_objext
29225 if { (ac_try="$ac_compile"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_compile") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } &&
29238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29239   { (case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_try") 2>&5
29245   ac_status=$?
29246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247   (exit $ac_status); }; } &&
29248          { ac_try='test -s conftest.$ac_objext'
29249   { (case "(($ac_try" in
29250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251   *) ac_try_echo=$ac_try;;
29252 esac
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254   (eval "$ac_try") 2>&5
29255   ac_status=$?
29256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257   (exit $ac_status); }; }; then
29258   ac_lo=$ac_mid; break
29259 else
29260   echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29262
29263         ac_hi=`expr '(' $ac_mid ')' - 1`
29264                         if test $ac_mid -le $ac_hi; then
29265                           ac_lo= ac_hi=
29266                           break
29267                         fi
29268                         ac_mid=`expr 2 '*' $ac_mid`
29269 fi
29270
29271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29272   done
29273 else
29274   echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277         ac_lo= ac_hi=
29278 fi
29279
29280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29281 fi
29282
29283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29284 # Binary search between lo and hi bounds.
29285 while test "x$ac_lo" != "x$ac_hi"; do
29286   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29287   cat >conftest.$ac_ext <<_ACEOF
29288 /* confdefs.h.  */
29289 _ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h.  */
29293 $ac_includes_default
29294                    typedef long ac__type_sizeof_;
29295 int
29296 main ()
29297 {
29298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29299 test_array [0] = 0
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_compile") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } &&
29319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29320   { (case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325   (eval "$ac_try") 2>&5
29326   ac_status=$?
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); }; } &&
29329          { ac_try='test -s conftest.$ac_objext'
29330   { (case "(($ac_try" in
29331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332   *) ac_try_echo=$ac_try;;
29333 esac
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335   (eval "$ac_try") 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_hi=$ac_mid
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344         ac_lo=`expr '(' $ac_mid ')' + 1`
29345 fi
29346
29347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29348 done
29349 case $ac_lo in
29350 ?*) ac_cv_sizeof_long=$ac_lo;;
29351 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29352 See \`config.log' for more details." >&5
29353 echo "$as_me: error: cannot compute sizeof (long)
29354 See \`config.log' for more details." >&2;}
29355    { (exit 77); exit 77; }; } ;;
29356 esac
29357 else
29358   cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h.  */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h.  */
29364 $ac_includes_default
29365                    typedef long ac__type_sizeof_;
29366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29368 #include <stdio.h>
29369 #include <stdlib.h>
29370 int
29371 main ()
29372 {
29373
29374   FILE *f = fopen ("conftest.val", "w");
29375   if (! f)
29376     return 1;
29377   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29378     {
29379       long int i = longval ();
29380       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29381         return 1;
29382       fprintf (f, "%ld\n", i);
29383     }
29384   else
29385     {
29386       unsigned long int i = ulongval ();
29387       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29388         return 1;
29389       fprintf (f, "%lu\n", i);
29390     }
29391   return ferror (f) || fclose (f) != 0;
29392
29393   ;
29394   return 0;
29395 }
29396 _ACEOF
29397 rm -f conftest$ac_exeext
29398 if { (ac_try="$ac_link"
29399 case "(($ac_try" in
29400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401   *) ac_try_echo=$ac_try;;
29402 esac
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404   (eval "$ac_link") 2>&5
29405   ac_status=$?
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29408   { (case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_try") 2>&5
29414   ac_status=$?
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); }; }; then
29417   ac_cv_sizeof_long=`cat conftest.val`
29418 else
29419   echo "$as_me: program exited with status $ac_status" >&5
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29422
29423 ( exit $ac_status )
29424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29425 See \`config.log' for more details." >&5
29426 echo "$as_me: error: cannot compute sizeof (long)
29427 See \`config.log' for more details." >&2;}
29428    { (exit 77); exit 77; }; }
29429 fi
29430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29431 fi
29432 rm -f conftest.val
29433 else
29434   ac_cv_sizeof_long=0
29435 fi
29436 fi
29437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29438 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29439 cat >>confdefs.h <<_ACEOF
29440 #define SIZEOF_LONG $ac_cv_sizeof_long
29441 _ACEOF
29442
29443
29444 { echo "$as_me:$LINENO: checking for size_t" >&5
29445 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29446 if test "${ac_cv_type_size_t+set}" = set; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 else
29449   cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 $ac_includes_default
29456 typedef size_t ac__type_new_;
29457 int
29458 main ()
29459 {
29460 if ((ac__type_new_ *) 0)
29461   return 0;
29462 if (sizeof (ac__type_new_))
29463   return 0;
29464   ;
29465   return 0;
29466 }
29467 _ACEOF
29468 rm -f conftest.$ac_objext
29469 if { (ac_try="$ac_compile"
29470 case "(($ac_try" in
29471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472   *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475   (eval "$ac_compile") 2>conftest.er1
29476   ac_status=$?
29477   grep -v '^ *+' conftest.er1 >conftest.err
29478   rm -f conftest.er1
29479   cat conftest.err >&5
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); } &&
29482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483   { (case "(($ac_try" in
29484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485   *) ac_try_echo=$ac_try;;
29486 esac
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488   (eval "$ac_try") 2>&5
29489   ac_status=$?
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); }; } &&
29492          { ac_try='test -s conftest.$ac_objext'
29493   { (case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_try") 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); }; }; then
29502   ac_cv_type_size_t=yes
29503 else
29504   echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29506
29507         ac_cv_type_size_t=no
29508 fi
29509
29510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29511 fi
29512 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29513 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29514
29515 { echo "$as_me:$LINENO: checking size of size_t" >&5
29516 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29517 if test "${ac_cv_sizeof_size_t+set}" = set; then
29518   echo $ECHO_N "(cached) $ECHO_C" >&6
29519 else
29520   if test "$ac_cv_type_size_t" = yes; then
29521   # The cast to long int works around a bug in the HP C Compiler
29522   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29523   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29524   # This bug is HP SR number 8606223364.
29525   if test "$cross_compiling" = yes; then
29526   # Depending upon the size, compute the lo and hi bounds.
29527 cat >conftest.$ac_ext <<_ACEOF
29528 /* confdefs.h.  */
29529 _ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h.  */
29533 $ac_includes_default
29534                    typedef size_t ac__type_sizeof_;
29535 int
29536 main ()
29537 {
29538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29539 test_array [0] = 0
29540
29541   ;
29542   return 0;
29543 }
29544 _ACEOF
29545 rm -f conftest.$ac_objext
29546 if { (ac_try="$ac_compile"
29547 case "(($ac_try" in
29548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549   *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552   (eval "$ac_compile") 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } &&
29559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29560   { (case "(($ac_try" in
29561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562   *) ac_try_echo=$ac_try;;
29563 esac
29564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565   (eval "$ac_try") 2>&5
29566   ac_status=$?
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); }; } &&
29569          { ac_try='test -s conftest.$ac_objext'
29570   { (case "(($ac_try" in
29571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572   *) ac_try_echo=$ac_try;;
29573 esac
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575   (eval "$ac_try") 2>&5
29576   ac_status=$?
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); }; }; then
29579   ac_lo=0 ac_mid=0
29580   while :; do
29581     cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587 $ac_includes_default
29588                    typedef size_t ac__type_sizeof_;
29589 int
29590 main ()
29591 {
29592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29593 test_array [0] = 0
29594
29595   ;
29596   return 0;
29597 }
29598 _ACEOF
29599 rm -f conftest.$ac_objext
29600 if { (ac_try="$ac_compile"
29601 case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606   (eval "$ac_compile") 2>conftest.er1
29607   ac_status=$?
29608   grep -v '^ *+' conftest.er1 >conftest.err
29609   rm -f conftest.er1
29610   cat conftest.err >&5
29611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612   (exit $ac_status); } &&
29613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29614   { (case "(($ac_try" in
29615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29616   *) ac_try_echo=$ac_try;;
29617 esac
29618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29619   (eval "$ac_try") 2>&5
29620   ac_status=$?
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); }; } &&
29623          { ac_try='test -s conftest.$ac_objext'
29624   { (case "(($ac_try" in
29625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626   *) ac_try_echo=$ac_try;;
29627 esac
29628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629   (eval "$ac_try") 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; }; then
29633   ac_hi=$ac_mid; break
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638         ac_lo=`expr $ac_mid + 1`
29639                         if test $ac_lo -le $ac_mid; then
29640                           ac_lo= ac_hi=
29641                           break
29642                         fi
29643                         ac_mid=`expr 2 '*' $ac_mid + 1`
29644 fi
29645
29646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29647   done
29648 else
29649   echo "$as_me: failed program was:" >&5
29650 sed 's/^/| /' conftest.$ac_ext >&5
29651
29652         cat >conftest.$ac_ext <<_ACEOF
29653 /* confdefs.h.  */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h.  */
29658 $ac_includes_default
29659                    typedef size_t ac__type_sizeof_;
29660 int
29661 main ()
29662 {
29663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29664 test_array [0] = 0
29665
29666   ;
29667   return 0;
29668 }
29669 _ACEOF
29670 rm -f conftest.$ac_objext
29671 if { (ac_try="$ac_compile"
29672 case "(($ac_try" in
29673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674   *) ac_try_echo=$ac_try;;
29675 esac
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677   (eval "$ac_compile") 2>conftest.er1
29678   ac_status=$?
29679   grep -v '^ *+' conftest.er1 >conftest.err
29680   rm -f conftest.er1
29681   cat conftest.err >&5
29682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683   (exit $ac_status); } &&
29684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685   { (case "(($ac_try" in
29686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687   *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690   (eval "$ac_try") 2>&5
29691   ac_status=$?
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); }; } &&
29694          { ac_try='test -s conftest.$ac_objext'
29695   { (case "(($ac_try" in
29696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697   *) ac_try_echo=$ac_try;;
29698 esac
29699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700   (eval "$ac_try") 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   ac_hi=-1 ac_mid=-1
29705   while :; do
29706     cat >conftest.$ac_ext <<_ACEOF
29707 /* confdefs.h.  */
29708 _ACEOF
29709 cat confdefs.h >>conftest.$ac_ext
29710 cat >>conftest.$ac_ext <<_ACEOF
29711 /* end confdefs.h.  */
29712 $ac_includes_default
29713                    typedef size_t ac__type_sizeof_;
29714 int
29715 main ()
29716 {
29717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29718 test_array [0] = 0
29719
29720   ;
29721   return 0;
29722 }
29723 _ACEOF
29724 rm -f conftest.$ac_objext
29725 if { (ac_try="$ac_compile"
29726 case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_compile") 2>conftest.er1
29732   ac_status=$?
29733   grep -v '^ *+' conftest.er1 >conftest.err
29734   rm -f conftest.er1
29735   cat conftest.err >&5
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); } &&
29738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29739   { (case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_try") 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; } &&
29748          { ac_try='test -s conftest.$ac_objext'
29749   { (case "(($ac_try" in
29750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751   *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754   (eval "$ac_try") 2>&5
29755   ac_status=$?
29756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757   (exit $ac_status); }; }; then
29758   ac_lo=$ac_mid; break
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763         ac_hi=`expr '(' $ac_mid ')' - 1`
29764                         if test $ac_mid -le $ac_hi; then
29765                           ac_lo= ac_hi=
29766                           break
29767                         fi
29768                         ac_mid=`expr 2 '*' $ac_mid`
29769 fi
29770
29771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29772   done
29773 else
29774   echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29776
29777         ac_lo= ac_hi=
29778 fi
29779
29780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29781 fi
29782
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784 # Binary search between lo and hi bounds.
29785 while test "x$ac_lo" != "x$ac_hi"; do
29786   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29787   cat >conftest.$ac_ext <<_ACEOF
29788 /* confdefs.h.  */
29789 _ACEOF
29790 cat confdefs.h >>conftest.$ac_ext
29791 cat >>conftest.$ac_ext <<_ACEOF
29792 /* end confdefs.h.  */
29793 $ac_includes_default
29794                    typedef size_t ac__type_sizeof_;
29795 int
29796 main ()
29797 {
29798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29799 test_array [0] = 0
29800
29801   ;
29802   return 0;
29803 }
29804 _ACEOF
29805 rm -f conftest.$ac_objext
29806 if { (ac_try="$ac_compile"
29807 case "(($ac_try" in
29808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809   *) ac_try_echo=$ac_try;;
29810 esac
29811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812   (eval "$ac_compile") 2>conftest.er1
29813   ac_status=$?
29814   grep -v '^ *+' conftest.er1 >conftest.err
29815   rm -f conftest.er1
29816   cat conftest.err >&5
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); } &&
29819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29820   { (case "(($ac_try" in
29821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822   *) ac_try_echo=$ac_try;;
29823 esac
29824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825   (eval "$ac_try") 2>&5
29826   ac_status=$?
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); }; } &&
29829          { ac_try='test -s conftest.$ac_objext'
29830   { (case "(($ac_try" in
29831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832   *) ac_try_echo=$ac_try;;
29833 esac
29834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835   (eval "$ac_try") 2>&5
29836   ac_status=$?
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); }; }; then
29839   ac_hi=$ac_mid
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844         ac_lo=`expr '(' $ac_mid ')' + 1`
29845 fi
29846
29847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29848 done
29849 case $ac_lo in
29850 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29852 See \`config.log' for more details." >&5
29853 echo "$as_me: error: cannot compute sizeof (size_t)
29854 See \`config.log' for more details." >&2;}
29855    { (exit 77); exit 77; }; } ;;
29856 esac
29857 else
29858   cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864 $ac_includes_default
29865                    typedef size_t ac__type_sizeof_;
29866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29868 #include <stdio.h>
29869 #include <stdlib.h>
29870 int
29871 main ()
29872 {
29873
29874   FILE *f = fopen ("conftest.val", "w");
29875   if (! f)
29876     return 1;
29877   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29878     {
29879       long int i = longval ();
29880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29881         return 1;
29882       fprintf (f, "%ld\n", i);
29883     }
29884   else
29885     {
29886       unsigned long int i = ulongval ();
29887       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29888         return 1;
29889       fprintf (f, "%lu\n", i);
29890     }
29891   return ferror (f) || fclose (f) != 0;
29892
29893   ;
29894   return 0;
29895 }
29896 _ACEOF
29897 rm -f conftest$ac_exeext
29898 if { (ac_try="$ac_link"
29899 case "(($ac_try" in
29900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901   *) ac_try_echo=$ac_try;;
29902 esac
29903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904   (eval "$ac_link") 2>&5
29905   ac_status=$?
29906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29908   { (case "(($ac_try" in
29909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910   *) ac_try_echo=$ac_try;;
29911 esac
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913   (eval "$ac_try") 2>&5
29914   ac_status=$?
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); }; }; then
29917   ac_cv_sizeof_size_t=`cat conftest.val`
29918 else
29919   echo "$as_me: program exited with status $ac_status" >&5
29920 echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29922
29923 ( exit $ac_status )
29924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29925 See \`config.log' for more details." >&5
29926 echo "$as_me: error: cannot compute sizeof (size_t)
29927 See \`config.log' for more details." >&2;}
29928    { (exit 77); exit 77; }; }
29929 fi
29930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29931 fi
29932 rm -f conftest.val
29933 else
29934   ac_cv_sizeof_size_t=0
29935 fi
29936 fi
29937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29938 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29939 cat >>confdefs.h <<_ACEOF
29940 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29941 _ACEOF
29942
29943
29944
29945
29946 cat >>confdefs.h <<_ACEOF
29947 #define NFS_STATEDIR "$statedir"
29948 _ACEOF
29949
29950
29951 if test "x$cross_compiling" = "xno"; then
29952         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29953         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29954         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29955         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29956 else
29957         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29958         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29959         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29960         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29961 fi
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973 case $host in
29974   alpha*)
29975     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
29976   *)
29977     ARCHFLAGS="" ;;
29978 esac
29979
29980 my_am_cflags="-Wall $ARCHFLAGS -pipe"
29981
29982 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
29983
29984 AM_CFLAGS="$my_am_cflags"
29985
29986
29987 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29988 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29989
29990
29991 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
29992
29993 cat >confcache <<\_ACEOF
29994 # This file is a shell script that caches the results of configure
29995 # tests run on this system so they can be shared between configure
29996 # scripts and configure runs, see configure's option --config-cache.
29997 # It is not useful on other systems.  If it contains results you don't
29998 # want to keep, you may remove or edit it.
29999 #
30000 # config.status only pays attention to the cache file if you give it
30001 # the --recheck option to rerun configure.
30002 #
30003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30005 # following values.
30006
30007 _ACEOF
30008
30009 # The following way of writing the cache mishandles newlines in values,
30010 # but we know of no workaround that is simple, portable, and efficient.
30011 # So, we kill variables containing newlines.
30012 # Ultrix sh set writes to stderr and can't be redirected directly,
30013 # and sets the high bit in the cache file unless we assign to the vars.
30014 (
30015   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30016     eval ac_val=\$$ac_var
30017     case $ac_val in #(
30018     *${as_nl}*)
30019       case $ac_var in #(
30020       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30021 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30022       esac
30023       case $ac_var in #(
30024       _ | IFS | as_nl) ;; #(
30025       *) $as_unset $ac_var ;;
30026       esac ;;
30027     esac
30028   done
30029
30030   (set) 2>&1 |
30031     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30032     *${as_nl}ac_space=\ *)
30033       # `set' does not quote correctly, so add quotes (double-quote
30034       # substitution turns \\\\ into \\, and sed turns \\ into \).
30035       sed -n \
30036         "s/'/'\\\\''/g;
30037           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30038       ;; #(
30039     *)
30040       # `set' quotes correctly as required by POSIX, so do not add quotes.
30041       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30042       ;;
30043     esac |
30044     sort
30045 ) |
30046   sed '
30047      /^ac_cv_env_/b end
30048      t clear
30049      :clear
30050      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30051      t end
30052      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30053      :end' >>confcache
30054 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30055   if test -w "$cache_file"; then
30056     test "x$cache_file" != "x/dev/null" &&
30057       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30058 echo "$as_me: updating cache $cache_file" >&6;}
30059     cat confcache >$cache_file
30060   else
30061     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30062 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30063   fi
30064 fi
30065 rm -f confcache
30066
30067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30068 # Let make expand exec_prefix.
30069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30070
30071 DEFS=-DHAVE_CONFIG_H
30072
30073 ac_libobjs=
30074 ac_ltlibobjs=
30075 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30076   # 1. Remove the extension, and $U if already installed.
30077   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30078   ac_i=`echo "$ac_i" | sed "$ac_script"`
30079   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30080   #    will be set to the directory where LIBOBJS objects are built.
30081   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30082   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30083 done
30084 LIBOBJS=$ac_libobjs
30085
30086 LTLIBOBJS=$ac_ltlibobjs
30087
30088
30089 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30090   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30091 Usually this means the macro was only invoked conditionally." >&5
30092 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&2;}
30094    { (exit 1); exit 1; }; }
30095 fi
30096 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30097   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30098 Usually this means the macro was only invoked conditionally." >&5
30099 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&2;}
30101    { (exit 1); exit 1; }; }
30102 fi
30103 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30104   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30105 Usually this means the macro was only invoked conditionally." >&5
30106 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30107 Usually this means the macro was only invoked conditionally." >&2;}
30108    { (exit 1); exit 1; }; }
30109 fi
30110 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30111   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30112 Usually this means the macro was only invoked conditionally." >&5
30113 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30114 Usually this means the macro was only invoked conditionally." >&2;}
30115    { (exit 1); exit 1; }; }
30116 fi
30117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30118   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30119 Usually this means the macro was only invoked conditionally." >&5
30120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30121 Usually this means the macro was only invoked conditionally." >&2;}
30122    { (exit 1); exit 1; }; }
30123 fi
30124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30125   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30126 Usually this means the macro was only invoked conditionally." >&5
30127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30128 Usually this means the macro was only invoked conditionally." >&2;}
30129    { (exit 1); exit 1; }; }
30130 fi
30131 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30132   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30133 Usually this means the macro was only invoked conditionally." >&5
30134 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30135 Usually this means the macro was only invoked conditionally." >&2;}
30136    { (exit 1); exit 1; }; }
30137 fi
30138 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30139   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30140 Usually this means the macro was only invoked conditionally." >&5
30141 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30142 Usually this means the macro was only invoked conditionally." >&2;}
30143    { (exit 1); exit 1; }; }
30144 fi
30145
30146 : ${CONFIG_STATUS=./config.status}
30147 ac_clean_files_save=$ac_clean_files
30148 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30149 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30150 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30151 cat >$CONFIG_STATUS <<_ACEOF
30152 #! $SHELL
30153 # Generated by $as_me.
30154 # Run this file to recreate the current configuration.
30155 # Compiler output produced by configure, useful for debugging
30156 # configure, is in config.log if it exists.
30157
30158 debug=false
30159 ac_cs_recheck=false
30160 ac_cs_silent=false
30161 SHELL=\${CONFIG_SHELL-$SHELL}
30162 _ACEOF
30163
30164 cat >>$CONFIG_STATUS <<\_ACEOF
30165 ## --------------------- ##
30166 ## M4sh Initialization.  ##
30167 ## --------------------- ##
30168
30169 # Be Bourne compatible
30170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30171   emulate sh
30172   NULLCMD=:
30173   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30174   # is contrary to our usage.  Disable this feature.
30175   alias -g '${1+"$@"}'='"$@"'
30176   setopt NO_GLOB_SUBST
30177 else
30178   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30179 fi
30180 BIN_SH=xpg4; export BIN_SH # for Tru64
30181 DUALCASE=1; export DUALCASE # for MKS sh
30182
30183
30184 # PATH needs CR
30185 # Avoid depending upon Character Ranges.
30186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30189 as_cr_digits='0123456789'
30190 as_cr_alnum=$as_cr_Letters$as_cr_digits
30191
30192 # The user is always right.
30193 if test "${PATH_SEPARATOR+set}" != set; then
30194   echo "#! /bin/sh" >conf$$.sh
30195   echo  "exit 0"   >>conf$$.sh
30196   chmod +x conf$$.sh
30197   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30198     PATH_SEPARATOR=';'
30199   else
30200     PATH_SEPARATOR=:
30201   fi
30202   rm -f conf$$.sh
30203 fi
30204
30205 # Support unset when possible.
30206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30207   as_unset=unset
30208 else
30209   as_unset=false
30210 fi
30211
30212
30213 # IFS
30214 # We need space, tab and new line, in precisely that order.  Quoting is
30215 # there to prevent editors from complaining about space-tab.
30216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30217 # splitting by setting IFS to empty value.)
30218 as_nl='
30219 '
30220 IFS=" ""        $as_nl"
30221
30222 # Find who we are.  Look in the path if we contain no directory separator.
30223 case $0 in
30224   *[\\/]* ) as_myself=$0 ;;
30225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30226 for as_dir in $PATH
30227 do
30228   IFS=$as_save_IFS
30229   test -z "$as_dir" && as_dir=.
30230   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30231 done
30232 IFS=$as_save_IFS
30233
30234      ;;
30235 esac
30236 # We did not find ourselves, most probably we were run as `sh COMMAND'
30237 # in which case we are not to be found in the path.
30238 if test "x$as_myself" = x; then
30239   as_myself=$0
30240 fi
30241 if test ! -f "$as_myself"; then
30242   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30243   { (exit 1); exit 1; }
30244 fi
30245
30246 # Work around bugs in pre-3.0 UWIN ksh.
30247 for as_var in ENV MAIL MAILPATH
30248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30249 done
30250 PS1='$ '
30251 PS2='> '
30252 PS4='+ '
30253
30254 # NLS nuisances.
30255 for as_var in \
30256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30258   LC_TELEPHONE LC_TIME
30259 do
30260   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30261     eval $as_var=C; export $as_var
30262   else
30263     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30264   fi
30265 done
30266
30267 # Required to use basename.
30268 if expr a : '\(a\)' >/dev/null 2>&1 &&
30269    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30270   as_expr=expr
30271 else
30272   as_expr=false
30273 fi
30274
30275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30276   as_basename=basename
30277 else
30278   as_basename=false
30279 fi
30280
30281
30282 # Name of the executable.
30283 as_me=`$as_basename -- "$0" ||
30284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30285          X"$0" : 'X\(//\)$' \| \
30286          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30287 echo X/"$0" |
30288     sed '/^.*\/\([^/][^/]*\)\/*$/{
30289             s//\1/
30290             q
30291           }
30292           /^X\/\(\/\/\)$/{
30293             s//\1/
30294             q
30295           }
30296           /^X\/\(\/\).*/{
30297             s//\1/
30298             q
30299           }
30300           s/.*/./; q'`
30301
30302 # CDPATH.
30303 $as_unset CDPATH
30304
30305
30306
30307   as_lineno_1=$LINENO
30308   as_lineno_2=$LINENO
30309   test "x$as_lineno_1" != "x$as_lineno_2" &&
30310   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30311
30312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30313   # uniformly replaced by the line number.  The first 'sed' inserts a
30314   # line-number line after each line using $LINENO; the second 'sed'
30315   # does the real work.  The second script uses 'N' to pair each
30316   # line-number line with the line containing $LINENO, and appends
30317   # trailing '-' during substitution so that $LINENO is not a special
30318   # case at line end.
30319   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30320   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30321   # E. McMahon (1931-1989) for sed's syntax.  :-)
30322   sed -n '
30323     p
30324     /[$]LINENO/=
30325   ' <$as_myself |
30326     sed '
30327       s/[$]LINENO.*/&-/
30328       t lineno
30329       b
30330       :lineno
30331       N
30332       :loop
30333       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30334       t loop
30335       s/-\n.*//
30336     ' >$as_me.lineno &&
30337   chmod +x "$as_me.lineno" ||
30338     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30339    { (exit 1); exit 1; }; }
30340
30341   # Don't try to exec as it changes $[0], causing all sort of problems
30342   # (the dirname of $[0] is not the place where we might find the
30343   # original and so on.  Autoconf is especially sensitive to this).
30344   . "./$as_me.lineno"
30345   # Exit status is that of the last command.
30346   exit
30347 }
30348
30349
30350 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30351   as_dirname=dirname
30352 else
30353   as_dirname=false
30354 fi
30355
30356 ECHO_C= ECHO_N= ECHO_T=
30357 case `echo -n x` in
30358 -n*)
30359   case `echo 'x\c'` in
30360   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30361   *)   ECHO_C='\c';;
30362   esac;;
30363 *)
30364   ECHO_N='-n';;
30365 esac
30366
30367 if expr a : '\(a\)' >/dev/null 2>&1 &&
30368    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30369   as_expr=expr
30370 else
30371   as_expr=false
30372 fi
30373
30374 rm -f conf$$ conf$$.exe conf$$.file
30375 if test -d conf$$.dir; then
30376   rm -f conf$$.dir/conf$$.file
30377 else
30378   rm -f conf$$.dir
30379   mkdir conf$$.dir
30380 fi
30381 echo >conf$$.file
30382 if ln -s conf$$.file conf$$ 2>/dev/null; then
30383   as_ln_s='ln -s'
30384   # ... but there are two gotchas:
30385   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30386   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30387   # In both cases, we have to default to `cp -p'.
30388   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30389     as_ln_s='cp -p'
30390 elif ln conf$$.file conf$$ 2>/dev/null; then
30391   as_ln_s=ln
30392 else
30393   as_ln_s='cp -p'
30394 fi
30395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30396 rmdir conf$$.dir 2>/dev/null
30397
30398 if mkdir -p . 2>/dev/null; then
30399   as_mkdir_p=:
30400 else
30401   test -d ./-p && rmdir ./-p
30402   as_mkdir_p=false
30403 fi
30404
30405 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
30406 # systems may use methods other than mode bits to determine executability.
30407 cat >conf$$.file <<_ASEOF
30408 #! /bin/sh
30409 exit 0
30410 _ASEOF
30411 chmod +x conf$$.file
30412 if test -x conf$$.file >/dev/null 2>&1; then
30413   as_executable_p="test -x"
30414 else
30415   as_executable_p=:
30416 fi
30417 rm -f conf$$.file
30418
30419 # Sed expression to map a string onto a valid CPP name.
30420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30421
30422 # Sed expression to map a string onto a valid variable name.
30423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30424
30425
30426 exec 6>&1
30427
30428 # Save the log message, to keep $[0] and so on meaningful, and to
30429 # report actual input values of CONFIG_FILES etc. instead of their
30430 # values after options handling.
30431 ac_log="
30432 This file was extended by linux nfs-utils $as_me 1.0.9-pre1, which was
30433 generated by GNU Autoconf 2.59e.  Invocation command line was
30434
30435   CONFIG_FILES    = $CONFIG_FILES
30436   CONFIG_HEADERS  = $CONFIG_HEADERS
30437   CONFIG_LINKS    = $CONFIG_LINKS
30438   CONFIG_COMMANDS = $CONFIG_COMMANDS
30439   $ $0 $@
30440
30441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30442 "
30443
30444 _ACEOF
30445
30446 cat >>$CONFIG_STATUS <<_ACEOF
30447 # Files that config.status was made for.
30448 config_files="$ac_config_files"
30449 config_headers="$ac_config_headers"
30450 config_commands="$ac_config_commands"
30451
30452 _ACEOF
30453
30454 cat >>$CONFIG_STATUS <<\_ACEOF
30455 ac_cs_usage="\
30456 \`$as_me' instantiates files from templates according to the
30457 current configuration.
30458
30459 Usage: $0 [OPTIONS] [FILE]...
30460
30461   -h, --help       print this help, then exit
30462   -V, --version    print version number, then exit
30463   -q, --quiet      do not print progress messages
30464   -d, --debug      don't remove temporary files
30465       --recheck    update $as_me by reconfiguring in the same conditions
30466   --file=FILE[:TEMPLATE]
30467                    instantiate the configuration file FILE
30468   --header=FILE[:TEMPLATE]
30469                    instantiate the configuration header FILE
30470
30471 Configuration files:
30472 $config_files
30473
30474 Configuration headers:
30475 $config_headers
30476
30477 Configuration commands:
30478 $config_commands
30479
30480 Report bugs to <bug-autoconf@gnu.org>."
30481
30482 _ACEOF
30483 cat >>$CONFIG_STATUS <<_ACEOF
30484 ac_cs_version="\\
30485 linux nfs-utils config.status 1.0.9-pre1
30486 configured by $0, generated by GNU Autoconf 2.59e,
30487   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30488
30489 Copyright (C) 2006 Free Software Foundation, Inc.
30490 This config.status script is free software; the Free Software Foundation
30491 gives unlimited permission to copy, distribute and modify it."
30492
30493 ac_pwd='$ac_pwd'
30494 srcdir='$srcdir'
30495 INSTALL='$INSTALL'
30496 _ACEOF
30497
30498 cat >>$CONFIG_STATUS <<\_ACEOF
30499 # If no file are specified by the user, then we need to provide default
30500 # value.  By we need to know if files were specified by the user.
30501 ac_need_defaults=:
30502 while test $# != 0
30503 do
30504   case $1 in
30505   --*=*)
30506     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30507     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30508     ac_shift=:
30509     ;;
30510   *)
30511     ac_option=$1
30512     ac_optarg=$2
30513     ac_shift=shift
30514     ;;
30515   esac
30516
30517   case $ac_option in
30518   # Handling of the options.
30519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30520     ac_cs_recheck=: ;;
30521   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30522     echo "$ac_cs_version"; exit ;;
30523   --debug | --debu | --deb | --de | --d | -d )
30524     debug=: ;;
30525   --file | --fil | --fi | --f )
30526     $ac_shift
30527     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30528     ac_need_defaults=false;;
30529   --header | --heade | --head | --hea )
30530     $ac_shift
30531     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30532     ac_need_defaults=false;;
30533   --he | --h)
30534     # Conflict between --help and --header
30535     { echo "$as_me: error: ambiguous option: $1
30536 Try \`$0 --help' for more information." >&2
30537    { (exit 1); exit 1; }; };;
30538   --help | --hel | -h )
30539     echo "$ac_cs_usage"; exit ;;
30540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30541   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30542     ac_cs_silent=: ;;
30543
30544   # This is an error.
30545   -*) { echo "$as_me: error: unrecognized option: $1
30546 Try \`$0 --help' for more information." >&2
30547    { (exit 1); exit 1; }; } ;;
30548
30549   *) ac_config_targets="$ac_config_targets $1"
30550      ac_need_defaults=false ;;
30551
30552   esac
30553   shift
30554 done
30555
30556 ac_configure_extra_args=
30557
30558 if $ac_cs_silent; then
30559   exec 6>/dev/null
30560   ac_configure_extra_args="$ac_configure_extra_args --silent"
30561 fi
30562
30563 _ACEOF
30564 cat >>$CONFIG_STATUS <<_ACEOF
30565 if \$ac_cs_recheck; then
30566   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30567   CONFIG_SHELL=$SHELL
30568   export CONFIG_SHELL
30569   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30570 fi
30571
30572 _ACEOF
30573 cat >>$CONFIG_STATUS <<\_ACEOF
30574 exec 5>>config.log
30575 {
30576   echo
30577   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30578 ## Running $as_me. ##
30579 _ASBOX
30580   echo "$ac_log"
30581 } >&5
30582
30583 _ACEOF
30584 cat >>$CONFIG_STATUS <<_ACEOF
30585 #
30586 # INIT-COMMANDS
30587 #
30588 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30589
30590 _ACEOF
30591
30592 cat >>$CONFIG_STATUS <<\_ACEOF
30593
30594 # Handling of arguments.
30595 for ac_config_target in $ac_config_targets
30596 do
30597   case $ac_config_target in
30598     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30599     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30600     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30601     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30602     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30603     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30604     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30605     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30606     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30607     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30608     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30609     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30610     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30611     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30612     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
30613     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
30614     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30615     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30616     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30617     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30618     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30619     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30620     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30621     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30622     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
30623     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30624     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30625     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30626     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30627     "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
30628     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
30629     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30630     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30631
30632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30634    { (exit 1); exit 1; }; };;
30635   esac
30636 done
30637
30638
30639 # If the user did not use the arguments to specify the items to instantiate,
30640 # then the envvar interface is used.  Set only those that are not.
30641 # We use the long form for the default assignment because of an extremely
30642 # bizarre bug on SunOS 4.1.3.
30643 if $ac_need_defaults; then
30644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30646   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30647 fi
30648
30649 # Have a temporary directory for convenience.  Make it in the build tree
30650 # simply because there is no reason against having it here, and in addition,
30651 # creating and moving files from /tmp can sometimes cause problems.
30652 # Hook for its removal unless debugging.
30653 # Note that there is a small window in which the directory will not be cleaned:
30654 # after its creation but before its name has been assigned to `$tmp'.
30655 $debug ||
30656 {
30657   tmp=
30658   trap 'exit_status=$?
30659   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30660 ' 0
30661   trap '{ (exit 1); exit 1; }' 1 2 13 15
30662 }
30663 # Create a (secure) tmp directory for tmp files.
30664
30665 {
30666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30667   test -n "$tmp" && test -d "$tmp"
30668 }  ||
30669 {
30670   tmp=./conf$$-$RANDOM
30671   (umask 077 && mkdir "$tmp")
30672 } ||
30673 {
30674    echo "$me: cannot create a temporary directory in ." >&2
30675    { (exit 1); exit 1; }
30676 }
30677
30678 #
30679 # Set up the sed scripts for CONFIG_FILES section.
30680 #
30681
30682 # No need to generate the scripts if there are no CONFIG_FILES.
30683 # This happens for instance when ./config.status config.h
30684 if test -n "$CONFIG_FILES"; then
30685
30686 _ACEOF
30687
30688
30689
30690 ac_delim='%!_!# '
30691 for ac_last_try in false false false false false :; do
30692   cat >conf$$subs.sed <<_ACEOF
30693 SHELL!$SHELL$ac_delim
30694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30700 exec_prefix!$exec_prefix$ac_delim
30701 prefix!$prefix$ac_delim
30702 program_transform_name!$program_transform_name$ac_delim
30703 bindir!$bindir$ac_delim
30704 sbindir!$sbindir$ac_delim
30705 libexecdir!$libexecdir$ac_delim
30706 datarootdir!$datarootdir$ac_delim
30707 datadir!$datadir$ac_delim
30708 sysconfdir!$sysconfdir$ac_delim
30709 sharedstatedir!$sharedstatedir$ac_delim
30710 localstatedir!$localstatedir$ac_delim
30711 includedir!$includedir$ac_delim
30712 oldincludedir!$oldincludedir$ac_delim
30713 docdir!$docdir$ac_delim
30714 infodir!$infodir$ac_delim
30715 htmldir!$htmldir$ac_delim
30716 dvidir!$dvidir$ac_delim
30717 pdfdir!$pdfdir$ac_delim
30718 psdir!$psdir$ac_delim
30719 libdir!$libdir$ac_delim
30720 localedir!$localedir$ac_delim
30721 mandir!$mandir$ac_delim
30722 DEFS!$DEFS$ac_delim
30723 ECHO_C!$ECHO_C$ac_delim
30724 ECHO_N!$ECHO_N$ac_delim
30725 ECHO_T!$ECHO_T$ac_delim
30726 LIBS!$LIBS$ac_delim
30727 build_alias!$build_alias$ac_delim
30728 host_alias!$host_alias$ac_delim
30729 target_alias!$target_alias$ac_delim
30730 build!$build$ac_delim
30731 build_cpu!$build_cpu$ac_delim
30732 build_vendor!$build_vendor$ac_delim
30733 build_os!$build_os$ac_delim
30734 host!$host$ac_delim
30735 host_cpu!$host_cpu$ac_delim
30736 host_vendor!$host_vendor$ac_delim
30737 host_os!$host_os$ac_delim
30738 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30739 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30740 INSTALL_DATA!$INSTALL_DATA$ac_delim
30741 CYGPATH_W!$CYGPATH_W$ac_delim
30742 PACKAGE!$PACKAGE$ac_delim
30743 VERSION!$VERSION$ac_delim
30744 ACLOCAL!$ACLOCAL$ac_delim
30745 AUTOCONF!$AUTOCONF$ac_delim
30746 AUTOMAKE!$AUTOMAKE$ac_delim
30747 AUTOHEADER!$AUTOHEADER$ac_delim
30748 MAKEINFO!$MAKEINFO$ac_delim
30749 install_sh!$install_sh$ac_delim
30750 STRIP!$STRIP$ac_delim
30751 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30752 mkdir_p!$mkdir_p$ac_delim
30753 AWK!$AWK$ac_delim
30754 SET_MAKE!$SET_MAKE$ac_delim
30755 am__leading_dot!$am__leading_dot$ac_delim
30756 AMTAR!$AMTAR$ac_delim
30757 am__tar!$am__tar$ac_delim
30758 am__untar!$am__untar$ac_delim
30759 RELEASE!$RELEASE$ac_delim
30760 statedir!$statedir$ac_delim
30761 statduser!$statduser$ac_delim
30762 enable_nfsv3!$enable_nfsv3$ac_delim
30763 IDMAPD!$IDMAPD$ac_delim
30764 enable_nfsv4!$enable_nfsv4$ac_delim
30765 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30766 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30767 GSSD!$GSSD$ac_delim
30768 SVCGSSD!$SVCGSSD$ac_delim
30769 enable_gss!$enable_gss$ac_delim
30770 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30771 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30772 kprefix!$kprefix$ac_delim
30773 secure_statd!$secure_statd$ac_delim
30774 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
30775 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
30776 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30777 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30778 CC!$CC$ac_delim
30779 CFLAGS!$CFLAGS$ac_delim
30780 LDFLAGS!$LDFLAGS$ac_delim
30781 CPPFLAGS!$CPPFLAGS$ac_delim
30782 ac_ct_CC!$ac_ct_CC$ac_delim
30783 EXEEXT!$EXEEXT$ac_delim
30784 OBJEXT!$OBJEXT$ac_delim
30785 DEPDIR!$DEPDIR$ac_delim
30786 am__include!$am__include$ac_delim
30787 am__quote!$am__quote$ac_delim
30788 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30789 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30790 _ACEOF
30791
30792   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30793     break
30794   elif $ac_last_try; then
30795     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30797    { (exit 1); exit 1; }; }
30798   else
30799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30800   fi
30801 done
30802
30803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30804 if test -n "$ac_eof"; then
30805   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30806   ac_eof=`expr $ac_eof + 1`
30807 fi
30808
30809 cat >>$CONFIG_STATUS <<_ACEOF
30810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30812 _ACEOF
30813 sed '
30814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30815 s/^/s,@/; s/!/@,|#_!!_#|/
30816 :n
30817 t n
30818 s/'"$ac_delim"'$/,g/; t
30819 s/$/\\/; p
30820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30821 ' >>$CONFIG_STATUS <conf$$subs.sed
30822 rm -f conf$$subs.sed
30823 cat >>$CONFIG_STATUS <<_ACEOF
30824 CEOF$ac_eof
30825 _ACEOF
30826
30827
30828 ac_delim='%!_!# '
30829 for ac_last_try in false false false false false :; do
30830   cat >conf$$subs.sed <<_ACEOF
30831 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30832 CCDEPMODE!$CCDEPMODE$ac_delim
30833 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30834 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30835 LIBWRAP!$LIBWRAP$ac_delim
30836 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30837 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30838 CXX!$CXX$ac_delim
30839 CXXFLAGS!$CXXFLAGS$ac_delim
30840 ac_ct_CXX!$ac_ct_CXX$ac_delim
30841 CXXDEPMODE!$CXXDEPMODE$ac_delim
30842 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30843 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30844 CPP!$CPP$ac_delim
30845 LN_S!$LN_S$ac_delim
30846 GREP!$GREP$ac_delim
30847 EGREP!$EGREP$ac_delim
30848 ECHO!$ECHO$ac_delim
30849 AR!$AR$ac_delim
30850 RANLIB!$RANLIB$ac_delim
30851 CXXCPP!$CXXCPP$ac_delim
30852 F77!$F77$ac_delim
30853 FFLAGS!$FFLAGS$ac_delim
30854 ac_ct_F77!$ac_ct_F77$ac_delim
30855 LIBTOOL!$LIBTOOL$ac_delim
30856 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30857 LD!$LD$ac_delim
30858 PKG_CONFIG!$PKG_CONFIG$ac_delim
30859 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30860 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30861 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
30862 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
30863 LIBSOCKET!$LIBSOCKET$ac_delim
30864 LIBNSL!$LIBNSL$ac_delim
30865 LIBCRYPT!$LIBCRYPT$ac_delim
30866 LIBBSD!$LIBBSD$ac_delim
30867 KRBDIR!$KRBDIR$ac_delim
30868 KRBLIBS!$KRBLIBS$ac_delim
30869 KRBCFLAGS!$KRBCFLAGS$ac_delim
30870 K5VERS!$K5VERS$ac_delim
30871 ALLOCA!$ALLOCA$ac_delim
30872 LIBOBJS!$LIBOBJS$ac_delim
30873 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30874 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30875 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30876 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30877 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30878 AM_CFLAGS!$AM_CFLAGS$ac_delim
30879 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30880 LTLIBOBJS!$LTLIBOBJS$ac_delim
30881 _ACEOF
30882
30883   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
30884     break
30885   elif $ac_last_try; then
30886     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30887 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30888    { (exit 1); exit 1; }; }
30889   else
30890     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30891   fi
30892 done
30893
30894 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30895 if test -n "$ac_eof"; then
30896   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30897   ac_eof=`expr $ac_eof + 1`
30898 fi
30899
30900 cat >>$CONFIG_STATUS <<_ACEOF
30901 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30903 _ACEOF
30904 sed '
30905 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30906 s/^/s,@/; s/!/@,|#_!!_#|/
30907 :n
30908 t n
30909 s/'"$ac_delim"'$/,g/; t
30910 s/$/\\/; p
30911 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30912 ' >>$CONFIG_STATUS <conf$$subs.sed
30913 rm -f conf$$subs.sed
30914 cat >>$CONFIG_STATUS <<_ACEOF
30915 :end
30916 s/|#_!!_#|//g
30917 CEOF$ac_eof
30918 _ACEOF
30919
30920
30921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30923 # trailing colons and then remove the whole line if VPATH becomes empty
30924 # (actually we leave an empty line to preserve line numbers).
30925 if test "x$srcdir" = x.; then
30926   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30927 s/:*\$(srcdir):*/:/
30928 s/:*\${srcdir}:*/:/
30929 s/:*@srcdir@:*/:/
30930 s/^\([^=]*=[     ]*\):*/\1/
30931 s/:*$//
30932 s/^[^=]*=[       ]*$//
30933 }'
30934 fi
30935
30936 cat >>$CONFIG_STATUS <<\_ACEOF
30937 fi # test -n "$CONFIG_FILES"
30938
30939
30940 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30941 do
30942   case $ac_tag in
30943   :[FHLC]) ac_mode=$ac_tag; continue;;
30944   esac
30945   case $ac_mode$ac_tag in
30946   :[FHL]*:*);;
30947   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30948 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30949    { (exit 1); exit 1; }; };;
30950   :[FH]-) ac_tag=-:-;;
30951   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30952   esac
30953   ac_save_IFS=$IFS
30954   IFS=:
30955   set x $ac_tag
30956   IFS=$ac_save_IFS
30957   shift
30958   ac_file=$1
30959   shift
30960
30961   case $ac_mode in
30962   :L) ac_source=$1;;
30963   :[FH])
30964     ac_file_inputs=
30965     for ac_f
30966     do
30967       case $ac_f in
30968       -) ac_f="$tmp/stdin";;
30969       *) # Look for the file first in the build tree, then in the source tree
30970          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30971          # because $ac_f cannot contain `:'.
30972          test -f "$ac_f" ||
30973            case $ac_f in
30974            [\\/$]*) false;;
30975            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30976            esac ||
30977            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30978 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30979    { (exit 1); exit 1; }; };;
30980       esac
30981       ac_file_inputs="$ac_file_inputs $ac_f"
30982     done
30983
30984     # Let's still pretend it is `configure' which instantiates (i.e., don't
30985     # use $as_me), people would be surprised to read:
30986     #    /* config.h.  Generated by config.status.  */
30987     configure_input="Generated from "`IFS=:
30988           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30989     if test x"$ac_file" != x-; then
30990       configure_input="$ac_file.  $configure_input"
30991       { echo "$as_me:$LINENO: creating $ac_file" >&5
30992 echo "$as_me: creating $ac_file" >&6;}
30993     fi
30994
30995     case $ac_tag in
30996     *:-:* | *:-) cat >"$tmp/stdin";;
30997     esac
30998     ;;
30999   esac
31000
31001   ac_dir=`$as_dirname -- "$ac_file" ||
31002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31003          X"$ac_file" : 'X\(//\)[^/]' \| \
31004          X"$ac_file" : 'X\(//\)$' \| \
31005          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31006 echo X"$ac_file" |
31007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31008             s//\1/
31009             q
31010           }
31011           /^X\(\/\/\)[^/].*/{
31012             s//\1/
31013             q
31014           }
31015           /^X\(\/\/\)$/{
31016             s//\1/
31017             q
31018           }
31019           /^X\(\/\).*/{
31020             s//\1/
31021             q
31022           }
31023           s/.*/./; q'`
31024   { as_dir="$ac_dir"
31025   case $as_dir in #(
31026   -*) as_dir=./$as_dir;;
31027   esac
31028   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31029     as_dirs=
31030     while :; do
31031       case $as_dir in #(
31032       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31033       *) as_qdir=$as_dir;;
31034       esac
31035       as_dirs="'$as_qdir' $as_dirs"
31036       as_dir=`$as_dirname -- "$as_dir" ||
31037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31038          X"$as_dir" : 'X\(//\)[^/]' \| \
31039          X"$as_dir" : 'X\(//\)$' \| \
31040          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31041 echo X"$as_dir" |
31042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31043             s//\1/
31044             q
31045           }
31046           /^X\(\/\/\)[^/].*/{
31047             s//\1/
31048             q
31049           }
31050           /^X\(\/\/\)$/{
31051             s//\1/
31052             q
31053           }
31054           /^X\(\/\).*/{
31055             s//\1/
31056             q
31057           }
31058           s/.*/./; q'`
31059       test -d "$as_dir" && break
31060     done
31061     test -z "$as_dirs" || eval "mkdir $as_dirs"
31062   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31064    { (exit 1); exit 1; }; }; }
31065   ac_builddir=.
31066
31067 case "$ac_dir" in
31068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31069 *)
31070   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31071   # A ".." for each directory in $ac_dir_suffix.
31072   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31073   case $ac_top_builddir_sub in
31074   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31075   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31076   esac ;;
31077 esac
31078 ac_abs_top_builddir=$ac_pwd
31079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31080 # for backward compatibility:
31081 ac_top_builddir=$ac_top_build_prefix
31082
31083 case $srcdir in
31084   .)  # We are building in place.
31085     ac_srcdir=.
31086     ac_top_srcdir=$ac_top_builddir_sub
31087     ac_abs_top_srcdir=$ac_pwd ;;
31088   [\\/]* | ?:[\\/]* )  # Absolute name.
31089     ac_srcdir=$srcdir$ac_dir_suffix;
31090     ac_top_srcdir=$srcdir
31091     ac_abs_top_srcdir=$srcdir ;;
31092   *) # Relative name.
31093     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31094     ac_top_srcdir=$ac_top_build_prefix$srcdir
31095     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31096 esac
31097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31098
31099
31100   case $ac_mode in
31101   :F)
31102   #
31103   # CONFIG_FILE
31104   #
31105
31106   case $INSTALL in
31107   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31108   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31109   esac
31110 _ACEOF
31111
31112 cat >>$CONFIG_STATUS <<\_ACEOF
31113 # If the template does not know about datarootdir, expand it.
31114 # FIXME: This hack should be removed a few years after 2.60.
31115 ac_datarootdir_hack=; ac_datarootdir_seen=
31116
31117 case `sed -n '/datarootdir/ {
31118   p
31119   q
31120 }
31121 /@datadir@/p
31122 /@docdir@/p
31123 /@infodir@/p
31124 /@localedir@/p
31125 /@mandir@/p
31126 ' $ac_file_inputs` in
31127 *datarootdir*) ac_datarootdir_seen=yes;;
31128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31129   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31130 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31131 _ACEOF
31132 cat >>$CONFIG_STATUS <<_ACEOF
31133   ac_datarootdir_hack='
31134   s&@datadir@&$datadir&g
31135   s&@docdir@&$docdir&g
31136   s&@infodir@&$infodir&g
31137   s&@localedir@&$localedir&g
31138   s&@mandir@&$mandir&g
31139     s&\\\${datarootdir}&$datarootdir&g' ;;
31140 esac
31141 _ACEOF
31142
31143 # Neutralize VPATH when `$srcdir' = `.'.
31144 # Shell code in configure.ac might set extrasub.
31145 # FIXME: do we really want to maintain this feature?
31146 cat >>$CONFIG_STATUS <<_ACEOF
31147   sed "$ac_vpsub
31148 $extrasub
31149 _ACEOF
31150 cat >>$CONFIG_STATUS <<\_ACEOF
31151 :t
31152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31153 s&@configure_input@&$configure_input&;t t
31154 s&@top_builddir@&$ac_top_builddir_sub&;t t
31155 s&@srcdir@&$ac_srcdir&;t t
31156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31157 s&@top_srcdir@&$ac_top_srcdir&;t t
31158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31159 s&@builddir@&$ac_builddir&;t t
31160 s&@abs_builddir@&$ac_abs_builddir&;t t
31161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31162 s&@INSTALL@&$ac_INSTALL&;t t
31163 $ac_datarootdir_hack
31164 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31165
31166 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31167   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31168   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31169 which seems to be undefined.  Please make sure it is defined." >&5
31170 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31171 which seems to be undefined.  Please make sure it is defined." >&2;}
31172
31173   rm -f "$tmp/stdin"
31174   case $ac_file in
31175   -) cat "$tmp/out"; rm -f "$tmp/out";;
31176   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31177   esac
31178  ;;
31179   :H)
31180   #
31181   # CONFIG_HEADER
31182   #
31183 _ACEOF
31184
31185 # Transform confdefs.h into a sed script `conftest.defines', that
31186 # substitutes the proper values into config.h.in to produce config.h.
31187 rm -f conftest.defines conftest.tail
31188 # First, append a space to every undef/define line, to ease matching.
31189 echo 's/$/ /' >conftest.defines
31190 # Then, protect against being on the right side of a sed subst, or in
31191 # an unquoted here document, in config.status.  If some macros were
31192 # called several times there might be several #defines for the same
31193 # symbol, which is useless.  But do not sort them, since the last
31194 # AC_DEFINE must be honored.
31195 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31196 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31197 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31198 # PARAMS is the parameter list in the macro definition--in most cases, it's
31199 # just an empty string.
31200 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31201 ac_dB='\\)[      (].*,\\1define\\2'
31202 ac_dC=' '
31203 ac_dD=' ,'
31204
31205 uniq confdefs.h |
31206   sed -n '
31207         t rset
31208         :rset
31209         s/^[     ]*#[    ]*define[       ][      ]*//
31210         t ok
31211         d
31212         :ok
31213         s/[\\&,]/\\&/g
31214         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31215         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31216   ' >>conftest.defines
31217
31218 # Remove the space that was appended to ease matching.
31219 # Then replace #undef with comments.  This is necessary, for
31220 # example, in the case of _POSIX_SOURCE, which is predefined and required
31221 # on some systems where configure will not decide to define it.
31222 # (The regexp can be short, since the line contains either #define or #undef.)
31223 echo 's/ $//
31224 s,^[     #]*u.*,/* & */,' >>conftest.defines
31225
31226 # Break up conftest.defines:
31227 ac_max_sed_lines=50
31228
31229 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31230 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31231 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31232 # et cetera.
31233 ac_in='$ac_file_inputs'
31234 ac_out='"$tmp/out1"'
31235 ac_nxt='"$tmp/out2"'
31236
31237 while :
31238 do
31239   # Write a here document:
31240     cat >>$CONFIG_STATUS <<_ACEOF
31241     # First, check the format of the line:
31242     cat >"\$tmp/defines.sed" <<\\CEOF
31243 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31244 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31245 b
31246 :def
31247 _ACEOF
31248   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31249   echo 'CEOF
31250     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31251   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31252   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31253   grep . conftest.tail >/dev/null || break
31254   rm -f conftest.defines
31255   mv conftest.tail conftest.defines
31256 done
31257 rm -f conftest.defines conftest.tail
31258
31259 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31260 cat >>$CONFIG_STATUS <<\_ACEOF
31261   if test x"$ac_file" != x-; then
31262     echo "/* $configure_input  */" >"$tmp/config.h"
31263     cat "$ac_result" >>"$tmp/config.h"
31264     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31265       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31266 echo "$as_me: $ac_file is unchanged" >&6;}
31267     else
31268       rm -f $ac_file
31269       mv "$tmp/config.h" $ac_file
31270     fi
31271   else
31272     echo "/* $configure_input  */"
31273     cat "$ac_result"
31274   fi
31275   rm -f "$tmp/out12"
31276 # Compute $ac_file's index in $config_headers.
31277 _am_stamp_count=1
31278 for _am_header in $config_headers :; do
31279   case $_am_header in
31280     $ac_file | $ac_file:* )
31281       break ;;
31282     * )
31283       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31284   esac
31285 done
31286 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31287 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31288          X$ac_file : 'X\(//\)[^/]' \| \
31289          X$ac_file : 'X\(//\)$' \| \
31290          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31291 echo X$ac_file |
31292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31293             s//\1/
31294             q
31295           }
31296           /^X\(\/\/\)[^/].*/{
31297             s//\1/
31298             q
31299           }
31300           /^X\(\/\/\)$/{
31301             s//\1/
31302             q
31303           }
31304           /^X\(\/\).*/{
31305             s//\1/
31306             q
31307           }
31308           s/.*/./; q'`/stamp-h$_am_stamp_count
31309  ;;
31310
31311   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31312 echo "$as_me: executing $ac_file commands" >&6;}
31313  ;;
31314   esac
31315
31316
31317   case $ac_file$ac_mode in
31318     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31319   # Strip MF so we end up with the name of the file.
31320   mf=`echo "$mf" | sed -e 's/:.*$//'`
31321   # Check whether this is an Automake generated Makefile or not.
31322   # We used to match only the files named `Makefile.in', but
31323   # some people rename them; so instead we look at the file content.
31324   # Grep'ing the first line is not enough: some people post-process
31325   # each Makefile.in and add a new line on top of each file to say so.
31326   # So let's grep whole file.
31327   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31328     dirpart=`$as_dirname -- "$mf" ||
31329 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31330          X"$mf" : 'X\(//\)[^/]' \| \
31331          X"$mf" : 'X\(//\)$' \| \
31332          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31333 echo X"$mf" |
31334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31335             s//\1/
31336             q
31337           }
31338           /^X\(\/\/\)[^/].*/{
31339             s//\1/
31340             q
31341           }
31342           /^X\(\/\/\)$/{
31343             s//\1/
31344             q
31345           }
31346           /^X\(\/\).*/{
31347             s//\1/
31348             q
31349           }
31350           s/.*/./; q'`
31351   else
31352     continue
31353   fi
31354   # Extract the definition of DEPDIR, am__include, and am__quote
31355   # from the Makefile without running `make'.
31356   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31357   test -z "$DEPDIR" && continue
31358   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31359   test -z "am__include" && continue
31360   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31361   # When using ansi2knr, U may be empty or an underscore; expand it
31362   U=`sed -n 's/^U = //p' < "$mf"`
31363   # Find all dependency output files, they are included files with
31364   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31365   # simplest approach to changing $(DEPDIR) to its actual value in the
31366   # expansion.
31367   for file in `sed -n "
31368     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31369        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31370     # Make sure the directory exists.
31371     test -f "$dirpart/$file" && continue
31372     fdir=`$as_dirname -- "$file" ||
31373 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31374          X"$file" : 'X\(//\)[^/]' \| \
31375          X"$file" : 'X\(//\)$' \| \
31376          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31377 echo X"$file" |
31378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31379             s//\1/
31380             q
31381           }
31382           /^X\(\/\/\)[^/].*/{
31383             s//\1/
31384             q
31385           }
31386           /^X\(\/\/\)$/{
31387             s//\1/
31388             q
31389           }
31390           /^X\(\/\).*/{
31391             s//\1/
31392             q
31393           }
31394           s/.*/./; q'`
31395     { as_dir=$dirpart/$fdir
31396   case $as_dir in #(
31397   -*) as_dir=./$as_dir;;
31398   esac
31399   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31400     as_dirs=
31401     while :; do
31402       case $as_dir in #(
31403       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31404       *) as_qdir=$as_dir;;
31405       esac
31406       as_dirs="'$as_qdir' $as_dirs"
31407       as_dir=`$as_dirname -- "$as_dir" ||
31408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31409          X"$as_dir" : 'X\(//\)[^/]' \| \
31410          X"$as_dir" : 'X\(//\)$' \| \
31411          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31412 echo X"$as_dir" |
31413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31414             s//\1/
31415             q
31416           }
31417           /^X\(\/\/\)[^/].*/{
31418             s//\1/
31419             q
31420           }
31421           /^X\(\/\/\)$/{
31422             s//\1/
31423             q
31424           }
31425           /^X\(\/\).*/{
31426             s//\1/
31427             q
31428           }
31429           s/.*/./; q'`
31430       test -d "$as_dir" && break
31431     done
31432     test -z "$as_dirs" || eval "mkdir $as_dirs"
31433   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31434 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31435    { (exit 1); exit 1; }; }; }
31436     # echo "creating $dirpart/$file"
31437     echo '# dummy' > "$dirpart/$file"
31438   done
31439 done
31440  ;;
31441
31442   esac
31443 done # for ac_tag
31444
31445
31446 { (exit 0); exit 0; }
31447 _ACEOF
31448 chmod +x $CONFIG_STATUS
31449 ac_clean_files=$ac_clean_files_save
31450
31451
31452 # configure is writing to config.log, and then calls config.status.
31453 # config.status does its own redirection, appending to config.log.
31454 # Unfortunately, on DOS this fails, as config.log is still kept open
31455 # by configure, so config.status won't be able to write to it; its
31456 # output is simply discarded.  So we exec the FD to /dev/null,
31457 # effectively closing config.log, so it can be properly (re)opened and
31458 # appended to by config.status.  When coming back to configure, we
31459 # need to make the FD available again.
31460 if test "$no_create" != yes; then
31461   ac_cs_success=:
31462   ac_config_status_args=
31463   test "$silent" = yes &&
31464     ac_config_status_args="$ac_config_status_args --quiet"
31465   exec 5>/dev/null
31466   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31467   exec 5>>config.log
31468   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31469   # would make configure fail if this is the last instruction.
31470   $ac_cs_success || { (exit 1); exit 1; }
31471 fi
31472
31473