]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Debian patch 1.0.9-3
[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.
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'
717 PACKAGE_STRING='linux nfs-utils 1.0.9'
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 KRBLDFLAGS
896 K5VERS
897 ALLOCA
898 LIBOBJS
899 CFLAGS_FOR_BUILD
900 CXXFLAGS_FOR_BUILD
901 CPPFLAGS_FOR_BUILD
902 LDFLAGS_FOR_BUILD
903 AM_CPPFLAGS
904 AM_CFLAGS
905 ACLOCAL_AMFLAGS
906 LTLIBOBJS'
907 ac_subst_files=''
908       ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 CPPFLAGS
915 CXX
916 CXXFLAGS
917 CCC
918 CPP
919 CXXCPP
920 F77
921 FFLAGS
922 PKG_CONFIG
923 RPCSECGSS_CFLAGS
924 RPCSECGSS_LIBS
925 GSSAPI_CFLAGS
926 GSSAPI_LIBS'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
948
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
974
975 ac_prev=
976 ac_dashdash=
977 for ac_option
978 do
979   # If the previous option needs an argument, assign it.
980   if test -n "$ac_prev"; then
981     eval $ac_prev=\$ac_option
982     ac_prev=
983     continue
984   fi
985
986   case $ac_option in
987   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988   *)    ac_optarg=yes ;;
989   esac
990
991   # Accept the important Cygnus configure options, so we can diagnose typos.
992
993   case $ac_dashdash$ac_option in
994   --)
995     ac_dashdash=yes ;;
996
997   -bindir | --bindir | --bindi | --bind | --bin | --bi)
998     ac_prev=bindir ;;
999   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000     bindir=$ac_optarg ;;
1001
1002   -build | --build | --buil | --bui | --bu)
1003     ac_prev=build_alias ;;
1004   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005     build_alias=$ac_optarg ;;
1006
1007   -cache-file | --cache-file | --cache-fil | --cache-fi \
1008   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009     ac_prev=cache_file ;;
1010   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012     cache_file=$ac_optarg ;;
1013
1014   --config-cache | -C)
1015     cache_file=config.cache ;;
1016
1017   -datadir | --datadir | --datadi | --datad)
1018     ac_prev=datadir ;;
1019   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020     datadir=$ac_optarg ;;
1021
1022   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023   | --dataroo | --dataro | --datar)
1024     ac_prev=datarootdir ;;
1025   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027     datarootdir=$ac_optarg ;;
1028
1029   -disable-* | --disable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1036     eval enable_$ac_feature=no ;;
1037
1038   -docdir | --docdir | --docdi | --doc | --do)
1039     ac_prev=docdir ;;
1040   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041     docdir=$ac_optarg ;;
1042
1043   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044     ac_prev=dvidir ;;
1045   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046     dvidir=$ac_optarg ;;
1047
1048   -enable-* | --enable-*)
1049     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050     # Reject names that are not valid shell variable names.
1051     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053    { (exit 1); exit 1; }; }
1054     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055     eval enable_$ac_feature=\$ac_optarg ;;
1056
1057   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059   | --exec | --exe | --ex)
1060     ac_prev=exec_prefix ;;
1061   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063   | --exec=* | --exe=* | --ex=*)
1064     exec_prefix=$ac_optarg ;;
1065
1066   -gas | --gas | --ga | --g)
1067     # Obsolete; use --with-gas.
1068     with_gas=yes ;;
1069
1070   -help | --help | --hel | --he | -h)
1071     ac_init_help=long ;;
1072   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073     ac_init_help=recursive ;;
1074   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075     ac_init_help=short ;;
1076
1077   -host | --host | --hos | --ho)
1078     ac_prev=host_alias ;;
1079   -host=* | --host=* | --hos=* | --ho=*)
1080     host_alias=$ac_optarg ;;
1081
1082   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083     ac_prev=htmldir ;;
1084   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085   | --ht=*)
1086     htmldir=$ac_optarg ;;
1087
1088   -includedir | --includedir | --includedi | --included | --include \
1089   | --includ | --inclu | --incl | --inc)
1090     ac_prev=includedir ;;
1091   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092   | --includ=* | --inclu=* | --incl=* | --inc=*)
1093     includedir=$ac_optarg ;;
1094
1095   -infodir | --infodir | --infodi | --infod | --info | --inf)
1096     ac_prev=infodir ;;
1097   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098     infodir=$ac_optarg ;;
1099
1100   -libdir | --libdir | --libdi | --libd)
1101     ac_prev=libdir ;;
1102   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103     libdir=$ac_optarg ;;
1104
1105   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106   | --libexe | --libex | --libe)
1107     ac_prev=libexecdir ;;
1108   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109   | --libexe=* | --libex=* | --libe=*)
1110     libexecdir=$ac_optarg ;;
1111
1112   -localedir | --localedir | --localedi | --localed | --locale)
1113     ac_prev=localedir ;;
1114   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115     localedir=$ac_optarg ;;
1116
1117   -localstatedir | --localstatedir | --localstatedi | --localstated \
1118   | --localstate | --localstat | --localsta | --localst | --locals)
1119     ac_prev=localstatedir ;;
1120   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122     localstatedir=$ac_optarg ;;
1123
1124   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125     ac_prev=mandir ;;
1126   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127     mandir=$ac_optarg ;;
1128
1129   -nfp | --nfp | --nf)
1130     # Obsolete; use --without-fp.
1131     with_fp=no ;;
1132
1133   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134   | --no-cr | --no-c | -n)
1135     no_create=yes ;;
1136
1137   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139     no_recursion=yes ;;
1140
1141   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143   | --oldin | --oldi | --old | --ol | --o)
1144     ac_prev=oldincludedir ;;
1145   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148     oldincludedir=$ac_optarg ;;
1149
1150   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151     ac_prev=prefix ;;
1152   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153     prefix=$ac_optarg ;;
1154
1155   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156   | --program-pre | --program-pr | --program-p)
1157     ac_prev=program_prefix ;;
1158   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160     program_prefix=$ac_optarg ;;
1161
1162   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163   | --program-suf | --program-su | --program-s)
1164     ac_prev=program_suffix ;;
1165   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167     program_suffix=$ac_optarg ;;
1168
1169   -program-transform-name | --program-transform-name \
1170   | --program-transform-nam | --program-transform-na \
1171   | --program-transform-n | --program-transform- \
1172   | --program-transform | --program-transfor \
1173   | --program-transfo | --program-transf \
1174   | --program-trans | --program-tran \
1175   | --progr-tra | --program-tr | --program-t)
1176     ac_prev=program_transform_name ;;
1177   -program-transform-name=* | --program-transform-name=* \
1178   | --program-transform-nam=* | --program-transform-na=* \
1179   | --program-transform-n=* | --program-transform-=* \
1180   | --program-transform=* | --program-transfor=* \
1181   | --program-transfo=* | --program-transf=* \
1182   | --program-trans=* | --program-tran=* \
1183   | --progr-tra=* | --program-tr=* | --program-t=*)
1184     program_transform_name=$ac_optarg ;;
1185
1186   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187     ac_prev=pdfdir ;;
1188   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189     pdfdir=$ac_optarg ;;
1190
1191   -psdir | --psdir | --psdi | --psd | --ps)
1192     ac_prev=psdir ;;
1193   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194     psdir=$ac_optarg ;;
1195
1196   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197   | -silent | --silent | --silen | --sile | --sil)
1198     silent=yes ;;
1199
1200   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201     ac_prev=sbindir ;;
1202   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203   | --sbi=* | --sb=*)
1204     sbindir=$ac_optarg ;;
1205
1206   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208   | --sharedst | --shareds | --shared | --share | --shar \
1209   | --sha | --sh)
1210     ac_prev=sharedstatedir ;;
1211   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214   | --sha=* | --sh=*)
1215     sharedstatedir=$ac_optarg ;;
1216
1217   -site | --site | --sit)
1218     ac_prev=site ;;
1219   -site=* | --site=* | --sit=*)
1220     site=$ac_optarg ;;
1221
1222   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223     ac_prev=srcdir ;;
1224   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225     srcdir=$ac_optarg ;;
1226
1227   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228   | --syscon | --sysco | --sysc | --sys | --sy)
1229     ac_prev=sysconfdir ;;
1230   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232     sysconfdir=$ac_optarg ;;
1233
1234   -target | --target | --targe | --targ | --tar | --ta | --t)
1235     ac_prev=target_alias ;;
1236   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237     target_alias=$ac_optarg ;;
1238
1239   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240     verbose=yes ;;
1241
1242   -version | --version | --versio | --versi | --vers | -V)
1243     ac_init_version=: ;;
1244
1245   -with-* | --with-*)
1246     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247     # Reject names that are not valid shell variable names.
1248     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1249       { echo "$as_me: error: invalid package name: $ac_package" >&2
1250    { (exit 1); exit 1; }; }
1251     ac_package=`echo $ac_package| sed 's/-/_/g'`
1252     eval with_$ac_package=\$ac_optarg ;;
1253
1254   -without-* | --without-*)
1255     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid package name: $ac_package" >&2
1259    { (exit 1); exit 1; }; }
1260     ac_package=`echo $ac_package | sed 's/-/_/g'`
1261     eval with_$ac_package=no ;;
1262
1263   --x)
1264     # Obsolete; use --with-x.
1265     with_x=yes ;;
1266
1267   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268   | --x-incl | --x-inc | --x-in | --x-i)
1269     ac_prev=x_includes ;;
1270   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272     x_includes=$ac_optarg ;;
1273
1274   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276     ac_prev=x_libraries ;;
1277   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279     x_libraries=$ac_optarg ;;
1280
1281   -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283    { (exit 1); exit 1; }; }
1284     ;;
1285
1286   *=*)
1287     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291    { (exit 1); exit 1; }; }
1292     eval $ac_envvar=\$ac_optarg
1293     export $ac_envvar ;;
1294
1295   *)
1296     # FIXME: should be removed in autoconf 3.0.
1297     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301     ;;
1302
1303   esac
1304 done
1305
1306 if test -n "$ac_prev"; then
1307   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308   { echo "$as_me: error: missing argument to $ac_option" >&2
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 # Be sure to have absolute directory names.
1313 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314                 datadir sysconfdir sharedstatedir localstatedir includedir \
1315                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316                 libdir localedir mandir
1317 do
1318   eval ac_val=\$$ac_var
1319   case $ac_val in
1320     [\\/$]* | ?:[\\/]* )  continue;;
1321     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322   esac
1323   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324    { (exit 1); exit 1; }; }
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339     If a cross compiler is detected then cross compile mode will be used." >&2
1340   elif test "x$build_alias" != "x$host_alias"; then
1341     cross_compiling=yes
1342   fi
1343 fi
1344
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348 test "$silent" = yes && exec 6>/dev/null
1349
1350
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354   { echo "$as_me: error: Working directory cannot be determined" >&2
1355    { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357   { echo "$as_me: error: pwd does not report name of working directory" >&2
1358    { (exit 1); exit 1; }; }
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363   ac_srcdir_defaulted=yes
1364   # Try the directory containing this script, then the parent directory.
1365   ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367          X"$0" : 'X\(//\)[^/]' \| \
1368          X"$0" : 'X\(//\)$' \| \
1369          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 echo X"$0" |
1371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)[^/].*/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\).*/{
1384             s//\1/
1385             q
1386           }
1387           s/.*/./; q'`
1388   srcdir=$ac_confdir
1389   if test ! -r "$srcdir/$ac_unique_file"; then
1390     srcdir=..
1391   fi
1392 else
1393   ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398    { (exit 1); exit 1; }; }
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403    { (exit 1); exit 1; }; }
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_env_${ac_var}_value=\$${ac_var}
1418   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426   # Omit some internal or obsolete options to make the list less imposing.
1427   # This message is too long to be a string in the A/UX 3.1 sh.
1428   cat <<_ACEOF
1429 \`configure' configures linux nfs-utils 1.0.9 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439   -h, --help              display this help and exit
1440       --help=short        display options specific to this package
1441       --help=recursive    display the short help of all the included packages
1442   -V, --version           display version information and exit
1443   -q, --quiet, --silent   do not print \`checking...' messages
1444       --cache-file=FILE   cache test results in FILE [disabled]
1445   -C, --config-cache      alias for \`--cache-file=config.cache'
1446   -n, --no-create         do not create output files
1447       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450   --prefix=PREFIX         install architecture-independent files in PREFIX
1451                           [$ac_default_prefix]
1452   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453                           [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463   --bindir=DIR           user executables [EPREFIX/bin]
1464   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1465   --libexecdir=DIR       program executables [EPREFIX/libexec]
1466   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1467   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1468   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1469   --libdir=DIR           object code libraries [EPREFIX/lib]
1470   --includedir=DIR       C header files [PREFIX/include]
1471   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1472   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1473   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1474   --infodir=DIR          info documentation [DATAROOTDIR/info]
1475   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1476   --mandir=DIR           man documentation [DATAROOTDIR/man]
1477   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1478   --htmldir=DIR          html documentation [DOCDIR]
1479   --dvidir=DIR           dvi documentation [DOCDIR]
1480   --pdfdir=DIR           pdf documentation [DOCDIR]
1481   --psdir=DIR            ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of linux nfs-utils 1.0.9:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506   --enable-nfsv3          enable support for NFSv3 [default=yes]
1507   --enable-nfsv4          enable support for NFSv4 [default=yes]
1508   --enable-gss            enable support for rpcsec_gss [default=yes]
1509   --enable-kprefix        install progs as rpc.knfsd etc
1510   --enable-secure-statd   Only lockd can use statd (security)
1511   --enable-rquotad        enable rquotad [default=yes]
1512   --enable-mount          Create mount.nfs and don't use the util-linux
1513                           mount(8) functionality. [default=no]
1514   --disable-dependency-tracking  speeds up one-time build
1515   --enable-dependency-tracking   do not reject slow dependency extractors
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-libtool-lock  avoid locking (might break parallel builds)
1521
1522 Optional Packages:
1523   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525   --with-release=XXX      set release to XXX [1]
1526   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1527   --with-statduser=rpcuser
1528                           statd to run under [rpcuser or nobody]
1529   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1530                  (optionally in PATH)
1531   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1532   --with-pic              try to use only PIC/non-PIC objects [default=use
1533                           both]
1534   --with-tags[=TAGS]      include additional configurations [automatic]
1535   --with-krb5=DIR         use Kerberos v5 installation in DIR
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1543               you have headers in a nonstandard directory <include dir>
1544   CXX         C++ compiler command
1545   CXXFLAGS    C++ compiler flags
1546   CPP         C preprocessor
1547   CXXCPP      C++ preprocessor
1548   F77         Fortran 77 compiler command
1549   FFLAGS      Fortran 77 compiler flags
1550   PKG_CONFIG  path to pkg-config utility
1551   RPCSECGSS_CFLAGS
1552               C compiler flags for RPCSECGSS, overriding pkg-config
1553   RPCSECGSS_LIBS
1554               linker flags for RPCSECGSS, overriding pkg-config
1555   GSSAPI_CFLAGS
1556               C compiler flags for GSSAPI, overriding pkg-config
1557   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <nfs@lists.sf.net>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" || continue
1571     ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1577   # A ".." for each directory in $ac_dir_suffix.
1578   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1579   case $ac_top_builddir_sub in
1580   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582   esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590   .)  # We are building in place.
1591     ac_srcdir=.
1592     ac_top_srcdir=$ac_top_builddir_sub
1593     ac_abs_top_srcdir=$ac_pwd ;;
1594   [\\/]* | ?:[\\/]* )  # Absolute name.
1595     ac_srcdir=$srcdir$ac_dir_suffix;
1596     ac_top_srcdir=$srcdir
1597     ac_abs_top_srcdir=$srcdir ;;
1598   *) # Relative name.
1599     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600     ac_top_srcdir=$ac_top_build_prefix$srcdir
1601     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605     cd "$ac_dir" || { ac_status=$?; continue; }
1606     # Check for guested configure.
1607     if test -f "$ac_srcdir/configure.gnu"; then
1608       echo &&
1609       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610     elif test -f "$ac_srcdir/configure"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure" --help=recursive
1613     else
1614       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615     fi || ac_status=$?
1616     cd "$ac_pwd" || { ac_status=$?; break; }
1617   done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622   cat <<\_ACEOF
1623 linux nfs-utils configure 1.0.9
1624 generated by GNU Autoconf 2.59e
1625
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1630 _ACEOF
1631   exit
1632 fi
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1636
1637 It was created by linux nfs-utils $as_me 1.0.9, which was
1638 generated by GNU Autoconf 2.59e.  Invocation command line was
1639
1640   $ $0 $@
1641
1642 _ACEOF
1643 exec 5>>config.log
1644 {
1645 cat <<_ASUNAME
1646 ## --------- ##
1647 ## Platform. ##
1648 ## --------- ##
1649
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1655
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1658
1659 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1660 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1663 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1664 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1665 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1666
1667 _ASUNAME
1668
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672   IFS=$as_save_IFS
1673   test -z "$as_dir" && as_dir=.
1674   echo "PATH: $as_dir"
1675 done
1676 IFS=$as_save_IFS
1677
1678 } >&5
1679
1680 cat >&5 <<_ACEOF
1681
1682
1683 ## ----------- ##
1684 ## Core tests. ##
1685 ## ----------- ##
1686
1687 _ACEOF
1688
1689
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_configure_args=
1696 ac_configure_args0=
1697 ac_configure_args1=
1698 ac_must_keep_next=false
1699 for ac_pass in 1 2
1700 do
1701   for ac_arg
1702   do
1703     case $ac_arg in
1704     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706     | -silent | --silent | --silen | --sile | --sil)
1707       continue ;;
1708     *\'*)
1709       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1710     esac
1711     case $ac_pass in
1712     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1713     2)
1714       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715       if test $ac_must_keep_next = true; then
1716         ac_must_keep_next=false # Got value, back to normal.
1717       else
1718         case $ac_arg in
1719           *=* | --config-cache | -C | -disable-* | --disable-* \
1720           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722           | -with-* | --with-* | -without-* | --without-* | --x)
1723             case "$ac_configure_args0 " in
1724               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1725             esac
1726             ;;
1727           -* ) ac_must_keep_next=true ;;
1728         esac
1729       fi
1730       ac_configure_args="$ac_configure_args '$ac_arg'"
1731       ;;
1732     esac
1733   done
1734 done
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1737
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log.  We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744   # Save into config.log some information that might help in debugging.
1745   {
1746     echo
1747
1748     cat <<\_ASBOX
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1752 _ASBOX
1753     echo
1754     # The following way of writing the cache mishandles newlines in values,
1755 (
1756   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757     eval ac_val=\$$ac_var
1758     case $ac_val in #(
1759     *${as_nl}*)
1760       case $ac_var in #(
1761       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1762 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1763       esac
1764       case $ac_var in #(
1765       _ | IFS | as_nl) ;; #(
1766       *) $as_unset $ac_var ;;
1767       esac ;;
1768     esac
1769   done
1770   (set) 2>&1 |
1771     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1772     *${as_nl}ac_space=\ *)
1773       sed -n \
1774         "s/'\''/'\''\\\\'\'''\''/g;
1775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776       ;; #(
1777     *)
1778       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779       ;;
1780     esac |
1781     sort
1782 )
1783     echo
1784
1785     cat <<\_ASBOX
1786 ## ----------------- ##
1787 ## Output variables. ##
1788 ## ----------------- ##
1789 _ASBOX
1790     echo
1791     for ac_var in $ac_subst_vars
1792     do
1793       eval ac_val=\$$ac_var
1794       case $ac_val in
1795       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796       esac
1797       echo "$ac_var='\''$ac_val'\''"
1798     done | sort
1799     echo
1800
1801     if test -n "$ac_subst_files"; then
1802       cat <<\_ASBOX
1803 ## ------------------- ##
1804 ## File substitutions. ##
1805 ## ------------------- ##
1806 _ASBOX
1807       echo
1808       for ac_var in $ac_subst_files
1809       do
1810         eval ac_val=\$$ac_var
1811         case $ac_val in
1812         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813         esac
1814         echo "$ac_var='\''$ac_val'\''"
1815       done | sort
1816       echo
1817     fi
1818
1819     if test -s confdefs.h; then
1820       cat <<\_ASBOX
1821 ## ----------- ##
1822 ## confdefs.h. ##
1823 ## ----------- ##
1824 _ASBOX
1825       echo
1826       cat confdefs.h
1827       echo
1828     fi
1829     test "$ac_signal" != 0 &&
1830       echo "$as_me: caught signal $ac_signal"
1831     echo "$as_me: exit $exit_status"
1832   } >&5
1833   rm -f core *.core core.conftest.* &&
1834     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835     exit $exit_status
1836 ' 0
1837 for ac_signal in 1 2 13 15; do
1838   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 done
1840 ac_signal=0
1841
1842 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1843 rm -f -r conftest* confdefs.h
1844
1845 # Predefined preprocessor variables.
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 _ACEOF
1870
1871
1872 # Let the site file select an alternate cache file if it wants to.
1873 # Prefer explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875   set x "$CONFIG_SITE"
1876 elif test "x$prefix" != xNONE; then
1877   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1878 else
1879   set x "$ac_default_prefix/share/config.site" \
1880         "$ac_default_prefix/etc/config.site"
1881 fi
1882 shift
1883 for ac_site_file
1884 do
1885   if test -r "$ac_site_file"; then
1886     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1887 echo "$as_me: loading site script $ac_site_file" >&6;}
1888     sed 's/^/| /' "$ac_site_file" >&5
1889     . "$ac_site_file"
1890   fi
1891 done
1892
1893 if test -r "$cache_file"; then
1894   # Some versions of bash will fail to source /dev/null (special
1895   # files actually), so we avoid doing that.
1896   if test -f "$cache_file"; then
1897     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1898 echo "$as_me: loading cache $cache_file" >&6;}
1899     case $cache_file in
1900       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1901       *)                      . "./$cache_file";;
1902     esac
1903   fi
1904 else
1905   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1906 echo "$as_me: creating cache $cache_file" >&6;}
1907   >$cache_file
1908 fi
1909
1910 # Check that the precious variables saved in the cache have kept the same
1911 # value.
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915   eval ac_new_set=\$ac_env_${ac_var}_set
1916   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917   eval ac_new_val=\$ac_env_${ac_var}_value
1918   case $ac_old_set,$ac_new_set in
1919     set,)
1920       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922       ac_cache_corrupted=: ;;
1923     ,set)
1924       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1926       ac_cache_corrupted=: ;;
1927     ,);;
1928     *)
1929       if test "x$ac_old_val" != "x$ac_new_val"; then
1930         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1933 echo "$as_me:   former value:  $ac_old_val" >&2;}
1934         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1935 echo "$as_me:   current value: $ac_new_val" >&2;}
1936         ac_cache_corrupted=:
1937       fi;;
1938   esac
1939   # Pass precious variables to config.status.
1940   if test "$ac_new_set" = set; then
1941     case $ac_new_val in
1942     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1943     *) ac_arg=$ac_var=$ac_new_val ;;
1944     esac
1945     case " $ac_configure_args " in
1946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1947       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948     esac
1949   fi
1950 done
1951 if $ac_cache_corrupted; then
1952   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1954   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
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
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990 ac_aux_dir=
1991 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1992   if test -f "$ac_dir/install-sh"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/install-sh -c"
1995     break
1996   elif test -f "$ac_dir/install.sh"; then
1997     ac_aux_dir=$ac_dir
1998     ac_install_sh="$ac_aux_dir/install.sh -c"
1999     break
2000   elif test -f "$ac_dir/shtool"; then
2001     ac_aux_dir=$ac_dir
2002     ac_install_sh="$ac_aux_dir/shtool install -c"
2003     break
2004   fi
2005 done
2006 if test -z "$ac_aux_dir"; then
2007   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2008 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2009    { (exit 1); exit 1; }; }
2010 fi
2011
2012 # These three variables are undocumented and unsupported,
2013 # and are intended to be withdrawn in a future Autoconf release.
2014 # They can cause serious problems if a builder's source tree is in a directory
2015 # whose full name contains unusual characters.
2016 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2017 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2018 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2019
2020
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025    { (exit 1); exit 1; }; }
2026
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038    { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 fi
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051    { (exit 1); exit 1; }; };;
2052 esac
2053 build=$ac_cv_build
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_build
2056 shift
2057 build_cpu=$1
2058 build_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 build_os=$*
2063 IFS=$ac_save_IFS
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065
2066
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test "x$host_alias" = x; then
2073   ac_cv_host=$ac_cv_build
2074 else
2075   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 fi
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 case $ac_cv_host in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088    { (exit 1); exit 1; }; };;
2089 esac
2090 host=$ac_cv_host
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_host
2093 shift
2094 host_cpu=$1
2095 host_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 host_os=$*
2100 IFS=$ac_save_IFS
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102
2103
2104
2105 case aclocal in
2106   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
2107   *)                      ac_macro_dir=$srcdir/aclocal ;;
2108 esac
2109 test -d "$ac_macro_dir" ||
2110   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
2111 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
2112    { (exit 1); exit 1; }; }
2113
2114 am__api_version="1.9"
2115 # Find a good install program.  We prefer a C program (faster),
2116 # so one script is as good as another.  But avoid the broken or
2117 # incompatible versions:
2118 # SysV /etc/install, /usr/sbin/install
2119 # SunOS /usr/etc/install
2120 # IRIX /sbin/install
2121 # AIX /bin/install
2122 # AmigaOS /C/install, which installs bootblocks on floppy discs
2123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2126 # OS/2's system install, which has a completely different semantic
2127 # ./install, which can be erroneously created by make from ./install.sh.
2128 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2129 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2130 if test -z "$INSTALL"; then
2131 if test "${ac_cv_path_install+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   # Account for people who put trailing slashes in PATH elements.
2140 case $as_dir/ in
2141   ./ | .// | /cC/* | \
2142   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2143   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2144   /usr/ucb/* ) ;;
2145   *)
2146     # OSF1 and SCO ODT 3.0 have their own names for install.
2147     # Don't use installbsd from OSF since it installs stuff as root
2148     # by default.
2149     for ac_prog in ginstall scoinst install; do
2150       for ac_exec_ext in '' $ac_executable_extensions; do
2151         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2152           if test $ac_prog = install &&
2153             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154             # AIX install.  It has an incompatible calling convention.
2155             :
2156           elif test $ac_prog = install &&
2157             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158             # program-specific install script used by HP pwplus--don't use.
2159             :
2160           else
2161             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2162             break 3
2163           fi
2164         fi
2165       done
2166     done
2167     ;;
2168 esac
2169 done
2170 IFS=$as_save_IFS
2171
2172
2173 fi
2174   if test "${ac_cv_path_install+set}" = set; then
2175     INSTALL=$ac_cv_path_install
2176   else
2177     # As a last resort, use the slow shell script.  Don't cache a
2178     # value for INSTALL within a source directory, because that will
2179     # break other packages using the cache if that directory is
2180     # removed, or if the value is a relative name.
2181     INSTALL=$ac_install_sh
2182   fi
2183 fi
2184 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2185 echo "${ECHO_T}$INSTALL" >&6; }
2186
2187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2188 # It thinks the first close brace ends the variable substitution.
2189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2190
2191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2192
2193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2194
2195 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2196 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2197 # Just in case
2198 sleep 1
2199 echo timestamp > conftest.file
2200 # Do `set' in a subshell so we don't clobber the current shell's
2201 # arguments.  Must try -L first in case configure is actually a
2202 # symlink; some systems play weird games with the mod time of symlinks
2203 # (eg FreeBSD returns the mod time of the symlink's containing
2204 # directory).
2205 if (
2206    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2207    if test "$*" = "X"; then
2208       # -L didn't work.
2209       set X `ls -t $srcdir/configure conftest.file`
2210    fi
2211    rm -f conftest.file
2212    if test "$*" != "X $srcdir/configure conftest.file" \
2213       && test "$*" != "X conftest.file $srcdir/configure"; then
2214
2215       # If neither matched, then we have a broken ls.  This can happen
2216       # if, for instance, CONFIG_SHELL is bash and it inherits a
2217       # broken ls alias from the environment.  This has actually
2218       # happened.  Such a system could not be considered "sane".
2219       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2220 alias in your environment" >&5
2221 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2222 alias in your environment" >&2;}
2223    { (exit 1); exit 1; }; }
2224    fi
2225
2226    test "$2" = conftest.file
2227    )
2228 then
2229    # Ok.
2230    :
2231 else
2232    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2233 Check your system clock" >&5
2234 echo "$as_me: error: newly created file is older than distributed files!
2235 Check your system clock" >&2;}
2236    { (exit 1); exit 1; }; }
2237 fi
2238 { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240 test "$program_prefix" != NONE &&
2241   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2242 # Use a double $ so make ignores it.
2243 test "$program_suffix" != NONE &&
2244   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2245 # Double any \ or $.  echo might interpret backslashes.
2246 # By default was `s,x,x', remove it if useless.
2247 cat <<\_ACEOF >conftest.sed
2248 s/[\\$]/&&/g;s/;s,x,x,$//
2249 _ACEOF
2250 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2251 rm -f conftest.sed
2252
2253 # expand $ac_aux_dir to an absolute path
2254 am_aux_dir=`cd $ac_aux_dir && pwd`
2255
2256 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2257 # Use eval to expand $SHELL
2258 if eval "$MISSING --run true"; then
2259   am_missing_run="$MISSING --run "
2260 else
2261   am_missing_run=
2262   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2263 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2264 fi
2265
2266 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2267   # We used to keeping the `.' as first argument, in order to
2268   # allow $(mkdir_p) to be used without argument.  As in
2269   #   $(mkdir_p) $(somedir)
2270   # where $(somedir) is conditionally defined.  However this is wrong
2271   # for two reasons:
2272   #  1. if the package is installed by a user who cannot write `.'
2273   #     make install will fail,
2274   #  2. the above comment should most certainly read
2275   #     $(mkdir_p) $(DESTDIR)$(somedir)
2276   #     so it does not work when $(somedir) is undefined and
2277   #     $(DESTDIR) is not.
2278   #  To support the latter case, we have to write
2279   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2280   #  so the `.' trick is pointless.
2281   mkdir_p='mkdir -p --'
2282 else
2283   # On NextStep and OpenStep, the `mkdir' command does not
2284   # recognize any option.  It will interpret all options as
2285   # directories to create, and then abort because `.' already
2286   # exists.
2287   for d in ./-p ./--version;
2288   do
2289     test -d $d && rmdir $d
2290   done
2291   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2292   if test -f "$ac_aux_dir/mkinstalldirs"; then
2293     mkdir_p='$(mkinstalldirs)'
2294   else
2295     mkdir_p='$(install_sh) -d'
2296   fi
2297 fi
2298
2299 for ac_prog in gawk mawk nawk awk
2300 do
2301   # Extract the first word of "$ac_prog", so it can be a program name with args.
2302 set dummy $ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_AWK+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$AWK"; then
2309   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318     ac_cv_prog_AWK="$ac_prog"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324 IFS=$as_save_IFS
2325
2326 fi
2327 fi
2328 AWK=$ac_cv_prog_AWK
2329 if test -n "$AWK"; then
2330   { echo "$as_me:$LINENO: result: $AWK" >&5
2331 echo "${ECHO_T}$AWK" >&6; }
2332 else
2333   { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2335 fi
2336
2337
2338   test -n "$AWK" && break
2339 done
2340
2341 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2343 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
2344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   cat >conftest.make <<\_ACEOF
2348 SHELL = /bin/sh
2349 all:
2350         @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 _ACEOF
2352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354   *@@@%%%=?*=@@@%%%*)
2355     eval ac_cv_prog_make_${ac_make}_set=yes;;
2356   *)
2357     eval ac_cv_prog_make_${ac_make}_set=no;;
2358 esac
2359 rm -f conftest.make
2360 fi
2361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362   { echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6; }
2364   SET_MAKE=
2365 else
2366   { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2368   SET_MAKE="MAKE=${MAKE-make}"
2369 fi
2370
2371 rm -rf .tst 2>/dev/null
2372 mkdir .tst 2>/dev/null
2373 if test -d .tst; then
2374   am__leading_dot=.
2375 else
2376   am__leading_dot=_
2377 fi
2378 rmdir .tst 2>/dev/null
2379
2380 # test to see if srcdir already configured
2381 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2382    test -f $srcdir/config.status; then
2383   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2384 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2385    { (exit 1); exit 1; }; }
2386 fi
2387
2388 # test whether we have cygpath
2389 if test -z "$CYGPATH_W"; then
2390   if (cygpath --version) >/dev/null 2>/dev/null; then
2391     CYGPATH_W='cygpath -w'
2392   else
2393     CYGPATH_W=echo
2394   fi
2395 fi
2396
2397
2398 # Define the identity of the package.
2399  PACKAGE='nfs-utils'
2400  VERSION='1.0.9'
2401
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE "$PACKAGE"
2405 _ACEOF
2406
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define VERSION "$VERSION"
2410 _ACEOF
2411
2412 # Some tools Automake needs.
2413
2414 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2415
2416
2417 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2418
2419
2420 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2421
2422
2423 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2424
2425
2426 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2427
2428 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2429
2430 # Installed binaries are usually stripped using `strip' when the user
2431 # run `make install-strip'.  However `strip' might not be the right
2432 # tool to use in cross-compilation environments, therefore Automake
2433 # will honor the `STRIP' environment variable to overrule this program.
2434 if test "$cross_compiling" != no; then
2435   if test -n "$ac_tool_prefix"; then
2436   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_STRIP+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$STRIP"; then
2444   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2460
2461 fi
2462 fi
2463 STRIP=$ac_cv_prog_STRIP
2464 if test -n "$STRIP"; then
2465   { echo "$as_me:$LINENO: result: $STRIP" >&5
2466 echo "${ECHO_T}$STRIP" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2470 fi
2471
2472
2473 fi
2474 if test -z "$ac_cv_prog_STRIP"; then
2475   ac_ct_STRIP=$STRIP
2476   # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$ac_ct_STRIP"; then
2484   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_ac_ct_STRIP="strip"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2504 if test -n "$ac_ct_STRIP"; then
2505   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2506 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512   if test "x$ac_ct_STRIP" = x; then
2513     STRIP=":"
2514   else
2515     case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet.  If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet.  If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     STRIP=$ac_ct_STRIP
2526   fi
2527 else
2528   STRIP="$ac_cv_prog_STRIP"
2529 fi
2530
2531 fi
2532 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2533
2534 # We need awk for the "check" target.  The system "awk" is bad on
2535 # some platforms.
2536 # Always define AMTAR for backward compatibility.
2537
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550 # Check whether --with-release was given.
2551 if test "${with_release+set}" = set; then
2552   withval=$with_release; RELEASE=$withval
2553 else
2554   RELEASE=1
2555 fi
2556
2557
2558
2559 # Check whether --with-statedir was given.
2560 if test "${with_statedir+set}" = set; then
2561   withval=$with_statedir; statedir=$withval
2562 else
2563   statedir=/var/lib/nfs
2564 fi
2565
2566
2567
2568 # Check whether --with-statduser was given.
2569 if test "${with_statduser+set}" = set; then
2570   withval=$with_statduser; statduser=$withval
2571 else
2572   if test "x$cross_compiling" = "xno"; then
2573                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2574                         statduser=rpcuser
2575                 else
2576                         statduser=nobody
2577                 fi
2578         else
2579                 statduser=nobody
2580         fi
2581 fi
2582
2583
2584 # Check whether --enable-nfsv3 was given.
2585 if test "${enable_nfsv3+set}" = set; then
2586   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2587 else
2588   enable_nfsv3=yes
2589 fi
2590
2591         if test "$enable_nfsv3" = yes; then
2592
2593 cat >>confdefs.h <<\_ACEOF
2594 #define NFS3_SUPPORTED 1
2595 _ACEOF
2596
2597         else
2598                 enable_nfsv3=
2599         fi
2600
2601 # Check whether --enable-nfsv4 was given.
2602 if test "${enable_nfsv4+set}" = set; then
2603   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2604 else
2605   enable_nfsv4=yes
2606 fi
2607
2608         if test "$enable_nfsv4" = yes; then
2609
2610 cat >>confdefs.h <<\_ACEOF
2611 #define NFS4_SUPPORTED 1
2612 _ACEOF
2613
2614                 IDMAPD=idmapd
2615         else
2616                 enable_nfsv4=
2617                 IDMAPD=
2618         fi
2619
2620
2621
2622
2623 if test "$enable_nfsv4" = "yes"; then
2624   CONFIG_NFSV4_TRUE=
2625   CONFIG_NFSV4_FALSE='#'
2626 else
2627   CONFIG_NFSV4_TRUE='#'
2628   CONFIG_NFSV4_FALSE=
2629 fi
2630
2631 # Check whether --enable-gss was given.
2632 if test "${enable_gss+set}" = set; then
2633   enableval=$enable_gss; enable_gss=$enableval
2634 else
2635   enable_gss=yes
2636 fi
2637
2638         if test "$enable_gss" = yes; then
2639
2640 cat >>confdefs.h <<\_ACEOF
2641 #define GSS_SUPPORTED 1
2642 _ACEOF
2643
2644                 GSSD=gssd
2645                 SVCGSSD=svcgssd
2646         else
2647                 enable_gss=
2648                 GSSD=
2649                 SVCGSSD=
2650         fi
2651
2652
2653
2654
2655
2656 if test "$enable_gss" = "yes"; then
2657   CONFIG_GSS_TRUE=
2658   CONFIG_GSS_FALSE='#'
2659 else
2660   CONFIG_GSS_TRUE='#'
2661   CONFIG_GSS_FALSE=
2662 fi
2663
2664 # Check whether --enable-kprefix was given.
2665 if test "${enable_kprefix+set}" = set; then
2666   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2667 else
2668   kprefix=
2669 fi
2670
2671
2672 # Check whether --enable-secure-statd was given.
2673 if test "${enable_secure_statd+set}" = set; then
2674   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2675 else
2676   secure_statd=no
2677 fi
2678
2679         if test "$secure_statd" = yes; then
2680
2681 cat >>confdefs.h <<\_ACEOF
2682 #define RESTRICTED_STATD 1
2683 _ACEOF
2684
2685         fi
2686
2687 # Check whether --enable-rquotad was given.
2688 if test "${enable_rquotad+set}" = set; then
2689   enableval=$enable_rquotad; enable_rquotad=$enableval
2690 else
2691   enable_rquotad=yes
2692 fi
2693
2694         if test "$enable_rquotad" = yes; then
2695                 RQUOTAD=rquotad
2696         else
2697                 RQUOTAD=
2698         fi
2699
2700
2701 if test "$enable_rquotad" = "yes"; then
2702   CONFIG_RQUOTAD_TRUE=
2703   CONFIG_RQUOTAD_FALSE='#'
2704 else
2705   CONFIG_RQUOTAD_TRUE='#'
2706   CONFIG_RQUOTAD_FALSE=
2707 fi
2708
2709
2710 # Check whether --enable-mount was given.
2711 if test "${enable_mount+set}" = set; then
2712   enableval=$enable_mount; enable_mount=$enableval
2713 else
2714   enable_mount=no
2715 fi
2716
2717
2718
2719 if test "$enable_mount" = "yes"; then
2720   CONFIG_MOUNT_TRUE=
2721   CONFIG_MOUNT_FALSE='#'
2722 else
2723   CONFIG_MOUNT_TRUE='#'
2724   CONFIG_MOUNT_FALSE=
2725 fi
2726
2727
2728 # Check whether user wants TCP wrappers support
2729 DEPDIR="${am__leading_dot}deps"
2730
2731 ac_config_commands="$ac_config_commands depfiles"
2732
2733
2734 am_make=${MAKE-make}
2735 cat > confinc << 'END'
2736 am__doit:
2737         @echo done
2738 .PHONY: am__doit
2739 END
2740 # If we don't find an include directive, just comment out the code.
2741 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2742 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2743 am__include="#"
2744 am__quote=
2745 _am_result=none
2746 # First try GNU make style include.
2747 echo "include confinc" > confmf
2748 # We grep out `Entering directory' and `Leaving directory'
2749 # messages which can occur if `w' ends up in MAKEFLAGS.
2750 # In particular we don't look at `^make:' because GNU make might
2751 # be invoked under some other name (usually "gmake"), in which
2752 # case it prints its new name instead of `make'.
2753 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2754    am__include=include
2755    am__quote=
2756    _am_result=GNU
2757 fi
2758 # Now try BSD make style include.
2759 if test "$am__include" = "#"; then
2760    echo '.include "confinc"' > confmf
2761    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2762       am__include=.include
2763       am__quote="\""
2764       _am_result=BSD
2765    fi
2766 fi
2767
2768
2769 { echo "$as_me:$LINENO: result: $_am_result" >&5
2770 echo "${ECHO_T}$_am_result" >&6; }
2771 rm -f confinc confmf
2772
2773 # Check whether --enable-dependency-tracking was given.
2774 if test "${enable_dependency_tracking+set}" = set; then
2775   enableval=$enable_dependency_tracking;
2776 fi
2777
2778 if test "x$enable_dependency_tracking" != xno; then
2779   am_depcomp="$ac_aux_dir/depcomp"
2780   AMDEPBACKSLASH='\'
2781 fi
2782
2783
2784 if test "x$enable_dependency_tracking" != xno; then
2785   AMDEP_TRUE=
2786   AMDEP_FALSE='#'
2787 else
2788   AMDEP_TRUE='#'
2789   AMDEP_FALSE=
2790 fi
2791
2792
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 if test -n "$ac_tool_prefix"; then
2800   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   if test -n "$CC"; then
2808   ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815   for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829   { echo "$as_me:$LINENO: result: $CC" >&5
2830 echo "${ECHO_T}$CC" >&6; }
2831 else
2832   { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2834 fi
2835
2836
2837 fi
2838 if test -z "$ac_cv_prog_CC"; then
2839   ac_ct_CC=$CC
2840   # Extract the first word of "gcc", so it can be a program name with args.
2841 set dummy gcc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   if test -n "$ac_ct_CC"; then
2848   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855   for ac_exec_ext in '' $ac_executable_extensions; do
2856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2857     ac_cv_prog_ac_ct_CC="gcc"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2868 if test -n "$ac_ct_CC"; then
2869   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2870 echo "${ECHO_T}$ac_ct_CC" >&6; }
2871 else
2872   { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876   if test "x$ac_ct_CC" = x; then
2877     CC=""
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CC=$ac_ct_CC
2890   fi
2891 else
2892   CC="$ac_cv_prog_CC"
2893 fi
2894
2895 if test -z "$CC"; then
2896           if test -n "$ac_tool_prefix"; then
2897     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then
2902   echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904   if test -n "$CC"; then
2905   ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910   IFS=$as_save_IFS
2911   test -z "$as_dir" && as_dir=.
2912   for ac_exec_ext in '' $ac_executable_extensions; do
2913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2914     ac_cv_prog_CC="${ac_tool_prefix}cc"
2915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916     break 2
2917   fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926   { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2928 else
2929   { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934   fi
2935 fi
2936 if test -z "$CC"; then
2937   # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947   ac_prog_rejected=no
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956        ac_prog_rejected=yes
2957        continue
2958      fi
2959     ac_cv_prog_CC="cc"
2960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 if test $ac_prog_rejected = yes; then
2968   # We found a bogon in the path, so make sure we never use it.
2969   set dummy $ac_cv_prog_CC
2970   shift
2971   if test $# != 0; then
2972     # We chose a different compiler from the bogus one.
2973     # However, it has the same basename, so the bogon will be chosen
2974     # first if we set CC to just the basename; use the full file name.
2975     shift
2976     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977   fi
2978 fi
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983   { echo "$as_me:$LINENO: result: $CC" >&5
2984 echo "${ECHO_T}$CC" >&6; }
2985 else
2986   { echo "$as_me:$LINENO: result: no" >&5
2987 echo "${ECHO_T}no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$CC"; then
2993   if test -n "$ac_tool_prefix"; then
2994   for ac_prog in cl.exe
2995   do
2996     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011   for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018 done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { echo "$as_me:$LINENO: result: $CC" >&5
3026 echo "${ECHO_T}$CC" >&6; }
3027 else
3028   { echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6; }
3030 fi
3031
3032
3033     test -n "$CC" && break
3034   done
3035 fi
3036 if test -z "$CC"; then
3037   ac_ct_CC=$CC
3038   for ac_prog in cl.exe
3039 do
3040   # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   if test -n "$ac_ct_CC"; then
3048   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055   for ac_exec_ext in '' $ac_executable_extensions; do
3056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3057     ac_cv_prog_ac_ct_CC="$ac_prog"
3058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059     break 2
3060   fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 echo "${ECHO_T}$ac_ct_CC" >&6; }
3071 else
3072   { echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6; }
3074 fi
3075
3076
3077   test -n "$ac_ct_CC" && break
3078 done
3079
3080   if test "x$ac_ct_CC" = x; then
3081     CC=""
3082   else
3083     case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3086 whose name does not start with the host triplet.  If you think this
3087 configuration is useful to you, please write to autoconf@gnu.org." >&5
3088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet.  If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093     CC=$ac_ct_CC
3094   fi
3095 fi
3096
3097 fi
3098
3099
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compiler --version >&5") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compiler -v >&5") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compiler -V >&5") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }
3139
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 #
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort.  b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 #
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions.  Remove them first so a
3171 # subsequent execution test works.
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { (ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_link_default") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; then
3192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3196 # Autoconf.
3197 for ac_file in $ac_files
3198 do
3199   test -f "$ac_file" || continue
3200   case $ac_file in
3201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3202         ;;
3203     [ab].out )
3204         # We found the default executable, but exeext='' is most
3205         # certainly right.
3206         break;;
3207     *.* )
3208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209         then :; else
3210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211         fi
3212         # We set ac_cv_exeext here because the later test for it is not
3213         # safe: cross compilers may not add the suffix if given an `-o'
3214         # argument, so we may need to know it at that point already.
3215         # Even if this section looks crufty: it has the advantage of
3216         # actually working.
3217         break;;
3218     * )
3219         break;;
3220   esac
3221 done
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C compiler cannot create executables
3231 See \`config.log' for more details." >&2;}
3232    { (exit 77); exit 77; }; }
3233 fi
3234
3235 ac_exeext=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_file" >&5
3237 echo "${ECHO_T}$ac_file" >&6; }
3238
3239 # Check that the compiler produces executables we can run.  If not, either
3240 # the compiler is broken, or we cross compile.
3241 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3242 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3243 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3244 # If not cross compiling, check that we can run a simple program.
3245 if test "$cross_compiling" != yes; then
3246   if { ac_try='./$ac_file'
3247   { (case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_try") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256     cross_compiling=no
3257   else
3258     if test "$cross_compiling" = maybe; then
3259         cross_compiling=yes
3260     else
3261         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details." >&5
3264 echo "$as_me: error: cannot run C compiled programs.
3265 If you meant to cross compile, use \`--host'.
3266 See \`config.log' for more details." >&2;}
3267    { (exit 1); exit 1; }; }
3268     fi
3269   fi
3270 fi
3271 { echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6; }
3273
3274 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3275 ac_clean_files=$ac_clean_files_save
3276 # Check that the compiler produces executables we can run.  If not, either
3277 # the compiler is broken, or we cross compile.
3278 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3279 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3280 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3281 echo "${ECHO_T}$cross_compiling" >&6; }
3282
3283 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3284 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3285 if { (ac_try="$ac_link"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_link") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; then
3295   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3297 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 # `rm'.
3299 for ac_file in conftest.exe conftest conftest.*; do
3300   test -f "$ac_file" || continue
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304           break;;
3305     * ) break;;
3306   esac
3307 done
3308 else
3309   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3312 See \`config.log' for more details." >&2;}
3313    { (exit 1); exit 1; }; }
3314 fi
3315
3316 rm -f conftest$ac_cv_exeext
3317 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3318 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3319
3320 rm -f conftest.$ac_ext
3321 EXEEXT=$ac_cv_exeext
3322 ac_exeext=$EXEEXT
3323 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3324 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3325 if test "${ac_cv_objext+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.o conftest.obj
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_compile") 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; then
3354   for ac_file in conftest.o conftest.obj conftest.*; do
3355   test -f "$ac_file" || continue;
3356   case $ac_file in
3357     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3358     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3359        break;;
3360   esac
3361 done
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3369 See \`config.log' for more details." >&2;}
3370    { (exit 1); exit 1; }; }
3371 fi
3372
3373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 fi
3375 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3376 echo "${ECHO_T}$ac_cv_objext" >&6; }
3377 OBJEXT=$ac_cv_objext
3378 ac_objext=$OBJEXT
3379 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3380 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3381 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390
3391 int
3392 main ()
3393 {
3394 #ifndef __GNUC__
3395        choke me
3396 #endif
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compile") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } &&
3416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3417   { (case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_try") 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (case "(($ac_try" in
3428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429   *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432   (eval "$ac_try") 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; }; then
3436   ac_compiler_gnu=yes
3437 else
3438   echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3440
3441         ac_compiler_gnu=no
3442 fi
3443
3444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   ac_save_c_werror_flag=$ac_c_werror_flag
3459    ac_c_werror_flag=yes
3460    ac_cv_prog_cc_g=no
3461    CFLAGS="-g"
3462    cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h.  */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_compile") 2>conftest.er1
3485   ac_status=$?
3486   grep -v '^ *+' conftest.er1 >conftest.err
3487   rm -f conftest.er1
3488   cat conftest.err >&5
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); } &&
3491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3492   { (case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); }; } &&
3501          { ac_try='test -s conftest.$ac_objext'
3502   { (case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_try") 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; }; then
3511   ac_cv_prog_cc_g=yes
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516         CFLAGS=""
3517       cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_compile") 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   :
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571         ac_c_werror_flag=$ac_save_c_werror_flag
3572          CFLAGS="-g"
3573          cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579
3580 int
3581 main ()
3582 {
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592   *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595   (eval "$ac_compile") 2>conftest.er1
3596   ac_status=$?
3597   grep -v '^ *+' conftest.er1 >conftest.err
3598   rm -f conftest.er1
3599   cat conftest.err >&5
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } &&
3602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603   { (case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_try") 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; } &&
3612          { ac_try='test -s conftest.$ac_objext'
3613   { (case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_try") 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; }; then
3622   ac_cv_prog_cc_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632
3633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637    ac_c_werror_flag=$ac_save_c_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642   CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644   if test "$GCC" = yes; then
3645     CFLAGS="-g -O2"
3646   else
3647     CFLAGS="-g"
3648   fi
3649 else
3650   if test "$GCC" = yes; then
3651     CFLAGS="-O2"
3652   else
3653     CFLAGS=
3654   fi
3655 fi
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_cv_prog_cc_c89=no
3662 ac_save_CC=$CC
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3677      char **p;
3678      int i;
3679 {
3680   return p[i];
3681 }
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3683 {
3684   char *s;
3685   va_list v;
3686   va_start (v,p);
3687   s = g (p, va_arg (v,int));
3688   va_end (v);
3689   return s;
3690 }
3691
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3693    function prototypes and stuff, but not '\xHH' hex character constants.
3694    These don't provoke an error unfortunately, instead are silently treated
3695    as 'x'.  The following induces an error, until -std is added to get
3696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3697    array size at least.  It's necessary to write '\x00'==0 to get something
3698    that's true only with -std.  */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
3701 int test (int i, double x);
3702 struct s1 {int (*f) (int a);};
3703 struct s2 {int (*f) (double a);};
3704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 int argc;
3706 char **argv;
3707 int
3708 main ()
3709 {
3710 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3716         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 do
3718   CC="$ac_save_CC $ac_arg"
3719   rm -f conftest.$ac_objext
3720 if { (ac_try="$ac_compile"
3721 case "(($ac_try" in
3722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723   *) ac_try_echo=$ac_try;;
3724 esac
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726   (eval "$ac_compile") 2>conftest.er1
3727   ac_status=$?
3728   grep -v '^ *+' conftest.er1 >conftest.err
3729   rm -f conftest.er1
3730   cat conftest.err >&5
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } &&
3733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3734   { (case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_try") 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); }; } &&
3743          { ac_try='test -s conftest.$ac_objext'
3744   { (case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749   (eval "$ac_try") 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; }; then
3753   ac_cv_prog_cc_c89=$ac_arg
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758
3759 fi
3760
3761 rm -f conftest.err conftest.$ac_objext
3762   test "x$ac_cv_prog_cc_c89" != "xno" && break
3763 done
3764 rm -f conftest.$ac_ext
3765 CC=$ac_save_CC
3766
3767 fi
3768 # AC_CACHE_VAL
3769 case "x$ac_cv_prog_cc_c89" in
3770   x)
3771     { echo "$as_me:$LINENO: result: none needed" >&5
3772 echo "${ECHO_T}none needed" >&6; } ;;
3773   xno)
3774     { echo "$as_me:$LINENO: result: unsupported" >&5
3775 echo "${ECHO_T}unsupported" >&6; } ;;
3776   *)
3777     CC="$CC $ac_cv_prog_cc_c89"
3778     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3779 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3780 esac
3781
3782
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788
3789 depcc="$CC"   am_compiler_list=
3790
3791 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3792 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3793 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797   # We make a subdir and do the tests there.  Otherwise we can end up
3798   # making bogus files that we don't know about and never remove.  For
3799   # instance it was reported that on HP-UX the gcc test will end up
3800   # making a dummy file named `D' -- because `-MD' means `put the output
3801   # in D'.
3802   mkdir conftest.dir
3803   # Copy depcomp to subdir because otherwise we won't find it if we're
3804   # using a relative directory.
3805   cp "$am_depcomp" conftest.dir
3806   cd conftest.dir
3807   # We will build objects and dependencies in a subdirectory because
3808   # it helps to detect inapplicable dependency modes.  For instance
3809   # both Tru64's cc and ICC support -MD to output dependencies as a
3810   # side effect of compilation, but ICC will put the dependencies in
3811   # the current directory while Tru64 will put them in the object
3812   # directory.
3813   mkdir sub
3814
3815   am_cv_CC_dependencies_compiler_type=none
3816   if test "$am_compiler_list" = ""; then
3817      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818   fi
3819   for depmode in $am_compiler_list; do
3820     # Setup a source with many dependencies, because some compilers
3821     # like to wrap large dependency lists on column 80 (with \), and
3822     # we should not choose a depcomp mode which is confused by this.
3823     #
3824     # We need to recreate these files for each test, as the compiler may
3825     # overwrite some of them when testing with obscure command lines.
3826     # This happens at least with the AIX C compiler.
3827     : > sub/conftest.c
3828     for i in 1 2 3 4 5 6; do
3829       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3831       # Solaris 8's {/usr,}/bin/sh.
3832       touch sub/conftst$i.h
3833     done
3834     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835
3836     case $depmode in
3837     nosideeffect)
3838       # after this tag, mechanisms are not by side-effect, so they'll
3839       # only be used when explicitly requested
3840       if test "x$enable_dependency_tracking" = xyes; then
3841         continue
3842       else
3843         break
3844       fi
3845       ;;
3846     none) break ;;
3847     esac
3848     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3849     # mode.  It turns out that the SunPro C++ compiler does not properly
3850     # handle `-M -o', and we need to detect this.
3851     if depmode=$depmode \
3852        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3853        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3855          >/dev/null 2>conftest.err &&
3856        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3858        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859       # icc doesn't choke on unknown options, it will just issue warnings
3860       # or remarks (even with -Werror).  So we grep stderr for any message
3861       # that says an option was ignored or not supported.
3862       # When given -MP, icc 7.0 and 7.1 complain thusly:
3863       #   icc: Command line warning: ignoring option '-M'; no argument required
3864       # The diagnosis changed in icc 8.0:
3865       #   icc: Command line remark: option '-MP' not supported
3866       if (grep 'ignoring option' conftest.err ||
3867           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868         am_cv_CC_dependencies_compiler_type=$depmode
3869         break
3870       fi
3871     fi
3872   done
3873
3874   cd ..
3875   rm -rf conftest.dir
3876 else
3877   am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885
3886
3887 if
3888   test "x$enable_dependency_tracking" != xno \
3889   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3890   am__fastdepCC_TRUE=
3891   am__fastdepCC_FALSE='#'
3892 else
3893   am__fastdepCC_TRUE='#'
3894   am__fastdepCC_FALSE=
3895 fi
3896
3897
3898
3899
3900   TCPW_MSG="no"
3901
3902 # Check whether --with-tcp-wrappers was given.
3903 if test "${with_tcp_wrappers+set}" = set; then
3904   withval=$with_tcp_wrappers;
3905         if test "x$withval" != "xno" ; then
3906             saved_LIBS="$LIBS"
3907             saved_LDFLAGS="$LDFLAGS"
3908             saved_CPPFLAGS="$CPPFLAGS"
3909             if test -n "${withval}" -a "${withval}" != "yes"; then
3910                 if test -d "${withval}/lib"; then
3911                     if test -n "${need_dash_r}"; then
3912                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3913                     else
3914                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3915                     fi
3916                 else
3917                     if test -n "${need_dash_r}"; then
3918                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3919                     else
3920                         LDFLAGS="-L${withval} ${LDFLAGS}"
3921                     fi
3922                 fi
3923                 if test -d "${withval}/include"; then
3924                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3925                 else
3926                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3927                 fi
3928             fi
3929             LIBWRAP="-lwrap"
3930             LIBS="$LIBWRAP $LIBS"
3931             { echo "$as_me:$LINENO: checking for libwrap" >&5
3932 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3933             cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939
3940                 #include <tcpd.h>
3941                 int deny_severity = 0, allow_severity = 0;
3942
3943 int
3944 main ()
3945 {
3946 hosts_access(0);
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3953 case "(($ac_try" in
3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955   *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958   (eval "$ac_link") 2>conftest.er1
3959   ac_status=$?
3960   grep -v '^ *+' conftest.er1 >conftest.err
3961   rm -f conftest.er1
3962   cat conftest.err >&5
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } &&
3965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3966   { (case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_try") 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; } &&
3975          { ac_try='test -s conftest$ac_exeext'
3976   { (case "(($ac_try" in
3977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978   *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981   (eval "$ac_try") 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985
3986                 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3988
3989
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LIBWRAP 1
3992 _ACEOF
3993
3994
3995 cat >>confdefs.h <<\_ACEOF
3996 #define HAVE_LIBWRAP 1
3997 _ACEOF
3998
3999
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_TCP_WRAPPER 1
4002 _ACEOF
4003
4004                 TCPW_MSG="yes"
4005
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010
4011                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4012 echo "$as_me: error: *** libwrap missing" >&2;}
4013    { (exit 1); exit 1; }; }
4014
4015
4016 fi
4017
4018 rm -f conftest.err conftest.$ac_objext \
4019       conftest$ac_exeext conftest.$ac_ext
4020             LIBS="$saved_LIBS"
4021         fi
4022
4023
4024 fi
4025
4026
4027
4028
4029
4030
4031
4032 ac_config_headers="$ac_config_headers support/include/config.h"
4033
4034
4035 # Checks for programs.
4036 ac_ext=cpp
4037 ac_cpp='$CXXCPP $CPPFLAGS'
4038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4041 if test -z "$CXX"; then
4042   if test -n "$CCC"; then
4043     CXX=$CCC
4044   else
4045     if test -n "$ac_tool_prefix"; then
4046   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4047   do
4048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4052 if test "${ac_cv_prog_CXX+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   if test -n "$CXX"; then
4056   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063   for ac_exec_ext in '' $ac_executable_extensions; do
4064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4065     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070 done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 CXX=$ac_cv_prog_CXX
4076 if test -n "$CXX"; then
4077   { echo "$as_me:$LINENO: result: $CXX" >&5
4078 echo "${ECHO_T}$CXX" >&6; }
4079 else
4080   { echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6; }
4082 fi
4083
4084
4085     test -n "$CXX" && break
4086   done
4087 fi
4088 if test -z "$CXX"; then
4089   ac_ct_CXX=$CXX
4090   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091 do
4092   # Extract the first word of "$ac_prog", so it can be a program name with args.
4093 set dummy $ac_prog; ac_word=$2
4094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4096 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4097   echo $ECHO_N "(cached) $ECHO_C" >&6
4098 else
4099   if test -n "$ac_ct_CXX"; then
4100   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107   for ac_exec_ext in '' $ac_executable_extensions; do
4108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4109     ac_cv_prog_ac_ct_CXX="$ac_prog"
4110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114 done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4120 if test -n "$ac_ct_CXX"; then
4121   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4122 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4123 else
4124   { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4126 fi
4127
4128
4129   test -n "$ac_ct_CXX" && break
4130 done
4131
4132   if test "x$ac_ct_CXX" = x; then
4133     CXX="g++"
4134   else
4135     case $cross_compiling:$ac_tool_warned in
4136 yes:)
4137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4138 whose name does not start with the host triplet.  If you think this
4139 configuration is useful to you, please write to autoconf@gnu.org." >&5
4140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4141 whose name does not start with the host triplet.  If you think this
4142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4143 ac_tool_warned=yes ;;
4144 esac
4145     CXX=$ac_ct_CXX
4146   fi
4147 fi
4148
4149   fi
4150 fi
4151 # Provide some information about the compiler.
4152 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4153 ac_compiler=`set X $ac_compile; echo $2`
4154 { (ac_try="$ac_compiler --version >&5"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_compiler --version >&5") 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }
4164 { (ac_try="$ac_compiler -v >&5"
4165 case "(($ac_try" in
4166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167   *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170   (eval "$ac_compiler -v >&5") 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }
4174 { (ac_try="$ac_compiler -V >&5"
4175 case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180   (eval "$ac_compiler -V >&5") 2>&5
4181   ac_status=$?
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); }
4184
4185 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4186 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4187 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200 #ifndef __GNUC__
4201        choke me
4202 #endif
4203
4204   ;
4205   return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (ac_try="$ac_compile"
4210 case "(($ac_try" in
4211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212   *) ac_try_echo=$ac_try;;
4213 esac
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215   (eval "$ac_compile") 2>conftest.er1
4216   ac_status=$?
4217   grep -v '^ *+' conftest.er1 >conftest.err
4218   rm -f conftest.er1
4219   cat conftest.err >&5
4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221   (exit $ac_status); } &&
4222          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4223   { (case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_try") 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; } &&
4232          { ac_try='test -s conftest.$ac_objext'
4233   { (case "(($ac_try" in
4234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235   *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238   (eval "$ac_try") 2>&5
4239   ac_status=$?
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); }; }; then
4242   ac_compiler_gnu=yes
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247         ac_compiler_gnu=no
4248 fi
4249
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4252
4253 fi
4254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4256 GXX=`test $ac_compiler_gnu = yes && echo yes`
4257 ac_test_CXXFLAGS=${CXXFLAGS+set}
4258 ac_save_CXXFLAGS=$CXXFLAGS
4259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4261 if test "${ac_cv_prog_cxx_g+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4265    ac_cxx_werror_flag=yes
4266    ac_cv_prog_cxx_g=no
4267    CXXFLAGS="-g"
4268    cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (ac_try="$ac_compile"
4285 case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_compile") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } &&
4297          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4298   { (case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303   (eval "$ac_try") 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_prog_cxx_g=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322         CXXFLAGS=""
4323       cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 rm -f conftest.$ac_objext
4339 if { (ac_try="$ac_compile"
4340 case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345   (eval "$ac_compile") 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4353   { (case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_try") 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; } &&
4362          { ac_try='test -s conftest.$ac_objext'
4363   { (case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_try") 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   :
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4378          CXXFLAGS="-g"
4379          cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385
4386 int
4387 main ()
4388 {
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_cv_prog_cxx_g=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433
4434 fi
4435
4436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 fi
4438
4439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440 fi
4441
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444 fi
4445 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4446 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4447 if test "$ac_test_CXXFLAGS" = set; then
4448   CXXFLAGS=$ac_save_CXXFLAGS
4449 elif test $ac_cv_prog_cxx_g = yes; then
4450   if test "$GXX" = yes; then
4451     CXXFLAGS="-g -O2"
4452   else
4453     CXXFLAGS="-g"
4454   fi
4455 else
4456   if test "$GXX" = yes; then
4457     CXXFLAGS="-O2"
4458   else
4459     CXXFLAGS=
4460   fi
4461 fi
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467
4468 depcc="$CXX"  am_compiler_list=
4469
4470 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4471 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4472 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476   # We make a subdir and do the tests there.  Otherwise we can end up
4477   # making bogus files that we don't know about and never remove.  For
4478   # instance it was reported that on HP-UX the gcc test will end up
4479   # making a dummy file named `D' -- because `-MD' means `put the output
4480   # in D'.
4481   mkdir conftest.dir
4482   # Copy depcomp to subdir because otherwise we won't find it if we're
4483   # using a relative directory.
4484   cp "$am_depcomp" conftest.dir
4485   cd conftest.dir
4486   # We will build objects and dependencies in a subdirectory because
4487   # it helps to detect inapplicable dependency modes.  For instance
4488   # both Tru64's cc and ICC support -MD to output dependencies as a
4489   # side effect of compilation, but ICC will put the dependencies in
4490   # the current directory while Tru64 will put them in the object
4491   # directory.
4492   mkdir sub
4493
4494   am_cv_CXX_dependencies_compiler_type=none
4495   if test "$am_compiler_list" = ""; then
4496      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497   fi
4498   for depmode in $am_compiler_list; do
4499     # Setup a source with many dependencies, because some compilers
4500     # like to wrap large dependency lists on column 80 (with \), and
4501     # we should not choose a depcomp mode which is confused by this.
4502     #
4503     # We need to recreate these files for each test, as the compiler may
4504     # overwrite some of them when testing with obscure command lines.
4505     # This happens at least with the AIX C compiler.
4506     : > sub/conftest.c
4507     for i in 1 2 3 4 5 6; do
4508       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4510       # Solaris 8's {/usr,}/bin/sh.
4511       touch sub/conftst$i.h
4512     done
4513     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514
4515     case $depmode in
4516     nosideeffect)
4517       # after this tag, mechanisms are not by side-effect, so they'll
4518       # only be used when explicitly requested
4519       if test "x$enable_dependency_tracking" = xyes; then
4520         continue
4521       else
4522         break
4523       fi
4524       ;;
4525     none) break ;;
4526     esac
4527     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528     # mode.  It turns out that the SunPro C++ compiler does not properly
4529     # handle `-M -o', and we need to detect this.
4530     if depmode=$depmode \
4531        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4532        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4534          >/dev/null 2>conftest.err &&
4535        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4537        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538       # icc doesn't choke on unknown options, it will just issue warnings
4539       # or remarks (even with -Werror).  So we grep stderr for any message
4540       # that says an option was ignored or not supported.
4541       # When given -MP, icc 7.0 and 7.1 complain thusly:
4542       #   icc: Command line warning: ignoring option '-M'; no argument required
4543       # The diagnosis changed in icc 8.0:
4544       #   icc: Command line remark: option '-MP' not supported
4545       if (grep 'ignoring option' conftest.err ||
4546           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547         am_cv_CXX_dependencies_compiler_type=$depmode
4548         break
4549       fi
4550     fi
4551   done
4552
4553   cd ..
4554   rm -rf conftest.dir
4555 else
4556   am_cv_CXX_dependencies_compiler_type=none
4557 fi
4558
4559 fi
4560 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4561 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4562 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4563
4564
4565
4566 if
4567   test "x$enable_dependency_tracking" != xno \
4568   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4569   am__fastdepCXX_TRUE=
4570   am__fastdepCXX_FALSE='#'
4571 else
4572   am__fastdepCXX_TRUE='#'
4573   am__fastdepCXX_FALSE=
4574 fi
4575
4576
4577 ac_ext=c
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 if test -n "$ac_tool_prefix"; then
4583   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_CC+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   if test -n "$CC"; then
4591   ac_cv_prog_CC="$CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 CC=$ac_cv_prog_CC
4611 if test -n "$CC"; then
4612   { echo "$as_me:$LINENO: result: $CC" >&5
4613 echo "${ECHO_T}$CC" >&6; }
4614 else
4615   { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620 fi
4621 if test -z "$ac_cv_prog_CC"; then
4622   ac_ct_CC=$CC
4623   # Extract the first word of "gcc", so it can be a program name with args.
4624 set dummy gcc; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   if test -n "$ac_ct_CC"; then
4631   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_exec_ext in '' $ac_executable_extensions; do
4639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640     ac_cv_prog_ac_ct_CC="gcc"
4641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4651 if test -n "$ac_ct_CC"; then
4652   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4653 echo "${ECHO_T}$ac_ct_CC" >&6; }
4654 else
4655   { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4657 fi
4658
4659   if test "x$ac_ct_CC" = x; then
4660     CC=""
4661   else
4662     case $cross_compiling:$ac_tool_warned in
4663 yes:)
4664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4665 whose name does not start with the host triplet.  If you think this
4666 configuration is useful to you, please write to autoconf@gnu.org." >&5
4667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4668 whose name does not start with the host triplet.  If you think this
4669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4670 ac_tool_warned=yes ;;
4671 esac
4672     CC=$ac_ct_CC
4673   fi
4674 else
4675   CC="$ac_cv_prog_CC"
4676 fi
4677
4678 if test -z "$CC"; then
4679           if test -n "$ac_tool_prefix"; then
4680     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}cc; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_CC+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   if test -n "$CC"; then
4688   ac_cv_prog_CC="$CC" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695   for ac_exec_ext in '' $ac_executable_extensions; do
4696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4697     ac_cv_prog_CC="${ac_tool_prefix}cc"
4698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 CC=$ac_cv_prog_CC
4708 if test -n "$CC"; then
4709   { echo "$as_me:$LINENO: result: $CC" >&5
4710 echo "${ECHO_T}$CC" >&6; }
4711 else
4712   { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4714 fi
4715
4716
4717   fi
4718 fi
4719 if test -z "$CC"; then
4720   # Extract the first word of "cc", so it can be a program name with args.
4721 set dummy cc; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$CC"; then
4728   ac_cv_prog_CC="$CC" # Let the user override the test.
4729 else
4730   ac_prog_rejected=no
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4738     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4739        ac_prog_rejected=yes
4740        continue
4741      fi
4742     ac_cv_prog_CC="cc"
4743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744     break 2
4745   fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 if test $ac_prog_rejected = yes; then
4751   # We found a bogon in the path, so make sure we never use it.
4752   set dummy $ac_cv_prog_CC
4753   shift
4754   if test $# != 0; then
4755     # We chose a different compiler from the bogus one.
4756     # However, it has the same basename, so the bogon will be chosen
4757     # first if we set CC to just the basename; use the full file name.
4758     shift
4759     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4760   fi
4761 fi
4762 fi
4763 fi
4764 CC=$ac_cv_prog_CC
4765 if test -n "$CC"; then
4766   { echo "$as_me:$LINENO: result: $CC" >&5
4767 echo "${ECHO_T}$CC" >&6; }
4768 else
4769   { echo "$as_me:$LINENO: result: no" >&5
4770 echo "${ECHO_T}no" >&6; }
4771 fi
4772
4773
4774 fi
4775 if test -z "$CC"; then
4776   if test -n "$ac_tool_prefix"; then
4777   for ac_prog in cl.exe
4778   do
4779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_CC+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   if test -n "$CC"; then
4787   ac_cv_prog_CC="$CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 CC=$ac_cv_prog_CC
4807 if test -n "$CC"; then
4808   { echo "$as_me:$LINENO: result: $CC" >&5
4809 echo "${ECHO_T}$CC" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816     test -n "$CC" && break
4817   done
4818 fi
4819 if test -z "$CC"; then
4820   ac_ct_CC=$CC
4821   for ac_prog in cl.exe
4822 do
4823   # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   if test -n "$ac_ct_CC"; then
4831   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840     ac_cv_prog_ac_ct_CC="$ac_prog"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4851 if test -n "$ac_ct_CC"; then
4852   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4853 echo "${ECHO_T}$ac_ct_CC" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860   test -n "$ac_ct_CC" && break
4861 done
4862
4863   if test "x$ac_ct_CC" = x; then
4864     CC=""
4865   else
4866     case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet.  If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&5
4871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet.  If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4874 ac_tool_warned=yes ;;
4875 esac
4876     CC=$ac_ct_CC
4877   fi
4878 fi
4879
4880 fi
4881
4882
4883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: no acceptable C compiler found in \$PATH
4886 See \`config.log' for more details." >&2;}
4887    { (exit 1); exit 1; }; }
4888
4889 # Provide some information about the compiler.
4890 echo "$as_me:$LINENO: checking for C compiler version" >&5
4891 ac_compiler=`set X $ac_compile; echo $2`
4892 { (ac_try="$ac_compiler --version >&5"
4893 case "(($ac_try" in
4894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895   *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898   (eval "$ac_compiler --version >&5") 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); }
4902 { (ac_try="$ac_compiler -v >&5"
4903 case "(($ac_try" in
4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905   *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908   (eval "$ac_compiler -v >&5") 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }
4912 { (ac_try="$ac_compiler -V >&5"
4913 case "(($ac_try" in
4914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915   *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918   (eval "$ac_compiler -V >&5") 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }
4922
4923 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4925 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934
4935 int
4936 main ()
4937 {
4938 #ifndef __GNUC__
4939        choke me
4940 #endif
4941
4942   ;
4943   return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4948 case "(($ac_try" in
4949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950   *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953   (eval "$ac_compile") 2>conftest.er1
4954   ac_status=$?
4955   grep -v '^ *+' conftest.er1 >conftest.err
4956   rm -f conftest.er1
4957   cat conftest.err >&5
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); } &&
4960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4961   { (case "(($ac_try" in
4962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963   *) ac_try_echo=$ac_try;;
4964 esac
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966   (eval "$ac_try") 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; } &&
4970          { ac_try='test -s conftest.$ac_objext'
4971   { (case "(($ac_try" in
4972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973   *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976   (eval "$ac_try") 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_compiler_gnu=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985         ac_compiler_gnu=no
4986 fi
4987
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4990
4991 fi
4992 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4993 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4994 GCC=`test $ac_compiler_gnu = yes && echo yes`
4995 ac_test_CFLAGS=${CFLAGS+set}
4996 ac_save_CFLAGS=$CFLAGS
4997 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4998 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4999 if test "${ac_cv_prog_cc_g+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   ac_save_c_werror_flag=$ac_c_werror_flag
5003    ac_c_werror_flag=yes
5004    ac_cv_prog_cc_g=no
5005    CFLAGS="-g"
5006    cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012
5013 int
5014 main ()
5015 {
5016
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5023 case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_compile") 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5036   { (case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_try") 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; } &&
5045          { ac_try='test -s conftest.$ac_objext'
5046   { (case "(($ac_try" in
5047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048   *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051   (eval "$ac_try") 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   ac_cv_prog_cc_g=yes
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060         CFLAGS=""
5061       cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067
5068 int
5069 main ()
5070 {
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5078 case "(($ac_try" in
5079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080   *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083   (eval "$ac_compile") 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5091   { (case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_try") 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; } &&
5100          { ac_try='test -s conftest.$ac_objext'
5101   { (case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_try") 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; }; then
5110   :
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115         ac_c_werror_flag=$ac_save_c_werror_flag
5116          CFLAGS="-g"
5117          cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123
5124 int
5125 main ()
5126 {
5127
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136   *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139   (eval "$ac_compile") 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } &&
5146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5147   { (case "(($ac_try" in
5148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149   *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152   (eval "$ac_try") 2>&5
5153   ac_status=$?
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); }; } &&
5156          { ac_try='test -s conftest.$ac_objext'
5157   { (case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_try") 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; }; then
5166   ac_cv_prog_cc_g=yes
5167 else
5168   echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171
5172 fi
5173
5174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5175 fi
5176
5177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181    ac_c_werror_flag=$ac_save_c_werror_flag
5182 fi
5183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5185 if test "$ac_test_CFLAGS" = set; then
5186   CFLAGS=$ac_save_CFLAGS
5187 elif test $ac_cv_prog_cc_g = yes; then
5188   if test "$GCC" = yes; then
5189     CFLAGS="-g -O2"
5190   else
5191     CFLAGS="-g"
5192   fi
5193 else
5194   if test "$GCC" = yes; then
5195     CFLAGS="-O2"
5196   else
5197     CFLAGS=
5198   fi
5199 fi
5200 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5201 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_cc_c89+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   ac_cv_prog_cc_c89=no
5206 ac_save_CC=$CC
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213 #include <stdarg.h>
5214 #include <stdio.h>
5215 #include <sys/types.h>
5216 #include <sys/stat.h>
5217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5218 struct buf { int x; };
5219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5220 static char *e (p, i)
5221      char **p;
5222      int i;
5223 {
5224   return p[i];
5225 }
5226 static char *f (char * (*g) (char **, int), char **p, ...)
5227 {
5228   char *s;
5229   va_list v;
5230   va_start (v,p);
5231   s = g (p, va_arg (v,int));
5232   va_end (v);
5233   return s;
5234 }
5235
5236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5237    function prototypes and stuff, but not '\xHH' hex character constants.
5238    These don't provoke an error unfortunately, instead are silently treated
5239    as 'x'.  The following induces an error, until -std is added to get
5240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5241    array size at least.  It's necessary to write '\x00'==0 to get something
5242    that's true only with -std.  */
5243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5244
5245 int test (int i, double x);
5246 struct s1 {int (*f) (int a);};
5247 struct s2 {int (*f) (double a);};
5248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5249 int argc;
5250 char **argv;
5251 int
5252 main ()
5253 {
5254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5255   ;
5256   return 0;
5257 }
5258 _ACEOF
5259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5260         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5261 do
5262   CC="$ac_save_CC $ac_arg"
5263   rm -f conftest.$ac_objext
5264 if { (ac_try="$ac_compile"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270   (eval "$ac_compile") 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } &&
5277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5278   { (case "(($ac_try" in
5279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280   *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283   (eval "$ac_try") 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; } &&
5287          { ac_try='test -s conftest.$ac_objext'
5288   { (case "(($ac_try" in
5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290   *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293   (eval "$ac_try") 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; }; then
5297   ac_cv_prog_cc_c89=$ac_arg
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302
5303 fi
5304
5305 rm -f conftest.err conftest.$ac_objext
5306   test "x$ac_cv_prog_cc_c89" != "xno" && break
5307 done
5308 rm -f conftest.$ac_ext
5309 CC=$ac_save_CC
5310
5311 fi
5312 # AC_CACHE_VAL
5313 case "x$ac_cv_prog_cc_c89" in
5314   x)
5315     { echo "$as_me:$LINENO: result: none needed" >&5
5316 echo "${ECHO_T}none needed" >&6; } ;;
5317   xno)
5318     { echo "$as_me:$LINENO: result: unsupported" >&5
5319 echo "${ECHO_T}unsupported" >&6; } ;;
5320   *)
5321     CC="$CC $ac_cv_prog_cc_c89"
5322     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5324 esac
5325
5326
5327 ac_ext=c
5328 ac_cpp='$CPP $CPPFLAGS'
5329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
5333 depcc="$CC"   am_compiler_list=
5334
5335 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5336 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5337 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5341   # We make a subdir and do the tests there.  Otherwise we can end up
5342   # making bogus files that we don't know about and never remove.  For
5343   # instance it was reported that on HP-UX the gcc test will end up
5344   # making a dummy file named `D' -- because `-MD' means `put the output
5345   # in D'.
5346   mkdir conftest.dir
5347   # Copy depcomp to subdir because otherwise we won't find it if we're
5348   # using a relative directory.
5349   cp "$am_depcomp" conftest.dir
5350   cd conftest.dir
5351   # We will build objects and dependencies in a subdirectory because
5352   # it helps to detect inapplicable dependency modes.  For instance
5353   # both Tru64's cc and ICC support -MD to output dependencies as a
5354   # side effect of compilation, but ICC will put the dependencies in
5355   # the current directory while Tru64 will put them in the object
5356   # directory.
5357   mkdir sub
5358
5359   am_cv_CC_dependencies_compiler_type=none
5360   if test "$am_compiler_list" = ""; then
5361      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5362   fi
5363   for depmode in $am_compiler_list; do
5364     # Setup a source with many dependencies, because some compilers
5365     # like to wrap large dependency lists on column 80 (with \), and
5366     # we should not choose a depcomp mode which is confused by this.
5367     #
5368     # We need to recreate these files for each test, as the compiler may
5369     # overwrite some of them when testing with obscure command lines.
5370     # This happens at least with the AIX C compiler.
5371     : > sub/conftest.c
5372     for i in 1 2 3 4 5 6; do
5373       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5374       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5375       # Solaris 8's {/usr,}/bin/sh.
5376       touch sub/conftst$i.h
5377     done
5378     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5379
5380     case $depmode in
5381     nosideeffect)
5382       # after this tag, mechanisms are not by side-effect, so they'll
5383       # only be used when explicitly requested
5384       if test "x$enable_dependency_tracking" = xyes; then
5385         continue
5386       else
5387         break
5388       fi
5389       ;;
5390     none) break ;;
5391     esac
5392     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5393     # mode.  It turns out that the SunPro C++ compiler does not properly
5394     # handle `-M -o', and we need to detect this.
5395     if depmode=$depmode \
5396        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5397        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5398        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5399          >/dev/null 2>conftest.err &&
5400        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5401        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5402        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5403       # icc doesn't choke on unknown options, it will just issue warnings
5404       # or remarks (even with -Werror).  So we grep stderr for any message
5405       # that says an option was ignored or not supported.
5406       # When given -MP, icc 7.0 and 7.1 complain thusly:
5407       #   icc: Command line warning: ignoring option '-M'; no argument required
5408       # The diagnosis changed in icc 8.0:
5409       #   icc: Command line remark: option '-MP' not supported
5410       if (grep 'ignoring option' conftest.err ||
5411           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5412         am_cv_CC_dependencies_compiler_type=$depmode
5413         break
5414       fi
5415     fi
5416   done
5417
5418   cd ..
5419   rm -rf conftest.dir
5420 else
5421   am_cv_CC_dependencies_compiler_type=none
5422 fi
5423
5424 fi
5425 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5426 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5427 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5428
5429
5430
5431 if
5432   test "x$enable_dependency_tracking" != xno \
5433   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5434   am__fastdepCC_TRUE=
5435   am__fastdepCC_FALSE='#'
5436 else
5437   am__fastdepCC_TRUE='#'
5438   am__fastdepCC_FALSE=
5439 fi
5440
5441
5442 ac_ext=c
5443 ac_cpp='$CPP $CPPFLAGS'
5444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5447 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5448 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5449 # On Suns, sometimes $CPP names a directory.
5450 if test -n "$CPP" && test -d "$CPP"; then
5451   CPP=
5452 fi
5453 if test -z "$CPP"; then
5454   if test "${ac_cv_prog_CPP+set}" = set; then
5455   echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457       # Double quotes because CPP needs to be expanded
5458     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5459     do
5460       ac_preproc_ok=false
5461 for ac_c_preproc_warn_flag in '' yes
5462 do
5463   # Use a header file that comes with gcc, so configuring glibc
5464   # with a fresh cross-compiler works.
5465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5466   # <limits.h> exists even on freestanding compilers.
5467   # On the NeXT, cc -E runs the code through the compiler's parser,
5468   # not just through cpp. "Syntax error" is here to catch this case.
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 #ifdef __STDC__
5476 # include <limits.h>
5477 #else
5478 # include <assert.h>
5479 #endif
5480                      Syntax error
5481 _ACEOF
5482 if { (ac_try="$ac_cpp conftest.$ac_ext"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489   ac_status=$?
5490   grep -v '^ *+' conftest.er1 >conftest.err
5491   rm -f conftest.er1
5492   cat conftest.err >&5
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } >/dev/null; then
5495   if test -s conftest.err; then
5496     ac_cpp_err=$ac_c_preproc_warn_flag
5497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498   else
5499     ac_cpp_err=
5500   fi
5501 else
5502   ac_cpp_err=yes
5503 fi
5504 if test -z "$ac_cpp_err"; then
5505   :
5506 else
5507   echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510   # Broken: fails on valid input.
5511 continue
5512 fi
5513
5514 rm -f conftest.err conftest.$ac_ext
5515
5516   # OK, works on sane cases.  Now check whether nonexistent headers
5517   # can be detected and how.
5518   cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 #include <ac_nonexistent.h>
5525 _ACEOF
5526 if { (ac_try="$ac_cpp conftest.$ac_ext"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } >/dev/null; then
5539   if test -s conftest.err; then
5540     ac_cpp_err=$ac_c_preproc_warn_flag
5541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5542   else
5543     ac_cpp_err=
5544   fi
5545 else
5546   ac_cpp_err=yes
5547 fi
5548 if test -z "$ac_cpp_err"; then
5549   # Broken: success on invalid input.
5550 continue
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555   # Passes both tests.
5556 ac_preproc_ok=:
5557 break
5558 fi
5559
5560 rm -f conftest.err conftest.$ac_ext
5561
5562 done
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then
5566   break
5567 fi
5568
5569     done
5570     ac_cv_prog_CPP=$CPP
5571
5572 fi
5573   CPP=$ac_cv_prog_CPP
5574 else
5575   ac_cv_prog_CPP=$CPP
5576 fi
5577 { echo "$as_me:$LINENO: result: $CPP" >&5
5578 echo "${ECHO_T}$CPP" >&6; }
5579 ac_preproc_ok=false
5580 for ac_c_preproc_warn_flag in '' yes
5581 do
5582   # Use a header file that comes with gcc, so configuring glibc
5583   # with a fresh cross-compiler works.
5584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585   # <limits.h> exists even on freestanding compilers.
5586   # On the NeXT, cc -E runs the code through the compiler's parser,
5587   # not just through cpp. "Syntax error" is here to catch this case.
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 #ifdef __STDC__
5595 # include <limits.h>
5596 #else
5597 # include <assert.h>
5598 #endif
5599                      Syntax error
5600 _ACEOF
5601 if { (ac_try="$ac_cpp conftest.$ac_ext"
5602 case "(($ac_try" in
5603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604   *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } >/dev/null; then
5614   if test -s conftest.err; then
5615     ac_cpp_err=$ac_c_preproc_warn_flag
5616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617   else
5618     ac_cpp_err=
5619   fi
5620 else
5621   ac_cpp_err=yes
5622 fi
5623 if test -z "$ac_cpp_err"; then
5624   :
5625 else
5626   echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629   # Broken: fails on valid input.
5630 continue
5631 fi
5632
5633 rm -f conftest.err conftest.$ac_ext
5634
5635   # OK, works on sane cases.  Now check whether nonexistent headers
5636   # can be detected and how.
5637   cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 #include <ac_nonexistent.h>
5644 _ACEOF
5645 if { (ac_try="$ac_cpp conftest.$ac_ext"
5646 case "(($ac_try" in
5647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648   *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } >/dev/null; then
5658   if test -s conftest.err; then
5659     ac_cpp_err=$ac_c_preproc_warn_flag
5660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5661   else
5662     ac_cpp_err=
5663   fi
5664 else
5665   ac_cpp_err=yes
5666 fi
5667 if test -z "$ac_cpp_err"; then
5668   # Broken: success on invalid input.
5669 continue
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674   # Passes both tests.
5675 ac_preproc_ok=:
5676 break
5677 fi
5678
5679 rm -f conftest.err conftest.$ac_ext
5680
5681 done
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then
5685   :
5686 else
5687   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." >&5
5689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5690 See \`config.log' for more details." >&2;}
5691    { (exit 1); exit 1; }; }
5692 fi
5693
5694 ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700 # Find a good install program.  We prefer a C program (faster),
5701 # so one script is as good as another.  But avoid the broken or
5702 # incompatible versions:
5703 # SysV /etc/install, /usr/sbin/install
5704 # SunOS /usr/etc/install
5705 # IRIX /sbin/install
5706 # AIX /bin/install
5707 # AmigaOS /C/install, which installs bootblocks on floppy discs
5708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5711 # OS/2's system install, which has a completely different semantic
5712 # ./install, which can be erroneously created by make from ./install.sh.
5713 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5715 if test -z "$INSTALL"; then
5716 if test "${ac_cv_path_install+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724   # Account for people who put trailing slashes in PATH elements.
5725 case $as_dir/ in
5726   ./ | .// | /cC/* | \
5727   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5728   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5729   /usr/ucb/* ) ;;
5730   *)
5731     # OSF1 and SCO ODT 3.0 have their own names for install.
5732     # Don't use installbsd from OSF since it installs stuff as root
5733     # by default.
5734     for ac_prog in ginstall scoinst install; do
5735       for ac_exec_ext in '' $ac_executable_extensions; do
5736         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5737           if test $ac_prog = install &&
5738             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5739             # AIX install.  It has an incompatible calling convention.
5740             :
5741           elif test $ac_prog = install &&
5742             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5743             # program-specific install script used by HP pwplus--don't use.
5744             :
5745           else
5746             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5747             break 3
5748           fi
5749         fi
5750       done
5751     done
5752     ;;
5753 esac
5754 done
5755 IFS=$as_save_IFS
5756
5757
5758 fi
5759   if test "${ac_cv_path_install+set}" = set; then
5760     INSTALL=$ac_cv_path_install
5761   else
5762     # As a last resort, use the slow shell script.  Don't cache a
5763     # value for INSTALL within a source directory, because that will
5764     # break other packages using the cache if that directory is
5765     # removed, or if the value is a relative name.
5766     INSTALL=$ac_install_sh
5767   fi
5768 fi
5769 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5770 echo "${ECHO_T}$INSTALL" >&6; }
5771
5772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5773 # It thinks the first close brace ends the variable substitution.
5774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5775
5776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5777
5778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5779
5780 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5781 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5782 LN_S=$as_ln_s
5783 if test "$LN_S" = "ln -s"; then
5784   { echo "$as_me:$LINENO: result: yes" >&5
5785 echo "${ECHO_T}yes" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5788 echo "${ECHO_T}no, using $LN_S" >&6; }
5789 fi
5790
5791 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5792 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5793 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/^a-zA-Z0-9_/_/g'`
5794 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   cat >conftest.make <<\_ACEOF
5798 SHELL = /bin/sh
5799 all:
5800         @echo '@@@%%%=$(MAKE)=@@@%%%'
5801 _ACEOF
5802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5804   *@@@%%%=?*=@@@%%%*)
5805     eval ac_cv_prog_make_${ac_make}_set=yes;;
5806   *)
5807     eval ac_cv_prog_make_${ac_make}_set=no;;
5808 esac
5809 rm -f conftest.make
5810 fi
5811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5812   { echo "$as_me:$LINENO: result: yes" >&5
5813 echo "${ECHO_T}yes" >&6; }
5814   SET_MAKE=
5815 else
5816   { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818   SET_MAKE="MAKE=${MAKE-make}"
5819 fi
5820
5821 # Check whether --enable-shared was given.
5822 if test "${enable_shared+set}" = set; then
5823   enableval=$enable_shared; p=${PACKAGE-default}
5824     case $enableval in
5825     yes) enable_shared=yes ;;
5826     no) enable_shared=no ;;
5827     *)
5828       enable_shared=no
5829       # Look at the argument we got.  We use all the common list separators.
5830       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5831       for pkg in $enableval; do
5832         IFS="$lt_save_ifs"
5833         if test "X$pkg" = "X$p"; then
5834           enable_shared=yes
5835         fi
5836       done
5837       IFS="$lt_save_ifs"
5838       ;;
5839     esac
5840 else
5841   enable_shared=yes
5842 fi
5843
5844
5845 # Check whether --enable-static was given.
5846 if test "${enable_static+set}" = set; then
5847   enableval=$enable_static; p=${PACKAGE-default}
5848     case $enableval in
5849     yes) enable_static=yes ;;
5850     no) enable_static=no ;;
5851     *)
5852      enable_static=no
5853       # Look at the argument we got.  We use all the common list separators.
5854       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5855       for pkg in $enableval; do
5856         IFS="$lt_save_ifs"
5857         if test "X$pkg" = "X$p"; then
5858           enable_static=yes
5859         fi
5860       done
5861       IFS="$lt_save_ifs"
5862       ;;
5863     esac
5864 else
5865   enable_static=yes
5866 fi
5867
5868
5869 # Check whether --enable-fast-install was given.
5870 if test "${enable_fast_install+set}" = set; then
5871   enableval=$enable_fast_install; p=${PACKAGE-default}
5872     case $enableval in
5873     yes) enable_fast_install=yes ;;
5874     no) enable_fast_install=no ;;
5875     *)
5876       enable_fast_install=no
5877       # Look at the argument we got.  We use all the common list separators.
5878       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5879       for pkg in $enableval; do
5880         IFS="$lt_save_ifs"
5881         if test "X$pkg" = "X$p"; then
5882           enable_fast_install=yes
5883         fi
5884       done
5885       IFS="$lt_save_ifs"
5886       ;;
5887     esac
5888 else
5889   enable_fast_install=yes
5890 fi
5891
5892
5893 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5894 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5895 if test "${lt_cv_path_SED+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   # Loop through the user's path and test for sed and gsed.
5899 # Then use that list of sed's as ones to test for truncation.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for lt_ac_prog in sed gsed; do
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5908         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5909       fi
5910     done
5911   done
5912 done
5913 lt_ac_max=0
5914 lt_ac_count=0
5915 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5916 # along with /bin/sed that truncates output.
5917 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5918   test ! -f $lt_ac_sed && continue
5919   cat /dev/null > conftest.in
5920   lt_ac_count=0
5921   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5922   # Check for GNU sed and select it if it is found.
5923   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5924     lt_cv_path_SED=$lt_ac_sed
5925     break
5926   fi
5927   while true; do
5928     cat conftest.in conftest.in >conftest.tmp
5929     mv conftest.tmp conftest.in
5930     cp conftest.in conftest.nl
5931     echo >>conftest.nl
5932     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5933     cmp -s conftest.out conftest.nl || break
5934     # 10000 chars as input seems more than enough
5935     test $lt_ac_count -gt 10 && break
5936     lt_ac_count=`expr $lt_ac_count + 1`
5937     if test $lt_ac_count -gt $lt_ac_max; then
5938       lt_ac_max=$lt_ac_count
5939       lt_cv_path_SED=$lt_ac_sed
5940     fi
5941   done
5942 done
5943
5944 fi
5945
5946 SED=$lt_cv_path_SED
5947 { echo "$as_me:$LINENO: result: $SED" >&5
5948 echo "${ECHO_T}$SED" >&6; }
5949
5950 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5951 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5952 if test "${ac_cv_path_GREP+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   # Extract the first word of "grep ggrep" to use in msg output
5956 if test -z "$GREP"; then
5957 set dummy grep ggrep; ac_prog_name=$2
5958 if test "${ac_cv_path_GREP+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   ac_path_GREP_found=false
5962 # Loop through the user's path and test for each of PROGNAME-LIST
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_prog in grep ggrep; do
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5971     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
5972     # Check for GNU ac_path_GREP and select it if it is found.
5973   # Check for GNU $ac_path_GREP
5974 case `"$ac_path_GREP" --version 2>&1` in
5975 *GNU*)
5976   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5977 *)
5978   ac_count=0
5979   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5980   while :
5981   do
5982     cat "conftest.in" "conftest.in" >"conftest.tmp"
5983     mv "conftest.tmp" "conftest.in"
5984     cp "conftest.in" "conftest.nl"
5985     echo 'GREP' >> "conftest.nl"
5986     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5987     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5988     ac_count=`expr $ac_count + 1`
5989     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5990       # Best one so far, save it but keep looking for a better one
5991       ac_cv_path_GREP="$ac_path_GREP"
5992       ac_path_GREP_max=$ac_count
5993     fi
5994     # 10*(2^10) chars as input seems more than enough
5995     test $ac_count -gt 10 && break
5996   done
5997   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5998 esac
5999
6000
6001     $ac_path_GREP_found && break 3
6002   done
6003 done
6004
6005 done
6006 IFS=$as_save_IFS
6007
6008
6009 fi
6010
6011 GREP="$ac_cv_path_GREP"
6012 if test -z "$GREP"; then
6013   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6015    { (exit 1); exit 1; }; }
6016 fi
6017
6018 else
6019   ac_cv_path_GREP=$GREP
6020 fi
6021
6022
6023 fi
6024 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6025 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6026  GREP="$ac_cv_path_GREP"
6027
6028
6029 { echo "$as_me:$LINENO: checking for egrep" >&5
6030 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6031 if test "${ac_cv_path_EGREP+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6035    then ac_cv_path_EGREP="$GREP -E"
6036    else
6037      # Extract the first word of "egrep" to use in msg output
6038 if test -z "$EGREP"; then
6039 set dummy egrep; ac_prog_name=$2
6040 if test "${ac_cv_path_EGREP+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   ac_path_EGREP_found=false
6044 # Loop through the user's path and test for each of PROGNAME-LIST
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050   for ac_prog in egrep; do
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6053     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6054     # Check for GNU ac_path_EGREP and select it if it is found.
6055   # Check for GNU $ac_path_EGREP
6056 case `"$ac_path_EGREP" --version 2>&1` in
6057 *GNU*)
6058   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6059 *)
6060   ac_count=0
6061   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6062   while :
6063   do
6064     cat "conftest.in" "conftest.in" >"conftest.tmp"
6065     mv "conftest.tmp" "conftest.in"
6066     cp "conftest.in" "conftest.nl"
6067     echo 'EGREP' >> "conftest.nl"
6068     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6069     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6070     ac_count=`expr $ac_count + 1`
6071     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6072       # Best one so far, save it but keep looking for a better one
6073       ac_cv_path_EGREP="$ac_path_EGREP"
6074       ac_path_EGREP_max=$ac_count
6075     fi
6076     # 10*(2^10) chars as input seems more than enough
6077     test $ac_count -gt 10 && break
6078   done
6079   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6080 esac
6081
6082
6083     $ac_path_EGREP_found && break 3
6084   done
6085 done
6086
6087 done
6088 IFS=$as_save_IFS
6089
6090
6091 fi
6092
6093 EGREP="$ac_cv_path_EGREP"
6094 if test -z "$EGREP"; then
6095   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6096 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6097    { (exit 1); exit 1; }; }
6098 fi
6099
6100 else
6101   ac_cv_path_EGREP=$EGREP
6102 fi
6103
6104
6105    fi
6106 fi
6107 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6108 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6109  EGREP="$ac_cv_path_EGREP"
6110
6111
6112
6113 # Check whether --with-gnu-ld was given.
6114 if test "${with_gnu_ld+set}" = set; then
6115   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6116 else
6117   with_gnu_ld=no
6118 fi
6119
6120 ac_prog=ld
6121 if test "$GCC" = yes; then
6122   # Check if gcc -print-prog-name=ld gives a path.
6123   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6124 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6125   case $host in
6126   *-*-mingw*)
6127     # gcc leaves a trailing carriage return which upsets mingw
6128     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6129   *)
6130     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6131   esac
6132   case $ac_prog in
6133     # Accept absolute paths.
6134     [\\/]* | ?:[\\/]*)
6135       re_direlt='/[^/][^/]*/\.\./'
6136       # Canonicalize the pathname of ld
6137       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6138       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6139         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6140       done
6141       test -z "$LD" && LD="$ac_prog"
6142       ;;
6143   "")
6144     # If it fails, then pretend we aren't using GCC.
6145     ac_prog=ld
6146     ;;
6147   *)
6148     # If it is relative, then search for the first ld in PATH.
6149     with_gnu_ld=unknown
6150     ;;
6151   esac
6152 elif test "$with_gnu_ld" = yes; then
6153   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6155 else
6156   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6158 fi
6159 if test "${lt_cv_path_LD+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   if test -z "$LD"; then
6163   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6164   for ac_dir in $PATH; do
6165     IFS="$lt_save_ifs"
6166     test -z "$ac_dir" && ac_dir=.
6167     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6168       lt_cv_path_LD="$ac_dir/$ac_prog"
6169       # Check to see if the program is GNU ld.  I'd rather use --version,
6170       # but apparently some variants of GNU ld only accept -v.
6171       # Break only if it was the GNU/non-GNU ld that we prefer.
6172       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6173       *GNU* | *'with BFD'*)
6174         test "$with_gnu_ld" != no && break
6175         ;;
6176       *)
6177         test "$with_gnu_ld" != yes && break
6178         ;;
6179       esac
6180     fi
6181   done
6182   IFS="$lt_save_ifs"
6183 else
6184   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6185 fi
6186 fi
6187
6188 LD="$lt_cv_path_LD"
6189 if test -n "$LD"; then
6190   { echo "$as_me:$LINENO: result: $LD" >&5
6191 echo "${ECHO_T}$LD" >&6; }
6192 else
6193   { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6195 fi
6196 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6197 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6198    { (exit 1); exit 1; }; }
6199 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6200 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6201 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6205 case `$LD -v 2>&1 </dev/null` in
6206 *GNU* | *'with BFD'*)
6207   lt_cv_prog_gnu_ld=yes
6208   ;;
6209 *)
6210   lt_cv_prog_gnu_ld=no
6211   ;;
6212 esac
6213 fi
6214 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6215 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6216 with_gnu_ld=$lt_cv_prog_gnu_ld
6217
6218
6219 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6220 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6221 if test "${lt_cv_ld_reload_flag+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   lt_cv_ld_reload_flag='-r'
6225 fi
6226 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6227 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6228 reload_flag=$lt_cv_ld_reload_flag
6229 case $reload_flag in
6230 "" | " "*) ;;
6231 *) reload_flag=" $reload_flag" ;;
6232 esac
6233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234 case $host_os in
6235   darwin*)
6236     if test "$GCC" = yes; then
6237       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6238     else
6239       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6240     fi
6241     ;;
6242 esac
6243
6244 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6245 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6246 if test "${lt_cv_path_NM+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   if test -n "$NM"; then
6250   # Let the user override the test.
6251   lt_cv_path_NM="$NM"
6252 else
6253   lt_nm_to_check="${ac_tool_prefix}nm"
6254   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6255     lt_nm_to_check="$lt_nm_to_check nm"
6256   fi
6257   for lt_tmp_nm in $lt_nm_to_check; do
6258     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6259     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6260       IFS="$lt_save_ifs"
6261       test -z "$ac_dir" && ac_dir=.
6262       tmp_nm="$ac_dir/$lt_tmp_nm"
6263       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6264         # Check to see if the nm accepts a BSD-compat flag.
6265         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6266         #   nm: unknown option "B" ignored
6267         # Tru64's nm complains that /dev/null is an invalid object file
6268         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6269         */dev/null* | *'Invalid file or object type'*)
6270           lt_cv_path_NM="$tmp_nm -B"
6271           break
6272           ;;
6273         *)
6274           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6275           */dev/null*)
6276             lt_cv_path_NM="$tmp_nm -p"
6277             break
6278             ;;
6279           *)
6280             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6281             continue # so that we can try to find one that supports BSD flags
6282             ;;
6283           esac
6284           ;;
6285         esac
6286       fi
6287     done
6288     IFS="$lt_save_ifs"
6289   done
6290   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6291 fi
6292 fi
6293 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6294 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6295 NM="$lt_cv_path_NM"
6296
6297 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6315
6316 case $host_os in
6317 aix4* | aix5*)
6318   lt_cv_deplibs_check_method=pass_all
6319   ;;
6320
6321 beos*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 bsdi[45]*)
6326   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327   lt_cv_file_magic_cmd='/usr/bin/file -L'
6328   lt_cv_file_magic_test_file=/shlib/libc.so
6329   ;;
6330
6331 cygwin*)
6332   # func_win32_libid is a shell function defined in ltmain.sh
6333   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334   lt_cv_file_magic_cmd='func_win32_libid'
6335   ;;
6336
6337 mingw* | pw32*)
6338   # Base MSYS/MinGW do not provide the 'file' command needed by
6339   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6340   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6341   lt_cv_file_magic_cmd='$OBJDUMP -f'
6342   ;;
6343
6344 darwin* | rhapsody*)
6345   lt_cv_deplibs_check_method=pass_all
6346   ;;
6347
6348 freebsd* | dragonfly*)
6349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6350     case $host_cpu in
6351     i*86 )
6352       # Not sure whether the presence of OpenBSD here was a mistake.
6353       # Let's accept both of them until this is cleared up.
6354       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355       lt_cv_file_magic_cmd=/usr/bin/file
6356       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357       ;;
6358     esac
6359   else
6360     lt_cv_deplibs_check_method=pass_all
6361   fi
6362   ;;
6363
6364 gnu*)
6365   lt_cv_deplibs_check_method=pass_all
6366   ;;
6367
6368 hpux10.20* | hpux11*)
6369   lt_cv_file_magic_cmd=/usr/bin/file
6370   case $host_cpu in
6371   ia64*)
6372     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374     ;;
6375   hppa*64*)
6376     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]'
6377     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378     ;;
6379   *)
6380     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6381     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382     ;;
6383   esac
6384   ;;
6385
6386 interix3*)
6387   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389   ;;
6390
6391 irix5* | irix6* | nonstopux*)
6392   case $LD in
6393   *-32|*"-32 ") libmagic=32-bit;;
6394   *-n32|*"-n32 ") libmagic=N32;;
6395   *-64|*"-64 ") libmagic=64-bit;;
6396   *) libmagic=never-match;;
6397   esac
6398   lt_cv_deplibs_check_method=pass_all
6399   ;;
6400
6401 # This must be Linux ELF.
6402 linux* | k*bsd*-gnu)
6403   lt_cv_deplibs_check_method=pass_all
6404   ;;
6405
6406 netbsd* | netbsdelf*-gnu)
6407   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409   else
6410     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411   fi
6412   ;;
6413
6414 newos6*)
6415   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416   lt_cv_file_magic_cmd=/usr/bin/file
6417   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418   ;;
6419
6420 nto-qnx*)
6421   lt_cv_deplibs_check_method=unknown
6422   ;;
6423
6424 openbsd*)
6425   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427   else
6428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429   fi
6430   ;;
6431
6432 osf3* | osf4* | osf5*)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 solaris*)
6437   lt_cv_deplibs_check_method=pass_all
6438   ;;
6439
6440 sysv4 | sysv4.3*)
6441   case $host_vendor in
6442   motorola)
6443     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]'
6444     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6445     ;;
6446   ncr)
6447     lt_cv_deplibs_check_method=pass_all
6448     ;;
6449   sequent)
6450     lt_cv_file_magic_cmd='/bin/file'
6451     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6452     ;;
6453   sni)
6454     lt_cv_file_magic_cmd='/bin/file'
6455     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6456     lt_cv_file_magic_test_file=/lib/libc.so
6457     ;;
6458   siemens)
6459     lt_cv_deplibs_check_method=pass_all
6460     ;;
6461   pc)
6462     lt_cv_deplibs_check_method=pass_all
6463     ;;
6464   esac
6465   ;;
6466
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468   lt_cv_deplibs_check_method=pass_all
6469   ;;
6470 esac
6471
6472 fi
6473 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6474 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6475 file_magic_cmd=$lt_cv_file_magic_cmd
6476 deplibs_check_method=$lt_cv_deplibs_check_method
6477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6478
6479
6480
6481
6482 # If no C compiler was specified, use CC.
6483 LTCC=${LTCC-"$CC"}
6484
6485 # If no C compiler flags were specified, use CFLAGS.
6486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6487
6488 # Allow CC to be a program name with arguments.
6489 compiler=$CC
6490
6491 # Check whether --enable-libtool-lock was given.
6492 if test "${enable_libtool_lock+set}" = set; then
6493   enableval=$enable_libtool_lock;
6494 fi
6495
6496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6497
6498 # Some flags need to be propagated to the compiler or linker for good
6499 # libtool support.
6500 case $host in
6501 ia64-*-hpux*)
6502   # Find out which ABI we are using.
6503   echo 'int i;' > conftest.$ac_ext
6504   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505   (eval $ac_compile) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }; then
6509     case `/usr/bin/file conftest.$ac_objext` in
6510     *ELF-32*)
6511       HPUX_IA64_MODE="32"
6512       ;;
6513     *ELF-64*)
6514       HPUX_IA64_MODE="64"
6515       ;;
6516     esac
6517   fi
6518   rm -rf conftest*
6519   ;;
6520 *-*-irix6*)
6521   # Find out which ABI we are using.
6522   echo '#line 6522 "configure"' > conftest.$ac_ext
6523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524   (eval $ac_compile) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; then
6528    if test "$lt_cv_prog_gnu_ld" = yes; then
6529     case `/usr/bin/file conftest.$ac_objext` in
6530     *32-bit*)
6531       LD="${LD-ld} -melf32bsmip"
6532       ;;
6533     *N32*)
6534       LD="${LD-ld} -melf32bmipn32"
6535       ;;
6536     *64-bit*)
6537       LD="${LD-ld} -melf64bmip"
6538       ;;
6539     esac
6540    else
6541     case `/usr/bin/file conftest.$ac_objext` in
6542     *32-bit*)
6543       LD="${LD-ld} -32"
6544       ;;
6545     *N32*)
6546       LD="${LD-ld} -n32"
6547       ;;
6548     *64-bit*)
6549       LD="${LD-ld} -64"
6550       ;;
6551     esac
6552    fi
6553   fi
6554   rm -rf conftest*
6555   ;;
6556
6557 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6558   # Find out which ABI we are using.
6559   echo 'int i;' > conftest.$ac_ext
6560   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561   (eval $ac_compile) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; then
6565     case `/usr/bin/file conftest.o` in
6566     *32-bit*)
6567       case $host in
6568         x86_64-*linux*)
6569           LD="${LD-ld} -m elf_i386"
6570           ;;
6571         ppc64-*linux*|powerpc64-*linux*)
6572           LD="${LD-ld} -m elf32ppclinux"
6573           ;;
6574         s390x-*linux*)
6575           LD="${LD-ld} -m elf_s390"
6576           ;;
6577         sparc64-*linux*)
6578           LD="${LD-ld} -m elf32_sparc"
6579           ;;
6580       esac
6581       ;;
6582     *64-bit*)
6583       case $host in
6584         x86_64-*linux*)
6585           LD="${LD-ld} -m elf_x86_64"
6586           ;;
6587         ppc*-*linux*|powerpc*-*linux*)
6588           LD="${LD-ld} -m elf64ppc"
6589           ;;
6590         s390*-*linux*)
6591           LD="${LD-ld} -m elf64_s390"
6592           ;;
6593         sparc*-*linux*)
6594           LD="${LD-ld} -m elf64_sparc"
6595           ;;
6596       esac
6597       ;;
6598     esac
6599   fi
6600   rm -rf conftest*
6601   ;;
6602
6603 *-*-sco3.2v5*)
6604   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605   SAVE_CFLAGS="$CFLAGS"
6606   CFLAGS="$CFLAGS -belf"
6607   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6608 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6609 if test "${lt_cv_cc_needs_belf+set}" = set; then
6610   echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612   ac_ext=c
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
6618      cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624
6625 int
6626 main ()
6627 {
6628
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6635 case "(($ac_try" in
6636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637   *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640   (eval "$ac_link") 2>conftest.er1
6641   ac_status=$?
6642   grep -v '^ *+' conftest.er1 >conftest.err
6643   rm -f conftest.er1
6644   cat conftest.err >&5
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648   { (case "(($ac_try" in
6649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650   *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653   (eval "$ac_try") 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; } &&
6657          { ac_try='test -s conftest$ac_exeext'
6658   { (case "(($ac_try" in
6659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660   *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663   (eval "$ac_try") 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   lt_cv_cc_needs_belf=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672         lt_cv_cc_needs_belf=no
6673 fi
6674
6675 rm -f conftest.err conftest.$ac_objext \
6676       conftest$ac_exeext conftest.$ac_ext
6677      ac_ext=c
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683 fi
6684 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6685 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6686   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6687     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6688     CFLAGS="$SAVE_CFLAGS"
6689   fi
6690   ;;
6691 sparc*-*solaris*)
6692   # Find out which ABI we are using.
6693   echo 'int i;' > conftest.$ac_ext
6694   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; then
6699     case `/usr/bin/file conftest.o` in
6700     *64-bit*)
6701       case $lt_cv_prog_gnu_ld in
6702       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6703       *)    LD="${LD-ld} -64" ;;
6704       esac
6705       ;;
6706     esac
6707   fi
6708   rm -rf conftest*
6709   ;;
6710
6711
6712 esac
6713
6714 need_locks="$enable_libtool_lock"
6715
6716
6717
6718 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6720 if test "${ac_cv_header_stdc+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729 #include <stdlib.h>
6730 #include <stdarg.h>
6731 #include <string.h>
6732 #include <float.h>
6733
6734 int
6735 main ()
6736 {
6737
6738   ;
6739   return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (ac_try="$ac_compile"
6744 case "(($ac_try" in
6745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746   *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749   (eval "$ac_compile") 2>conftest.er1
6750   ac_status=$?
6751   grep -v '^ *+' conftest.er1 >conftest.err
6752   rm -f conftest.er1
6753   cat conftest.err >&5
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); } &&
6756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6757   { (case "(($ac_try" in
6758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759   *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762   (eval "$ac_try") 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); }; } &&
6766          { ac_try='test -s conftest.$ac_objext'
6767   { (case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772   (eval "$ac_try") 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_cv_header_stdc=yes
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781         ac_cv_header_stdc=no
6782 fi
6783
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785
6786 if test $ac_cv_header_stdc = yes; then
6787   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6788   cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794 #include <string.h>
6795
6796 _ACEOF
6797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6798   $EGREP "memchr" >/dev/null 2>&1; then
6799   :
6800 else
6801   ac_cv_header_stdc=no
6802 fi
6803 rm -f conftest*
6804
6805 fi
6806
6807 if test $ac_cv_header_stdc = yes; then
6808   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6809   cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h.  */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h.  */
6815 #include <stdlib.h>
6816
6817 _ACEOF
6818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6819   $EGREP "free" >/dev/null 2>&1; then
6820   :
6821 else
6822   ac_cv_header_stdc=no
6823 fi
6824 rm -f conftest*
6825
6826 fi
6827
6828 if test $ac_cv_header_stdc = yes; then
6829   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6830   if test "$cross_compiling" = yes; then
6831   :
6832 else
6833   cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 #include <ctype.h>
6840 #include <stdlib.h>
6841 #if ((' ' & 0x0FF) == 0x020)
6842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6844 #else
6845 # define ISLOWER(c) \
6846                    (('a' <= (c) && (c) <= 'i') \
6847                      || ('j' <= (c) && (c) <= 'r') \
6848                      || ('s' <= (c) && (c) <= 'z'))
6849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6850 #endif
6851
6852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6853 int
6854 main ()
6855 {
6856   int i;
6857   for (i = 0; i < 256; i++)
6858     if (XOR (islower (i), ISLOWER (i))
6859         || toupper (i) != TOUPPER (i))
6860       return 2;
6861   return 0;
6862 }
6863 _ACEOF
6864 rm -f conftest$ac_exeext
6865 if { (ac_try="$ac_link"
6866 case "(($ac_try" in
6867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6868   *) ac_try_echo=$ac_try;;
6869 esac
6870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6871   (eval "$ac_link") 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6875   { (case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880   (eval "$ac_try") 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; }; then
6884   :
6885 else
6886   echo "$as_me: program exited with status $ac_status" >&5
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890 ( exit $ac_status )
6891 ac_cv_header_stdc=no
6892 fi
6893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6894 fi
6895
6896
6897 fi
6898 fi
6899 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6901 if test $ac_cv_header_stdc = yes; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define STDC_HEADERS 1
6905 _ACEOF
6906
6907 fi
6908
6909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6920                   inttypes.h stdint.h unistd.h
6921 do
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935
6936 #include <$ac_header>
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6940 case "(($ac_try" in
6941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942   *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945   (eval "$ac_compile") 2>conftest.er1
6946   ac_status=$?
6947   grep -v '^ *+' conftest.er1 >conftest.err
6948   rm -f conftest.er1
6949   cat conftest.err >&5
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); } &&
6952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6953   { (case "(($ac_try" in
6954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955   *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958   (eval "$ac_try") 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; } &&
6962          { ac_try='test -s conftest.$ac_objext'
6963   { (case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_try") 2>&5
6969   ac_status=$?
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); }; }; then
6972   eval "$as_ac_Header=yes"
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977         eval "$as_ac_Header=no"
6978 fi
6979
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 ac_res=`eval echo '${'$as_ac_Header'}'`
6983                { echo "$as_me:$LINENO: result: $ac_res" >&5
6984 echo "${ECHO_T}$ac_res" >&6; }
6985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986   cat >>confdefs.h <<_ACEOF
6987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 _ACEOF
6989
6990 fi
6991
6992 done
6993
6994
6995
6996 for ac_header in dlfcn.h
6997 do
6998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7000   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 fi
7005 ac_res=`eval echo '${'$as_ac_Header'}'`
7006                { echo "$as_me:$LINENO: result: $ac_res" >&5
7007 echo "${ECHO_T}$ac_res" >&6; }
7008 else
7009   # Is the header compilable?
7010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h.  */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h.  */
7018 $ac_includes_default
7019 #include <$ac_header>
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (ac_try="$ac_compile"
7023 case "(($ac_try" in
7024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025   *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028   (eval "$ac_compile") 2>conftest.er1
7029   ac_status=$?
7030   grep -v '^ *+' conftest.er1 >conftest.err
7031   rm -f conftest.er1
7032   cat conftest.err >&5
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } &&
7035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7036   { (case "(($ac_try" in
7037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038   *) ac_try_echo=$ac_try;;
7039 esac
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041   (eval "$ac_try") 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; } &&
7045          { ac_try='test -s conftest.$ac_objext'
7046   { (case "(($ac_try" in
7047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048   *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051   (eval "$ac_try") 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; }; then
7055   ac_header_compiler=yes
7056 else
7057   echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060         ac_header_compiler=no
7061 fi
7062
7063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7065 echo "${ECHO_T}$ac_header_compiler" >&6; }
7066
7067 # Is the header present?
7068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 #include <$ac_header>
7077 _ACEOF
7078 if { (ac_try="$ac_cpp conftest.$ac_ext"
7079 case "(($ac_try" in
7080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081   *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7085   ac_status=$?
7086   grep -v '^ *+' conftest.er1 >conftest.err
7087   rm -f conftest.er1
7088   cat conftest.err >&5
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); } >/dev/null; then
7091   if test -s conftest.err; then
7092     ac_cpp_err=$ac_c_preproc_warn_flag
7093     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7094   else
7095     ac_cpp_err=
7096   fi
7097 else
7098   ac_cpp_err=yes
7099 fi
7100 if test -z "$ac_cpp_err"; then
7101   ac_header_preproc=yes
7102 else
7103   echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7105
7106   ac_header_preproc=no
7107 fi
7108
7109 rm -f conftest.err conftest.$ac_ext
7110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7111 echo "${ECHO_T}$ac_header_preproc" >&6; }
7112
7113 # So?  What about this header?
7114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7115   yes:no: )
7116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7120     ac_header_preproc=yes
7121     ;;
7122   no:yes:* )
7123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7135     ( cat <<\_ASBOX
7136 ## ------------------------------- ##
7137 ## Report this to nfs@lists.sf.net ##
7138 ## ------------------------------- ##
7139 _ASBOX
7140      ) | sed "s/^/$as_me: WARNING:     /" >&2
7141     ;;
7142 esac
7143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   eval "$as_ac_Header=\$ac_header_preproc"
7149 fi
7150 ac_res=`eval echo '${'$as_ac_Header'}'`
7151                { echo "$as_me:$LINENO: result: $ac_res" >&5
7152 echo "${ECHO_T}$ac_res" >&6; }
7153
7154 fi
7155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156   cat >>confdefs.h <<_ACEOF
7157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158 _ACEOF
7159
7160 fi
7161
7162 done
7163
7164
7165
7166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7167     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7168     (test "X$CXX" != "Xg++"))) ; then
7169   ac_ext=cpp
7170 ac_cpp='$CXXCPP $CPPFLAGS'
7171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7174 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7175 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7176 if test -z "$CXXCPP"; then
7177   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180       # Double quotes because CXXCPP needs to be expanded
7181     for CXXCPP in "$CXX -E" "/lib/cpp"
7182     do
7183       ac_preproc_ok=false
7184 for ac_cxx_preproc_warn_flag in '' yes
7185 do
7186   # Use a header file that comes with gcc, so configuring glibc
7187   # with a fresh cross-compiler works.
7188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189   # <limits.h> exists even on freestanding compilers.
7190   # On the NeXT, cc -E runs the code through the compiler's parser,
7191   # not just through cpp. "Syntax error" is here to catch this case.
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #ifdef __STDC__
7199 # include <limits.h>
7200 #else
7201 # include <assert.h>
7202 #endif
7203                      Syntax error
7204 _ACEOF
7205 if { (ac_try="$ac_cpp conftest.$ac_ext"
7206 case "(($ac_try" in
7207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208   *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212   ac_status=$?
7213   grep -v '^ *+' conftest.er1 >conftest.err
7214   rm -f conftest.er1
7215   cat conftest.err >&5
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } >/dev/null; then
7218   if test -s conftest.err; then
7219     ac_cpp_err=$ac_cxx_preproc_warn_flag
7220     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7221   else
7222     ac_cpp_err=
7223   fi
7224 else
7225   ac_cpp_err=yes
7226 fi
7227 if test -z "$ac_cpp_err"; then
7228   :
7229 else
7230   echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233   # Broken: fails on valid input.
7234 continue
7235 fi
7236
7237 rm -f conftest.err conftest.$ac_ext
7238
7239   # OK, works on sane cases.  Now check whether nonexistent headers
7240   # can be detected and how.
7241   cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247 #include <ac_nonexistent.h>
7248 _ACEOF
7249 if { (ac_try="$ac_cpp conftest.$ac_ext"
7250 case "(($ac_try" in
7251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252   *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7256   ac_status=$?
7257   grep -v '^ *+' conftest.er1 >conftest.err
7258   rm -f conftest.er1
7259   cat conftest.err >&5
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); } >/dev/null; then
7262   if test -s conftest.err; then
7263     ac_cpp_err=$ac_cxx_preproc_warn_flag
7264     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7265   else
7266     ac_cpp_err=
7267   fi
7268 else
7269   ac_cpp_err=yes
7270 fi
7271 if test -z "$ac_cpp_err"; then
7272   # Broken: success on invalid input.
7273 continue
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278   # Passes both tests.
7279 ac_preproc_ok=:
7280 break
7281 fi
7282
7283 rm -f conftest.err conftest.$ac_ext
7284
7285 done
7286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287 rm -f conftest.err conftest.$ac_ext
7288 if $ac_preproc_ok; then
7289   break
7290 fi
7291
7292     done
7293     ac_cv_prog_CXXCPP=$CXXCPP
7294
7295 fi
7296   CXXCPP=$ac_cv_prog_CXXCPP
7297 else
7298   ac_cv_prog_CXXCPP=$CXXCPP
7299 fi
7300 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7301 echo "${ECHO_T}$CXXCPP" >&6; }
7302 ac_preproc_ok=false
7303 for ac_cxx_preproc_warn_flag in '' yes
7304 do
7305   # Use a header file that comes with gcc, so configuring glibc
7306   # with a fresh cross-compiler works.
7307   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7308   # <limits.h> exists even on freestanding compilers.
7309   # On the NeXT, cc -E runs the code through the compiler's parser,
7310   # not just through cpp. "Syntax error" is here to catch this case.
7311   cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h.  */
7317 #ifdef __STDC__
7318 # include <limits.h>
7319 #else
7320 # include <assert.h>
7321 #endif
7322                      Syntax error
7323 _ACEOF
7324 if { (ac_try="$ac_cpp conftest.$ac_ext"
7325 case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7331   ac_status=$?
7332   grep -v '^ *+' conftest.er1 >conftest.err
7333   rm -f conftest.er1
7334   cat conftest.err >&5
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } >/dev/null; then
7337   if test -s conftest.err; then
7338     ac_cpp_err=$ac_cxx_preproc_warn_flag
7339     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7340   else
7341     ac_cpp_err=
7342   fi
7343 else
7344   ac_cpp_err=yes
7345 fi
7346 if test -z "$ac_cpp_err"; then
7347   :
7348 else
7349   echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352   # Broken: fails on valid input.
7353 continue
7354 fi
7355
7356 rm -f conftest.err conftest.$ac_ext
7357
7358   # OK, works on sane cases.  Now check whether nonexistent headers
7359   # can be detected and how.
7360   cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 #include <ac_nonexistent.h>
7367 _ACEOF
7368 if { (ac_try="$ac_cpp conftest.$ac_ext"
7369 case "(($ac_try" in
7370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371   *) ac_try_echo=$ac_try;;
7372 esac
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7375   ac_status=$?
7376   grep -v '^ *+' conftest.er1 >conftest.err
7377   rm -f conftest.er1
7378   cat conftest.err >&5
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); } >/dev/null; then
7381   if test -s conftest.err; then
7382     ac_cpp_err=$ac_cxx_preproc_warn_flag
7383     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7384   else
7385     ac_cpp_err=
7386   fi
7387 else
7388   ac_cpp_err=yes
7389 fi
7390 if test -z "$ac_cpp_err"; then
7391   # Broken: success on invalid input.
7392 continue
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397   # Passes both tests.
7398 ac_preproc_ok=:
7399 break
7400 fi
7401
7402 rm -f conftest.err conftest.$ac_ext
7403
7404 done
7405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7406 rm -f conftest.err conftest.$ac_ext
7407 if $ac_preproc_ok; then
7408   :
7409 else
7410   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7411 See \`config.log' for more details." >&5
7412 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7413 See \`config.log' for more details." >&2;}
7414    { (exit 1); exit 1; }; }
7415 fi
7416
7417 ac_ext=cpp
7418 ac_cpp='$CXXCPP $CPPFLAGS'
7419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7422
7423 fi
7424
7425
7426 ac_ext=f
7427 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7428 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7430 if test -n "$ac_tool_prefix"; then
7431   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
7432   do
7433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_prog_F77+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   if test -n "$F77"; then
7441   ac_cv_prog_F77="$F77" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446   IFS=$as_save_IFS
7447   test -z "$as_dir" && as_dir=.
7448   for ac_exec_ext in '' $ac_executable_extensions; do
7449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452     break 2
7453   fi
7454 done
7455 done
7456 IFS=$as_save_IFS
7457
7458 fi
7459 fi
7460 F77=$ac_cv_prog_F77
7461 if test -n "$F77"; then
7462   { echo "$as_me:$LINENO: result: $F77" >&5
7463 echo "${ECHO_T}$F77" >&6; }
7464 else
7465   { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7467 fi
7468
7469
7470     test -n "$F77" && break
7471   done
7472 fi
7473 if test -z "$F77"; then
7474   ac_ct_F77=$F77
7475   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
7476 do
7477   # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   if test -n "$ac_ct_F77"; then
7485   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492   for ac_exec_ext in '' $ac_executable_extensions; do
7493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494     ac_cv_prog_ac_ct_F77="$ac_prog"
7495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7505 if test -n "$ac_ct_F77"; then
7506   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7507 echo "${ECHO_T}$ac_ct_F77" >&6; }
7508 else
7509   { echo "$as_me:$LINENO: result: no" >&5
7510 echo "${ECHO_T}no" >&6; }
7511 fi
7512
7513
7514   test -n "$ac_ct_F77" && break
7515 done
7516
7517   if test "x$ac_ct_F77" = x; then
7518     F77=""
7519   else
7520     case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7523 whose name does not start with the host triplet.  If you think this
7524 configuration is useful to you, please write to autoconf@gnu.org." >&5
7525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7526 whose name does not start with the host triplet.  If you think this
7527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     F77=$ac_ct_F77
7531   fi
7532 fi
7533
7534
7535 # Provide some information about the compiler.
7536 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7537 ac_compiler=`set X $ac_compile; echo $2`
7538 { (ac_try="$ac_compiler --version >&5"
7539 case "(($ac_try" in
7540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541   *) ac_try_echo=$ac_try;;
7542 esac
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544   (eval "$ac_compiler --version >&5") 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }
7548 { (ac_try="$ac_compiler -v >&5"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554   (eval "$ac_compiler -v >&5") 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }
7558 { (ac_try="$ac_compiler -V >&5"
7559 case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564   (eval "$ac_compiler -V >&5") 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }
7568 rm -f a.out
7569
7570 # If we don't use `.F' as extension, the preprocessor is not run on the
7571 # input file.  (Note that this only needs to work for GNU compilers.)
7572 ac_save_ext=$ac_ext
7573 ac_ext=F
7574 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7575 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7576 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   cat >conftest.$ac_ext <<_ACEOF
7580       program main
7581 #ifndef __GNUC__
7582        choke me
7583 #endif
7584
7585       end
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7589 case "(($ac_try" in
7590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591   *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594   (eval "$ac_compile") 2>conftest.er1
7595   ac_status=$?
7596   grep -v '^ *+' conftest.er1 >conftest.err
7597   rm -f conftest.er1
7598   cat conftest.err >&5
7599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600   (exit $ac_status); } &&
7601          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7602   { (case "(($ac_try" in
7603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604   *) ac_try_echo=$ac_try;;
7605 esac
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607   (eval "$ac_try") 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; } &&
7611          { ac_try='test -s conftest.$ac_objext'
7612   { (case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_try") 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; }; then
7621   ac_compiler_gnu=yes
7622 else
7623   echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626         ac_compiler_gnu=no
7627 fi
7628
7629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7631
7632 fi
7633 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7634 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7635 ac_ext=$ac_save_ext
7636 ac_test_FFLAGS=${FFLAGS+set}
7637 ac_save_FFLAGS=$FFLAGS
7638 FFLAGS=
7639 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7640 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7641 if test "${ac_cv_prog_f77_g+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   FFLAGS=-g
7645 cat >conftest.$ac_ext <<_ACEOF
7646       program main
7647
7648       end
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (ac_try="$ac_compile"
7652 case "(($ac_try" in
7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654   *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657   (eval "$ac_compile") 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7665   { (case "(($ac_try" in
7666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667   *) ac_try_echo=$ac_try;;
7668 esac
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670   (eval "$ac_try") 2>&5
7671   ac_status=$?
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); }; } &&
7674          { ac_try='test -s conftest.$ac_objext'
7675   { (case "(($ac_try" in
7676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677   *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680   (eval "$ac_try") 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_cv_prog_f77_g=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689         ac_cv_prog_f77_g=no
7690 fi
7691
7692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7693
7694 fi
7695 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7696 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7697 if test "$ac_test_FFLAGS" = set; then
7698   FFLAGS=$ac_save_FFLAGS
7699 elif test $ac_cv_prog_f77_g = yes; then
7700   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7701     FFLAGS="-g -O2"
7702   else
7703     FFLAGS="-g"
7704   fi
7705 else
7706   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7707     FFLAGS="-O2"
7708   else
7709     FFLAGS=
7710   fi
7711 fi
7712
7713 G77=`test $ac_compiler_gnu = yes && echo yes`
7714 ac_ext=c
7715 ac_cpp='$CPP $CPPFLAGS'
7716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7719
7720
7721
7722 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7723
7724 # find the maximum length of command line arguments
7725 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7726 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7727 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730     i=0
7731   teststring="ABCD"
7732
7733   case $build_os in
7734   msdosdjgpp*)
7735     # On DJGPP, this test can blow up pretty badly due to problems in libc
7736     # (any single argument exceeding 2000 bytes causes a buffer overrun
7737     # during glob expansion).  Even if it were fixed, the result of this
7738     # check would be larger than it should be.
7739     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7740     ;;
7741
7742   gnu*)
7743     # Under GNU Hurd, this test is not required because there is
7744     # no limit to the length of command line arguments.
7745     # Libtool will interpret -1 as no limit whatsoever
7746     lt_cv_sys_max_cmd_len=-1;
7747     ;;
7748
7749   cygwin* | mingw*)
7750     # On Win9x/ME, this test blows up -- it succeeds, but takes
7751     # about 5 minutes as the teststring grows exponentially.
7752     # Worse, since 9x/ME are not pre-emptively multitasking,
7753     # you end up with a "frozen" computer, even though with patience
7754     # the test eventually succeeds (with a max line length of 256k).
7755     # Instead, let's just punt: use the minimum linelength reported by
7756     # all of the supported platforms: 8192 (on NT/2K/XP).
7757     lt_cv_sys_max_cmd_len=8192;
7758     ;;
7759
7760   amigaos*)
7761     # On AmigaOS with pdksh, this test takes hours, literally.
7762     # So we just punt and use a minimum line length of 8192.
7763     lt_cv_sys_max_cmd_len=8192;
7764     ;;
7765
7766   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7767     # This has been around since 386BSD, at least.  Likely further.
7768     if test -x /sbin/sysctl; then
7769       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7770     elif test -x /usr/sbin/sysctl; then
7771       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7772     else
7773       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7774     fi
7775     # And add a safety zone
7776     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7777     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7778     ;;
7779
7780   interix*)
7781     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7782     lt_cv_sys_max_cmd_len=196608
7783     ;;
7784
7785   osf*)
7786     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7787     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7788     # nice to cause kernel panics so lets avoid the loop below.
7789     # First set a reasonable default.
7790     lt_cv_sys_max_cmd_len=16384
7791     #
7792     if test -x /sbin/sysconfig; then
7793       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7794         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7795       esac
7796     fi
7797     ;;
7798   sco3.2v5*)
7799     lt_cv_sys_max_cmd_len=102400
7800     ;;
7801   sysv5* | sco5v6* | sysv4.2uw2*)
7802     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7803     if test -n "$kargmax"; then
7804       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7805     else
7806       lt_cv_sys_max_cmd_len=32768
7807     fi
7808     ;;
7809   *)
7810     # If test is not a shell built-in, we'll probably end up computing a
7811     # maximum length that is only half of the actual maximum length, but
7812     # we can't tell.
7813     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7814     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7815                = "XX$teststring") >/dev/null 2>&1 &&
7816             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7817             lt_cv_sys_max_cmd_len=$new_result &&
7818             test $i != 17 # 1/2 MB should be enough
7819     do
7820       i=`expr $i + 1`
7821       teststring=$teststring$teststring
7822     done
7823     teststring=
7824     # Add a significant safety factor because C++ compilers can tack on massive
7825     # amounts of additional arguments before passing them to the linker.
7826     # It appears as though 1/2 is a usable value.
7827     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7828     ;;
7829   esac
7830
7831 fi
7832
7833 if test -n $lt_cv_sys_max_cmd_len ; then
7834   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7835 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7836 else
7837   { echo "$as_me:$LINENO: result: none" >&5
7838 echo "${ECHO_T}none" >&6; }
7839 fi
7840
7841
7842
7843
7844 # Check for command to grab the raw symbol name followed by C symbol from nm.
7845 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7846 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7847 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850
7851 # These are sane defaults that work on at least a few old systems.
7852 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7853
7854 # Character class describing NM global symbol codes.
7855 symcode='[BCDEGRST]'
7856
7857 # Regexp to match symbols that can be accessed directly from C.
7858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7859
7860 # Transform an extracted symbol line into a proper C declaration
7861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7862
7863 # Transform an extracted symbol line into symbol name and symbol address
7864 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'"
7865
7866 # Define system-specific variables.
7867 case $host_os in
7868 aix*)
7869   symcode='[BCDT]'
7870   ;;
7871 cygwin* | mingw* | pw32*)
7872   symcode='[ABCDGISTW]'
7873   ;;
7874 hpux*) # Its linker distinguishes data from code symbols
7875   if test "$host_cpu" = ia64; then
7876     symcode='[ABCDEGRST]'
7877   fi
7878   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7879   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'"
7880   ;;
7881 linux* | k*bsd*-gnu)
7882   if test "$host_cpu" = ia64; then
7883     symcode='[ABCDGIRSTW]'
7884     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7885     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'"
7886   fi
7887   ;;
7888 irix* | nonstopux*)
7889   symcode='[BCDEGRST]'
7890   ;;
7891 osf*)
7892   symcode='[BCDEGQRST]'
7893   ;;
7894 solaris*)
7895   symcode='[BDRT]'
7896   ;;
7897 sco3.2v5*)
7898   symcode='[DT]'
7899   ;;
7900 sysv4.2uw2*)
7901   symcode='[DT]'
7902   ;;
7903 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7904   symcode='[ABDT]'
7905   ;;
7906 sysv4)
7907   symcode='[DFNSTU]'
7908   ;;
7909 esac
7910
7911 # Handle CRLF in mingw tool chain
7912 opt_cr=
7913 case $build_os in
7914 mingw*)
7915   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7916   ;;
7917 esac
7918
7919 # If we're using GNU nm, then use its standard symbol codes.
7920 case `$NM -V 2>&1` in
7921 *GNU* | *'with BFD'*)
7922   symcode='[ABCDGIRSTW]' ;;
7923 esac
7924
7925 # Try without a prefix undercore, then with it.
7926 for ac_symprfx in "" "_"; do
7927
7928   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7929   symxfrm="\\1 $ac_symprfx\\2 \\2"
7930
7931   # Write the raw and C identifiers.
7932   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7933
7934   # Check to see that the pipe works correctly.
7935   pipe_works=no
7936
7937   rm -f conftest*
7938   cat > conftest.$ac_ext <<EOF
7939 #ifdef __cplusplus
7940 extern "C" {
7941 #endif
7942 char nm_test_var;
7943 void nm_test_func(){}
7944 #ifdef __cplusplus
7945 }
7946 #endif
7947 int main(){nm_test_var='a';nm_test_func();return(0);}
7948 EOF
7949
7950   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7951   (eval $ac_compile) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; then
7955     # Now try to grab the symbols.
7956     nlist=conftest.nm
7957     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7958   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } && test -s "$nlist"; then
7962       # Try sorting and uniquifying the output.
7963       if sort "$nlist" | uniq > "$nlist"T; then
7964         mv -f "$nlist"T "$nlist"
7965       else
7966         rm -f "$nlist"T
7967       fi
7968
7969       # Make sure that we snagged all the symbols we need.
7970       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7971         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7972           cat <<EOF > conftest.$ac_ext
7973 #ifdef __cplusplus
7974 extern "C" {
7975 #endif
7976
7977 EOF
7978           # Now generate the symbol file.
7979           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7980
7981           cat <<EOF >> conftest.$ac_ext
7982 #if defined (__STDC__) && __STDC__
7983 # define lt_ptr_t void *
7984 #else
7985 # define lt_ptr_t char *
7986 # define const
7987 #endif
7988
7989 /* The mapping between symbol names and symbols. */
7990 const struct {
7991   const char *name;
7992   lt_ptr_t address;
7993 }
7994 lt_preloaded_symbols[] =
7995 {
7996 EOF
7997           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7998           cat <<\EOF >> conftest.$ac_ext
7999   {0, (lt_ptr_t) 0}
8000 };
8001
8002 #ifdef __cplusplus
8003 }
8004 #endif
8005 EOF
8006           # Now try linking the two files.
8007           mv conftest.$ac_objext conftstm.$ac_objext
8008           lt_save_LIBS="$LIBS"
8009           lt_save_CFLAGS="$CFLAGS"
8010           LIBS="conftstm.$ac_objext"
8011           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8012           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013   (eval $ac_link) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8017             pipe_works=yes
8018           fi
8019           LIBS="$lt_save_LIBS"
8020           CFLAGS="$lt_save_CFLAGS"
8021         else
8022           echo "cannot find nm_test_func in $nlist" >&5
8023         fi
8024       else
8025         echo "cannot find nm_test_var in $nlist" >&5
8026       fi
8027     else
8028       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8029     fi
8030   else
8031     echo "$progname: failed program was:" >&5
8032     cat conftest.$ac_ext >&5
8033   fi
8034   rm -f conftest* conftst*
8035
8036   # Do not use the global_symbol_pipe unless it works.
8037   if test "$pipe_works" = yes; then
8038     break
8039   else
8040     lt_cv_sys_global_symbol_pipe=
8041   fi
8042 done
8043
8044 fi
8045
8046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8047   lt_cv_sys_global_symbol_to_cdecl=
8048 fi
8049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8050   { echo "$as_me:$LINENO: result: failed" >&5
8051 echo "${ECHO_T}failed" >&6; }
8052 else
8053   { echo "$as_me:$LINENO: result: ok" >&5
8054 echo "${ECHO_T}ok" >&6; }
8055 fi
8056
8057 { echo "$as_me:$LINENO: checking for objdir" >&5
8058 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8059 if test "${lt_cv_objdir+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062   rm -f .libs 2>/dev/null
8063 mkdir .libs 2>/dev/null
8064 if test -d .libs; then
8065   lt_cv_objdir=.libs
8066 else
8067   # MS-DOS does not allow filenames that begin with a dot.
8068   lt_cv_objdir=_libs
8069 fi
8070 rmdir .libs 2>/dev/null
8071 fi
8072 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8073 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8074 objdir=$lt_cv_objdir
8075
8076
8077
8078
8079
8080 case $host_os in
8081 aix3*)
8082   # AIX sometimes has problems with the GCC collect2 program.  For some
8083   # reason, if we set the COLLECT_NAMES environment variable, the problems
8084   # vanish in a puff of smoke.
8085   if test "X${COLLECT_NAMES+set}" != Xset; then
8086     COLLECT_NAMES=
8087     export COLLECT_NAMES
8088   fi
8089   ;;
8090 esac
8091
8092 # Sed substitution that helps us do robust quoting.  It backslashifies
8093 # metacharacters that are still active within double-quoted strings.
8094 Xsed='sed -e 1s/^X//'
8095 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8096
8097 # Same as above, but do not quote variable references.
8098 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8099
8100 # Sed substitution to delay expansion of an escaped shell variable in a
8101 # double_quote_subst'ed string.
8102 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8103
8104 # Sed substitution to avoid accidental globbing in evaled expressions
8105 no_glob_subst='s/\*/\\\*/g'
8106
8107 # Constants:
8108 rm="rm -f"
8109
8110 # Global variables:
8111 default_ofile=libtool
8112 can_build_shared=yes
8113
8114 # All known linkers require a `.a' archive for static linking (except MSVC,
8115 # which needs '.lib').
8116 libext=a
8117 ltmain="$ac_aux_dir/ltmain.sh"
8118 ofile="$default_ofile"
8119 with_gnu_ld="$lt_cv_prog_gnu_ld"
8120
8121 if test -n "$ac_tool_prefix"; then
8122   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8123 set dummy ${ac_tool_prefix}ar; ac_word=$2
8124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   if test -n "$AR"; then
8130   ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   test -z "$as_dir" && as_dir=.
8137   for ac_exec_ext in '' $ac_executable_extensions; do
8138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8139     ac_cv_prog_AR="${ac_tool_prefix}ar"
8140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141     break 2
8142   fi
8143 done
8144 done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151   { echo "$as_me:$LINENO: result: $AR" >&5
8152 echo "${ECHO_T}$AR" >&6; }
8153 else
8154   { echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6; }
8156 fi
8157
8158
8159 fi
8160 if test -z "$ac_cv_prog_AR"; then
8161   ac_ct_AR=$AR
8162   # Extract the first word of "ar", so it can be a program name with args.
8163 set dummy ar; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   if test -n "$ac_ct_AR"; then
8170   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175   IFS=$as_save_IFS
8176   test -z "$as_dir" && as_dir=.
8177   for ac_exec_ext in '' $ac_executable_extensions; do
8178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8179     ac_cv_prog_ac_ct_AR="ar"
8180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181     break 2
8182   fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8190 if test -n "$ac_ct_AR"; then
8191   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8192 echo "${ECHO_T}$ac_ct_AR" >&6; }
8193 else
8194   { echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6; }
8196 fi
8197
8198   if test "x$ac_ct_AR" = x; then
8199     AR="false"
8200   else
8201     case $cross_compiling:$ac_tool_warned in
8202 yes:)
8203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8204 whose name does not start with the host triplet.  If you think this
8205 configuration is useful to you, please write to autoconf@gnu.org." >&5
8206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8207 whose name does not start with the host triplet.  If you think this
8208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8209 ac_tool_warned=yes ;;
8210 esac
8211     AR=$ac_ct_AR
8212   fi
8213 else
8214   AR="$ac_cv_prog_AR"
8215 fi
8216
8217 if test -n "$ac_tool_prefix"; then
8218   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_prog_RANLIB+set}" = set; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   if test -n "$RANLIB"; then
8226   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233   for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 RANLIB=$ac_cv_prog_RANLIB
8246 if test -n "$RANLIB"; then
8247   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8248 echo "${ECHO_T}$RANLIB" >&6; }
8249 else
8250   { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_RANLIB"; then
8257   ac_ct_RANLIB=$RANLIB
8258   # Extract the first word of "ranlib", so it can be a program name with args.
8259 set dummy ranlib; ac_word=$2
8260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   if test -n "$ac_ct_RANLIB"; then
8266   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273   for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_prog_ac_ct_RANLIB="ranlib"
8276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8286 if test -n "$ac_ct_RANLIB"; then
8287   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8288 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8289 else
8290   { echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6; }
8292 fi
8293
8294   if test "x$ac_ct_RANLIB" = x; then
8295     RANLIB=":"
8296   else
8297     case $cross_compiling:$ac_tool_warned in
8298 yes:)
8299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8300 whose name does not start with the host triplet.  If you think this
8301 configuration is useful to you, please write to autoconf@gnu.org." >&5
8302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8303 whose name does not start with the host triplet.  If you think this
8304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307     RANLIB=$ac_ct_RANLIB
8308   fi
8309 else
8310   RANLIB="$ac_cv_prog_RANLIB"
8311 fi
8312
8313 if test -n "$ac_tool_prefix"; then
8314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}strip; ac_word=$2
8316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318 if test "${ac_cv_prog_STRIP+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   if test -n "$STRIP"; then
8322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329   for ac_exec_ext in '' $ac_executable_extensions; do
8330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336 done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 STRIP=$ac_cv_prog_STRIP
8342 if test -n "$STRIP"; then
8343   { echo "$as_me:$LINENO: result: $STRIP" >&5
8344 echo "${ECHO_T}$STRIP" >&6; }
8345 else
8346   { echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6; }
8348 fi
8349
8350
8351 fi
8352 if test -z "$ac_cv_prog_STRIP"; then
8353   ac_ct_STRIP=$STRIP
8354   # Extract the first word of "strip", so it can be a program name with args.
8355 set dummy strip; ac_word=$2
8356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8358 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361   if test -n "$ac_ct_STRIP"; then
8362   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_ac_ct_STRIP="strip"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8382 if test -n "$ac_ct_STRIP"; then
8383   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8384 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390   if test "x$ac_ct_STRIP" = x; then
8391     STRIP=":"
8392   else
8393     case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8396 whose name does not start with the host triplet.  If you think this
8397 configuration is useful to you, please write to autoconf@gnu.org." >&5
8398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8399 whose name does not start with the host triplet.  If you think this
8400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8401 ac_tool_warned=yes ;;
8402 esac
8403     STRIP=$ac_ct_STRIP
8404   fi
8405 else
8406   STRIP="$ac_cv_prog_STRIP"
8407 fi
8408
8409
8410 old_CC="$CC"
8411 old_CFLAGS="$CFLAGS"
8412
8413 # Set sane defaults for various variables
8414 test -z "$AR" && AR=ar
8415 test -z "$AR_FLAGS" && AR_FLAGS=cru
8416 test -z "$AS" && AS=as
8417 test -z "$CC" && CC=cc
8418 test -z "$LTCC" && LTCC=$CC
8419 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8420 test -z "$DLLTOOL" && DLLTOOL=dlltool
8421 test -z "$LD" && LD=ld
8422 test -z "$LN_S" && LN_S="ln -s"
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 test -z "$NM" && NM=nm
8425 test -z "$SED" && SED=sed
8426 test -z "$OBJDUMP" && OBJDUMP=objdump
8427 test -z "$RANLIB" && RANLIB=:
8428 test -z "$STRIP" && STRIP=:
8429 test -z "$ac_objext" && ac_objext=o
8430
8431 # Determine commands to create old-style static archives.
8432 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8433 old_postinstall_cmds='chmod 644 $oldlib'
8434 old_postuninstall_cmds=
8435
8436 if test -n "$RANLIB"; then
8437   case $host_os in
8438   openbsd*)
8439     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8440     ;;
8441   *)
8442     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8443     ;;
8444   esac
8445   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8446 fi
8447
8448 for cc_temp in $compiler""; do
8449   case $cc_temp in
8450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8452     \-*) ;;
8453     *) break;;
8454   esac
8455 done
8456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8457
8458
8459 # Only perform the check for file, if the check method requires it
8460 case $deplibs_check_method in
8461 file_magic*)
8462   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8463     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8464 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8465 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8466   echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468   case $MAGIC_CMD in
8469 [\\/*] |  ?:[\\/]*)
8470   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8471   ;;
8472 *)
8473   lt_save_MAGIC_CMD="$MAGIC_CMD"
8474   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476   for ac_dir in $ac_dummy; do
8477     IFS="$lt_save_ifs"
8478     test -z "$ac_dir" && ac_dir=.
8479     if test -f $ac_dir/${ac_tool_prefix}file; then
8480       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8481       if test -n "$file_magic_test_file"; then
8482         case $deplibs_check_method in
8483         "file_magic "*)
8484           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487             $EGREP "$file_magic_regex" > /dev/null; then
8488             :
8489           else
8490             cat <<EOF 1>&2
8491
8492 *** Warning: the command libtool uses to detect shared libraries,
8493 *** $file_magic_cmd, produces output that libtool cannot recognize.
8494 *** The result is that libtool may fail to recognize shared libraries
8495 *** as such.  This will affect the creation of libtool libraries that
8496 *** depend on shared libraries, but programs linked with such libtool
8497 *** libraries will work regardless of this problem.  Nevertheless, you
8498 *** may want to report the problem to your system manager and/or to
8499 *** bug-libtool@gnu.org
8500
8501 EOF
8502           fi ;;
8503         esac
8504       fi
8505       break
8506     fi
8507   done
8508   IFS="$lt_save_ifs"
8509   MAGIC_CMD="$lt_save_MAGIC_CMD"
8510   ;;
8511 esac
8512 fi
8513
8514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515 if test -n "$MAGIC_CMD"; then
8516   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8517 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8518 else
8519   { echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6; }
8521 fi
8522
8523 if test -z "$lt_cv_path_MAGIC_CMD"; then
8524   if test -n "$ac_tool_prefix"; then
8525     { echo "$as_me:$LINENO: checking for file" >&5
8526 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8527 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   case $MAGIC_CMD in
8531 [\\/*] |  ?:[\\/]*)
8532   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8533   ;;
8534 *)
8535   lt_save_MAGIC_CMD="$MAGIC_CMD"
8536   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8537   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8538   for ac_dir in $ac_dummy; do
8539     IFS="$lt_save_ifs"
8540     test -z "$ac_dir" && ac_dir=.
8541     if test -f $ac_dir/file; then
8542       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8543       if test -n "$file_magic_test_file"; then
8544         case $deplibs_check_method in
8545         "file_magic "*)
8546           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8547           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8549             $EGREP "$file_magic_regex" > /dev/null; then
8550             :
8551           else
8552             cat <<EOF 1>&2
8553
8554 *** Warning: the command libtool uses to detect shared libraries,
8555 *** $file_magic_cmd, produces output that libtool cannot recognize.
8556 *** The result is that libtool may fail to recognize shared libraries
8557 *** as such.  This will affect the creation of libtool libraries that
8558 *** depend on shared libraries, but programs linked with such libtool
8559 *** libraries will work regardless of this problem.  Nevertheless, you
8560 *** may want to report the problem to your system manager and/or to
8561 *** bug-libtool@gnu.org
8562
8563 EOF
8564           fi ;;
8565         esac
8566       fi
8567       break
8568     fi
8569   done
8570   IFS="$lt_save_ifs"
8571   MAGIC_CMD="$lt_save_MAGIC_CMD"
8572   ;;
8573 esac
8574 fi
8575
8576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577 if test -n "$MAGIC_CMD"; then
8578   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8579 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8580 else
8581   { echo "$as_me:$LINENO: result: no" >&5
8582 echo "${ECHO_T}no" >&6; }
8583 fi
8584
8585   else
8586     MAGIC_CMD=:
8587   fi
8588 fi
8589
8590   fi
8591   ;;
8592 esac
8593
8594 enable_dlopen=no
8595 enable_win32_dll=no
8596
8597 # Check whether --enable-libtool-lock was given.
8598 if test "${enable_libtool_lock+set}" = set; then
8599   enableval=$enable_libtool_lock;
8600 fi
8601
8602 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8603
8604
8605 # Check whether --with-pic was given.
8606 if test "${with_pic+set}" = set; then
8607   withval=$with_pic; pic_mode="$withval"
8608 else
8609   pic_mode=default
8610 fi
8611
8612 test -z "$pic_mode" && pic_mode=default
8613
8614 # Use C for the default configuration in the libtool script
8615 tagname=
8616 lt_save_CC="$CC"
8617 ac_ext=c
8618 ac_cpp='$CPP $CPPFLAGS'
8619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8622
8623
8624 # Source file extension for C test sources.
8625 ac_ext=c
8626
8627 # Object file extension for compiled C test sources.
8628 objext=o
8629 objext=$objext
8630
8631 # Code to be used in simple compile tests
8632 lt_simple_compile_test_code="int some_variable = 0;\n"
8633
8634 # Code to be used in simple link tests
8635 lt_simple_link_test_code='int main(){return(0);}\n'
8636
8637
8638 # If no C compiler was specified, use CC.
8639 LTCC=${LTCC-"$CC"}
8640
8641 # If no C compiler flags were specified, use CFLAGS.
8642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8643
8644 # Allow CC to be a program name with arguments.
8645 compiler=$CC
8646
8647
8648 # save warnings/boilerplate of simple test code
8649 ac_outfile=conftest.$ac_objext
8650 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8652 _lt_compiler_boilerplate=`cat conftest.err`
8653 $rm conftest*
8654
8655 ac_outfile=conftest.$ac_objext
8656 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8658 _lt_linker_boilerplate=`cat conftest.err`
8659 $rm conftest*
8660
8661
8662
8663 lt_prog_compiler_no_builtin_flag=
8664
8665 if test "$GCC" = yes; then
8666   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8667
8668
8669 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8670 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8671 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   lt_cv_prog_compiler_rtti_exceptions=no
8675   ac_outfile=conftest.$ac_objext
8676    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8677    lt_compiler_flag="-fno-rtti -fno-exceptions"
8678    # Insert the option either (1) after the last *FLAGS variable, or
8679    # (2) before a word containing "conftest.", or (3) at the end.
8680    # Note that $ac_compile itself does not contain backslashes and begins
8681    # with a dollar sign (not a hyphen), so the echo should work correctly.
8682    # The option is referenced via a variable to avoid confusing sed.
8683    lt_compile=`echo "$ac_compile" | $SED \
8684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8686    -e 's:$: $lt_compiler_flag:'`
8687    (eval echo "\"\$as_me:8687: $lt_compile\"" >&5)
8688    (eval "$lt_compile" 2>conftest.err)
8689    ac_status=$?
8690    cat conftest.err >&5
8691    echo "$as_me:8691: \$? = $ac_status" >&5
8692    if (exit $ac_status) && test -s "$ac_outfile"; then
8693      # The compiler can only warn and ignore the option if not recognized
8694      # So say no if there are warnings other than the usual output.
8695      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8696      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8697      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8698        lt_cv_prog_compiler_rtti_exceptions=yes
8699      fi
8700    fi
8701    $rm conftest*
8702
8703 fi
8704 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8705 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8706
8707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8708     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8709 else
8710     :
8711 fi
8712
8713 fi
8714
8715 lt_prog_compiler_wl=
8716 lt_prog_compiler_pic=
8717 lt_prog_compiler_static=
8718
8719 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8720 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8721
8722   if test "$GCC" = yes; then
8723     lt_prog_compiler_wl='-Wl,'
8724     lt_prog_compiler_static='-static'
8725
8726     case $host_os in
8727       aix*)
8728       # All AIX code is PIC.
8729       if test "$host_cpu" = ia64; then
8730         # AIX 5 now supports IA64 processor
8731         lt_prog_compiler_static='-Bstatic'
8732       fi
8733       ;;
8734
8735     amigaos*)
8736       # FIXME: we need at least 68020 code to build shared libraries, but
8737       # adding the `-m68020' flag to GCC prevents building anything better,
8738       # like `-m68040'.
8739       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8740       ;;
8741
8742     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8743       # PIC is the default for these OSes.
8744       ;;
8745
8746     mingw* | pw32* | os2*)
8747       # This hack is so that the source file can tell whether it is being
8748       # built for inclusion in a dll (and should export symbols for example).
8749       lt_prog_compiler_pic='-DDLL_EXPORT'
8750       ;;
8751
8752     darwin* | rhapsody*)
8753       # PIC is the default on this platform
8754       # Common symbols not allowed in MH_DYLIB files
8755       lt_prog_compiler_pic='-fno-common'
8756       ;;
8757
8758     interix3*)
8759       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8760       # Instead, we relocate shared libraries at runtime.
8761       ;;
8762
8763     msdosdjgpp*)
8764       # Just because we use GCC doesn't mean we suddenly get shared libraries
8765       # on systems that don't support them.
8766       lt_prog_compiler_can_build_shared=no
8767       enable_shared=no
8768       ;;
8769
8770     sysv4*MP*)
8771       if test -d /usr/nec; then
8772         lt_prog_compiler_pic=-Kconform_pic
8773       fi
8774       ;;
8775
8776     hpux*)
8777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8778       # not for PA HP-UX.
8779       case $host_cpu in
8780       hppa*64*|ia64*)
8781         # +Z the default
8782         ;;
8783       *)
8784         lt_prog_compiler_pic='-fPIC'
8785         ;;
8786       esac
8787       ;;
8788
8789     *)
8790       lt_prog_compiler_pic='-fPIC'
8791       ;;
8792     esac
8793   else
8794     # PORTME Check for flag to pass linker flags through the system compiler.
8795     case $host_os in
8796     aix*)
8797       lt_prog_compiler_wl='-Wl,'
8798       if test "$host_cpu" = ia64; then
8799         # AIX 5 now supports IA64 processor
8800         lt_prog_compiler_static='-Bstatic'
8801       else
8802         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8803       fi
8804       ;;
8805       darwin*)
8806         # PIC is the default on this platform
8807         # Common symbols not allowed in MH_DYLIB files
8808        case $cc_basename in
8809          xlc*)
8810          lt_prog_compiler_pic='-qnocommon'
8811          lt_prog_compiler_wl='-Wl,'
8812          ;;
8813        esac
8814        ;;
8815
8816     mingw* | pw32* | os2*)
8817       # This hack is so that the source file can tell whether it is being
8818       # built for inclusion in a dll (and should export symbols for example).
8819       lt_prog_compiler_pic='-DDLL_EXPORT'
8820       ;;
8821
8822     hpux9* | hpux10* | hpux11*)
8823       lt_prog_compiler_wl='-Wl,'
8824       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8825       # not for PA HP-UX.
8826       case $host_cpu in
8827       hppa*64*|ia64*)
8828         # +Z the default
8829         ;;
8830       *)
8831         lt_prog_compiler_pic='+Z'
8832         ;;
8833       esac
8834       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8835       lt_prog_compiler_static='${wl}-a ${wl}archive'
8836       ;;
8837
8838     irix5* | irix6* | nonstopux*)
8839       lt_prog_compiler_wl='-Wl,'
8840       # PIC (with -KPIC) is the default.
8841       lt_prog_compiler_static='-non_shared'
8842       ;;
8843
8844     newsos6)
8845       lt_prog_compiler_pic='-KPIC'
8846       lt_prog_compiler_static='-Bstatic'
8847       ;;
8848
8849     linux* | k*bsd*-gnu)
8850       case $cc_basename in
8851       icc* | ecc*)
8852         lt_prog_compiler_wl='-Wl,'
8853         lt_prog_compiler_pic='-KPIC'
8854         lt_prog_compiler_static='-static'
8855         ;;
8856       pgcc* | pgf77* | pgf90* | pgf95*)
8857         # Portland Group compilers (*not* the Pentium gcc compiler,
8858         # which looks to be a dead project)
8859         lt_prog_compiler_wl='-Wl,'
8860         lt_prog_compiler_pic='-fpic'
8861         lt_prog_compiler_static='-Bstatic'
8862         ;;
8863       ccc*)
8864         lt_prog_compiler_wl='-Wl,'
8865         # All Alpha code is PIC.
8866         lt_prog_compiler_static='-non_shared'
8867         ;;
8868       esac
8869       ;;
8870
8871     osf3* | osf4* | osf5*)
8872       lt_prog_compiler_wl='-Wl,'
8873       # All OSF/1 code is PIC.
8874       lt_prog_compiler_static='-non_shared'
8875       ;;
8876
8877     solaris*)
8878       lt_prog_compiler_pic='-KPIC'
8879       lt_prog_compiler_static='-Bstatic'
8880       case $cc_basename in
8881       f77* | f90* | f95*)
8882         lt_prog_compiler_wl='-Qoption ld ';;
8883       *)
8884         lt_prog_compiler_wl='-Wl,';;
8885       esac
8886       ;;
8887
8888     sunos4*)
8889       lt_prog_compiler_wl='-Qoption ld '
8890       lt_prog_compiler_pic='-PIC'
8891       lt_prog_compiler_static='-Bstatic'
8892       ;;
8893
8894     sysv4 | sysv4.2uw2* | sysv4.3*)
8895       lt_prog_compiler_wl='-Wl,'
8896       lt_prog_compiler_pic='-KPIC'
8897       lt_prog_compiler_static='-Bstatic'
8898       ;;
8899
8900     sysv4*MP*)
8901       if test -d /usr/nec ;then
8902         lt_prog_compiler_pic='-Kconform_pic'
8903         lt_prog_compiler_static='-Bstatic'
8904       fi
8905       ;;
8906
8907     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908       lt_prog_compiler_wl='-Wl,'
8909       lt_prog_compiler_pic='-KPIC'
8910       lt_prog_compiler_static='-Bstatic'
8911       ;;
8912
8913     unicos*)
8914       lt_prog_compiler_wl='-Wl,'
8915       lt_prog_compiler_can_build_shared=no
8916       ;;
8917
8918     uts4*)
8919       lt_prog_compiler_pic='-pic'
8920       lt_prog_compiler_static='-Bstatic'
8921       ;;
8922
8923     *)
8924       lt_prog_compiler_can_build_shared=no
8925       ;;
8926     esac
8927   fi
8928
8929 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8930 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8931
8932 #
8933 # Check to make sure the PIC flag actually works.
8934 #
8935 if test -n "$lt_prog_compiler_pic"; then
8936
8937 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8938 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8939 if test "${lt_prog_compiler_pic_works+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   lt_prog_compiler_pic_works=no
8943   ac_outfile=conftest.$ac_objext
8944    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8945    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8946    # Insert the option either (1) after the last *FLAGS variable, or
8947    # (2) before a word containing "conftest.", or (3) at the end.
8948    # Note that $ac_compile itself does not contain backslashes and begins
8949    # with a dollar sign (not a hyphen), so the echo should work correctly.
8950    # The option is referenced via a variable to avoid confusing sed.
8951    lt_compile=`echo "$ac_compile" | $SED \
8952    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954    -e 's:$: $lt_compiler_flag:'`
8955    (eval echo "\"\$as_me:8955: $lt_compile\"" >&5)
8956    (eval "$lt_compile" 2>conftest.err)
8957    ac_status=$?
8958    cat conftest.err >&5
8959    echo "$as_me:8959: \$? = $ac_status" >&5
8960    if (exit $ac_status) && test -s "$ac_outfile"; then
8961      # The compiler can only warn and ignore the option if not recognized
8962      # So say no if there are warnings other than the usual output.
8963      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8964      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8966        lt_prog_compiler_pic_works=yes
8967      fi
8968    fi
8969    $rm conftest*
8970
8971 fi
8972 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8973 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8974
8975 if test x"$lt_prog_compiler_pic_works" = xyes; then
8976     case $lt_prog_compiler_pic in
8977      "" | " "*) ;;
8978      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8979      esac
8980 else
8981     lt_prog_compiler_pic=
8982      lt_prog_compiler_can_build_shared=no
8983 fi
8984
8985 fi
8986 case $host_os in
8987   # For platforms which do not support PIC, -DPIC is meaningless:
8988   *djgpp*)
8989     lt_prog_compiler_pic=
8990     ;;
8991   *)
8992     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8993     ;;
8994 esac
8995
8996 #
8997 # Check to make sure the static flag actually works.
8998 #
8999 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9000 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9001 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9002 if test "${lt_prog_compiler_static_works+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   lt_prog_compiler_static_works=no
9006    save_LDFLAGS="$LDFLAGS"
9007    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9008    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9009    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9010      # The linker can only warn and ignore the option if not recognized
9011      # So say no if there are warnings
9012      if test -s conftest.err; then
9013        # Append any errors to the config.log.
9014        cat conftest.err 1>&5
9015        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9016        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017        if diff conftest.exp conftest.er2 >/dev/null; then
9018          lt_prog_compiler_static_works=yes
9019        fi
9020      else
9021        lt_prog_compiler_static_works=yes
9022      fi
9023    fi
9024    $rm conftest*
9025    LDFLAGS="$save_LDFLAGS"
9026
9027 fi
9028 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9029 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9030
9031 if test x"$lt_prog_compiler_static_works" = xyes; then
9032     :
9033 else
9034     lt_prog_compiler_static=
9035 fi
9036
9037
9038 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   lt_cv_prog_compiler_c_o=no
9044    $rm -r conftest 2>/dev/null
9045    mkdir conftest
9046    cd conftest
9047    mkdir out
9048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050    lt_compiler_flag="-o out/conftest2.$ac_objext"
9051    # Insert the option either (1) after the last *FLAGS variable, or
9052    # (2) before a word containing "conftest.", or (3) at the end.
9053    # Note that $ac_compile itself does not contain backslashes and begins
9054    # with a dollar sign (not a hyphen), so the echo should work correctly.
9055    lt_compile=`echo "$ac_compile" | $SED \
9056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058    -e 's:$: $lt_compiler_flag:'`
9059    (eval echo "\"\$as_me:9059: $lt_compile\"" >&5)
9060    (eval "$lt_compile" 2>out/conftest.err)
9061    ac_status=$?
9062    cat out/conftest.err >&5
9063    echo "$as_me:9063: \$? = $ac_status" >&5
9064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065    then
9066      # The compiler can only warn and ignore the option if not recognized
9067      # So say no if there are warnings
9068      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9069      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071        lt_cv_prog_compiler_c_o=yes
9072      fi
9073    fi
9074    chmod u+w . 2>&5
9075    $rm conftest*
9076    # SGI C++ compiler will create directory out/ii_files/ for
9077    # template instantiation
9078    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9079    $rm out/* && rmdir out
9080    cd ..
9081    rmdir conftest
9082    $rm conftest*
9083
9084 fi
9085 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9087
9088
9089 hard_links="nottested"
9090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9091   # do not overwrite the value of need_locks provided by the user
9092   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9094   hard_links=yes
9095   $rm conftest*
9096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9097   touch conftest.a
9098   ln conftest.a conftest.b 2>&5 || hard_links=no
9099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9100   { echo "$as_me:$LINENO: result: $hard_links" >&5
9101 echo "${ECHO_T}$hard_links" >&6; }
9102   if test "$hard_links" = no; then
9103     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9105     need_locks=warn
9106   fi
9107 else
9108   need_locks=no
9109 fi
9110
9111 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9113
9114   runpath_var=
9115   allow_undefined_flag=
9116   enable_shared_with_static_runtimes=no
9117   archive_cmds=
9118   archive_expsym_cmds=
9119   old_archive_From_new_cmds=
9120   old_archive_from_expsyms_cmds=
9121   export_dynamic_flag_spec=
9122   whole_archive_flag_spec=
9123   thread_safe_flag_spec=
9124   hardcode_libdir_flag_spec=
9125   hardcode_libdir_flag_spec_ld=
9126   hardcode_libdir_separator=
9127   hardcode_direct=no
9128   hardcode_minus_L=no
9129   hardcode_shlibpath_var=unsupported
9130   link_all_deplibs=unknown
9131   hardcode_automatic=no
9132   module_cmds=
9133   module_expsym_cmds=
9134   always_export_symbols=no
9135   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9136   # include_expsyms should be a list of space-separated symbols to be *always*
9137   # included in the symbol list
9138   include_expsyms=
9139   # exclude_expsyms can be an extended regexp of symbols to exclude
9140   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9141   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9142   # as well as any symbol that contains `d'.
9143   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9144   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9145   # platforms (ab)use it in PIC code, but their linkers get confused if
9146   # the symbol is explicitly referenced.  Since portable code cannot
9147   # rely on this symbol name, it's probably fine to never include it in
9148   # preloaded symbol tables.
9149   extract_expsyms_cmds=
9150   # Just being paranoid about ensuring that cc_basename is set.
9151   for cc_temp in $compiler""; do
9152   case $cc_temp in
9153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9155     \-*) ;;
9156     *) break;;
9157   esac
9158 done
9159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9160
9161   case $host_os in
9162   cygwin* | mingw* | pw32*)
9163     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9164     # When not using gcc, we currently assume that we are using
9165     # Microsoft Visual C++.
9166     if test "$GCC" != yes; then
9167       with_gnu_ld=no
9168     fi
9169     ;;
9170   interix*)
9171     # we just hope/assume this is gcc and not c89 (= MSVC++)
9172     with_gnu_ld=yes
9173     ;;
9174   openbsd*)
9175     with_gnu_ld=no
9176     ;;
9177   esac
9178
9179   ld_shlibs=yes
9180   if test "$with_gnu_ld" = yes; then
9181     # If archive_cmds runs LD, not CC, wlarc should be empty
9182     wlarc='${wl}'
9183
9184     # Set some defaults for GNU ld with shared library support. These
9185     # are reset later if shared libraries are not supported. Putting them
9186     # here allows them to be overridden if necessary.
9187     runpath_var=LD_RUN_PATH
9188     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9189     export_dynamic_flag_spec='${wl}--export-dynamic'
9190     # ancient GNU ld didn't support --whole-archive et. al.
9191     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9192         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9193       else
9194         whole_archive_flag_spec=
9195     fi
9196     supports_anon_versioning=no
9197     case `$LD -v 2>/dev/null` in
9198       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9199       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9200       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9201       *\ 2.11.*) ;; # other 2.11 versions
9202       *) supports_anon_versioning=yes ;;
9203     esac
9204
9205     # See if GNU ld supports shared libraries.
9206     case $host_os in
9207     aix3* | aix4* | aix5*)
9208       # On AIX/PPC, the GNU linker is very broken
9209       if test "$host_cpu" != ia64; then
9210         ld_shlibs=no
9211         cat <<EOF 1>&2
9212
9213 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9214 *** to be unable to reliably create shared libraries on AIX.
9215 *** Therefore, libtool is disabling shared libraries support.  If you
9216 *** really care for shared libraries, you may want to modify your PATH
9217 *** so that a non-GNU linker is found, and then restart.
9218
9219 EOF
9220       fi
9221       ;;
9222
9223     amigaos*)
9224       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)'
9225       hardcode_libdir_flag_spec='-L$libdir'
9226       hardcode_minus_L=yes
9227
9228       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9229       # that the semantics of dynamic libraries on AmigaOS, at least up
9230       # to version 4, is to share data among multiple programs linked
9231       # with the same dynamic library.  Since this doesn't match the
9232       # behavior of shared libraries on other platforms, we can't use
9233       # them.
9234       ld_shlibs=no
9235       ;;
9236
9237     beos*)
9238       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9239         allow_undefined_flag=unsupported
9240         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9241         # support --undefined.  This deserves some investigation.  FIXME
9242         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243       else
9244         ld_shlibs=no
9245       fi
9246       ;;
9247
9248     cygwin* | mingw* | pw32*)
9249       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9250       # as there is no search path for DLLs.
9251       hardcode_libdir_flag_spec='-L$libdir'
9252       allow_undefined_flag=unsupported
9253       always_export_symbols=no
9254       enable_shared_with_static_runtimes=yes
9255       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9256
9257       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9259         # If the export-symbols file already is a .def file (1st line
9260         # is EXPORTS), use it as is; otherwise, prepend...
9261         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9262           cp $export_symbols $output_objdir/$soname.def;
9263         else
9264           echo EXPORTS > $output_objdir/$soname.def;
9265           cat $export_symbols >> $output_objdir/$soname.def;
9266         fi~
9267         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9268       else
9269         ld_shlibs=no
9270       fi
9271       ;;
9272
9273     interix3*)
9274       hardcode_direct=no
9275       hardcode_shlibpath_var=no
9276       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9277       export_dynamic_flag_spec='${wl}-E'
9278       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9279       # Instead, shared libraries are loaded at an image base (0x10000000 by
9280       # default) and relocated if they conflict, which is a slow very memory
9281       # consuming and fragmenting process.  To avoid this, we pick a random,
9282       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9283       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9284       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9285       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'
9286       ;;
9287
9288     linux* | k*bsd*-gnu)
9289       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9290         tmp_addflag=
9291         case $cc_basename,$host_cpu in
9292         pgcc*)                          # Portland Group C compiler
9293           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'
9294           tmp_addflag=' $pic_flag'
9295           ;;
9296         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9297           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'
9298           tmp_addflag=' $pic_flag -Mnomain' ;;
9299         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9300           tmp_addflag=' -i_dynamic' ;;
9301         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9302           tmp_addflag=' -i_dynamic -nofor_main' ;;
9303         ifc* | ifort*)                  # Intel Fortran compiler
9304           tmp_addflag=' -nofor_main' ;;
9305         esac
9306         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307
9308         if test $supports_anon_versioning = yes; then
9309           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9310   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9311   $echo "local: *; };" >> $output_objdir/$libname.ver~
9312           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9313         fi
9314         link_all_deplibs=no
9315       else
9316         ld_shlibs=no
9317       fi
9318       ;;
9319
9320     netbsd* | netbsdelf*-gnu)
9321       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9322         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9323         wlarc=
9324       else
9325         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9327       fi
9328       ;;
9329
9330     solaris*)
9331       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9332         ld_shlibs=no
9333         cat <<EOF 1>&2
9334
9335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9336 *** create shared libraries on Solaris systems.  Therefore, libtool
9337 *** is disabling shared libraries support.  We urge you to upgrade GNU
9338 *** binutils to release 2.9.1 or newer.  Another option is to modify
9339 *** your PATH or compiler configuration so that the native linker is
9340 *** used, and then restart.
9341
9342 EOF
9343       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9344         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9346       else
9347         ld_shlibs=no
9348       fi
9349       ;;
9350
9351     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9352       case `$LD -v 2>&1` in
9353         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9354         ld_shlibs=no
9355         cat <<_LT_EOF 1>&2
9356
9357 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9358 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9359 *** is disabling shared libraries support.  We urge you to upgrade GNU
9360 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9361 *** your PATH or compiler configuration so that the native linker is
9362 *** used, and then restart.
9363
9364 _LT_EOF
9365         ;;
9366         *)
9367           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9368             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9369             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9370             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9371           else
9372             ld_shlibs=no
9373           fi
9374         ;;
9375       esac
9376       ;;
9377
9378     sunos4*)
9379       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380       wlarc=
9381       hardcode_direct=yes
9382       hardcode_shlibpath_var=no
9383       ;;
9384
9385     *)
9386       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9387         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9389       else
9390         ld_shlibs=no
9391       fi
9392       ;;
9393     esac
9394
9395     if test "$ld_shlibs" = no; then
9396       runpath_var=
9397       hardcode_libdir_flag_spec=
9398       export_dynamic_flag_spec=
9399       whole_archive_flag_spec=
9400     fi
9401   else
9402     # PORTME fill in a description of your system's linker (not GNU ld)
9403     case $host_os in
9404     aix3*)
9405       allow_undefined_flag=unsupported
9406       always_export_symbols=yes
9407       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'
9408       # Note: this linker hardcodes the directories in LIBPATH if there
9409       # are no directories specified by -L.
9410       hardcode_minus_L=yes
9411       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9412         # Neither direct hardcoding nor static linking is supported with a
9413         # broken collect2.
9414         hardcode_direct=unsupported
9415       fi
9416       ;;
9417
9418     aix4* | aix5*)
9419       if test "$host_cpu" = ia64; then
9420         # On IA64, the linker does run time linking by default, so we don't
9421         # have to do anything special.
9422         aix_use_runtimelinking=no
9423         exp_sym_flag='-Bexport'
9424         no_entry_flag=""
9425       else
9426         # If we're using GNU nm, then we don't want the "-C" option.
9427         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9428         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9429           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'
9430         else
9431           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'
9432         fi
9433         aix_use_runtimelinking=no
9434
9435         # Test if we are trying to use run time linking or normal
9436         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9437         # need to do runtime linking.
9438         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9439           for ld_flag in $LDFLAGS; do
9440           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9441             aix_use_runtimelinking=yes
9442             break
9443           fi
9444           done
9445           ;;
9446         esac
9447
9448         exp_sym_flag='-bexport'
9449         no_entry_flag='-bnoentry'
9450       fi
9451
9452       # When large executables or shared objects are built, AIX ld can
9453       # have problems creating the table of contents.  If linking a library
9454       # or program results in "error TOC overflow" add -mminimal-toc to
9455       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9456       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9457
9458       archive_cmds=''
9459       hardcode_direct=yes
9460       hardcode_libdir_separator=':'
9461       link_all_deplibs=yes
9462
9463       if test "$GCC" = yes; then
9464         case $host_os in aix4.[012]|aix4.[012].*)
9465         # We only want to do this on AIX 4.2 and lower, the check
9466         # below for broken collect2 doesn't work under 4.3+
9467           collect2name=`${CC} -print-prog-name=collect2`
9468           if test -f "$collect2name" && \
9469            strings "$collect2name" | grep resolve_lib_name >/dev/null
9470           then
9471           # We have reworked collect2
9472           hardcode_direct=yes
9473           else
9474           # We have old collect2
9475           hardcode_direct=unsupported
9476           # It fails to find uninstalled libraries when the uninstalled
9477           # path is not listed in the libpath.  Setting hardcode_minus_L
9478           # to unsupported forces relinking
9479           hardcode_minus_L=yes
9480           hardcode_libdir_flag_spec='-L$libdir'
9481           hardcode_libdir_separator=
9482           fi
9483           ;;
9484         esac
9485         shared_flag='-shared'
9486         if test "$aix_use_runtimelinking" = yes; then
9487           shared_flag="$shared_flag "'${wl}-G'
9488         fi
9489       else
9490         # not using gcc
9491         if test "$host_cpu" = ia64; then
9492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9493         # chokes on -Wl,-G. The following line is correct:
9494           shared_flag='-G'
9495         else
9496           if test "$aix_use_runtimelinking" = yes; then
9497             shared_flag='${wl}-G'
9498           else
9499             shared_flag='${wl}-bM:SRE'
9500           fi
9501         fi
9502       fi
9503
9504       # It seems that -bexpall does not export symbols beginning with
9505       # underscore (_), so it is better to generate a list of symbols to export.
9506       always_export_symbols=yes
9507       if test "$aix_use_runtimelinking" = yes; then
9508         # Warning - without using the other runtime loading flags (-brtl),
9509         # -berok will link without error, but may produce a broken library.
9510         allow_undefined_flag='-berok'
9511        # Determine the default libpath from the value encoded in an empty executable.
9512        cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518
9519 int
9520 main ()
9521 {
9522
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9529 case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_link") 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9542   { (case "(($ac_try" in
9543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544   *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547   (eval "$ac_try") 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; } &&
9551          { ac_try='test -s conftest$ac_exeext'
9552   { (case "(($ac_try" in
9553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554   *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557   (eval "$ac_try") 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; }; then
9561
9562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9563 }'`
9564 # Check for a 64-bit object if we didn't find anything.
9565 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; }
9566 }'`; fi
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571
9572 fi
9573
9574 rm -f conftest.err conftest.$ac_objext \
9575       conftest$ac_exeext conftest.$ac_ext
9576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9577
9578        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9579         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"
9580        else
9581         if test "$host_cpu" = ia64; then
9582           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9583           allow_undefined_flag="-z nodefs"
9584           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"
9585         else
9586          # Determine the default libpath from the value encoded in an empty executable.
9587          cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h.  */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h.  */
9593
9594 int
9595 main ()
9596 {
9597
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9604 case "(($ac_try" in
9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606   *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609   (eval "$ac_link") 2>conftest.er1
9610   ac_status=$?
9611   grep -v '^ *+' conftest.er1 >conftest.err
9612   rm -f conftest.er1
9613   cat conftest.err >&5
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617   { (case "(($ac_try" in
9618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619   *) ac_try_echo=$ac_try;;
9620 esac
9621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9622   (eval "$ac_try") 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; } &&
9626          { ac_try='test -s conftest$ac_exeext'
9627   { (case "(($ac_try" in
9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629   *) ac_try_echo=$ac_try;;
9630 esac
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632   (eval "$ac_try") 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; }; then
9636
9637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9638 }'`
9639 # Check for a 64-bit object if we didn't find anything.
9640 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; }
9641 }'`; fi
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646
9647 fi
9648
9649 rm -f conftest.err conftest.$ac_objext \
9650       conftest$ac_exeext conftest.$ac_ext
9651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9652
9653          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9654           # Warning - without using the other run time loading flags,
9655           # -berok will link without error, but may produce a broken library.
9656           no_undefined_flag=' ${wl}-bernotok'
9657           allow_undefined_flag=' ${wl}-berok'
9658           # Exported symbols can be pulled into shared objects from archives
9659           whole_archive_flag_spec='$convenience'
9660           archive_cmds_need_lc=yes
9661           # This is similar to how AIX traditionally builds its shared libraries.
9662           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'
9663         fi
9664       fi
9665       ;;
9666
9667     amigaos*)
9668       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)'
9669       hardcode_libdir_flag_spec='-L$libdir'
9670       hardcode_minus_L=yes
9671       # see comment about different semantics on the GNU ld section
9672       ld_shlibs=no
9673       ;;
9674
9675     bsdi[45]*)
9676       export_dynamic_flag_spec=-rdynamic
9677       ;;
9678
9679     cygwin* | mingw* | pw32*)
9680       # When not using gcc, we currently assume that we are using
9681       # Microsoft Visual C++.
9682       # hardcode_libdir_flag_spec is actually meaningless, as there is
9683       # no search path for DLLs.
9684       hardcode_libdir_flag_spec=' '
9685       allow_undefined_flag=unsupported
9686       # Tell ltmain to make .lib files, not .a files.
9687       libext=lib
9688       # Tell ltmain to make .dll files, not .so files.
9689       shrext_cmds=".dll"
9690       # FIXME: Setting linknames here is a bad hack.
9691       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9692       # The linker will automatically build a .lib file if we build a DLL.
9693       old_archive_From_new_cmds='true'
9694       # FIXME: Should let the user specify the lib program.
9695       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9696       fix_srcfile_path='`cygpath -w "$srcfile"`'
9697       enable_shared_with_static_runtimes=yes
9698       ;;
9699
9700     darwin* | rhapsody*)
9701       case $host_os in
9702         rhapsody* | darwin1.[012])
9703          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9704          ;;
9705        *) # Darwin 1.3 on
9706          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9707            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9708          else
9709            case ${MACOSX_DEPLOYMENT_TARGET} in
9710              10.[012])
9711                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9712                ;;
9713              10.*)
9714                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9715                ;;
9716            esac
9717          fi
9718          ;;
9719       esac
9720       archive_cmds_need_lc=no
9721       hardcode_direct=no
9722       hardcode_automatic=yes
9723       hardcode_shlibpath_var=unsupported
9724       whole_archive_flag_spec=''
9725       link_all_deplibs=yes
9726     if test "$GCC" = yes ; then
9727         output_verbose_link_cmd='echo'
9728         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9729       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9730       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9731       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}'
9732       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}'
9733     else
9734       case $cc_basename in
9735         xlc*)
9736          output_verbose_link_cmd='echo'
9737          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9738          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9739           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9740          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}'
9741           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}'
9742           ;;
9743        *)
9744          ld_shlibs=no
9745           ;;
9746       esac
9747     fi
9748       ;;
9749
9750     dgux*)
9751       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752       hardcode_libdir_flag_spec='-L$libdir'
9753       hardcode_shlibpath_var=no
9754       ;;
9755
9756     freebsd1*)
9757       ld_shlibs=no
9758       ;;
9759
9760     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9761     # support.  Future versions do this automatically, but an explicit c++rt0.o
9762     # does not break anything, and helps significantly (at the cost of a little
9763     # extra space).
9764     freebsd2.2*)
9765       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9766       hardcode_libdir_flag_spec='-R$libdir'
9767       hardcode_direct=yes
9768       hardcode_shlibpath_var=no
9769       ;;
9770
9771     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9772     freebsd2*)
9773       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9774       hardcode_direct=yes
9775       hardcode_minus_L=yes
9776       hardcode_shlibpath_var=no
9777       ;;
9778
9779     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9780     freebsd* | dragonfly*)
9781       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9782       hardcode_libdir_flag_spec='-R$libdir'
9783       hardcode_direct=yes
9784       hardcode_shlibpath_var=no
9785       ;;
9786
9787     hpux9*)
9788       if test "$GCC" = yes; then
9789         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'
9790       else
9791         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'
9792       fi
9793       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794       hardcode_libdir_separator=:
9795       hardcode_direct=yes
9796
9797       # hardcode_minus_L: Not really in the search PATH,
9798       # but as the default location of the library.
9799       hardcode_minus_L=yes
9800       export_dynamic_flag_spec='${wl}-E'
9801       ;;
9802
9803     hpux10*)
9804       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9805         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806       else
9807         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808       fi
9809       if test "$with_gnu_ld" = no; then
9810         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9811         hardcode_libdir_separator=:
9812
9813         hardcode_direct=yes
9814         export_dynamic_flag_spec='${wl}-E'
9815
9816         # hardcode_minus_L: Not really in the search PATH,
9817         # but as the default location of the library.
9818         hardcode_minus_L=yes
9819       fi
9820       ;;
9821
9822     hpux11*)
9823       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9824         case $host_cpu in
9825         hppa*64*)
9826           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9827           ;;
9828         ia64*)
9829           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9830           ;;
9831         *)
9832           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9833           ;;
9834         esac
9835       else
9836         case $host_cpu in
9837         hppa*64*)
9838           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839           ;;
9840         ia64*)
9841           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9842           ;;
9843         *)
9844           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845           ;;
9846         esac
9847       fi
9848       if test "$with_gnu_ld" = no; then
9849         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9850         hardcode_libdir_separator=:
9851
9852         case $host_cpu in
9853         hppa*64*|ia64*)
9854           hardcode_libdir_flag_spec_ld='+b $libdir'
9855           hardcode_direct=no
9856           hardcode_shlibpath_var=no
9857           ;;
9858         *)
9859           hardcode_direct=yes
9860           export_dynamic_flag_spec='${wl}-E'
9861
9862           # hardcode_minus_L: Not really in the search PATH,
9863           # but as the default location of the library.
9864           hardcode_minus_L=yes
9865           ;;
9866         esac
9867       fi
9868       ;;
9869
9870     irix5* | irix6* | nonstopux*)
9871       if test "$GCC" = yes; then
9872         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'
9873       else
9874         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'
9875         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9876       fi
9877       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878       hardcode_libdir_separator=:
9879       link_all_deplibs=yes
9880       ;;
9881
9882     netbsd* | netbsdelf*-gnu)
9883       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9884         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9885       else
9886         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9887       fi
9888       hardcode_libdir_flag_spec='-R$libdir'
9889       hardcode_direct=yes
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     newsos6)
9894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895       hardcode_direct=yes
9896       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897       hardcode_libdir_separator=:
9898       hardcode_shlibpath_var=no
9899       ;;
9900
9901     openbsd*)
9902       hardcode_direct=yes
9903       hardcode_shlibpath_var=no
9904       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9905         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9907         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908         export_dynamic_flag_spec='${wl}-E'
9909       else
9910        case $host_os in
9911          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9912            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9913            hardcode_libdir_flag_spec='-R$libdir'
9914            ;;
9915          *)
9916            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9918            ;;
9919        esac
9920       fi
9921       ;;
9922
9923     os2*)
9924       hardcode_libdir_flag_spec='-L$libdir'
9925       hardcode_minus_L=yes
9926       allow_undefined_flag=unsupported
9927       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'
9928       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9929       ;;
9930
9931     osf3*)
9932       if test "$GCC" = yes; then
9933         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9934         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'
9935       else
9936         allow_undefined_flag=' -expect_unresolved \*'
9937         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'
9938       fi
9939       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9940       hardcode_libdir_separator=:
9941       ;;
9942
9943     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9944       if test "$GCC" = yes; then
9945         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9946         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'
9947         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948       else
9949         allow_undefined_flag=' -expect_unresolved \*'
9950         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'
9951         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9952         $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'
9953
9954         # Both c and cxx compiler support -rpath directly
9955         hardcode_libdir_flag_spec='-rpath $libdir'
9956       fi
9957       hardcode_libdir_separator=:
9958       ;;
9959
9960     solaris*)
9961       no_undefined_flag=' -z text'
9962       if test "$GCC" = yes; then
9963         wlarc='${wl}'
9964         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9965         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9966           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9967       else
9968         wlarc=''
9969         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9971         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9972       fi
9973       hardcode_libdir_flag_spec='-R$libdir'
9974       hardcode_shlibpath_var=no
9975       case $host_os in
9976       solaris2.[0-5] | solaris2.[0-5].*) ;;
9977       *)
9978         # The compiler driver will combine linker options so we
9979         # cannot just pass the convience library names through
9980         # without $wl, iff we do not link with $LD.
9981         # Luckily, gcc supports the same syntax we need for Sun Studio.
9982         # Supported since Solaris 2.6 (maybe 2.5.1?)
9983         case $wlarc in
9984         '')
9985           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9986         *)
9987           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' ;;
9988         esac ;;
9989       esac
9990       link_all_deplibs=yes
9991       ;;
9992
9993     sunos4*)
9994       if test "x$host_vendor" = xsequent; then
9995         # Use $CC to link under sequent, because it throws in some extra .o
9996         # files that make .init and .fini sections work.
9997         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9998       else
9999         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10000       fi
10001       hardcode_libdir_flag_spec='-L$libdir'
10002       hardcode_direct=yes
10003       hardcode_minus_L=yes
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     sysv4)
10008       case $host_vendor in
10009         sni)
10010           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011           hardcode_direct=yes # is this really true???
10012         ;;
10013         siemens)
10014           ## LD is ld it makes a PLAMLIB
10015           ## CC just makes a GrossModule.
10016           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10017           reload_cmds='$CC -r -o $output$reload_objs'
10018           hardcode_direct=no
10019         ;;
10020         motorola)
10021           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10023         ;;
10024       esac
10025       runpath_var='LD_RUN_PATH'
10026       hardcode_shlibpath_var=no
10027       ;;
10028
10029     sysv4.3*)
10030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031       hardcode_shlibpath_var=no
10032       export_dynamic_flag_spec='-Bexport'
10033       ;;
10034
10035     sysv4*MP*)
10036       if test -d /usr/nec; then
10037         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038         hardcode_shlibpath_var=no
10039         runpath_var=LD_RUN_PATH
10040         hardcode_runpath_var=yes
10041         ld_shlibs=yes
10042       fi
10043       ;;
10044
10045     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10046       no_undefined_flag='${wl}-z,text'
10047       archive_cmds_need_lc=no
10048       hardcode_shlibpath_var=no
10049       runpath_var='LD_RUN_PATH'
10050
10051       if test "$GCC" = yes; then
10052         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054       else
10055         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057       fi
10058       ;;
10059
10060     sysv5* | sco3.2v5* | sco5v6*)
10061       # Note: We can NOT use -z defs as we might desire, because we do not
10062       # link with -lc, and that would cause any symbols used from libc to
10063       # always be unresolved, which means just about no library would
10064       # ever link correctly.  If we're not using GNU ld we use -z text
10065       # though, which does catch some bad symbols but isn't as heavy-handed
10066       # as -z defs.
10067       no_undefined_flag='${wl}-z,text'
10068       allow_undefined_flag='${wl}-z,nodefs'
10069       archive_cmds_need_lc=no
10070       hardcode_shlibpath_var=no
10071       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10072       hardcode_libdir_separator=':'
10073       link_all_deplibs=yes
10074       export_dynamic_flag_spec='${wl}-Bexport'
10075       runpath_var='LD_RUN_PATH'
10076
10077       if test "$GCC" = yes; then
10078         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080       else
10081         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083       fi
10084       ;;
10085
10086     uts4*)
10087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088       hardcode_libdir_flag_spec='-L$libdir'
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     *)
10093       ld_shlibs=no
10094       ;;
10095     esac
10096   fi
10097
10098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10099 echo "${ECHO_T}$ld_shlibs" >&6; }
10100 test "$ld_shlibs" = no && can_build_shared=no
10101
10102 #
10103 # Do we need to explicitly link libc?
10104 #
10105 case "x$archive_cmds_need_lc" in
10106 x|xyes)
10107   # Assume -lc should be added
10108   archive_cmds_need_lc=yes
10109
10110   if test "$enable_shared" = yes && test "$GCC" = yes; then
10111     case $archive_cmds in
10112     *'~'*)
10113       # FIXME: we may have to deal with multi-command sequences.
10114       ;;
10115     '$CC '*)
10116       # Test whether the compiler implicitly links with -lc since on some
10117       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10118       # to ld, don't add -lc before -lgcc.
10119       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10120 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10121       $rm conftest*
10122       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10123
10124       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125   (eval $ac_compile) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } 2>conftest.err; then
10129         soname=conftest
10130         lib=conftest
10131         libobjs=conftest.$ac_objext
10132         deplibs=
10133         wl=$lt_prog_compiler_wl
10134         pic_flag=$lt_prog_compiler_pic
10135         compiler_flags=-v
10136         linker_flags=-v
10137         verstring=
10138         output_objdir=.
10139         libname=conftest
10140         lt_save_allow_undefined_flag=$allow_undefined_flag
10141         allow_undefined_flag=
10142         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10143   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }
10147         then
10148           archive_cmds_need_lc=no
10149         else
10150           archive_cmds_need_lc=yes
10151         fi
10152         allow_undefined_flag=$lt_save_allow_undefined_flag
10153       else
10154         cat conftest.err 1>&5
10155       fi
10156       $rm conftest*
10157       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10158 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10159       ;;
10160     esac
10161   fi
10162   ;;
10163 esac
10164
10165 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10167 library_names_spec=
10168 libname_spec='lib$name'
10169 soname_spec=
10170 shrext_cmds=".so"
10171 postinstall_cmds=
10172 postuninstall_cmds=
10173 finish_cmds=
10174 finish_eval=
10175 shlibpath_var=
10176 shlibpath_overrides_runpath=unknown
10177 version_type=none
10178 dynamic_linker="$host_os ld.so"
10179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10180 if test "$GCC" = yes; then
10181   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10182   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10183     # if the path contains ";" then we assume it to be the separator
10184     # otherwise default to the standard path separator (i.e. ":") - it is
10185     # assumed that no part of a normal pathname contains ";" but that should
10186     # okay in the real world where ";" in dirpaths is itself problematic.
10187     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10188   else
10189     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10190   fi
10191 else
10192   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10193 fi
10194 need_lib_prefix=unknown
10195 hardcode_into_libs=no
10196
10197 # when you set need_version to no, make sure it does not cause -set_version
10198 # flags to be left without arguments
10199 need_version=unknown
10200
10201 case $host_os in
10202 aix3*)
10203   version_type=linux
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10205   shlibpath_var=LIBPATH
10206
10207   # AIX 3 has no versioning support, so we append a major version to the name.
10208   soname_spec='${libname}${release}${shared_ext}$major'
10209   ;;
10210
10211 aix4* | aix5*)
10212   version_type=linux
10213   need_lib_prefix=no
10214   need_version=no
10215   hardcode_into_libs=yes
10216   if test "$host_cpu" = ia64; then
10217     # AIX 5 supports IA64
10218     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10219     shlibpath_var=LD_LIBRARY_PATH
10220   else
10221     # With GCC up to 2.95.x, collect2 would create an import file
10222     # for dependence libraries.  The import file would start with
10223     # the line `#! .'.  This would cause the generated library to
10224     # depend on `.', always an invalid library.  This was fixed in
10225     # development snapshots of GCC prior to 3.0.
10226     case $host_os in
10227       aix4 | aix4.[01] | aix4.[01].*)
10228       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10229            echo ' yes '
10230            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10231         :
10232       else
10233         can_build_shared=no
10234       fi
10235       ;;
10236     esac
10237     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10238     # soname into executable. Probably we can add versioning support to
10239     # collect2, so additional links can be useful in future.
10240     if test "$aix_use_runtimelinking" = yes; then
10241       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10242       # instead of lib<name>.a to let people know that these are not
10243       # typical AIX shared libraries.
10244       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245     else
10246       # We preserve .a as extension for shared libraries through AIX4.2
10247       # and later when we are not doing run time linking.
10248       library_names_spec='${libname}${release}.a $libname.a'
10249       soname_spec='${libname}${release}${shared_ext}$major'
10250     fi
10251     shlibpath_var=LIBPATH
10252   fi
10253   ;;
10254
10255 amigaos*)
10256   library_names_spec='$libname.ixlibrary $libname.a'
10257   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10258   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'
10259   ;;
10260
10261 beos*)
10262   library_names_spec='${libname}${shared_ext}'
10263   dynamic_linker="$host_os ld.so"
10264   shlibpath_var=LIBRARY_PATH
10265   ;;
10266
10267 bsdi[45]*)
10268   version_type=linux
10269   need_version=no
10270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10273   shlibpath_var=LD_LIBRARY_PATH
10274   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10275   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10276   # the default ld.so.conf also contains /usr/contrib/lib and
10277   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10278   # libtool to hard-code these into programs
10279   ;;
10280
10281 cygwin* | mingw* | pw32*)
10282   version_type=windows
10283   shrext_cmds=".dll"
10284   need_version=no
10285   need_lib_prefix=no
10286
10287   case $GCC,$host_os in
10288   yes,cygwin* | yes,mingw* | yes,pw32*)
10289     library_names_spec='$libname.dll.a'
10290     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10291     postinstall_cmds='base_file=`basename \${file}`~
10292       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10293       dldir=$destdir/`dirname \$dlpath`~
10294       test -d \$dldir || mkdir -p \$dldir~
10295       $install_prog $dir/$dlname \$dldir/$dlname~
10296       chmod a+x \$dldir/$dlname'
10297     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10298       dlpath=$dir/\$dldll~
10299        $rm \$dlpath'
10300     shlibpath_overrides_runpath=yes
10301
10302     case $host_os in
10303     cygwin*)
10304       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10305       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10307       ;;
10308     mingw*)
10309       # MinGW DLLs use traditional 'lib' prefix
10310       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10311       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10312       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10313         # It is most probably a Windows format PATH printed by
10314         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10315         # path with ; separators, and with drive letters. We can handle the
10316         # drive letters (cygwin fileutils understands them), so leave them,
10317         # especially as we might pass files found there to a mingw objdump,
10318         # which wouldn't understand a cygwinified path. Ahh.
10319         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10320       else
10321         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10322       fi
10323       ;;
10324     pw32*)
10325       # pw32 DLLs use 'pw' prefix rather than 'lib'
10326       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10327       ;;
10328     esac
10329     ;;
10330
10331   *)
10332     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10333     ;;
10334   esac
10335   dynamic_linker='Win32 ld.exe'
10336   # FIXME: first we should search . and the directory the executable is in
10337   shlibpath_var=PATH
10338   ;;
10339
10340 darwin* | rhapsody*)
10341   dynamic_linker="$host_os dyld"
10342   version_type=darwin
10343   need_lib_prefix=no
10344   need_version=no
10345   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10346   soname_spec='${libname}${release}${major}$shared_ext'
10347   shlibpath_overrides_runpath=yes
10348   shlibpath_var=DYLD_LIBRARY_PATH
10349   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10350   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10351   if test "$GCC" = yes; then
10352     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"`
10353   else
10354     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10355   fi
10356   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10357   ;;
10358
10359 dgux*)
10360   version_type=linux
10361   need_lib_prefix=no
10362   need_version=no
10363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   shlibpath_var=LD_LIBRARY_PATH
10366   ;;
10367
10368 freebsd1*)
10369   dynamic_linker=no
10370   ;;
10371
10372 freebsd* | dragonfly*)
10373   # DragonFly does not have aout.  When/if they implement a new
10374   # versioning mechanism, adjust this.
10375   if test -x /usr/bin/objformat; then
10376     objformat=`/usr/bin/objformat`
10377   else
10378     case $host_os in
10379     freebsd[123]*) objformat=aout ;;
10380     *) objformat=elf ;;
10381     esac
10382   fi
10383   version_type=freebsd-$objformat
10384   case $version_type in
10385     freebsd-elf*)
10386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10387       need_version=no
10388       need_lib_prefix=no
10389       ;;
10390     freebsd-*)
10391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10392       need_version=yes
10393       ;;
10394   esac
10395   shlibpath_var=LD_LIBRARY_PATH
10396   case $host_os in
10397   freebsd2*)
10398     shlibpath_overrides_runpath=yes
10399     ;;
10400   freebsd3.[01]* | freebsdelf3.[01]*)
10401     shlibpath_overrides_runpath=yes
10402     hardcode_into_libs=yes
10403     ;;
10404   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10405   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10406     shlibpath_overrides_runpath=no
10407     hardcode_into_libs=yes
10408     ;;
10409   freebsd*) # from 4.6 on
10410     shlibpath_overrides_runpath=yes
10411     hardcode_into_libs=yes
10412     ;;
10413   esac
10414   ;;
10415
10416 gnu*)
10417   version_type=linux
10418   need_lib_prefix=no
10419   need_version=no
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   hardcode_into_libs=yes
10424   ;;
10425
10426 hpux9* | hpux10* | hpux11*)
10427   # Give a soname corresponding to the major version so that dld.sl refuses to
10428   # link against other versions.
10429   version_type=sunos
10430   need_lib_prefix=no
10431   need_version=no
10432   case $host_cpu in
10433   ia64*)
10434     shrext_cmds='.so'
10435     hardcode_into_libs=yes
10436     dynamic_linker="$host_os dld.so"
10437     shlibpath_var=LD_LIBRARY_PATH
10438     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440     soname_spec='${libname}${release}${shared_ext}$major'
10441     if test "X$HPUX_IA64_MODE" = X32; then
10442       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10443     else
10444       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10445     fi
10446     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10447     ;;
10448    hppa*64*)
10449      shrext_cmds='.sl'
10450      hardcode_into_libs=yes
10451      dynamic_linker="$host_os dld.sl"
10452      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10453      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10454      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455      soname_spec='${libname}${release}${shared_ext}$major'
10456      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10457      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10458      ;;
10459    *)
10460     shrext_cmds='.sl'
10461     dynamic_linker="$host_os dld.sl"
10462     shlibpath_var=SHLIB_PATH
10463     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465     soname_spec='${libname}${release}${shared_ext}$major'
10466     ;;
10467   esac
10468   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10469   postinstall_cmds='chmod 555 $lib'
10470   ;;
10471
10472 interix3*)
10473   version_type=linux
10474   need_lib_prefix=no
10475   need_version=no
10476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10477   soname_spec='${libname}${release}${shared_ext}$major'
10478   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10479   shlibpath_var=LD_LIBRARY_PATH
10480   shlibpath_overrides_runpath=no
10481   hardcode_into_libs=yes
10482   ;;
10483
10484 irix5* | irix6* | nonstopux*)
10485   case $host_os in
10486     nonstopux*) version_type=nonstopux ;;
10487     *)
10488         if test "$lt_cv_prog_gnu_ld" = yes; then
10489                 version_type=linux
10490         else
10491                 version_type=irix
10492         fi ;;
10493   esac
10494   need_lib_prefix=no
10495   need_version=no
10496   soname_spec='${libname}${release}${shared_ext}$major'
10497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10498   case $host_os in
10499   irix5* | nonstopux*)
10500     libsuff= shlibsuff=
10501     ;;
10502   *)
10503     case $LD in # libtool.m4 will add one of these switches to LD
10504     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10505       libsuff= shlibsuff= libmagic=32-bit;;
10506     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10507       libsuff=32 shlibsuff=N32 libmagic=N32;;
10508     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10509       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10510     *) libsuff= shlibsuff= libmagic=never-match;;
10511     esac
10512     ;;
10513   esac
10514   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10515   shlibpath_overrides_runpath=no
10516   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10517   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10518   hardcode_into_libs=yes
10519   ;;
10520
10521 # No shared lib support for Linux oldld, aout, or coff.
10522 linux*oldld* | linux*aout* | linux*coff*)
10523   dynamic_linker=no
10524   ;;
10525
10526 # This must be Linux ELF.
10527 linux* | k*bsd*-gnu)
10528   version_type=linux
10529   need_lib_prefix=no
10530   need_version=no
10531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532   soname_spec='${libname}${release}${shared_ext}$major'
10533   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10534   shlibpath_var=LD_LIBRARY_PATH
10535   shlibpath_overrides_runpath=no
10536   # This implies no fast_install, which is unacceptable.
10537   # Some rework will be needed to allow for fast_install
10538   # before this can be enabled.
10539   hardcode_into_libs=yes
10540
10541   # Append ld.so.conf contents to the search path
10542   if test -f /etc/ld.so.conf; then
10543     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' ' '`
10544     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10545   fi
10546
10547   # We used to test for /lib/ld.so.1 and disable shared libraries on
10548   # powerpc, because MkLinux only supported shared libraries with the
10549   # GNU dynamic linker.  Since this was broken with cross compilers,
10550   # most powerpc-linux boxes support dynamic linking these days and
10551   # people can always --disable-shared, the test was removed, and we
10552   # assume the GNU/Linux dynamic linker is in use.
10553   dynamic_linker='GNU/Linux ld.so'
10554   ;;
10555
10556 netbsdelf*-gnu)
10557   version_type=linux
10558   need_lib_prefix=no
10559   need_version=no
10560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10561   soname_spec='${libname}${release}${shared_ext}$major'
10562   shlibpath_var=LD_LIBRARY_PATH
10563   shlibpath_overrides_runpath=no
10564   hardcode_into_libs=yes
10565   dynamic_linker='NetBSD ld.elf_so'
10566   ;;
10567
10568 netbsd*)
10569   version_type=sunos
10570   need_lib_prefix=no
10571   need_version=no
10572   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10575     dynamic_linker='NetBSD (a.out) ld.so'
10576   else
10577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10578     soname_spec='${libname}${release}${shared_ext}$major'
10579     dynamic_linker='NetBSD ld.elf_so'
10580   fi
10581   shlibpath_var=LD_LIBRARY_PATH
10582   shlibpath_overrides_runpath=yes
10583   hardcode_into_libs=yes
10584   ;;
10585
10586 newsos6)
10587   version_type=linux
10588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589   shlibpath_var=LD_LIBRARY_PATH
10590   shlibpath_overrides_runpath=yes
10591   ;;
10592
10593 nto-qnx*)
10594   version_type=linux
10595   need_lib_prefix=no
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   shlibpath_overrides_runpath=yes
10601   ;;
10602
10603 openbsd*)
10604   version_type=sunos
10605   sys_lib_dlsearch_path_spec="/usr/lib"
10606   need_lib_prefix=no
10607   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10608   case $host_os in
10609     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10610     *)                         need_version=no  ;;
10611   esac
10612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616     case $host_os in
10617       openbsd2.[89] | openbsd2.[89].*)
10618         shlibpath_overrides_runpath=no
10619         ;;
10620       *)
10621         shlibpath_overrides_runpath=yes
10622         ;;
10623       esac
10624   else
10625     shlibpath_overrides_runpath=yes
10626   fi
10627   ;;
10628
10629 os2*)
10630   libname_spec='$name'
10631   shrext_cmds=".dll"
10632   need_lib_prefix=no
10633   library_names_spec='$libname${shared_ext} $libname.a'
10634   dynamic_linker='OS/2 ld.exe'
10635   shlibpath_var=LIBPATH
10636   ;;
10637
10638 osf3* | osf4* | osf5*)
10639   version_type=osf
10640   need_lib_prefix=no
10641   need_version=no
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644   shlibpath_var=LD_LIBRARY_PATH
10645   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10647   ;;
10648
10649 solaris*)
10650   version_type=linux
10651   need_lib_prefix=no
10652   need_version=no
10653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654   soname_spec='${libname}${release}${shared_ext}$major'
10655   shlibpath_var=LD_LIBRARY_PATH
10656   shlibpath_overrides_runpath=yes
10657   hardcode_into_libs=yes
10658   # ldd complains unless libraries are executable
10659   postinstall_cmds='chmod +x $lib'
10660   ;;
10661
10662 sunos4*)
10663   version_type=sunos
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10666   shlibpath_var=LD_LIBRARY_PATH
10667   shlibpath_overrides_runpath=yes
10668   if test "$with_gnu_ld" = yes; then
10669     need_lib_prefix=no
10670   fi
10671   need_version=yes
10672   ;;
10673
10674 sysv4 | sysv4.3*)
10675   version_type=linux
10676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677   soname_spec='${libname}${release}${shared_ext}$major'
10678   shlibpath_var=LD_LIBRARY_PATH
10679   case $host_vendor in
10680     sni)
10681       shlibpath_overrides_runpath=no
10682       need_lib_prefix=no
10683       export_dynamic_flag_spec='${wl}-Blargedynsym'
10684       runpath_var=LD_RUN_PATH
10685       ;;
10686     siemens)
10687       need_lib_prefix=no
10688       ;;
10689     motorola)
10690       need_lib_prefix=no
10691       need_version=no
10692       shlibpath_overrides_runpath=no
10693       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10694       ;;
10695   esac
10696   ;;
10697
10698 sysv4*MP*)
10699   if test -d /usr/nec ;then
10700     version_type=linux
10701     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10702     soname_spec='$libname${shared_ext}.$major'
10703     shlibpath_var=LD_LIBRARY_PATH
10704   fi
10705   ;;
10706
10707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10708   version_type=freebsd-elf
10709   need_lib_prefix=no
10710   need_version=no
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712   soname_spec='${libname}${release}${shared_ext}$major'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   hardcode_into_libs=yes
10715   if test "$with_gnu_ld" = yes; then
10716     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10717     shlibpath_overrides_runpath=no
10718   else
10719     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10720     shlibpath_overrides_runpath=yes
10721     case $host_os in
10722       sco3.2v5*)
10723         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10724         ;;
10725     esac
10726   fi
10727   sys_lib_dlsearch_path_spec='/usr/lib'
10728   ;;
10729
10730 uts4*)
10731   version_type=linux
10732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10733   soname_spec='${libname}${release}${shared_ext}$major'
10734   shlibpath_var=LD_LIBRARY_PATH
10735   ;;
10736
10737 *)
10738   dynamic_linker=no
10739   ;;
10740 esac
10741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10742 echo "${ECHO_T}$dynamic_linker" >&6; }
10743 test "$dynamic_linker" = no && can_build_shared=no
10744
10745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10746 if test "$GCC" = yes; then
10747   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10748 fi
10749
10750 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10751 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10752 hardcode_action=
10753 if test -n "$hardcode_libdir_flag_spec" || \
10754    test -n "$runpath_var" || \
10755    test "X$hardcode_automatic" = "Xyes" ; then
10756
10757   # We can hardcode non-existant directories.
10758   if test "$hardcode_direct" != no &&
10759      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10760      # have to relink, otherwise we might link with an installed library
10761      # when we should be linking with a yet-to-be-installed one
10762      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10763      test "$hardcode_minus_L" != no; then
10764     # Linking always hardcodes the temporary library directory.
10765     hardcode_action=relink
10766   else
10767     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10768     hardcode_action=immediate
10769   fi
10770 else
10771   # We cannot hardcode anything, or else we can only hardcode existing
10772   # directories.
10773   hardcode_action=unsupported
10774 fi
10775 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10776 echo "${ECHO_T}$hardcode_action" >&6; }
10777
10778 if test "$hardcode_action" = relink; then
10779   # Fast installation is not supported
10780   enable_fast_install=no
10781 elif test "$shlibpath_overrides_runpath" = yes ||
10782      test "$enable_shared" = no; then
10783   # Fast installation is not necessary
10784   enable_fast_install=needless
10785 fi
10786
10787 striplib=
10788 old_striplib=
10789 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10790 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10791 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10792   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10793   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10794   { echo "$as_me:$LINENO: result: yes" >&5
10795 echo "${ECHO_T}yes" >&6; }
10796 else
10797 # FIXME - insert some real tests, host_os isn't really good enough
10798   case $host_os in
10799    darwin*)
10800        if test -n "$STRIP" ; then
10801          striplib="$STRIP -x"
10802          { echo "$as_me:$LINENO: result: yes" >&5
10803 echo "${ECHO_T}yes" >&6; }
10804        else
10805   { echo "$as_me:$LINENO: result: no" >&5
10806 echo "${ECHO_T}no" >&6; }
10807 fi
10808        ;;
10809    *)
10810   { echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6; }
10812     ;;
10813   esac
10814 fi
10815
10816 if test "x$enable_dlopen" != xyes; then
10817   enable_dlopen=unknown
10818   enable_dlopen_self=unknown
10819   enable_dlopen_self_static=unknown
10820 else
10821   lt_cv_dlopen=no
10822   lt_cv_dlopen_libs=
10823
10824   case $host_os in
10825   beos*)
10826     lt_cv_dlopen="load_add_on"
10827     lt_cv_dlopen_libs=
10828     lt_cv_dlopen_self=yes
10829     ;;
10830
10831   mingw* | pw32*)
10832     lt_cv_dlopen="LoadLibrary"
10833     lt_cv_dlopen_libs=
10834    ;;
10835
10836   cygwin*)
10837     lt_cv_dlopen="dlopen"
10838     lt_cv_dlopen_libs=
10839    ;;
10840
10841   darwin*)
10842   # if libdl is installed we need to link against it
10843     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-ldl  $LIBS"
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858    Use char because int might match the return type of a GCC
10859    builtin and then its argument prototype would still apply.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10864 int
10865 main ()
10866 {
10867 return dlopen ();
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   ac_cv_lib_dl_dlopen=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_cv_lib_dl_dlopen=no
10912 fi
10913
10914 rm -f conftest.err conftest.$ac_objext \
10915       conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10919 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10920 if test $ac_cv_lib_dl_dlopen = yes; then
10921   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10922 else
10923
10924     lt_cv_dlopen="dyld"
10925     lt_cv_dlopen_libs=
10926     lt_cv_dlopen_self=yes
10927
10928 fi
10929
10930    ;;
10931
10932   *)
10933     { echo "$as_me:$LINENO: checking for shl_load" >&5
10934 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10935 if test "${ac_cv_func_shl_load+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10946 #define shl_load innocuous_shl_load
10947
10948 /* System header to define __stub macros and hopefully few prototypes,
10949     which can conflict with char shl_load (); below.
10950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10951     <limits.h> exists even on freestanding compilers.  */
10952
10953 #ifdef __STDC__
10954 # include <limits.h>
10955 #else
10956 # include <assert.h>
10957 #endif
10958
10959 #undef shl_load
10960
10961 /* Override any GCC internal prototype to avoid an error.
10962    Use char because int might match the return type of a GCC
10963    builtin and then its argument prototype would still apply.  */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 char shl_load ();
10968 /* The GNU C library defines this for functions which it implements
10969     to always fail with ENOSYS.  Some functions are actually named
10970     something starting with __ and the normal name is an alias.  */
10971 #if defined __stub_shl_load || defined __stub___shl_load
10972 choke me
10973 #endif
10974
10975 int
10976 main ()
10977 {
10978 return shl_load ();
10979   ;
10980   return 0;
10981 }
10982 _ACEOF
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_link") 2>conftest.er1
10991   ac_status=$?
10992   grep -v '^ *+' conftest.er1 >conftest.err
10993   rm -f conftest.er1
10994   cat conftest.err >&5
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10998   { (case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_try") 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; } &&
11007          { ac_try='test -s conftest$ac_exeext'
11008   { (case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013   (eval "$ac_try") 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; }; then
11017   ac_cv_func_shl_load=yes
11018 else
11019   echo "$as_me: failed program was:" >&5
11020 sed 's/^/| /' conftest.$ac_ext >&5
11021
11022         ac_cv_func_shl_load=no
11023 fi
11024
11025 rm -f conftest.err conftest.$ac_objext \
11026       conftest$ac_exeext conftest.$ac_ext
11027 fi
11028 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11029 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11030 if test $ac_cv_func_shl_load = yes; then
11031   lt_cv_dlopen="shl_load"
11032 else
11033   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11034 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11036   echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038   ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-ldld  $LIBS"
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046
11047 /* Override any GCC internal prototype to avoid an error.
11048    Use char because int might match the return type of a GCC
11049    builtin and then its argument prototype would still apply.  */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char shl_load ();
11054 int
11055 main ()
11056 {
11057 return shl_load ();
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (ac_try="$ac_link"
11064 case "(($ac_try" in
11065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066   *) ac_try_echo=$ac_try;;
11067 esac
11068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069   (eval "$ac_link") 2>conftest.er1
11070   ac_status=$?
11071   grep -v '^ *+' conftest.er1 >conftest.err
11072   rm -f conftest.er1
11073   cat conftest.err >&5
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); } &&
11076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11077   { (case "(($ac_try" in
11078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079   *) ac_try_echo=$ac_try;;
11080 esac
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082   (eval "$ac_try") 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; } &&
11086          { ac_try='test -s conftest$ac_exeext'
11087   { (case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_try") 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   ac_cv_lib_dld_shl_load=yes
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101         ac_cv_lib_dld_shl_load=no
11102 fi
11103
11104 rm -f conftest.err conftest.$ac_objext \
11105       conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11107 fi
11108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11109 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11110 if test $ac_cv_lib_dld_shl_load = yes; then
11111   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11112 else
11113   { echo "$as_me:$LINENO: checking for dlopen" >&5
11114 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11115 if test "${ac_cv_func_dlopen+set}" = set; then
11116   echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118   cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11126 #define dlopen innocuous_dlopen
11127
11128 /* System header to define __stub macros and hopefully few prototypes,
11129     which can conflict with char dlopen (); below.
11130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11131     <limits.h> exists even on freestanding compilers.  */
11132
11133 #ifdef __STDC__
11134 # include <limits.h>
11135 #else
11136 # include <assert.h>
11137 #endif
11138
11139 #undef dlopen
11140
11141 /* Override any GCC internal prototype to avoid an error.
11142    Use char because int might match the return type of a GCC
11143    builtin and then its argument prototype would still apply.  */
11144 #ifdef __cplusplus
11145 extern "C"
11146 #endif
11147 char dlopen ();
11148 /* The GNU C library defines this for functions which it implements
11149     to always fail with ENOSYS.  Some functions are actually named
11150     something starting with __ and the normal name is an alias.  */
11151 #if defined __stub_dlopen || defined __stub___dlopen
11152 choke me
11153 #endif
11154
11155 int
11156 main ()
11157 {
11158 return dlopen ();
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_link") 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } &&
11177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178   { (case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_try") 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; } &&
11187          { ac_try='test -s conftest$ac_exeext'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; }; then
11197   ac_cv_func_dlopen=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202         ac_cv_func_dlopen=no
11203 fi
11204
11205 rm -f conftest.err conftest.$ac_objext \
11206       conftest$ac_exeext conftest.$ac_ext
11207 fi
11208 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11209 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11210 if test $ac_cv_func_dlopen = yes; then
11211   lt_cv_dlopen="dlopen"
11212 else
11213   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   ac_check_lib_save_LIBS=$LIBS
11219 LIBS="-ldl  $LIBS"
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226
11227 /* Override any GCC internal prototype to avoid an error.
11228    Use char because int might match the return type of a GCC
11229    builtin and then its argument prototype would still apply.  */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char dlopen ();
11234 int
11235 main ()
11236 {
11237 return dlopen ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext conftest$ac_exeext
11243 if { (ac_try="$ac_link"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_link") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } &&
11256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257   { (case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_try") 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest$ac_exeext'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; }; then
11276   ac_cv_lib_dl_dlopen=yes
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281         ac_cv_lib_dl_dlopen=no
11282 fi
11283
11284 rm -f conftest.err conftest.$ac_objext \
11285       conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11287 fi
11288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11290 if test $ac_cv_lib_dl_dlopen = yes; then
11291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11292 else
11293   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11294 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-lsvld  $LIBS"
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308    Use char because int might match the return type of a GCC
11309    builtin and then its argument prototype would still apply.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char dlopen ();
11314 int
11315 main ()
11316 {
11317 return dlopen ();
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (ac_try="$ac_link"
11324 case "(($ac_try" in
11325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326   *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329   (eval "$ac_link") 2>conftest.er1
11330   ac_status=$?
11331   grep -v '^ *+' conftest.er1 >conftest.err
11332   rm -f conftest.er1
11333   cat conftest.err >&5
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); } &&
11336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11337   { (case "(($ac_try" in
11338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339   *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342   (eval "$ac_try") 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest$ac_exeext'
11347   { (case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_try") 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); }; }; then
11356   ac_cv_lib_svld_dlopen=yes
11357 else
11358   echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361         ac_cv_lib_svld_dlopen=no
11362 fi
11363
11364 rm -f conftest.err conftest.$ac_objext \
11365       conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11369 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11370 if test $ac_cv_lib_svld_dlopen = yes; then
11371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11372 else
11373   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11374 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11375 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-ldld  $LIBS"
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h.  */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h.  */
11386
11387 /* Override any GCC internal prototype to avoid an error.
11388    Use char because int might match the return type of a GCC
11389    builtin and then its argument prototype would still apply.  */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char dld_link ();
11394 int
11395 main ()
11396 {
11397 return dld_link ();
11398   ;
11399   return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (ac_try="$ac_link"
11404 case "(($ac_try" in
11405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406   *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409   (eval "$ac_link") 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11417   { (case "(($ac_try" in
11418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419   *) ac_try_echo=$ac_try;;
11420 esac
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422   (eval "$ac_try") 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; } &&
11426          { ac_try='test -s conftest$ac_exeext'
11427   { (case "(($ac_try" in
11428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429   *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432   (eval "$ac_try") 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   ac_cv_lib_dld_dld_link=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441         ac_cv_lib_dld_dld_link=no
11442 fi
11443
11444 rm -f conftest.err conftest.$ac_objext \
11445       conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11447 fi
11448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11450 if test $ac_cv_lib_dld_dld_link = yes; then
11451   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460
11461 fi
11462
11463
11464 fi
11465
11466
11467 fi
11468
11469     ;;
11470   esac
11471
11472   if test "x$lt_cv_dlopen" != xno; then
11473     enable_dlopen=yes
11474   else
11475     enable_dlopen=no
11476   fi
11477
11478   case $lt_cv_dlopen in
11479   dlopen)
11480     save_CPPFLAGS="$CPPFLAGS"
11481     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11482
11483     save_LDFLAGS="$LDFLAGS"
11484     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11485
11486     save_LIBS="$LIBS"
11487     LIBS="$lt_cv_dlopen_libs $LIBS"
11488
11489     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11491 if test "${lt_cv_dlopen_self+set}" = set; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494           if test "$cross_compiling" = yes; then :
11495   lt_cv_dlopen_self=cross
11496 else
11497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498   lt_status=$lt_dlunknown
11499   cat > conftest.$ac_ext <<EOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11502
11503 #if HAVE_DLFCN_H
11504 #include <dlfcn.h>
11505 #endif
11506
11507 #include <stdio.h>
11508
11509 #ifdef RTLD_GLOBAL
11510 #  define LT_DLGLOBAL           RTLD_GLOBAL
11511 #else
11512 #  ifdef DL_GLOBAL
11513 #    define LT_DLGLOBAL         DL_GLOBAL
11514 #  else
11515 #    define LT_DLGLOBAL         0
11516 #  endif
11517 #endif
11518
11519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520    find out it does not work in some platform. */
11521 #ifndef LT_DLLAZY_OR_NOW
11522 #  ifdef RTLD_LAZY
11523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11524 #  else
11525 #    ifdef DL_LAZY
11526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11527 #    else
11528 #      ifdef RTLD_NOW
11529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11530 #      else
11531 #        ifdef DL_NOW
11532 #          define LT_DLLAZY_OR_NOW      DL_NOW
11533 #        else
11534 #          define LT_DLLAZY_OR_NOW      0
11535 #        endif
11536 #      endif
11537 #    endif
11538 #  endif
11539 #endif
11540
11541 #ifdef __cplusplus
11542 extern "C" void exit (int);
11543 #endif
11544
11545 void fnord() { int i=42;}
11546 int main ()
11547 {
11548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11549   int status = $lt_dlunknown;
11550
11551   if (self)
11552     {
11553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11555       /* dlclose (self); */
11556     }
11557   else
11558     puts (dlerror ());
11559
11560     exit (status);
11561 }
11562 EOF
11563   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11564   (eval $ac_link) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11568     (./conftest; exit; ) >&5 2>/dev/null
11569     lt_status=$?
11570     case x$lt_status in
11571       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11572       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11573       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11574     esac
11575   else :
11576     # compilation failed
11577     lt_cv_dlopen_self=no
11578   fi
11579 fi
11580 rm -fr conftest*
11581
11582
11583 fi
11584 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11585 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11586
11587     if test "x$lt_cv_dlopen_self" = xyes; then
11588       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11589       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11590 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11591 if test "${lt_cv_dlopen_self_static+set}" = set; then
11592   echo $ECHO_N "(cached) $ECHO_C" >&6
11593 else
11594           if test "$cross_compiling" = yes; then :
11595   lt_cv_dlopen_self_static=cross
11596 else
11597   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11598   lt_status=$lt_dlunknown
11599   cat > conftest.$ac_ext <<EOF
11600 #line 11600 "configure"
11601 #include "confdefs.h"
11602
11603 #if HAVE_DLFCN_H
11604 #include <dlfcn.h>
11605 #endif
11606
11607 #include <stdio.h>
11608
11609 #ifdef RTLD_GLOBAL
11610 #  define LT_DLGLOBAL           RTLD_GLOBAL
11611 #else
11612 #  ifdef DL_GLOBAL
11613 #    define LT_DLGLOBAL         DL_GLOBAL
11614 #  else
11615 #    define LT_DLGLOBAL         0
11616 #  endif
11617 #endif
11618
11619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620    find out it does not work in some platform. */
11621 #ifndef LT_DLLAZY_OR_NOW
11622 #  ifdef RTLD_LAZY
11623 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11624 #  else
11625 #    ifdef DL_LAZY
11626 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11627 #    else
11628 #      ifdef RTLD_NOW
11629 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11630 #      else
11631 #        ifdef DL_NOW
11632 #          define LT_DLLAZY_OR_NOW      DL_NOW
11633 #        else
11634 #          define LT_DLLAZY_OR_NOW      0
11635 #        endif
11636 #      endif
11637 #    endif
11638 #  endif
11639 #endif
11640
11641 #ifdef __cplusplus
11642 extern "C" void exit (int);
11643 #endif
11644
11645 void fnord() { int i=42;}
11646 int main ()
11647 {
11648   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11649   int status = $lt_dlunknown;
11650
11651   if (self)
11652     {
11653       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11654       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11655       /* dlclose (self); */
11656     }
11657   else
11658     puts (dlerror ());
11659
11660     exit (status);
11661 }
11662 EOF
11663   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664   (eval $ac_link) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11668     (./conftest; exit; ) >&5 2>/dev/null
11669     lt_status=$?
11670     case x$lt_status in
11671       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11672       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11673       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11674     esac
11675   else :
11676     # compilation failed
11677     lt_cv_dlopen_self_static=no
11678   fi
11679 fi
11680 rm -fr conftest*
11681
11682
11683 fi
11684 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11685 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11686     fi
11687
11688     CPPFLAGS="$save_CPPFLAGS"
11689     LDFLAGS="$save_LDFLAGS"
11690     LIBS="$save_LIBS"
11691     ;;
11692   esac
11693
11694   case $lt_cv_dlopen_self in
11695   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11696   *) enable_dlopen_self=unknown ;;
11697   esac
11698
11699   case $lt_cv_dlopen_self_static in
11700   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11701   *) enable_dlopen_self_static=unknown ;;
11702   esac
11703 fi
11704
11705
11706 # Report which library types will actually be built
11707 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11708 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11709 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11710 echo "${ECHO_T}$can_build_shared" >&6; }
11711
11712 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11713 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11714 test "$can_build_shared" = "no" && enable_shared=no
11715
11716 # On AIX, shared libraries and static libraries use the same namespace, and
11717 # are all built from PIC.
11718 case $host_os in
11719 aix3*)
11720   test "$enable_shared" = yes && enable_static=no
11721   if test -n "$RANLIB"; then
11722     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11723     postinstall_cmds='$RANLIB $lib'
11724   fi
11725   ;;
11726
11727 aix4* | aix5*)
11728   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11729     test "$enable_shared" = yes && enable_static=no
11730   fi
11731     ;;
11732 esac
11733 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11734 echo "${ECHO_T}$enable_shared" >&6; }
11735
11736 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11737 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11738 # Make sure either enable_shared or enable_static is yes.
11739 test "$enable_shared" = yes || enable_static=yes
11740 { echo "$as_me:$LINENO: result: $enable_static" >&5
11741 echo "${ECHO_T}$enable_static" >&6; }
11742
11743 # The else clause should only fire when bootstrapping the
11744 # libtool distribution, otherwise you forgot to ship ltmain.sh
11745 # with your package, and you will get complaints that there are
11746 # no rules to generate ltmain.sh.
11747 if test -f "$ltmain"; then
11748   # See if we are running on zsh, and set the options which allow our commands through
11749   # without removal of \ escapes.
11750   if test -n "${ZSH_VERSION+set}" ; then
11751     setopt NO_GLOB_SUBST
11752   fi
11753   # Now quote all the things that may contain metacharacters while being
11754   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11755   # variables and quote the copies for generation of the libtool script.
11756   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11757     SED SHELL STRIP \
11758     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11759     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11760     deplibs_check_method reload_flag reload_cmds need_locks \
11761     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11762     lt_cv_sys_global_symbol_to_c_name_address \
11763     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11764     old_postinstall_cmds old_postuninstall_cmds \
11765     compiler \
11766     CC \
11767     LD \
11768     lt_prog_compiler_wl \
11769     lt_prog_compiler_pic \
11770     lt_prog_compiler_static \
11771     lt_prog_compiler_no_builtin_flag \
11772     export_dynamic_flag_spec \
11773     thread_safe_flag_spec \
11774     whole_archive_flag_spec \
11775     enable_shared_with_static_runtimes \
11776     old_archive_cmds \
11777     old_archive_from_new_cmds \
11778     predep_objects \
11779     postdep_objects \
11780     predeps \
11781     postdeps \
11782     compiler_lib_search_path \
11783     archive_cmds \
11784     archive_expsym_cmds \
11785     postinstall_cmds \
11786     postuninstall_cmds \
11787     old_archive_from_expsyms_cmds \
11788     allow_undefined_flag \
11789     no_undefined_flag \
11790     export_symbols_cmds \
11791     hardcode_libdir_flag_spec \
11792     hardcode_libdir_flag_spec_ld \
11793     hardcode_libdir_separator \
11794     hardcode_automatic \
11795     module_cmds \
11796     module_expsym_cmds \
11797     lt_cv_prog_compiler_c_o \
11798     exclude_expsyms \
11799     include_expsyms; do
11800
11801     case $var in
11802     old_archive_cmds | \
11803     old_archive_from_new_cmds | \
11804     archive_cmds | \
11805     archive_expsym_cmds | \
11806     module_cmds | \
11807     module_expsym_cmds | \
11808     old_archive_from_expsyms_cmds | \
11809     export_symbols_cmds | \
11810     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11811     postinstall_cmds | postuninstall_cmds | \
11812     old_postinstall_cmds | old_postuninstall_cmds | \
11813     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11814       # Double-quote double-evaled strings.
11815       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11816       ;;
11817     *)
11818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11819       ;;
11820     esac
11821   done
11822
11823   case $lt_echo in
11824   *'\$0 --fallback-echo"')
11825     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11826     ;;
11827   esac
11828
11829 cfgfile="${ofile}T"
11830   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11831   $rm -f "$cfgfile"
11832   { echo "$as_me:$LINENO: creating $ofile" >&5
11833 echo "$as_me: creating $ofile" >&6;}
11834
11835   cat <<__EOF__ >> "$cfgfile"
11836 #! $SHELL
11837
11838 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11839 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11840 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11841 #
11842 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11843 # Free Software Foundation, Inc.
11844 #
11845 # This file is part of GNU Libtool:
11846 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11847 #
11848 # This program is free software; you can redistribute it and/or modify
11849 # it under the terms of the GNU General Public License as published by
11850 # the Free Software Foundation; either version 2 of the License, or
11851 # (at your option) any later version.
11852 #
11853 # This program is distributed in the hope that it will be useful, but
11854 # WITHOUT ANY WARRANTY; without even the implied warranty of
11855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11856 # General Public License for more details.
11857 #
11858 # You should have received a copy of the GNU General Public License
11859 # along with this program; if not, write to the Free Software
11860 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11861 #
11862 # As a special exception to the GNU General Public License, if you
11863 # distribute this file as part of a program that contains a
11864 # configuration script generated by Autoconf, you may include it under
11865 # the same distribution terms that you use for the rest of that program.
11866
11867 # A sed program that does not truncate output.
11868 SED=$lt_SED
11869
11870 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11871 Xsed="$SED -e 1s/^X//"
11872
11873 # The HP-UX ksh and POSIX shell print the target directory to stdout
11874 # if CDPATH is set.
11875 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11876
11877 # The names of the tagged configurations supported by this script.
11878 available_tags=
11879
11880 # ### BEGIN LIBTOOL CONFIG
11881
11882 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11883
11884 # Shell to use when invoking shell scripts.
11885 SHELL=$lt_SHELL
11886
11887 # Whether or not to build shared libraries.
11888 build_libtool_libs=$enable_shared
11889
11890 # Whether or not to build static libraries.
11891 build_old_libs=$enable_static
11892
11893 # Whether or not to add -lc for building shared libraries.
11894 build_libtool_need_lc=$archive_cmds_need_lc
11895
11896 # Whether or not to disallow shared libs when runtime libs are static
11897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11898
11899 # Whether or not to optimize for fast installation.
11900 fast_install=$enable_fast_install
11901
11902 # The host system.
11903 host_alias=$host_alias
11904 host=$host
11905 host_os=$host_os
11906
11907 # The build system.
11908 build_alias=$build_alias
11909 build=$build
11910 build_os=$build_os
11911
11912 # An echo program that does not interpret backslashes.
11913 echo=$lt_echo
11914
11915 # The archiver.
11916 AR=$lt_AR
11917 AR_FLAGS=$lt_AR_FLAGS
11918
11919 # A C compiler.
11920 LTCC=$lt_LTCC
11921
11922 # LTCC compiler flags.
11923 LTCFLAGS=$lt_LTCFLAGS
11924
11925 # A language-specific compiler.
11926 CC=$lt_compiler
11927
11928 # Is the compiler the GNU C compiler?
11929 with_gcc=$GCC
11930
11931 # An ERE matcher.
11932 EGREP=$lt_EGREP
11933
11934 # The linker used to build libraries.
11935 LD=$lt_LD
11936
11937 # Whether we need hard or soft links.
11938 LN_S=$lt_LN_S
11939
11940 # A BSD-compatible nm program.
11941 NM=$lt_NM
11942
11943 # A symbol stripping program
11944 STRIP=$lt_STRIP
11945
11946 # Used to examine libraries when file_magic_cmd begins "file"
11947 MAGIC_CMD=$MAGIC_CMD
11948
11949 # Used on cygwin: DLL creation program.
11950 DLLTOOL="$DLLTOOL"
11951
11952 # Used on cygwin: object dumper.
11953 OBJDUMP="$OBJDUMP"
11954
11955 # Used on cygwin: assembler.
11956 AS="$AS"
11957
11958 # The name of the directory that contains temporary libtool files.
11959 objdir=$objdir
11960
11961 # How to create reloadable object files.
11962 reload_flag=$lt_reload_flag
11963 reload_cmds=$lt_reload_cmds
11964
11965 # How to pass a linker flag through the compiler.
11966 wl=$lt_lt_prog_compiler_wl
11967
11968 # Object file suffix (normally "o").
11969 objext="$ac_objext"
11970
11971 # Old archive suffix (normally "a").
11972 libext="$libext"
11973
11974 # Shared library suffix (normally ".so").
11975 shrext_cmds='$shrext_cmds'
11976
11977 # Executable file suffix (normally "").
11978 exeext="$exeext"
11979
11980 # Additional compiler flags for building library objects.
11981 pic_flag=$lt_lt_prog_compiler_pic
11982 pic_mode=$pic_mode
11983
11984 # What is the maximum length of a command?
11985 max_cmd_len=$lt_cv_sys_max_cmd_len
11986
11987 # Does compiler simultaneously support -c and -o options?
11988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11989
11990 # Must we lock files when doing compilation?
11991 need_locks=$lt_need_locks
11992
11993 # Do we need the lib prefix for modules?
11994 need_lib_prefix=$need_lib_prefix
11995
11996 # Do we need a version for libraries?
11997 need_version=$need_version
11998
11999 # Whether dlopen is supported.
12000 dlopen_support=$enable_dlopen
12001
12002 # Whether dlopen of programs is supported.
12003 dlopen_self=$enable_dlopen_self
12004
12005 # Whether dlopen of statically linked programs is supported.
12006 dlopen_self_static=$enable_dlopen_self_static
12007
12008 # Compiler flag to prevent dynamic linking.
12009 link_static_flag=$lt_lt_prog_compiler_static
12010
12011 # Compiler flag to turn off builtin functions.
12012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12013
12014 # Compiler flag to allow reflexive dlopens.
12015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12016
12017 # Compiler flag to generate shared objects directly from archives.
12018 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12019
12020 # Compiler flag to generate thread-safe objects.
12021 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12022
12023 # Library versioning type.
12024 version_type=$version_type
12025
12026 # Format of library name prefix.
12027 libname_spec=$lt_libname_spec
12028
12029 # List of archive names.  First name is the real one, the rest are links.
12030 # The last name is the one that the linker finds with -lNAME.
12031 library_names_spec=$lt_library_names_spec
12032
12033 # The coded name of the library, if different from the real name.
12034 soname_spec=$lt_soname_spec
12035
12036 # Commands used to build and install an old-style archive.
12037 RANLIB=$lt_RANLIB
12038 old_archive_cmds=$lt_old_archive_cmds
12039 old_postinstall_cmds=$lt_old_postinstall_cmds
12040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12041
12042 # Create an old-style archive from a shared archive.
12043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12044
12045 # Create a temporary old-style archive to link instead of a shared archive.
12046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12047
12048 # Commands used to build and install a shared archive.
12049 archive_cmds=$lt_archive_cmds
12050 archive_expsym_cmds=$lt_archive_expsym_cmds
12051 postinstall_cmds=$lt_postinstall_cmds
12052 postuninstall_cmds=$lt_postuninstall_cmds
12053
12054 # Commands used to build a loadable module (assumed same as above if empty)
12055 module_cmds=$lt_module_cmds
12056 module_expsym_cmds=$lt_module_expsym_cmds
12057
12058 # Commands to strip libraries.
12059 old_striplib=$lt_old_striplib
12060 striplib=$lt_striplib
12061
12062 # Dependencies to place before the objects being linked to create a
12063 # shared library.
12064 predep_objects=$lt_predep_objects
12065
12066 # Dependencies to place after the objects being linked to create a
12067 # shared library.
12068 postdep_objects=$lt_postdep_objects
12069
12070 # Dependencies to place before the objects being linked to create a
12071 # shared library.
12072 predeps=$lt_predeps
12073
12074 # Dependencies to place after the objects being linked to create a
12075 # shared library.
12076 postdeps=$lt_postdeps
12077
12078 # The library search path used internally by the compiler when linking
12079 # a shared library.
12080 compiler_lib_search_path=$lt_compiler_lib_search_path
12081
12082 # Method to check whether dependent libraries are shared objects.
12083 deplibs_check_method=$lt_deplibs_check_method
12084
12085 # Command to use when deplibs_check_method == file_magic.
12086 file_magic_cmd=$lt_file_magic_cmd
12087
12088 # Flag that allows shared libraries with undefined symbols to be built.
12089 allow_undefined_flag=$lt_allow_undefined_flag
12090
12091 # Flag that forces no undefined symbols.
12092 no_undefined_flag=$lt_no_undefined_flag
12093
12094 # Commands used to finish a libtool library installation in a directory.
12095 finish_cmds=$lt_finish_cmds
12096
12097 # Same as above, but a single script fragment to be evaled but not shown.
12098 finish_eval=$lt_finish_eval
12099
12100 # Take the output of nm and produce a listing of raw symbols and C names.
12101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12102
12103 # Transform the output of nm in a proper C declaration
12104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12105
12106 # Transform the output of nm in a C name address pair
12107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12108
12109 # This is the shared library runtime path variable.
12110 runpath_var=$runpath_var
12111
12112 # This is the shared library path variable.
12113 shlibpath_var=$shlibpath_var
12114
12115 # Is shlibpath searched before the hard-coded library search path?
12116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12117
12118 # How to hardcode a shared library path into an executable.
12119 hardcode_action=$hardcode_action
12120
12121 # Whether we should hardcode library paths into libraries.
12122 hardcode_into_libs=$hardcode_into_libs
12123
12124 # Flag to hardcode \$libdir into a binary during linking.
12125 # This must work even if \$libdir does not exist.
12126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12127
12128 # If ld is used when linking, flag to hardcode \$libdir into
12129 # a binary during linking. This must work even if \$libdir does
12130 # not exist.
12131 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12132
12133 # Whether we need a single -rpath flag with a separated argument.
12134 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12135
12136 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12137 # resulting binary.
12138 hardcode_direct=$hardcode_direct
12139
12140 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12141 # resulting binary.
12142 hardcode_minus_L=$hardcode_minus_L
12143
12144 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12145 # the resulting binary.
12146 hardcode_shlibpath_var=$hardcode_shlibpath_var
12147
12148 # Set to yes if building a shared library automatically hardcodes DIR into the library
12149 # and all subsequent libraries and executables linked against it.
12150 hardcode_automatic=$hardcode_automatic
12151
12152 # Variables whose values should be saved in libtool wrapper scripts and
12153 # restored at relink time.
12154 variables_saved_for_relink="$variables_saved_for_relink"
12155
12156 # Whether libtool must link a program against all its dependency libraries.
12157 link_all_deplibs=$link_all_deplibs
12158
12159 # Compile-time system search path for libraries
12160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12161
12162 # Run-time system search path for libraries
12163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12164
12165 # Fix the shell variable \$srcfile for the compiler.
12166 fix_srcfile_path="$fix_srcfile_path"
12167
12168 # Set to yes if exported symbols are required.
12169 always_export_symbols=$always_export_symbols
12170
12171 # The commands to list exported symbols.
12172 export_symbols_cmds=$lt_export_symbols_cmds
12173
12174 # The commands to extract the exported symbol list from a shared archive.
12175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12176
12177 # Symbols that should not be listed in the preloaded symbols.
12178 exclude_expsyms=$lt_exclude_expsyms
12179
12180 # Symbols that must always be exported.
12181 include_expsyms=$lt_include_expsyms
12182
12183 # ### END LIBTOOL CONFIG
12184
12185 __EOF__
12186
12187
12188   case $host_os in
12189   aix3*)
12190     cat <<\EOF >> "$cfgfile"
12191
12192 # AIX sometimes has problems with the GCC collect2 program.  For some
12193 # reason, if we set the COLLECT_NAMES environment variable, the problems
12194 # vanish in a puff of smoke.
12195 if test "X${COLLECT_NAMES+set}" != Xset; then
12196   COLLECT_NAMES=
12197   export COLLECT_NAMES
12198 fi
12199 EOF
12200     ;;
12201   esac
12202
12203   # We use sed instead of cat because bash on DJGPP gets confused if
12204   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12205   # text mode, it properly converts lines to CR/LF.  This bash problem
12206   # is reportedly fixed, but why not run on old versions too?
12207   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12208
12209   mv -f "$cfgfile" "$ofile" || \
12210     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12211   chmod +x "$ofile"
12212
12213 else
12214   # If there is no Makefile yet, we rely on a make rule to execute
12215   # `config.status --recheck' to rerun these tests and create the
12216   # libtool script then.
12217   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12218   if test -f "$ltmain_in"; then
12219     test -f Makefile && make "$ltmain"
12220   fi
12221 fi
12222
12223
12224 ac_ext=c
12225 ac_cpp='$CPP $CPPFLAGS'
12226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12229
12230 CC="$lt_save_CC"
12231
12232
12233 # Check whether --with-tags was given.
12234 if test "${with_tags+set}" = set; then
12235   withval=$with_tags; tagnames="$withval"
12236 fi
12237
12238
12239 if test -f "$ltmain" && test -n "$tagnames"; then
12240   if test ! -f "${ofile}"; then
12241     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12242 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12243   fi
12244
12245   if test -z "$LTCC"; then
12246     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12247     if test -z "$LTCC"; then
12248       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12249 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12250     else
12251       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12252 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12253     fi
12254   fi
12255   if test -z "$LTCFLAGS"; then
12256     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12257   fi
12258
12259   # Extract list of available tagged configurations in $ofile.
12260   # Note that this assumes the entire list is on one line.
12261   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12262
12263   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12264   for tagname in $tagnames; do
12265     IFS="$lt_save_ifs"
12266     # Check whether tagname contains only valid characters
12267     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12268     "") ;;
12269     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12270 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12271    { (exit 1); exit 1; }; }
12272         ;;
12273     esac
12274
12275     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12276     then
12277       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12278 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12279    { (exit 1); exit 1; }; }
12280     fi
12281
12282     # Update the list of available tags.
12283     if test -n "$tagname"; then
12284       echo appending configuration tag \"$tagname\" to $ofile
12285
12286       case $tagname in
12287       CXX)
12288         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12289             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12290             (test "X$CXX" != "Xg++"))) ; then
12291           ac_ext=cpp
12292 ac_cpp='$CXXCPP $CPPFLAGS'
12293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12296
12297
12298
12299
12300 archive_cmds_need_lc_CXX=no
12301 allow_undefined_flag_CXX=
12302 always_export_symbols_CXX=no
12303 archive_expsym_cmds_CXX=
12304 export_dynamic_flag_spec_CXX=
12305 hardcode_direct_CXX=no
12306 hardcode_libdir_flag_spec_CXX=
12307 hardcode_libdir_flag_spec_ld_CXX=
12308 hardcode_libdir_separator_CXX=
12309 hardcode_minus_L_CXX=no
12310 hardcode_shlibpath_var_CXX=unsupported
12311 hardcode_automatic_CXX=no
12312 module_cmds_CXX=
12313 module_expsym_cmds_CXX=
12314 link_all_deplibs_CXX=unknown
12315 old_archive_cmds_CXX=$old_archive_cmds
12316 no_undefined_flag_CXX=
12317 whole_archive_flag_spec_CXX=
12318 enable_shared_with_static_runtimes_CXX=no
12319
12320 # Dependencies to place before and after the object being linked:
12321 predep_objects_CXX=
12322 postdep_objects_CXX=
12323 predeps_CXX=
12324 postdeps_CXX=
12325 compiler_lib_search_path_CXX=
12326
12327 # Source file extension for C++ test sources.
12328 ac_ext=cpp
12329
12330 # Object file extension for compiled C++ test sources.
12331 objext=o
12332 objext_CXX=$objext
12333
12334 # Code to be used in simple compile tests
12335 lt_simple_compile_test_code="int some_variable = 0;\n"
12336
12337 # Code to be used in simple link tests
12338 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12339
12340 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12341
12342 # If no C compiler was specified, use CC.
12343 LTCC=${LTCC-"$CC"}
12344
12345 # If no C compiler flags were specified, use CFLAGS.
12346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12347
12348 # Allow CC to be a program name with arguments.
12349 compiler=$CC
12350
12351
12352 # save warnings/boilerplate of simple test code
12353 ac_outfile=conftest.$ac_objext
12354 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12356 _lt_compiler_boilerplate=`cat conftest.err`
12357 $rm conftest*
12358
12359 ac_outfile=conftest.$ac_objext
12360 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12362 _lt_linker_boilerplate=`cat conftest.err`
12363 $rm conftest*
12364
12365
12366 # Allow CC to be a program name with arguments.
12367 lt_save_CC=$CC
12368 lt_save_LD=$LD
12369 lt_save_GCC=$GCC
12370 GCC=$GXX
12371 lt_save_with_gnu_ld=$with_gnu_ld
12372 lt_save_path_LD=$lt_cv_path_LD
12373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12374   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12375 else
12376   $as_unset lt_cv_prog_gnu_ld
12377 fi
12378 if test -n "${lt_cv_path_LDCXX+set}"; then
12379   lt_cv_path_LD=$lt_cv_path_LDCXX
12380 else
12381   $as_unset lt_cv_path_LD
12382 fi
12383 test -z "${LDCXX+set}" || LD=$LDCXX
12384 CC=${CXX-"c++"}
12385 compiler=$CC
12386 compiler_CXX=$CC
12387 for cc_temp in $compiler""; do
12388   case $cc_temp in
12389     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12390     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12391     \-*) ;;
12392     *) break;;
12393   esac
12394 done
12395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12396
12397
12398 # We don't want -fno-exception wen compiling C++ code, so set the
12399 # no_builtin_flag separately
12400 if test "$GXX" = yes; then
12401   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12402 else
12403   lt_prog_compiler_no_builtin_flag_CXX=
12404 fi
12405
12406 if test "$GXX" = yes; then
12407   # Set up default GNU C++ configuration
12408
12409
12410 # Check whether --with-gnu-ld was given.
12411 if test "${with_gnu_ld+set}" = set; then
12412   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12413 else
12414   with_gnu_ld=no
12415 fi
12416
12417 ac_prog=ld
12418 if test "$GCC" = yes; then
12419   # Check if gcc -print-prog-name=ld gives a path.
12420   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12421 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12422   case $host in
12423   *-*-mingw*)
12424     # gcc leaves a trailing carriage return which upsets mingw
12425     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12426   *)
12427     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12428   esac
12429   case $ac_prog in
12430     # Accept absolute paths.
12431     [\\/]* | ?:[\\/]*)
12432       re_direlt='/[^/][^/]*/\.\./'
12433       # Canonicalize the pathname of ld
12434       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12435       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12436         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12437       done
12438       test -z "$LD" && LD="$ac_prog"
12439       ;;
12440   "")
12441     # If it fails, then pretend we aren't using GCC.
12442     ac_prog=ld
12443     ;;
12444   *)
12445     # If it is relative, then search for the first ld in PATH.
12446     with_gnu_ld=unknown
12447     ;;
12448   esac
12449 elif test "$with_gnu_ld" = yes; then
12450   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12451 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12452 else
12453   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12454 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12455 fi
12456 if test "${lt_cv_path_LD+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   if test -z "$LD"; then
12460   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12461   for ac_dir in $PATH; do
12462     IFS="$lt_save_ifs"
12463     test -z "$ac_dir" && ac_dir=.
12464     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12465       lt_cv_path_LD="$ac_dir/$ac_prog"
12466       # Check to see if the program is GNU ld.  I'd rather use --version,
12467       # but apparently some variants of GNU ld only accept -v.
12468       # Break only if it was the GNU/non-GNU ld that we prefer.
12469       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12470       *GNU* | *'with BFD'*)
12471         test "$with_gnu_ld" != no && break
12472         ;;
12473       *)
12474         test "$with_gnu_ld" != yes && break
12475         ;;
12476       esac
12477     fi
12478   done
12479   IFS="$lt_save_ifs"
12480 else
12481   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12482 fi
12483 fi
12484
12485 LD="$lt_cv_path_LD"
12486 if test -n "$LD"; then
12487   { echo "$as_me:$LINENO: result: $LD" >&5
12488 echo "${ECHO_T}$LD" >&6; }
12489 else
12490   { echo "$as_me:$LINENO: result: no" >&5
12491 echo "${ECHO_T}no" >&6; }
12492 fi
12493 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12494 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12495    { (exit 1); exit 1; }; }
12496 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12497 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12498 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12502 case `$LD -v 2>&1 </dev/null` in
12503 *GNU* | *'with BFD'*)
12504   lt_cv_prog_gnu_ld=yes
12505   ;;
12506 *)
12507   lt_cv_prog_gnu_ld=no
12508   ;;
12509 esac
12510 fi
12511 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12512 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12513 with_gnu_ld=$lt_cv_prog_gnu_ld
12514
12515
12516
12517   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12518   # archiving commands below assume that GNU ld is being used.
12519   if test "$with_gnu_ld" = yes; then
12520     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521     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'
12522
12523     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12524     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12525
12526     # If archive_cmds runs LD, not CC, wlarc should be empty
12527     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12528     #     investigate it a little bit more. (MM)
12529     wlarc='${wl}'
12530
12531     # ancient GNU ld didn't support --whole-archive et. al.
12532     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12533         grep 'no-whole-archive' > /dev/null; then
12534       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12535     else
12536       whole_archive_flag_spec_CXX=
12537     fi
12538   else
12539     with_gnu_ld=no
12540     wlarc=
12541
12542     # A generic and very simple default shared library creation
12543     # command for GNU C++ for the case where it uses the native
12544     # linker, instead of GNU ld.  If possible, this setting should
12545     # overridden to take advantage of the native linker features on
12546     # the platform it is being used on.
12547     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12548   fi
12549
12550   # Commands to make compiler produce verbose output that lists
12551   # what "hidden" libraries, object files and flags are used when
12552   # linking a shared library.
12553   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12554
12555 else
12556   GXX=no
12557   with_gnu_ld=no
12558   wlarc=
12559 fi
12560
12561 # PORTME: fill in a description of your system's C++ link characteristics
12562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12564 ld_shlibs_CXX=yes
12565 case $host_os in
12566   aix3*)
12567     # FIXME: insert proper C++ library support
12568     ld_shlibs_CXX=no
12569     ;;
12570   aix4* | aix5*)
12571     if test "$host_cpu" = ia64; then
12572       # On IA64, the linker does run time linking by default, so we don't
12573       # have to do anything special.
12574       aix_use_runtimelinking=no
12575       exp_sym_flag='-Bexport'
12576       no_entry_flag=""
12577     else
12578       aix_use_runtimelinking=no
12579
12580       # Test if we are trying to use run time linking or normal
12581       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12582       # need to do runtime linking.
12583       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12584         for ld_flag in $LDFLAGS; do
12585           case $ld_flag in
12586           *-brtl*)
12587             aix_use_runtimelinking=yes
12588             break
12589             ;;
12590           esac
12591         done
12592         ;;
12593       esac
12594
12595       exp_sym_flag='-bexport'
12596       no_entry_flag='-bnoentry'
12597     fi
12598
12599     # When large executables or shared objects are built, AIX ld can
12600     # have problems creating the table of contents.  If linking a library
12601     # or program results in "error TOC overflow" add -mminimal-toc to
12602     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12603     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12604
12605     archive_cmds_CXX=''
12606     hardcode_direct_CXX=yes
12607     hardcode_libdir_separator_CXX=':'
12608     link_all_deplibs_CXX=yes
12609
12610     if test "$GXX" = yes; then
12611       case $host_os in aix4.[012]|aix4.[012].*)
12612       # We only want to do this on AIX 4.2 and lower, the check
12613       # below for broken collect2 doesn't work under 4.3+
12614         collect2name=`${CC} -print-prog-name=collect2`
12615         if test -f "$collect2name" && \
12616            strings "$collect2name" | grep resolve_lib_name >/dev/null
12617         then
12618           # We have reworked collect2
12619           hardcode_direct_CXX=yes
12620         else
12621           # We have old collect2
12622           hardcode_direct_CXX=unsupported
12623           # It fails to find uninstalled libraries when the uninstalled
12624           # path is not listed in the libpath.  Setting hardcode_minus_L
12625           # to unsupported forces relinking
12626           hardcode_minus_L_CXX=yes
12627           hardcode_libdir_flag_spec_CXX='-L$libdir'
12628           hardcode_libdir_separator_CXX=
12629         fi
12630         ;;
12631       esac
12632       shared_flag='-shared'
12633       if test "$aix_use_runtimelinking" = yes; then
12634         shared_flag="$shared_flag "'${wl}-G'
12635       fi
12636     else
12637       # not using gcc
12638       if test "$host_cpu" = ia64; then
12639         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12640         # chokes on -Wl,-G. The following line is correct:
12641         shared_flag='-G'
12642       else
12643         if test "$aix_use_runtimelinking" = yes; then
12644           shared_flag='${wl}-G'
12645         else
12646           shared_flag='${wl}-bM:SRE'
12647         fi
12648       fi
12649     fi
12650
12651     # It seems that -bexpall does not export symbols beginning with
12652     # underscore (_), so it is better to generate a list of symbols to export.
12653     always_export_symbols_CXX=yes
12654     if test "$aix_use_runtimelinking" = yes; then
12655       # Warning - without using the other runtime loading flags (-brtl),
12656       # -berok will link without error, but may produce a broken library.
12657       allow_undefined_flag_CXX='-berok'
12658       # Determine the default libpath from the value encoded in an empty executable.
12659       cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665
12666 int
12667 main ()
12668 {
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_link") 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest$ac_exeext'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708
12709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12710 }'`
12711 # Check for a 64-bit object if we didn't find anything.
12712 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; }
12713 }'`; fi
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718
12719 fi
12720
12721 rm -f conftest.err conftest.$ac_objext \
12722       conftest$ac_exeext conftest.$ac_ext
12723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12724
12725       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12726
12727       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"
12728      else
12729       if test "$host_cpu" = ia64; then
12730         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12731         allow_undefined_flag_CXX="-z nodefs"
12732         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"
12733       else
12734         # Determine the default libpath from the value encoded in an empty executable.
12735         cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741
12742 int
12743 main ()
12744 {
12745
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (ac_try="$ac_link"
12752 case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757   (eval "$ac_link") 2>conftest.er1
12758   ac_status=$?
12759   grep -v '^ *+' conftest.er1 >conftest.err
12760   rm -f conftest.er1
12761   cat conftest.err >&5
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } &&
12764          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12765   { (case "(($ac_try" in
12766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767   *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770   (eval "$ac_try") 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest$ac_exeext'
12775   { (case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780   (eval "$ac_try") 2>&5
12781   ac_status=$?
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); }; }; then
12784
12785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12786 }'`
12787 # Check for a 64-bit object if we didn't find anything.
12788 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; }
12789 }'`; fi
12790 else
12791   echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794
12795 fi
12796
12797 rm -f conftest.err conftest.$ac_objext \
12798       conftest$ac_exeext conftest.$ac_ext
12799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12800
12801         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12802         # Warning - without using the other run time loading flags,
12803         # -berok will link without error, but may produce a broken library.
12804         no_undefined_flag_CXX=' ${wl}-bernotok'
12805         allow_undefined_flag_CXX=' ${wl}-berok'
12806         # Exported symbols can be pulled into shared objects from archives
12807         whole_archive_flag_spec_CXX='$convenience'
12808         archive_cmds_need_lc_CXX=yes
12809         # This is similar to how AIX traditionally builds its shared libraries.
12810         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'
12811       fi
12812     fi
12813     ;;
12814
12815   beos*)
12816     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12817       allow_undefined_flag_CXX=unsupported
12818       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12819       # support --undefined.  This deserves some investigation.  FIXME
12820       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821     else
12822       ld_shlibs_CXX=no
12823     fi
12824     ;;
12825
12826   chorus*)
12827     case $cc_basename in
12828       *)
12829         # FIXME: insert proper C++ library support
12830         ld_shlibs_CXX=no
12831         ;;
12832     esac
12833     ;;
12834
12835   cygwin* | mingw* | pw32*)
12836     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12837     # as there is no search path for DLLs.
12838     hardcode_libdir_flag_spec_CXX='-L$libdir'
12839     allow_undefined_flag_CXX=unsupported
12840     always_export_symbols_CXX=no
12841     enable_shared_with_static_runtimes_CXX=yes
12842
12843     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12844       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'
12845       # If the export-symbols file already is a .def file (1st line
12846       # is EXPORTS), use it as is; otherwise, prepend...
12847       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12848         cp $export_symbols $output_objdir/$soname.def;
12849       else
12850         echo EXPORTS > $output_objdir/$soname.def;
12851         cat $export_symbols >> $output_objdir/$soname.def;
12852       fi~
12853       $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'
12854     else
12855       ld_shlibs_CXX=no
12856     fi
12857   ;;
12858       darwin* | rhapsody*)
12859         case $host_os in
12860         rhapsody* | darwin1.[012])
12861          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12862          ;;
12863        *) # Darwin 1.3 on
12864          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12865            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12866          else
12867            case ${MACOSX_DEPLOYMENT_TARGET} in
12868              10.[012])
12869                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12870                ;;
12871              10.*)
12872                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12873                ;;
12874            esac
12875          fi
12876          ;;
12877         esac
12878       archive_cmds_need_lc_CXX=no
12879       hardcode_direct_CXX=no
12880       hardcode_automatic_CXX=yes
12881       hardcode_shlibpath_var_CXX=unsupported
12882       whole_archive_flag_spec_CXX=''
12883       link_all_deplibs_CXX=yes
12884
12885     if test "$GXX" = yes ; then
12886       lt_int_apple_cc_single_mod=no
12887       output_verbose_link_cmd='echo'
12888       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12889        lt_int_apple_cc_single_mod=yes
12890       fi
12891       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12892        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12893       else
12894           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'
12895         fi
12896         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12897         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12898           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12899             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}'
12900           else
12901             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}'
12902           fi
12903             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}'
12904       else
12905       case $cc_basename in
12906         xlc*)
12907          output_verbose_link_cmd='echo'
12908           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'
12909           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12910           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12911           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}'
12912           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}'
12913           ;;
12914        *)
12915          ld_shlibs_CXX=no
12916           ;;
12917       esac
12918       fi
12919         ;;
12920
12921   dgux*)
12922     case $cc_basename in
12923       ec++*)
12924         # FIXME: insert proper C++ library support
12925         ld_shlibs_CXX=no
12926         ;;
12927       ghcx*)
12928         # Green Hills C++ Compiler
12929         # FIXME: insert proper C++ library support
12930         ld_shlibs_CXX=no
12931         ;;
12932       *)
12933         # FIXME: insert proper C++ library support
12934         ld_shlibs_CXX=no
12935         ;;
12936     esac
12937     ;;
12938   freebsd[12]*)
12939     # C++ shared libraries reported to be fairly broken before switch to ELF
12940     ld_shlibs_CXX=no
12941     ;;
12942   freebsd-elf*)
12943     archive_cmds_need_lc_CXX=no
12944     ;;
12945   freebsd* | dragonfly*)
12946     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12947     # conventions
12948     ld_shlibs_CXX=yes
12949     ;;
12950   gnu*)
12951     ;;
12952   hpux9*)
12953     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12954     hardcode_libdir_separator_CXX=:
12955     export_dynamic_flag_spec_CXX='${wl}-E'
12956     hardcode_direct_CXX=yes
12957     hardcode_minus_L_CXX=yes # Not in the search PATH,
12958                                 # but as the default
12959                                 # location of the library.
12960
12961     case $cc_basename in
12962     CC*)
12963       # FIXME: insert proper C++ library support
12964       ld_shlibs_CXX=no
12965       ;;
12966     aCC*)
12967       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'
12968       # Commands to make compiler produce verbose output that lists
12969       # what "hidden" libraries, object files and flags are used when
12970       # linking a shared library.
12971       #
12972       # There doesn't appear to be a way to prevent this compiler from
12973       # explicitly linking system object files so we need to strip them
12974       # from the output so that they don't get included in the library
12975       # dependencies.
12976       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'
12977       ;;
12978     *)
12979       if test "$GXX" = yes; then
12980         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'
12981       else
12982         # FIXME: insert proper C++ library support
12983         ld_shlibs_CXX=no
12984       fi
12985       ;;
12986     esac
12987     ;;
12988   hpux10*|hpux11*)
12989     if test $with_gnu_ld = no; then
12990       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12991       hardcode_libdir_separator_CXX=:
12992
12993       case $host_cpu in
12994       hppa*64*|ia64*)
12995         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12996         ;;
12997       *)
12998         export_dynamic_flag_spec_CXX='${wl}-E'
12999         ;;
13000       esac
13001     fi
13002     case $host_cpu in
13003     hppa*64*|ia64*)
13004       hardcode_direct_CXX=no
13005       hardcode_shlibpath_var_CXX=no
13006       ;;
13007     *)
13008       hardcode_direct_CXX=yes
13009       hardcode_minus_L_CXX=yes # Not in the search PATH,
13010                                               # but as the default
13011                                               # location of the library.
13012       ;;
13013     esac
13014
13015     case $cc_basename in
13016       CC*)
13017         # FIXME: insert proper C++ library support
13018         ld_shlibs_CXX=no
13019         ;;
13020       aCC*)
13021         case $host_cpu in
13022         hppa*64*)
13023           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024           ;;
13025         ia64*)
13026           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027           ;;
13028         *)
13029           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030           ;;
13031         esac
13032         # Commands to make compiler produce verbose output that lists
13033         # what "hidden" libraries, object files and flags are used when
13034         # linking a shared library.
13035         #
13036         # There doesn't appear to be a way to prevent this compiler from
13037         # explicitly linking system object files so we need to strip them
13038         # from the output so that they don't get included in the library
13039         # dependencies.
13040         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'
13041         ;;
13042       *)
13043         if test "$GXX" = yes; then
13044           if test $with_gnu_ld = no; then
13045             case $host_cpu in
13046             hppa*64*)
13047               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048               ;;
13049             ia64*)
13050               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13051               ;;
13052             *)
13053               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'
13054               ;;
13055             esac
13056           fi
13057         else
13058           # FIXME: insert proper C++ library support
13059           ld_shlibs_CXX=no
13060         fi
13061         ;;
13062     esac
13063     ;;
13064   interix3*)
13065     hardcode_direct_CXX=no
13066     hardcode_shlibpath_var_CXX=no
13067     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13068     export_dynamic_flag_spec_CXX='${wl}-E'
13069     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13070     # Instead, shared libraries are loaded at an image base (0x10000000 by
13071     # default) and relocated if they conflict, which is a slow very memory
13072     # consuming and fragmenting process.  To avoid this, we pick a random,
13073     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13074     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13075     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'
13076     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'
13077     ;;
13078   irix5* | irix6*)
13079     case $cc_basename in
13080       CC*)
13081         # SGI C++
13082         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'
13083
13084         # Archives containing C++ object files must be created using
13085         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13086         # necessary to make sure instantiated templates are included
13087         # in the archive.
13088         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13089         ;;
13090       *)
13091         if test "$GXX" = yes; then
13092           if test "$with_gnu_ld" = no; then
13093             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'
13094           else
13095             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'
13096           fi
13097         fi
13098         link_all_deplibs_CXX=yes
13099         ;;
13100     esac
13101     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13102     hardcode_libdir_separator_CXX=:
13103     ;;
13104   linux* | k*bsd*-gnu)
13105     case $cc_basename in
13106       KCC*)
13107         # Kuck and Associates, Inc. (KAI) C++ Compiler
13108
13109         # KCC will only create a shared library if the output file
13110         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13111         # to its proper name (with version) after linking.
13112         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'
13113         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'
13114         # Commands to make compiler produce verbose output that lists
13115         # what "hidden" libraries, object files and flags are used when
13116         # linking a shared library.
13117         #
13118         # There doesn't appear to be a way to prevent this compiler from
13119         # explicitly linking system object files so we need to strip them
13120         # from the output so that they don't get included in the library
13121         # dependencies.
13122         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'
13123
13124         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13125         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13126
13127         # Archives containing C++ object files must be created using
13128         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13129         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13130         ;;
13131       icpc*)
13132         # Intel C++
13133         with_gnu_ld=yes
13134         # version 8.0 and above of icpc choke on multiply defined symbols
13135         # if we add $predep_objects and $postdep_objects, however 7.1 and
13136         # earlier do not add the objects themselves.
13137         case `$CC -V 2>&1` in
13138         *"Version 7."*)
13139           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140           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'
13141           ;;
13142         *)  # Version 8.0 or newer
13143           tmp_idyn=
13144           case $host_cpu in
13145             ia64*) tmp_idyn=' -i_dynamic';;
13146           esac
13147           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13148           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'
13149           ;;
13150         esac
13151         archive_cmds_need_lc_CXX=no
13152         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13154         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13155         ;;
13156       pgCC*)
13157         # Portland Group C++ compiler
13158         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13159         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'
13160
13161         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13162         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13163         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'
13164         ;;
13165       cxx*)
13166         # Compaq C++
13167         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13168         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'
13169
13170         runpath_var=LD_RUN_PATH
13171         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13172         hardcode_libdir_separator_CXX=:
13173
13174         # Commands to make compiler produce verbose output that lists
13175         # what "hidden" libraries, object files and flags are used when
13176         # linking a shared library.
13177         #
13178         # There doesn't appear to be a way to prevent this compiler from
13179         # explicitly linking system object files so we need to strip them
13180         # from the output so that they don't get included in the library
13181         # dependencies.
13182         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'
13183         ;;
13184     esac
13185     ;;
13186   lynxos*)
13187     # FIXME: insert proper C++ library support
13188     ld_shlibs_CXX=no
13189     ;;
13190   m88k*)
13191     # FIXME: insert proper C++ library support
13192     ld_shlibs_CXX=no
13193     ;;
13194   mvs*)
13195     case $cc_basename in
13196       cxx*)
13197         # FIXME: insert proper C++ library support
13198         ld_shlibs_CXX=no
13199         ;;
13200       *)
13201         # FIXME: insert proper C++ library support
13202         ld_shlibs_CXX=no
13203         ;;
13204     esac
13205     ;;
13206   netbsd* | netbsdelf*-gnu)
13207     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13208       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13209       wlarc=
13210       hardcode_libdir_flag_spec_CXX='-R$libdir'
13211       hardcode_direct_CXX=yes
13212       hardcode_shlibpath_var_CXX=no
13213     fi
13214     # Workaround some broken pre-1.5 toolchains
13215     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13216     ;;
13217   openbsd2*)
13218     # C++ shared libraries are fairly broken
13219     ld_shlibs_CXX=no
13220     ;;
13221   openbsd*)
13222     hardcode_direct_CXX=yes
13223     hardcode_shlibpath_var_CXX=no
13224     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13225     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13226     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13227       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13228       export_dynamic_flag_spec_CXX='${wl}-E'
13229       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13230     fi
13231     output_verbose_link_cmd='echo'
13232     ;;
13233   osf3*)
13234     case $cc_basename in
13235       KCC*)
13236         # Kuck and Associates, Inc. (KAI) C++ Compiler
13237
13238         # KCC will only create a shared library if the output file
13239         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13240         # to its proper name (with version) after linking.
13241         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'
13242
13243         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13244         hardcode_libdir_separator_CXX=:
13245
13246         # Archives containing C++ object files must be created using
13247         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13248         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13249
13250         ;;
13251       RCC*)
13252         # Rational C++ 2.4.1
13253         # FIXME: insert proper C++ library support
13254         ld_shlibs_CXX=no
13255         ;;
13256       cxx*)
13257         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13258         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'
13259
13260         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13261         hardcode_libdir_separator_CXX=:
13262
13263         # Commands to make compiler produce verbose output that lists
13264         # what "hidden" libraries, object files and flags are used when
13265         # linking a shared library.
13266         #
13267         # There doesn't appear to be a way to prevent this compiler from
13268         # explicitly linking system object files so we need to strip them
13269         # from the output so that they don't get included in the library
13270         # dependencies.
13271         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'
13272         ;;
13273       *)
13274         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13275           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13276           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'
13277
13278           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279           hardcode_libdir_separator_CXX=:
13280
13281           # Commands to make compiler produce verbose output that lists
13282           # what "hidden" libraries, object files and flags are used when
13283           # linking a shared library.
13284           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13285
13286         else
13287           # FIXME: insert proper C++ library support
13288           ld_shlibs_CXX=no
13289         fi
13290         ;;
13291     esac
13292     ;;
13293   osf4* | osf5*)
13294     case $cc_basename in
13295       KCC*)
13296         # Kuck and Associates, Inc. (KAI) C++ Compiler
13297
13298         # KCC will only create a shared library if the output file
13299         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13300         # to its proper name (with version) after linking.
13301         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'
13302
13303         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304         hardcode_libdir_separator_CXX=:
13305
13306         # Archives containing C++ object files must be created using
13307         # the KAI C++ compiler.
13308         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13309         ;;
13310       RCC*)
13311         # Rational C++ 2.4.1
13312         # FIXME: insert proper C++ library support
13313         ld_shlibs_CXX=no
13314         ;;
13315       cxx*)
13316         allow_undefined_flag_CXX=' -expect_unresolved \*'
13317         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'
13318         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13319           echo "-hidden">> $lib.exp~
13320           $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~
13321           $rm $lib.exp'
13322
13323         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13324         hardcode_libdir_separator_CXX=:
13325
13326         # Commands to make compiler produce verbose output that lists
13327         # what "hidden" libraries, object files and flags are used when
13328         # linking a shared library.
13329         #
13330         # There doesn't appear to be a way to prevent this compiler from
13331         # explicitly linking system object files so we need to strip them
13332         # from the output so that they don't get included in the library
13333         # dependencies.
13334         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'
13335         ;;
13336       *)
13337         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13338           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13339          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'
13340
13341           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13342           hardcode_libdir_separator_CXX=:
13343
13344           # Commands to make compiler produce verbose output that lists
13345           # what "hidden" libraries, object files and flags are used when
13346           # linking a shared library.
13347           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13348
13349         else
13350           # FIXME: insert proper C++ library support
13351           ld_shlibs_CXX=no
13352         fi
13353         ;;
13354     esac
13355     ;;
13356   psos*)
13357     # FIXME: insert proper C++ library support
13358     ld_shlibs_CXX=no
13359     ;;
13360   sunos4*)
13361     case $cc_basename in
13362       CC*)
13363         # Sun C++ 4.x
13364         # FIXME: insert proper C++ library support
13365         ld_shlibs_CXX=no
13366         ;;
13367       lcc*)
13368         # Lucid
13369         # FIXME: insert proper C++ library support
13370         ld_shlibs_CXX=no
13371         ;;
13372       *)
13373         # FIXME: insert proper C++ library support
13374         ld_shlibs_CXX=no
13375         ;;
13376     esac
13377     ;;
13378   solaris*)
13379     case $cc_basename in
13380       CC*)
13381         # Sun C++ 4.2, 5.x and Centerline C++
13382         archive_cmds_need_lc_CXX=yes
13383         no_undefined_flag_CXX=' -zdefs'
13384         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13385         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13386         $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'
13387
13388         hardcode_libdir_flag_spec_CXX='-R$libdir'
13389         hardcode_shlibpath_var_CXX=no
13390         case $host_os in
13391           solaris2.[0-5] | solaris2.[0-5].*) ;;
13392           *)
13393             # The C++ compiler is used as linker so we must use $wl
13394             # flag to pass the commands to the underlying system
13395             # linker. We must also pass each convience library through
13396             # to the system linker between allextract/defaultextract.
13397             # The C++ compiler will combine linker options so we
13398             # cannot just pass the convience library names through
13399             # without $wl.
13400             # Supported since Solaris 2.6 (maybe 2.5.1?)
13401             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'
13402             ;;
13403         esac
13404         link_all_deplibs_CXX=yes
13405
13406         output_verbose_link_cmd='echo'
13407
13408         # Archives containing C++ object files must be created using
13409         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13410         # necessary to make sure instantiated templates are included
13411         # in the archive.
13412         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13413         ;;
13414       gcx*)
13415         # Green Hills C++ Compiler
13416         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13417
13418         # The C++ compiler must be used to create the archive.
13419         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13420         ;;
13421       *)
13422         # GNU C++ compiler with Solaris linker
13423         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13424           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13425           if $CC --version | grep -v '^2\.7' > /dev/null; then
13426             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13427             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13428                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13429
13430             # Commands to make compiler produce verbose output that lists
13431             # what "hidden" libraries, object files and flags are used when
13432             # linking a shared library.
13433             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13434           else
13435             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13436             # platform.
13437             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13438             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13439                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13440
13441             # Commands to make compiler produce verbose output that lists
13442             # what "hidden" libraries, object files and flags are used when
13443             # linking a shared library.
13444             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13445           fi
13446
13447           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13448         fi
13449         ;;
13450     esac
13451     ;;
13452   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13453     no_undefined_flag_CXX='${wl}-z,text'
13454     archive_cmds_need_lc_CXX=no
13455     hardcode_shlibpath_var_CXX=no
13456     runpath_var='LD_RUN_PATH'
13457
13458     case $cc_basename in
13459       CC*)
13460         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462         ;;
13463       *)
13464         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466         ;;
13467     esac
13468     ;;
13469   sysv5* | sco3.2v5* | sco5v6*)
13470     # Note: We can NOT use -z defs as we might desire, because we do not
13471     # link with -lc, and that would cause any symbols used from libc to
13472     # always be unresolved, which means just about no library would
13473     # ever link correctly.  If we're not using GNU ld we use -z text
13474     # though, which does catch some bad symbols but isn't as heavy-handed
13475     # as -z defs.
13476     # For security reasons, it is highly recommended that you always
13477     # use absolute paths for naming shared libraries, and exclude the
13478     # DT_RUNPATH tag from executables and libraries.  But doing so
13479     # requires that you compile everything twice, which is a pain.
13480     # So that behaviour is only enabled if SCOABSPATH is set to a
13481     # non-empty value in the environment.  Most likely only useful for
13482     # creating official distributions of packages.
13483     # This is a hack until libtool officially supports absolute path
13484     # names for shared libraries.
13485     no_undefined_flag_CXX='${wl}-z,text'
13486     allow_undefined_flag_CXX='${wl}-z,nodefs'
13487     archive_cmds_need_lc_CXX=no
13488     hardcode_shlibpath_var_CXX=no
13489     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13490     hardcode_libdir_separator_CXX=':'
13491     link_all_deplibs_CXX=yes
13492     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13493     runpath_var='LD_RUN_PATH'
13494
13495     case $cc_basename in
13496       CC*)
13497         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13499         ;;
13500       *)
13501         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13503         ;;
13504     esac
13505     ;;
13506   tandem*)
13507     case $cc_basename in
13508       NCC*)
13509         # NonStop-UX NCC 3.20
13510         # FIXME: insert proper C++ library support
13511         ld_shlibs_CXX=no
13512         ;;
13513       *)
13514         # FIXME: insert proper C++ library support
13515         ld_shlibs_CXX=no
13516         ;;
13517     esac
13518     ;;
13519   vxworks*)
13520     # FIXME: insert proper C++ library support
13521     ld_shlibs_CXX=no
13522     ;;
13523   *)
13524     # FIXME: insert proper C++ library support
13525     ld_shlibs_CXX=no
13526     ;;
13527 esac
13528 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13529 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13530 test "$ld_shlibs_CXX" = no && can_build_shared=no
13531
13532 GCC_CXX="$GXX"
13533 LD_CXX="$LD"
13534
13535
13536 cat > conftest.$ac_ext <<EOF
13537 class Foo
13538 {
13539 public:
13540   Foo (void) { a = 0; }
13541 private:
13542   int a;
13543 };
13544 EOF
13545
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547   (eval $ac_compile) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; then
13551   # Parse the compiler output and extract the necessary
13552   # objects, libraries and library flags.
13553
13554   # Sentinel used to keep track of whether or not we are before
13555   # the conftest object file.
13556   pre_test_object_deps_done=no
13557
13558   # The `*' in the case matches for architectures that use `case' in
13559   # $output_verbose_cmd can trigger glob expansion during the loop
13560   # eval without this substitution.
13561   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13562
13563   for p in `eval $output_verbose_link_cmd`; do
13564     case $p in
13565
13566     -L* | -R* | -l*)
13567        # Some compilers place space between "-{L,R}" and the path.
13568        # Remove the space.
13569        if test $p = "-L" \
13570           || test $p = "-R"; then
13571          prev=$p
13572          continue
13573        else
13574          prev=
13575        fi
13576
13577        if test "$pre_test_object_deps_done" = no; then
13578          case $p in
13579          -L* | -R*)
13580            # Internal compiler library paths should come after those
13581            # provided the user.  The postdeps already come after the
13582            # user supplied libs so there is no need to process them.
13583            if test -z "$compiler_lib_search_path_CXX"; then
13584              compiler_lib_search_path_CXX="${prev}${p}"
13585            else
13586              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13587            fi
13588            ;;
13589          # The "-l" case would never come before the object being
13590          # linked, so don't bother handling this case.
13591          esac
13592        else
13593          if test -z "$postdeps_CXX"; then
13594            postdeps_CXX="${prev}${p}"
13595          else
13596            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13597          fi
13598        fi
13599        ;;
13600
13601     *.$objext)
13602        # This assumes that the test object file only shows up
13603        # once in the compiler output.
13604        if test "$p" = "conftest.$objext"; then
13605          pre_test_object_deps_done=yes
13606          continue
13607        fi
13608
13609        if test "$pre_test_object_deps_done" = no; then
13610          if test -z "$predep_objects_CXX"; then
13611            predep_objects_CXX="$p"
13612          else
13613            predep_objects_CXX="$predep_objects_CXX $p"
13614          fi
13615        else
13616          if test -z "$postdep_objects_CXX"; then
13617            postdep_objects_CXX="$p"
13618          else
13619            postdep_objects_CXX="$postdep_objects_CXX $p"
13620          fi
13621        fi
13622        ;;
13623
13624     *) ;; # Ignore the rest.
13625
13626     esac
13627   done
13628
13629   # Clean up.
13630   rm -f a.out a.exe
13631 else
13632   echo "libtool.m4: error: problem compiling CXX test program"
13633 fi
13634
13635 $rm -f confest.$objext
13636
13637 # PORTME: override above test on systems where it is broken
13638 case $host_os in
13639 interix3*)
13640   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13641   # hack all around it, let's just trust "g++" to DTRT.
13642   predep_objects_CXX=
13643   postdep_objects_CXX=
13644   postdeps_CXX=
13645   ;;
13646
13647 solaris*)
13648   case $cc_basename in
13649   CC*)
13650     # Adding this requires a known-good setup of shared libraries for
13651     # Sun compiler versions before 5.6, else PIC objects from an old
13652     # archive will be linked into the output, leading to subtle bugs.
13653     postdeps_CXX='-lCstd -lCrun'
13654     ;;
13655   esac
13656   ;;
13657 esac
13658
13659
13660 case " $postdeps_CXX " in
13661 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13662 esac
13663
13664 lt_prog_compiler_wl_CXX=
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_static_CXX=
13667
13668 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13669 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13670
13671   # C++ specific cases for pic, static, wl, etc.
13672   if test "$GXX" = yes; then
13673     lt_prog_compiler_wl_CXX='-Wl,'
13674     lt_prog_compiler_static_CXX='-static'
13675
13676     case $host_os in
13677     aix*)
13678       # All AIX code is PIC.
13679       if test "$host_cpu" = ia64; then
13680         # AIX 5 now supports IA64 processor
13681         lt_prog_compiler_static_CXX='-Bstatic'
13682       fi
13683       ;;
13684     amigaos*)
13685       # FIXME: we need at least 68020 code to build shared libraries, but
13686       # adding the `-m68020' flag to GCC prevents building anything better,
13687       # like `-m68040'.
13688       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13689       ;;
13690     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13691       # PIC is the default for these OSes.
13692       ;;
13693     mingw* | os2* | pw32*)
13694       # This hack is so that the source file can tell whether it is being
13695       # built for inclusion in a dll (and should export symbols for example).
13696       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13697       ;;
13698     darwin* | rhapsody*)
13699       # PIC is the default on this platform
13700       # Common symbols not allowed in MH_DYLIB files
13701       lt_prog_compiler_pic_CXX='-fno-common'
13702       ;;
13703     *djgpp*)
13704       # DJGPP does not support shared libraries at all
13705       lt_prog_compiler_pic_CXX=
13706       ;;
13707     interix3*)
13708       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13709       # Instead, we relocate shared libraries at runtime.
13710       ;;
13711     sysv4*MP*)
13712       if test -d /usr/nec; then
13713         lt_prog_compiler_pic_CXX=-Kconform_pic
13714       fi
13715       ;;
13716     hpux*)
13717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13718       # not for PA HP-UX.
13719       case $host_cpu in
13720       hppa*64*|ia64*)
13721         ;;
13722       *)
13723         lt_prog_compiler_pic_CXX='-fPIC'
13724         ;;
13725       esac
13726       ;;
13727     *)
13728       lt_prog_compiler_pic_CXX='-fPIC'
13729       ;;
13730     esac
13731   else
13732     case $host_os in
13733       aix4* | aix5*)
13734         # All AIX code is PIC.
13735         if test "$host_cpu" = ia64; then
13736           # AIX 5 now supports IA64 processor
13737           lt_prog_compiler_static_CXX='-Bstatic'
13738         else
13739           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13740         fi
13741         ;;
13742       chorus*)
13743         case $cc_basename in
13744         cxch68*)
13745           # Green Hills C++ Compiler
13746           # _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"
13747           ;;
13748         esac
13749         ;;
13750        darwin*)
13751          # PIC is the default on this platform
13752          # Common symbols not allowed in MH_DYLIB files
13753          case $cc_basename in
13754            xlc*)
13755            lt_prog_compiler_pic_CXX='-qnocommon'
13756            lt_prog_compiler_wl_CXX='-Wl,'
13757            ;;
13758          esac
13759        ;;
13760       dgux*)
13761         case $cc_basename in
13762           ec++*)
13763             lt_prog_compiler_pic_CXX='-KPIC'
13764             ;;
13765           ghcx*)
13766             # Green Hills C++ Compiler
13767             lt_prog_compiler_pic_CXX='-pic'
13768             ;;
13769           *)
13770             ;;
13771         esac
13772         ;;
13773       freebsd* | dragonfly*)
13774         # FreeBSD uses GNU C++
13775         ;;
13776       hpux9* | hpux10* | hpux11*)
13777         case $cc_basename in
13778           CC*)
13779             lt_prog_compiler_wl_CXX='-Wl,'
13780             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13781             if test "$host_cpu" != ia64; then
13782               lt_prog_compiler_pic_CXX='+Z'
13783             fi
13784             ;;
13785           aCC*)
13786             lt_prog_compiler_wl_CXX='-Wl,'
13787             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13788             case $host_cpu in
13789             hppa*64*|ia64*)
13790               # +Z the default
13791               ;;
13792             *)
13793               lt_prog_compiler_pic_CXX='+Z'
13794               ;;
13795             esac
13796             ;;
13797           *)
13798             ;;
13799         esac
13800         ;;
13801       interix*)
13802         # This is c89, which is MS Visual C++ (no shared libs)
13803         # Anyone wants to do a port?
13804         ;;
13805       irix5* | irix6* | nonstopux*)
13806         case $cc_basename in
13807           CC*)
13808             lt_prog_compiler_wl_CXX='-Wl,'
13809             lt_prog_compiler_static_CXX='-non_shared'
13810             # CC pic flag -KPIC is the default.
13811             ;;
13812           *)
13813             ;;
13814         esac
13815         ;;
13816       linux* | k*bsd*-gnu)
13817         case $cc_basename in
13818           KCC*)
13819             # KAI C++ Compiler
13820             lt_prog_compiler_wl_CXX='--backend -Wl,'
13821             lt_prog_compiler_pic_CXX='-fPIC'
13822             ;;
13823           icpc* | ecpc*)
13824             # Intel C++
13825             lt_prog_compiler_wl_CXX='-Wl,'
13826             lt_prog_compiler_pic_CXX='-KPIC'
13827             lt_prog_compiler_static_CXX='-static'
13828             ;;
13829           pgCC*)
13830             # Portland Group C++ compiler.
13831             lt_prog_compiler_wl_CXX='-Wl,'
13832             lt_prog_compiler_pic_CXX='-fpic'
13833             lt_prog_compiler_static_CXX='-Bstatic'
13834             ;;
13835           cxx*)
13836             # Compaq C++
13837             # Make sure the PIC flag is empty.  It appears that all Alpha
13838             # Linux and Compaq Tru64 Unix objects are PIC.
13839             lt_prog_compiler_pic_CXX=
13840             lt_prog_compiler_static_CXX='-non_shared'
13841             ;;
13842           *)
13843             ;;
13844         esac
13845         ;;
13846       lynxos*)
13847         ;;
13848       m88k*)
13849         ;;
13850       mvs*)
13851         case $cc_basename in
13852           cxx*)
13853             lt_prog_compiler_pic_CXX='-W c,exportall'
13854             ;;
13855           *)
13856             ;;
13857         esac
13858         ;;
13859       netbsd* | netbsdelf*-gnu)
13860         ;;
13861       osf3* | osf4* | osf5*)
13862         case $cc_basename in
13863           KCC*)
13864             lt_prog_compiler_wl_CXX='--backend -Wl,'
13865             ;;
13866           RCC*)
13867             # Rational C++ 2.4.1
13868             lt_prog_compiler_pic_CXX='-pic'
13869             ;;
13870           cxx*)
13871             # Digital/Compaq C++
13872             lt_prog_compiler_wl_CXX='-Wl,'
13873             # Make sure the PIC flag is empty.  It appears that all Alpha
13874             # Linux and Compaq Tru64 Unix objects are PIC.
13875             lt_prog_compiler_pic_CXX=
13876             lt_prog_compiler_static_CXX='-non_shared'
13877             ;;
13878           *)
13879             ;;
13880         esac
13881         ;;
13882       psos*)
13883         ;;
13884       solaris*)
13885         case $cc_basename in
13886           CC*)
13887             # Sun C++ 4.2, 5.x and Centerline C++
13888             lt_prog_compiler_pic_CXX='-KPIC'
13889             lt_prog_compiler_static_CXX='-Bstatic'
13890             lt_prog_compiler_wl_CXX='-Qoption ld '
13891             ;;
13892           gcx*)
13893             # Green Hills C++ Compiler
13894             lt_prog_compiler_pic_CXX='-PIC'
13895             ;;
13896           *)
13897             ;;
13898         esac
13899         ;;
13900       sunos4*)
13901         case $cc_basename in
13902           CC*)
13903             # Sun C++ 4.x
13904             lt_prog_compiler_pic_CXX='-pic'
13905             lt_prog_compiler_static_CXX='-Bstatic'
13906             ;;
13907           lcc*)
13908             # Lucid
13909             lt_prog_compiler_pic_CXX='-pic'
13910             ;;
13911           *)
13912             ;;
13913         esac
13914         ;;
13915       tandem*)
13916         case $cc_basename in
13917           NCC*)
13918             # NonStop-UX NCC 3.20
13919             lt_prog_compiler_pic_CXX='-KPIC'
13920             ;;
13921           *)
13922             ;;
13923         esac
13924         ;;
13925       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13926         case $cc_basename in
13927           CC*)
13928             lt_prog_compiler_wl_CXX='-Wl,'
13929             lt_prog_compiler_pic_CXX='-KPIC'
13930             lt_prog_compiler_static_CXX='-Bstatic'
13931             ;;
13932         esac
13933         ;;
13934       vxworks*)
13935         ;;
13936       *)
13937         lt_prog_compiler_can_build_shared_CXX=no
13938         ;;
13939     esac
13940   fi
13941
13942 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13943 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13944
13945 #
13946 # Check to make sure the PIC flag actually works.
13947 #
13948 if test -n "$lt_prog_compiler_pic_CXX"; then
13949
13950 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13952 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   lt_prog_compiler_pic_works_CXX=no
13956   ac_outfile=conftest.$ac_objext
13957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13959    # Insert the option either (1) after the last *FLAGS variable, or
13960    # (2) before a word containing "conftest.", or (3) at the end.
13961    # Note that $ac_compile itself does not contain backslashes and begins
13962    # with a dollar sign (not a hyphen), so the echo should work correctly.
13963    # The option is referenced via a variable to avoid confusing sed.
13964    lt_compile=`echo "$ac_compile" | $SED \
13965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967    -e 's:$: $lt_compiler_flag:'`
13968    (eval echo "\"\$as_me:13968: $lt_compile\"" >&5)
13969    (eval "$lt_compile" 2>conftest.err)
13970    ac_status=$?
13971    cat conftest.err >&5
13972    echo "$as_me:13972: \$? = $ac_status" >&5
13973    if (exit $ac_status) && test -s "$ac_outfile"; then
13974      # The compiler can only warn and ignore the option if not recognized
13975      # So say no if there are warnings other than the usual output.
13976      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979        lt_prog_compiler_pic_works_CXX=yes
13980      fi
13981    fi
13982    $rm conftest*
13983
13984 fi
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13987
13988 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13989     case $lt_prog_compiler_pic_CXX in
13990      "" | " "*) ;;
13991      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13992      esac
13993 else
13994     lt_prog_compiler_pic_CXX=
13995      lt_prog_compiler_can_build_shared_CXX=no
13996 fi
13997
13998 fi
13999 case $host_os in
14000   # For platforms which do not support PIC, -DPIC is meaningless:
14001   *djgpp*)
14002     lt_prog_compiler_pic_CXX=
14003     ;;
14004   *)
14005     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14006     ;;
14007 esac
14008
14009 #
14010 # Check to make sure the static flag actually works.
14011 #
14012 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14013 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14015 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   lt_prog_compiler_static_works_CXX=no
14019    save_LDFLAGS="$LDFLAGS"
14020    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14021    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14022    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14023      # The linker can only warn and ignore the option if not recognized
14024      # So say no if there are warnings
14025      if test -s conftest.err; then
14026        # Append any errors to the config.log.
14027        cat conftest.err 1>&5
14028        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14029        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030        if diff conftest.exp conftest.er2 >/dev/null; then
14031          lt_prog_compiler_static_works_CXX=yes
14032        fi
14033      else
14034        lt_prog_compiler_static_works_CXX=yes
14035      fi
14036    fi
14037    $rm conftest*
14038    LDFLAGS="$save_LDFLAGS"
14039
14040 fi
14041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14042 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14043
14044 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14045     :
14046 else
14047     lt_prog_compiler_static_CXX=
14048 fi
14049
14050
14051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14053 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   lt_cv_prog_compiler_c_o_CXX=no
14057    $rm -r conftest 2>/dev/null
14058    mkdir conftest
14059    cd conftest
14060    mkdir out
14061    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14062
14063    lt_compiler_flag="-o out/conftest2.$ac_objext"
14064    # Insert the option either (1) after the last *FLAGS variable, or
14065    # (2) before a word containing "conftest.", or (3) at the end.
14066    # Note that $ac_compile itself does not contain backslashes and begins
14067    # with a dollar sign (not a hyphen), so the echo should work correctly.
14068    lt_compile=`echo "$ac_compile" | $SED \
14069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071    -e 's:$: $lt_compiler_flag:'`
14072    (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
14073    (eval "$lt_compile" 2>out/conftest.err)
14074    ac_status=$?
14075    cat out/conftest.err >&5
14076    echo "$as_me:14076: \$? = $ac_status" >&5
14077    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14078    then
14079      # The compiler can only warn and ignore the option if not recognized
14080      # So say no if there are warnings
14081      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14082      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14083      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14084        lt_cv_prog_compiler_c_o_CXX=yes
14085      fi
14086    fi
14087    chmod u+w . 2>&5
14088    $rm conftest*
14089    # SGI C++ compiler will create directory out/ii_files/ for
14090    # template instantiation
14091    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14092    $rm out/* && rmdir out
14093    cd ..
14094    rmdir conftest
14095    $rm conftest*
14096
14097 fi
14098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14100
14101
14102 hard_links="nottested"
14103 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14104   # do not overwrite the value of need_locks provided by the user
14105   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14107   hard_links=yes
14108   $rm conftest*
14109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110   touch conftest.a
14111   ln conftest.a conftest.b 2>&5 || hard_links=no
14112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113   { echo "$as_me:$LINENO: result: $hard_links" >&5
14114 echo "${ECHO_T}$hard_links" >&6; }
14115   if test "$hard_links" = no; then
14116     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14118     need_locks=warn
14119   fi
14120 else
14121   need_locks=no
14122 fi
14123
14124 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14126
14127   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14128   case $host_os in
14129   aix4* | aix5*)
14130     # If we're using GNU nm, then we don't want the "-C" option.
14131     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14132     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14133       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'
14134     else
14135       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'
14136     fi
14137     ;;
14138   pw32*)
14139     export_symbols_cmds_CXX="$ltdll_cmds"
14140   ;;
14141   cygwin* | mingw*)
14142     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'
14143   ;;
14144   linux* | k*bsd*-gnu)
14145     link_all_deplibs_CXX=no
14146   ;;
14147   *)
14148     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149   ;;
14150   esac
14151
14152 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14153 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14154 test "$ld_shlibs_CXX" = no && can_build_shared=no
14155
14156 #
14157 # Do we need to explicitly link libc?
14158 #
14159 case "x$archive_cmds_need_lc_CXX" in
14160 x|xyes)
14161   # Assume -lc should be added
14162   archive_cmds_need_lc_CXX=yes
14163
14164   if test "$enable_shared" = yes && test "$GCC" = yes; then
14165     case $archive_cmds_CXX in
14166     *'~'*)
14167       # FIXME: we may have to deal with multi-command sequences.
14168       ;;
14169     '$CC '*)
14170       # Test whether the compiler implicitly links with -lc since on some
14171       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14172       # to ld, don't add -lc before -lgcc.
14173       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14174 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14175       $rm conftest*
14176       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14177
14178       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179   (eval $ac_compile) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } 2>conftest.err; then
14183         soname=conftest
14184         lib=conftest
14185         libobjs=conftest.$ac_objext
14186         deplibs=
14187         wl=$lt_prog_compiler_wl_CXX
14188         pic_flag=$lt_prog_compiler_pic_CXX
14189         compiler_flags=-v
14190         linker_flags=-v
14191         verstring=
14192         output_objdir=.
14193         libname=conftest
14194         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14195         allow_undefined_flag_CXX=
14196         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14197   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }
14201         then
14202           archive_cmds_need_lc_CXX=no
14203         else
14204           archive_cmds_need_lc_CXX=yes
14205         fi
14206         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14207       else
14208         cat conftest.err 1>&5
14209       fi
14210       $rm conftest*
14211       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14212 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14213       ;;
14214     esac
14215   fi
14216   ;;
14217 esac
14218
14219 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14220 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14221 library_names_spec=
14222 libname_spec='lib$name'
14223 soname_spec=
14224 shrext_cmds=".so"
14225 postinstall_cmds=
14226 postuninstall_cmds=
14227 finish_cmds=
14228 finish_eval=
14229 shlibpath_var=
14230 shlibpath_overrides_runpath=unknown
14231 version_type=none
14232 dynamic_linker="$host_os ld.so"
14233 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14234 if test "$GCC" = yes; then
14235   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14236   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14237     # if the path contains ";" then we assume it to be the separator
14238     # otherwise default to the standard path separator (i.e. ":") - it is
14239     # assumed that no part of a normal pathname contains ";" but that should
14240     # okay in the real world where ";" in dirpaths is itself problematic.
14241     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14242   else
14243     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14244   fi
14245 else
14246   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14247 fi
14248 need_lib_prefix=unknown
14249 hardcode_into_libs=no
14250
14251 # when you set need_version to no, make sure it does not cause -set_version
14252 # flags to be left without arguments
14253 need_version=unknown
14254
14255 case $host_os in
14256 aix3*)
14257   version_type=linux
14258   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14259   shlibpath_var=LIBPATH
14260
14261   # AIX 3 has no versioning support, so we append a major version to the name.
14262   soname_spec='${libname}${release}${shared_ext}$major'
14263   ;;
14264
14265 aix4* | aix5*)
14266   version_type=linux
14267   need_lib_prefix=no
14268   need_version=no
14269   hardcode_into_libs=yes
14270   if test "$host_cpu" = ia64; then
14271     # AIX 5 supports IA64
14272     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14273     shlibpath_var=LD_LIBRARY_PATH
14274   else
14275     # With GCC up to 2.95.x, collect2 would create an import file
14276     # for dependence libraries.  The import file would start with
14277     # the line `#! .'.  This would cause the generated library to
14278     # depend on `.', always an invalid library.  This was fixed in
14279     # development snapshots of GCC prior to 3.0.
14280     case $host_os in
14281       aix4 | aix4.[01] | aix4.[01].*)
14282       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14283            echo ' yes '
14284            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14285         :
14286       else
14287         can_build_shared=no
14288       fi
14289       ;;
14290     esac
14291     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14292     # soname into executable. Probably we can add versioning support to
14293     # collect2, so additional links can be useful in future.
14294     if test "$aix_use_runtimelinking" = yes; then
14295       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14296       # instead of lib<name>.a to let people know that these are not
14297       # typical AIX shared libraries.
14298       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14299     else
14300       # We preserve .a as extension for shared libraries through AIX4.2
14301       # and later when we are not doing run time linking.
14302       library_names_spec='${libname}${release}.a $libname.a'
14303       soname_spec='${libname}${release}${shared_ext}$major'
14304     fi
14305     shlibpath_var=LIBPATH
14306   fi
14307   ;;
14308
14309 amigaos*)
14310   library_names_spec='$libname.ixlibrary $libname.a'
14311   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14312   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'
14313   ;;
14314
14315 beos*)
14316   library_names_spec='${libname}${shared_ext}'
14317   dynamic_linker="$host_os ld.so"
14318   shlibpath_var=LIBRARY_PATH
14319   ;;
14320
14321 bsdi[45]*)
14322   version_type=linux
14323   need_version=no
14324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325   soname_spec='${libname}${release}${shared_ext}$major'
14326   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14327   shlibpath_var=LD_LIBRARY_PATH
14328   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14329   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14330   # the default ld.so.conf also contains /usr/contrib/lib and
14331   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14332   # libtool to hard-code these into programs
14333   ;;
14334
14335 cygwin* | mingw* | pw32*)
14336   version_type=windows
14337   shrext_cmds=".dll"
14338   need_version=no
14339   need_lib_prefix=no
14340
14341   case $GCC,$host_os in
14342   yes,cygwin* | yes,mingw* | yes,pw32*)
14343     library_names_spec='$libname.dll.a'
14344     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14345     postinstall_cmds='base_file=`basename \${file}`~
14346       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14347       dldir=$destdir/`dirname \$dlpath`~
14348       test -d \$dldir || mkdir -p \$dldir~
14349       $install_prog $dir/$dlname \$dldir/$dlname~
14350       chmod a+x \$dldir/$dlname'
14351     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14352       dlpath=$dir/\$dldll~
14353        $rm \$dlpath'
14354     shlibpath_overrides_runpath=yes
14355
14356     case $host_os in
14357     cygwin*)
14358       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14359       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14360       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14361       ;;
14362     mingw*)
14363       # MinGW DLLs use traditional 'lib' prefix
14364       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14365       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14366       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14367         # It is most probably a Windows format PATH printed by
14368         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14369         # path with ; separators, and with drive letters. We can handle the
14370         # drive letters (cygwin fileutils understands them), so leave them,
14371         # especially as we might pass files found there to a mingw objdump,
14372         # which wouldn't understand a cygwinified path. Ahh.
14373         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14374       else
14375         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14376       fi
14377       ;;
14378     pw32*)
14379       # pw32 DLLs use 'pw' prefix rather than 'lib'
14380       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14381       ;;
14382     esac
14383     ;;
14384
14385   *)
14386     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14387     ;;
14388   esac
14389   dynamic_linker='Win32 ld.exe'
14390   # FIXME: first we should search . and the directory the executable is in
14391   shlibpath_var=PATH
14392   ;;
14393
14394 darwin* | rhapsody*)
14395   dynamic_linker="$host_os dyld"
14396   version_type=darwin
14397   need_lib_prefix=no
14398   need_version=no
14399   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14400   soname_spec='${libname}${release}${major}$shared_ext'
14401   shlibpath_overrides_runpath=yes
14402   shlibpath_var=DYLD_LIBRARY_PATH
14403   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14404   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14405   if test "$GCC" = yes; then
14406     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"`
14407   else
14408     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14409   fi
14410   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14411   ;;
14412
14413 dgux*)
14414   version_type=linux
14415   need_lib_prefix=no
14416   need_version=no
14417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14418   soname_spec='${libname}${release}${shared_ext}$major'
14419   shlibpath_var=LD_LIBRARY_PATH
14420   ;;
14421
14422 freebsd1*)
14423   dynamic_linker=no
14424   ;;
14425
14426 freebsd* | dragonfly*)
14427   # DragonFly does not have aout.  When/if they implement a new
14428   # versioning mechanism, adjust this.
14429   if test -x /usr/bin/objformat; then
14430     objformat=`/usr/bin/objformat`
14431   else
14432     case $host_os in
14433     freebsd[123]*) objformat=aout ;;
14434     *) objformat=elf ;;
14435     esac
14436   fi
14437   version_type=freebsd-$objformat
14438   case $version_type in
14439     freebsd-elf*)
14440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14441       need_version=no
14442       need_lib_prefix=no
14443       ;;
14444     freebsd-*)
14445       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14446       need_version=yes
14447       ;;
14448   esac
14449   shlibpath_var=LD_LIBRARY_PATH
14450   case $host_os in
14451   freebsd2*)
14452     shlibpath_overrides_runpath=yes
14453     ;;
14454   freebsd3.[01]* | freebsdelf3.[01]*)
14455     shlibpath_overrides_runpath=yes
14456     hardcode_into_libs=yes
14457     ;;
14458   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14459   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14460     shlibpath_overrides_runpath=no
14461     hardcode_into_libs=yes
14462     ;;
14463   freebsd*) # from 4.6 on
14464     shlibpath_overrides_runpath=yes
14465     hardcode_into_libs=yes
14466     ;;
14467   esac
14468   ;;
14469
14470 gnu*)
14471   version_type=linux
14472   need_lib_prefix=no
14473   need_version=no
14474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14475   soname_spec='${libname}${release}${shared_ext}$major'
14476   shlibpath_var=LD_LIBRARY_PATH
14477   hardcode_into_libs=yes
14478   ;;
14479
14480 hpux9* | hpux10* | hpux11*)
14481   # Give a soname corresponding to the major version so that dld.sl refuses to
14482   # link against other versions.
14483   version_type=sunos
14484   need_lib_prefix=no
14485   need_version=no
14486   case $host_cpu in
14487   ia64*)
14488     shrext_cmds='.so'
14489     hardcode_into_libs=yes
14490     dynamic_linker="$host_os dld.so"
14491     shlibpath_var=LD_LIBRARY_PATH
14492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494     soname_spec='${libname}${release}${shared_ext}$major'
14495     if test "X$HPUX_IA64_MODE" = X32; then
14496       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14497     else
14498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14499     fi
14500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14501     ;;
14502    hppa*64*)
14503      shrext_cmds='.sl'
14504      hardcode_into_libs=yes
14505      dynamic_linker="$host_os dld.sl"
14506      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14507      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509      soname_spec='${libname}${release}${shared_ext}$major'
14510      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14511      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512      ;;
14513    *)
14514     shrext_cmds='.sl'
14515     dynamic_linker="$host_os dld.sl"
14516     shlibpath_var=SHLIB_PATH
14517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519     soname_spec='${libname}${release}${shared_ext}$major'
14520     ;;
14521   esac
14522   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14523   postinstall_cmds='chmod 555 $lib'
14524   ;;
14525
14526 interix3*)
14527   version_type=linux
14528   need_lib_prefix=no
14529   need_version=no
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531   soname_spec='${libname}${release}${shared_ext}$major'
14532   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14533   shlibpath_var=LD_LIBRARY_PATH
14534   shlibpath_overrides_runpath=no
14535   hardcode_into_libs=yes
14536   ;;
14537
14538 irix5* | irix6* | nonstopux*)
14539   case $host_os in
14540     nonstopux*) version_type=nonstopux ;;
14541     *)
14542         if test "$lt_cv_prog_gnu_ld" = yes; then
14543                 version_type=linux
14544         else
14545                 version_type=irix
14546         fi ;;
14547   esac
14548   need_lib_prefix=no
14549   need_version=no
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14552   case $host_os in
14553   irix5* | nonstopux*)
14554     libsuff= shlibsuff=
14555     ;;
14556   *)
14557     case $LD in # libtool.m4 will add one of these switches to LD
14558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14559       libsuff= shlibsuff= libmagic=32-bit;;
14560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561       libsuff=32 shlibsuff=N32 libmagic=N32;;
14562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14564     *) libsuff= shlibsuff= libmagic=never-match;;
14565     esac
14566     ;;
14567   esac
14568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14569   shlibpath_overrides_runpath=no
14570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14572   hardcode_into_libs=yes
14573   ;;
14574
14575 # No shared lib support for Linux oldld, aout, or coff.
14576 linux*oldld* | linux*aout* | linux*coff*)
14577   dynamic_linker=no
14578   ;;
14579
14580 # This must be Linux ELF.
14581 linux* | k*bsd*-gnu)
14582   version_type=linux
14583   need_lib_prefix=no
14584   need_version=no
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586   soname_spec='${libname}${release}${shared_ext}$major'
14587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14588   shlibpath_var=LD_LIBRARY_PATH
14589   shlibpath_overrides_runpath=no
14590   # This implies no fast_install, which is unacceptable.
14591   # Some rework will be needed to allow for fast_install
14592   # before this can be enabled.
14593   hardcode_into_libs=yes
14594
14595   # Append ld.so.conf contents to the search path
14596   if test -f /etc/ld.so.conf; then
14597     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' ' '`
14598     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14599   fi
14600
14601   # We used to test for /lib/ld.so.1 and disable shared libraries on
14602   # powerpc, because MkLinux only supported shared libraries with the
14603   # GNU dynamic linker.  Since this was broken with cross compilers,
14604   # most powerpc-linux boxes support dynamic linking these days and
14605   # people can always --disable-shared, the test was removed, and we
14606   # assume the GNU/Linux dynamic linker is in use.
14607   dynamic_linker='GNU/Linux ld.so'
14608   ;;
14609
14610 netbsdelf*-gnu)
14611   version_type=linux
14612   need_lib_prefix=no
14613   need_version=no
14614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615   soname_spec='${libname}${release}${shared_ext}$major'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   shlibpath_overrides_runpath=no
14618   hardcode_into_libs=yes
14619   dynamic_linker='NetBSD ld.elf_so'
14620   ;;
14621
14622 netbsd*)
14623   version_type=sunos
14624   need_lib_prefix=no
14625   need_version=no
14626   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14629     dynamic_linker='NetBSD (a.out) ld.so'
14630   else
14631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14632     soname_spec='${libname}${release}${shared_ext}$major'
14633     dynamic_linker='NetBSD ld.elf_so'
14634   fi
14635   shlibpath_var=LD_LIBRARY_PATH
14636   shlibpath_overrides_runpath=yes
14637   hardcode_into_libs=yes
14638   ;;
14639
14640 newsos6)
14641   version_type=linux
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643   shlibpath_var=LD_LIBRARY_PATH
14644   shlibpath_overrides_runpath=yes
14645   ;;
14646
14647 nto-qnx*)
14648   version_type=linux
14649   need_lib_prefix=no
14650   need_version=no
14651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652   soname_spec='${libname}${release}${shared_ext}$major'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   shlibpath_overrides_runpath=yes
14655   ;;
14656
14657 openbsd*)
14658   version_type=sunos
14659   sys_lib_dlsearch_path_spec="/usr/lib"
14660   need_lib_prefix=no
14661   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14662   case $host_os in
14663     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14664     *)                         need_version=no  ;;
14665   esac
14666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14667   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14670     case $host_os in
14671       openbsd2.[89] | openbsd2.[89].*)
14672         shlibpath_overrides_runpath=no
14673         ;;
14674       *)
14675         shlibpath_overrides_runpath=yes
14676         ;;
14677       esac
14678   else
14679     shlibpath_overrides_runpath=yes
14680   fi
14681   ;;
14682
14683 os2*)
14684   libname_spec='$name'
14685   shrext_cmds=".dll"
14686   need_lib_prefix=no
14687   library_names_spec='$libname${shared_ext} $libname.a'
14688   dynamic_linker='OS/2 ld.exe'
14689   shlibpath_var=LIBPATH
14690   ;;
14691
14692 osf3* | osf4* | osf5*)
14693   version_type=osf
14694   need_lib_prefix=no
14695   need_version=no
14696   soname_spec='${libname}${release}${shared_ext}$major'
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14700   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14701   ;;
14702
14703 solaris*)
14704   version_type=linux
14705   need_lib_prefix=no
14706   need_version=no
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708   soname_spec='${libname}${release}${shared_ext}$major'
14709   shlibpath_var=LD_LIBRARY_PATH
14710   shlibpath_overrides_runpath=yes
14711   hardcode_into_libs=yes
14712   # ldd complains unless libraries are executable
14713   postinstall_cmds='chmod +x $lib'
14714   ;;
14715
14716 sunos4*)
14717   version_type=sunos
14718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14719   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14720   shlibpath_var=LD_LIBRARY_PATH
14721   shlibpath_overrides_runpath=yes
14722   if test "$with_gnu_ld" = yes; then
14723     need_lib_prefix=no
14724   fi
14725   need_version=yes
14726   ;;
14727
14728 sysv4 | sysv4.3*)
14729   version_type=linux
14730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731   soname_spec='${libname}${release}${shared_ext}$major'
14732   shlibpath_var=LD_LIBRARY_PATH
14733   case $host_vendor in
14734     sni)
14735       shlibpath_overrides_runpath=no
14736       need_lib_prefix=no
14737       export_dynamic_flag_spec='${wl}-Blargedynsym'
14738       runpath_var=LD_RUN_PATH
14739       ;;
14740     siemens)
14741       need_lib_prefix=no
14742       ;;
14743     motorola)
14744       need_lib_prefix=no
14745       need_version=no
14746       shlibpath_overrides_runpath=no
14747       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14748       ;;
14749   esac
14750   ;;
14751
14752 sysv4*MP*)
14753   if test -d /usr/nec ;then
14754     version_type=linux
14755     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14756     soname_spec='$libname${shared_ext}.$major'
14757     shlibpath_var=LD_LIBRARY_PATH
14758   fi
14759   ;;
14760
14761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14762   version_type=freebsd-elf
14763   need_lib_prefix=no
14764   need_version=no
14765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14766   soname_spec='${libname}${release}${shared_ext}$major'
14767   shlibpath_var=LD_LIBRARY_PATH
14768   hardcode_into_libs=yes
14769   if test "$with_gnu_ld" = yes; then
14770     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14771     shlibpath_overrides_runpath=no
14772   else
14773     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14774     shlibpath_overrides_runpath=yes
14775     case $host_os in
14776       sco3.2v5*)
14777         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14778         ;;
14779     esac
14780   fi
14781   sys_lib_dlsearch_path_spec='/usr/lib'
14782   ;;
14783
14784 uts4*)
14785   version_type=linux
14786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787   soname_spec='${libname}${release}${shared_ext}$major'
14788   shlibpath_var=LD_LIBRARY_PATH
14789   ;;
14790
14791 *)
14792   dynamic_linker=no
14793   ;;
14794 esac
14795 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14796 echo "${ECHO_T}$dynamic_linker" >&6; }
14797 test "$dynamic_linker" = no && can_build_shared=no
14798
14799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14800 if test "$GCC" = yes; then
14801   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14802 fi
14803
14804 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14806 hardcode_action_CXX=
14807 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14808    test -n "$runpath_var_CXX" || \
14809    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14810
14811   # We can hardcode non-existant directories.
14812   if test "$hardcode_direct_CXX" != no &&
14813      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14814      # have to relink, otherwise we might link with an installed library
14815      # when we should be linking with a yet-to-be-installed one
14816      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14817      test "$hardcode_minus_L_CXX" != no; then
14818     # Linking always hardcodes the temporary library directory.
14819     hardcode_action_CXX=relink
14820   else
14821     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14822     hardcode_action_CXX=immediate
14823   fi
14824 else
14825   # We cannot hardcode anything, or else we can only hardcode existing
14826   # directories.
14827   hardcode_action_CXX=unsupported
14828 fi
14829 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14830 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14831
14832 if test "$hardcode_action_CXX" = relink; then
14833   # Fast installation is not supported
14834   enable_fast_install=no
14835 elif test "$shlibpath_overrides_runpath" = yes ||
14836      test "$enable_shared" = no; then
14837   # Fast installation is not necessary
14838   enable_fast_install=needless
14839 fi
14840
14841
14842 # The else clause should only fire when bootstrapping the
14843 # libtool distribution, otherwise you forgot to ship ltmain.sh
14844 # with your package, and you will get complaints that there are
14845 # no rules to generate ltmain.sh.
14846 if test -f "$ltmain"; then
14847   # See if we are running on zsh, and set the options which allow our commands through
14848   # without removal of \ escapes.
14849   if test -n "${ZSH_VERSION+set}" ; then
14850     setopt NO_GLOB_SUBST
14851   fi
14852   # Now quote all the things that may contain metacharacters while being
14853   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14854   # variables and quote the copies for generation of the libtool script.
14855   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14856     SED SHELL STRIP \
14857     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14858     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14859     deplibs_check_method reload_flag reload_cmds need_locks \
14860     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14861     lt_cv_sys_global_symbol_to_c_name_address \
14862     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14863     old_postinstall_cmds old_postuninstall_cmds \
14864     compiler_CXX \
14865     CC_CXX \
14866     LD_CXX \
14867     lt_prog_compiler_wl_CXX \
14868     lt_prog_compiler_pic_CXX \
14869     lt_prog_compiler_static_CXX \
14870     lt_prog_compiler_no_builtin_flag_CXX \
14871     export_dynamic_flag_spec_CXX \
14872     thread_safe_flag_spec_CXX \
14873     whole_archive_flag_spec_CXX \
14874     enable_shared_with_static_runtimes_CXX \
14875     old_archive_cmds_CXX \
14876     old_archive_from_new_cmds_CXX \
14877     predep_objects_CXX \
14878     postdep_objects_CXX \
14879     predeps_CXX \
14880     postdeps_CXX \
14881     compiler_lib_search_path_CXX \
14882     archive_cmds_CXX \
14883     archive_expsym_cmds_CXX \
14884     postinstall_cmds_CXX \
14885     postuninstall_cmds_CXX \
14886     old_archive_from_expsyms_cmds_CXX \
14887     allow_undefined_flag_CXX \
14888     no_undefined_flag_CXX \
14889     export_symbols_cmds_CXX \
14890     hardcode_libdir_flag_spec_CXX \
14891     hardcode_libdir_flag_spec_ld_CXX \
14892     hardcode_libdir_separator_CXX \
14893     hardcode_automatic_CXX \
14894     module_cmds_CXX \
14895     module_expsym_cmds_CXX \
14896     lt_cv_prog_compiler_c_o_CXX \
14897     exclude_expsyms_CXX \
14898     include_expsyms_CXX; do
14899
14900     case $var in
14901     old_archive_cmds_CXX | \
14902     old_archive_from_new_cmds_CXX | \
14903     archive_cmds_CXX | \
14904     archive_expsym_cmds_CXX | \
14905     module_cmds_CXX | \
14906     module_expsym_cmds_CXX | \
14907     old_archive_from_expsyms_cmds_CXX | \
14908     export_symbols_cmds_CXX | \
14909     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14910     postinstall_cmds | postuninstall_cmds | \
14911     old_postinstall_cmds | old_postuninstall_cmds | \
14912     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14913       # Double-quote double-evaled strings.
14914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14915       ;;
14916     *)
14917       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14918       ;;
14919     esac
14920   done
14921
14922   case $lt_echo in
14923   *'\$0 --fallback-echo"')
14924     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14925     ;;
14926   esac
14927
14928 cfgfile="$ofile"
14929
14930   cat <<__EOF__ >> "$cfgfile"
14931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14932
14933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14934
14935 # Shell to use when invoking shell scripts.
14936 SHELL=$lt_SHELL
14937
14938 # Whether or not to build shared libraries.
14939 build_libtool_libs=$enable_shared
14940
14941 # Whether or not to build static libraries.
14942 build_old_libs=$enable_static
14943
14944 # Whether or not to add -lc for building shared libraries.
14945 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14946
14947 # Whether or not to disallow shared libs when runtime libs are static
14948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14949
14950 # Whether or not to optimize for fast installation.
14951 fast_install=$enable_fast_install
14952
14953 # The host system.
14954 host_alias=$host_alias
14955 host=$host
14956 host_os=$host_os
14957
14958 # The build system.
14959 build_alias=$build_alias
14960 build=$build
14961 build_os=$build_os
14962
14963 # An echo program that does not interpret backslashes.
14964 echo=$lt_echo
14965
14966 # The archiver.
14967 AR=$lt_AR
14968 AR_FLAGS=$lt_AR_FLAGS
14969
14970 # A C compiler.
14971 LTCC=$lt_LTCC
14972
14973 # LTCC compiler flags.
14974 LTCFLAGS=$lt_LTCFLAGS
14975
14976 # A language-specific compiler.
14977 CC=$lt_compiler_CXX
14978
14979 # Is the compiler the GNU C compiler?
14980 with_gcc=$GCC_CXX
14981
14982 # An ERE matcher.
14983 EGREP=$lt_EGREP
14984
14985 # The linker used to build libraries.
14986 LD=$lt_LD_CXX
14987
14988 # Whether we need hard or soft links.
14989 LN_S=$lt_LN_S
14990
14991 # A BSD-compatible nm program.
14992 NM=$lt_NM
14993
14994 # A symbol stripping program
14995 STRIP=$lt_STRIP
14996
14997 # Used to examine libraries when file_magic_cmd begins "file"
14998 MAGIC_CMD=$MAGIC_CMD
14999
15000 # Used on cygwin: DLL creation program.
15001 DLLTOOL="$DLLTOOL"
15002
15003 # Used on cygwin: object dumper.
15004 OBJDUMP="$OBJDUMP"
15005
15006 # Used on cygwin: assembler.
15007 AS="$AS"
15008
15009 # The name of the directory that contains temporary libtool files.
15010 objdir=$objdir
15011
15012 # How to create reloadable object files.
15013 reload_flag=$lt_reload_flag
15014 reload_cmds=$lt_reload_cmds
15015
15016 # How to pass a linker flag through the compiler.
15017 wl=$lt_lt_prog_compiler_wl_CXX
15018
15019 # Object file suffix (normally "o").
15020 objext="$ac_objext"
15021
15022 # Old archive suffix (normally "a").
15023 libext="$libext"
15024
15025 # Shared library suffix (normally ".so").
15026 shrext_cmds='$shrext_cmds'
15027
15028 # Executable file suffix (normally "").
15029 exeext="$exeext"
15030
15031 # Additional compiler flags for building library objects.
15032 pic_flag=$lt_lt_prog_compiler_pic_CXX
15033 pic_mode=$pic_mode
15034
15035 # What is the maximum length of a command?
15036 max_cmd_len=$lt_cv_sys_max_cmd_len
15037
15038 # Does compiler simultaneously support -c and -o options?
15039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15040
15041 # Must we lock files when doing compilation?
15042 need_locks=$lt_need_locks
15043
15044 # Do we need the lib prefix for modules?
15045 need_lib_prefix=$need_lib_prefix
15046
15047 # Do we need a version for libraries?
15048 need_version=$need_version
15049
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15052
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15055
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15058
15059 # Compiler flag to prevent dynamic linking.
15060 link_static_flag=$lt_lt_prog_compiler_static_CXX
15061
15062 # Compiler flag to turn off builtin functions.
15063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15064
15065 # Compiler flag to allow reflexive dlopens.
15066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15067
15068 # Compiler flag to generate shared objects directly from archives.
15069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15070
15071 # Compiler flag to generate thread-safe objects.
15072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15073
15074 # Library versioning type.
15075 version_type=$version_type
15076
15077 # Format of library name prefix.
15078 libname_spec=$lt_libname_spec
15079
15080 # List of archive names.  First name is the real one, the rest are links.
15081 # The last name is the one that the linker finds with -lNAME.
15082 library_names_spec=$lt_library_names_spec
15083
15084 # The coded name of the library, if different from the real name.
15085 soname_spec=$lt_soname_spec
15086
15087 # Commands used to build and install an old-style archive.
15088 RANLIB=$lt_RANLIB
15089 old_archive_cmds=$lt_old_archive_cmds_CXX
15090 old_postinstall_cmds=$lt_old_postinstall_cmds
15091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15092
15093 # Create an old-style archive from a shared archive.
15094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15095
15096 # Create a temporary old-style archive to link instead of a shared archive.
15097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15098
15099 # Commands used to build and install a shared archive.
15100 archive_cmds=$lt_archive_cmds_CXX
15101 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15102 postinstall_cmds=$lt_postinstall_cmds
15103 postuninstall_cmds=$lt_postuninstall_cmds
15104
15105 # Commands used to build a loadable module (assumed same as above if empty)
15106 module_cmds=$lt_module_cmds_CXX
15107 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15108
15109 # Commands to strip libraries.
15110 old_striplib=$lt_old_striplib
15111 striplib=$lt_striplib
15112
15113 # Dependencies to place before the objects being linked to create a
15114 # shared library.
15115 predep_objects=$lt_predep_objects_CXX
15116
15117 # Dependencies to place after the objects being linked to create a
15118 # shared library.
15119 postdep_objects=$lt_postdep_objects_CXX
15120
15121 # Dependencies to place before the objects being linked to create a
15122 # shared library.
15123 predeps=$lt_predeps_CXX
15124
15125 # Dependencies to place after the objects being linked to create a
15126 # shared library.
15127 postdeps=$lt_postdeps_CXX
15128
15129 # The library search path used internally by the compiler when linking
15130 # a shared library.
15131 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15132
15133 # Method to check whether dependent libraries are shared objects.
15134 deplibs_check_method=$lt_deplibs_check_method
15135
15136 # Command to use when deplibs_check_method == file_magic.
15137 file_magic_cmd=$lt_file_magic_cmd
15138
15139 # Flag that allows shared libraries with undefined symbols to be built.
15140 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15141
15142 # Flag that forces no undefined symbols.
15143 no_undefined_flag=$lt_no_undefined_flag_CXX
15144
15145 # Commands used to finish a libtool library installation in a directory.
15146 finish_cmds=$lt_finish_cmds
15147
15148 # Same as above, but a single script fragment to be evaled but not shown.
15149 finish_eval=$lt_finish_eval
15150
15151 # Take the output of nm and produce a listing of raw symbols and C names.
15152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15153
15154 # Transform the output of nm in a proper C declaration
15155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15156
15157 # Transform the output of nm in a C name address pair
15158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15159
15160 # This is the shared library runtime path variable.
15161 runpath_var=$runpath_var
15162
15163 # This is the shared library path variable.
15164 shlibpath_var=$shlibpath_var
15165
15166 # Is shlibpath searched before the hard-coded library search path?
15167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15168
15169 # How to hardcode a shared library path into an executable.
15170 hardcode_action=$hardcode_action_CXX
15171
15172 # Whether we should hardcode library paths into libraries.
15173 hardcode_into_libs=$hardcode_into_libs
15174
15175 # Flag to hardcode \$libdir into a binary during linking.
15176 # This must work even if \$libdir does not exist.
15177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15178
15179 # If ld is used when linking, flag to hardcode \$libdir into
15180 # a binary during linking. This must work even if \$libdir does
15181 # not exist.
15182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15183
15184 # Whether we need a single -rpath flag with a separated argument.
15185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15186
15187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15188 # resulting binary.
15189 hardcode_direct=$hardcode_direct_CXX
15190
15191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15192 # resulting binary.
15193 hardcode_minus_L=$hardcode_minus_L_CXX
15194
15195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15196 # the resulting binary.
15197 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15198
15199 # Set to yes if building a shared library automatically hardcodes DIR into the library
15200 # and all subsequent libraries and executables linked against it.
15201 hardcode_automatic=$hardcode_automatic_CXX
15202
15203 # Variables whose values should be saved in libtool wrapper scripts and
15204 # restored at relink time.
15205 variables_saved_for_relink="$variables_saved_for_relink"
15206
15207 # Whether libtool must link a program against all its dependency libraries.
15208 link_all_deplibs=$link_all_deplibs_CXX
15209
15210 # Compile-time system search path for libraries
15211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15212
15213 # Run-time system search path for libraries
15214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15215
15216 # Fix the shell variable \$srcfile for the compiler.
15217 fix_srcfile_path="$fix_srcfile_path_CXX"
15218
15219 # Set to yes if exported symbols are required.
15220 always_export_symbols=$always_export_symbols_CXX
15221
15222 # The commands to list exported symbols.
15223 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15224
15225 # The commands to extract the exported symbol list from a shared archive.
15226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15227
15228 # Symbols that should not be listed in the preloaded symbols.
15229 exclude_expsyms=$lt_exclude_expsyms_CXX
15230
15231 # Symbols that must always be exported.
15232 include_expsyms=$lt_include_expsyms_CXX
15233
15234 # ### END LIBTOOL TAG CONFIG: $tagname
15235
15236 __EOF__
15237
15238
15239 else
15240   # If there is no Makefile yet, we rely on a make rule to execute
15241   # `config.status --recheck' to rerun these tests and create the
15242   # libtool script then.
15243   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15244   if test -f "$ltmain_in"; then
15245     test -f Makefile && make "$ltmain"
15246   fi
15247 fi
15248
15249
15250 ac_ext=c
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256 CC=$lt_save_CC
15257 LDCXX=$LD
15258 LD=$lt_save_LD
15259 GCC=$lt_save_GCC
15260 with_gnu_ldcxx=$with_gnu_ld
15261 with_gnu_ld=$lt_save_with_gnu_ld
15262 lt_cv_path_LDCXX=$lt_cv_path_LD
15263 lt_cv_path_LD=$lt_save_path_LD
15264 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15265 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15266
15267         else
15268           tagname=""
15269         fi
15270         ;;
15271
15272       F77)
15273         if test -n "$F77" && test "X$F77" != "Xno"; then
15274
15275 ac_ext=f
15276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15279
15280
15281 archive_cmds_need_lc_F77=no
15282 allow_undefined_flag_F77=
15283 always_export_symbols_F77=no
15284 archive_expsym_cmds_F77=
15285 export_dynamic_flag_spec_F77=
15286 hardcode_direct_F77=no
15287 hardcode_libdir_flag_spec_F77=
15288 hardcode_libdir_flag_spec_ld_F77=
15289 hardcode_libdir_separator_F77=
15290 hardcode_minus_L_F77=no
15291 hardcode_automatic_F77=no
15292 module_cmds_F77=
15293 module_expsym_cmds_F77=
15294 link_all_deplibs_F77=unknown
15295 old_archive_cmds_F77=$old_archive_cmds
15296 no_undefined_flag_F77=
15297 whole_archive_flag_spec_F77=
15298 enable_shared_with_static_runtimes_F77=no
15299
15300 # Source file extension for f77 test sources.
15301 ac_ext=f
15302
15303 # Object file extension for compiled f77 test sources.
15304 objext=o
15305 objext_F77=$objext
15306
15307 # Code to be used in simple compile tests
15308 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15309
15310 # Code to be used in simple link tests
15311 lt_simple_link_test_code="      program t\n      end\n"
15312
15313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314
15315 # If no C compiler was specified, use CC.
15316 LTCC=${LTCC-"$CC"}
15317
15318 # If no C compiler flags were specified, use CFLAGS.
15319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15320
15321 # Allow CC to be a program name with arguments.
15322 compiler=$CC
15323
15324
15325 # save warnings/boilerplate of simple test code
15326 ac_outfile=conftest.$ac_objext
15327 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15329 _lt_compiler_boilerplate=`cat conftest.err`
15330 $rm conftest*
15331
15332 ac_outfile=conftest.$ac_objext
15333 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15335 _lt_linker_boilerplate=`cat conftest.err`
15336 $rm conftest*
15337
15338
15339 # Allow CC to be a program name with arguments.
15340 lt_save_CC="$CC"
15341 CC=${F77-"f77"}
15342 compiler=$CC
15343 compiler_F77=$CC
15344 for cc_temp in $compiler""; do
15345   case $cc_temp in
15346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15348     \-*) ;;
15349     *) break;;
15350   esac
15351 done
15352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15353
15354
15355 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15357 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15358 echo "${ECHO_T}$can_build_shared" >&6; }
15359
15360 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15362 test "$can_build_shared" = "no" && enable_shared=no
15363
15364 # On AIX, shared libraries and static libraries use the same namespace, and
15365 # are all built from PIC.
15366 case $host_os in
15367 aix3*)
15368   test "$enable_shared" = yes && enable_static=no
15369   if test -n "$RANLIB"; then
15370     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15371     postinstall_cmds='$RANLIB $lib'
15372   fi
15373   ;;
15374 aix4* | aix5*)
15375   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15376     test "$enable_shared" = yes && enable_static=no
15377   fi
15378   ;;
15379 esac
15380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15381 echo "${ECHO_T}$enable_shared" >&6; }
15382
15383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15385 # Make sure either enable_shared or enable_static is yes.
15386 test "$enable_shared" = yes || enable_static=yes
15387 { echo "$as_me:$LINENO: result: $enable_static" >&5
15388 echo "${ECHO_T}$enable_static" >&6; }
15389
15390 GCC_F77="$G77"
15391 LD_F77="$LD"
15392
15393 lt_prog_compiler_wl_F77=
15394 lt_prog_compiler_pic_F77=
15395 lt_prog_compiler_static_F77=
15396
15397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15399
15400   if test "$GCC" = yes; then
15401     lt_prog_compiler_wl_F77='-Wl,'
15402     lt_prog_compiler_static_F77='-static'
15403
15404     case $host_os in
15405       aix*)
15406       # All AIX code is PIC.
15407       if test "$host_cpu" = ia64; then
15408         # AIX 5 now supports IA64 processor
15409         lt_prog_compiler_static_F77='-Bstatic'
15410       fi
15411       ;;
15412
15413     amigaos*)
15414       # FIXME: we need at least 68020 code to build shared libraries, but
15415       # adding the `-m68020' flag to GCC prevents building anything better,
15416       # like `-m68040'.
15417       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15418       ;;
15419
15420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15421       # PIC is the default for these OSes.
15422       ;;
15423
15424     mingw* | pw32* | os2*)
15425       # This hack is so that the source file can tell whether it is being
15426       # built for inclusion in a dll (and should export symbols for example).
15427       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15428       ;;
15429
15430     darwin* | rhapsody*)
15431       # PIC is the default on this platform
15432       # Common symbols not allowed in MH_DYLIB files
15433       lt_prog_compiler_pic_F77='-fno-common'
15434       ;;
15435
15436     interix3*)
15437       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15438       # Instead, we relocate shared libraries at runtime.
15439       ;;
15440
15441     msdosdjgpp*)
15442       # Just because we use GCC doesn't mean we suddenly get shared libraries
15443       # on systems that don't support them.
15444       lt_prog_compiler_can_build_shared_F77=no
15445       enable_shared=no
15446       ;;
15447
15448     sysv4*MP*)
15449       if test -d /usr/nec; then
15450         lt_prog_compiler_pic_F77=-Kconform_pic
15451       fi
15452       ;;
15453
15454     hpux*)
15455       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15456       # not for PA HP-UX.
15457       case $host_cpu in
15458       hppa*64*|ia64*)
15459         # +Z the default
15460         ;;
15461       *)
15462         lt_prog_compiler_pic_F77='-fPIC'
15463         ;;
15464       esac
15465       ;;
15466
15467     *)
15468       lt_prog_compiler_pic_F77='-fPIC'
15469       ;;
15470     esac
15471   else
15472     # PORTME Check for flag to pass linker flags through the system compiler.
15473     case $host_os in
15474     aix*)
15475       lt_prog_compiler_wl_F77='-Wl,'
15476       if test "$host_cpu" = ia64; then
15477         # AIX 5 now supports IA64 processor
15478         lt_prog_compiler_static_F77='-Bstatic'
15479       else
15480         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15481       fi
15482       ;;
15483       darwin*)
15484         # PIC is the default on this platform
15485         # Common symbols not allowed in MH_DYLIB files
15486        case $cc_basename in
15487          xlc*)
15488          lt_prog_compiler_pic_F77='-qnocommon'
15489          lt_prog_compiler_wl_F77='-Wl,'
15490          ;;
15491        esac
15492        ;;
15493
15494     mingw* | pw32* | os2*)
15495       # This hack is so that the source file can tell whether it is being
15496       # built for inclusion in a dll (and should export symbols for example).
15497       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15498       ;;
15499
15500     hpux9* | hpux10* | hpux11*)
15501       lt_prog_compiler_wl_F77='-Wl,'
15502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15503       # not for PA HP-UX.
15504       case $host_cpu in
15505       hppa*64*|ia64*)
15506         # +Z the default
15507         ;;
15508       *)
15509         lt_prog_compiler_pic_F77='+Z'
15510         ;;
15511       esac
15512       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15513       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15514       ;;
15515
15516     irix5* | irix6* | nonstopux*)
15517       lt_prog_compiler_wl_F77='-Wl,'
15518       # PIC (with -KPIC) is the default.
15519       lt_prog_compiler_static_F77='-non_shared'
15520       ;;
15521
15522     newsos6)
15523       lt_prog_compiler_pic_F77='-KPIC'
15524       lt_prog_compiler_static_F77='-Bstatic'
15525       ;;
15526
15527     linux* | k*bsd*-gnu)
15528       case $cc_basename in
15529       icc* | ecc*)
15530         lt_prog_compiler_wl_F77='-Wl,'
15531         lt_prog_compiler_pic_F77='-KPIC'
15532         lt_prog_compiler_static_F77='-static'
15533         ;;
15534       pgcc* | pgf77* | pgf90* | pgf95*)
15535         # Portland Group compilers (*not* the Pentium gcc compiler,
15536         # which looks to be a dead project)
15537         lt_prog_compiler_wl_F77='-Wl,'
15538         lt_prog_compiler_pic_F77='-fpic'
15539         lt_prog_compiler_static_F77='-Bstatic'
15540         ;;
15541       ccc*)
15542         lt_prog_compiler_wl_F77='-Wl,'
15543         # All Alpha code is PIC.
15544         lt_prog_compiler_static_F77='-non_shared'
15545         ;;
15546       esac
15547       ;;
15548
15549     osf3* | osf4* | osf5*)
15550       lt_prog_compiler_wl_F77='-Wl,'
15551       # All OSF/1 code is PIC.
15552       lt_prog_compiler_static_F77='-non_shared'
15553       ;;
15554
15555     solaris*)
15556       lt_prog_compiler_pic_F77='-KPIC'
15557       lt_prog_compiler_static_F77='-Bstatic'
15558       case $cc_basename in
15559       f77* | f90* | f95*)
15560         lt_prog_compiler_wl_F77='-Qoption ld ';;
15561       *)
15562         lt_prog_compiler_wl_F77='-Wl,';;
15563       esac
15564       ;;
15565
15566     sunos4*)
15567       lt_prog_compiler_wl_F77='-Qoption ld '
15568       lt_prog_compiler_pic_F77='-PIC'
15569       lt_prog_compiler_static_F77='-Bstatic'
15570       ;;
15571
15572     sysv4 | sysv4.2uw2* | sysv4.3*)
15573       lt_prog_compiler_wl_F77='-Wl,'
15574       lt_prog_compiler_pic_F77='-KPIC'
15575       lt_prog_compiler_static_F77='-Bstatic'
15576       ;;
15577
15578     sysv4*MP*)
15579       if test -d /usr/nec ;then
15580         lt_prog_compiler_pic_F77='-Kconform_pic'
15581         lt_prog_compiler_static_F77='-Bstatic'
15582       fi
15583       ;;
15584
15585     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15586       lt_prog_compiler_wl_F77='-Wl,'
15587       lt_prog_compiler_pic_F77='-KPIC'
15588       lt_prog_compiler_static_F77='-Bstatic'
15589       ;;
15590
15591     unicos*)
15592       lt_prog_compiler_wl_F77='-Wl,'
15593       lt_prog_compiler_can_build_shared_F77=no
15594       ;;
15595
15596     uts4*)
15597       lt_prog_compiler_pic_F77='-pic'
15598       lt_prog_compiler_static_F77='-Bstatic'
15599       ;;
15600
15601     *)
15602       lt_prog_compiler_can_build_shared_F77=no
15603       ;;
15604     esac
15605   fi
15606
15607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15608 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15609
15610 #
15611 # Check to make sure the PIC flag actually works.
15612 #
15613 if test -n "$lt_prog_compiler_pic_F77"; then
15614
15615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15617 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   lt_prog_compiler_pic_works_F77=no
15621   ac_outfile=conftest.$ac_objext
15622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15623    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15624    # Insert the option either (1) after the last *FLAGS variable, or
15625    # (2) before a word containing "conftest.", or (3) at the end.
15626    # Note that $ac_compile itself does not contain backslashes and begins
15627    # with a dollar sign (not a hyphen), so the echo should work correctly.
15628    # The option is referenced via a variable to avoid confusing sed.
15629    lt_compile=`echo "$ac_compile" | $SED \
15630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15632    -e 's:$: $lt_compiler_flag:'`
15633    (eval echo "\"\$as_me:15633: $lt_compile\"" >&5)
15634    (eval "$lt_compile" 2>conftest.err)
15635    ac_status=$?
15636    cat conftest.err >&5
15637    echo "$as_me:15637: \$? = $ac_status" >&5
15638    if (exit $ac_status) && test -s "$ac_outfile"; then
15639      # The compiler can only warn and ignore the option if not recognized
15640      # So say no if there are warnings other than the usual output.
15641      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15644        lt_prog_compiler_pic_works_F77=yes
15645      fi
15646    fi
15647    $rm conftest*
15648
15649 fi
15650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15651 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15652
15653 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15654     case $lt_prog_compiler_pic_F77 in
15655      "" | " "*) ;;
15656      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15657      esac
15658 else
15659     lt_prog_compiler_pic_F77=
15660      lt_prog_compiler_can_build_shared_F77=no
15661 fi
15662
15663 fi
15664 case $host_os in
15665   # For platforms which do not support PIC, -DPIC is meaningless:
15666   *djgpp*)
15667     lt_prog_compiler_pic_F77=
15668     ;;
15669   *)
15670     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15671     ;;
15672 esac
15673
15674 #
15675 # Check to make sure the static flag actually works.
15676 #
15677 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15680 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683   lt_prog_compiler_static_works_F77=no
15684    save_LDFLAGS="$LDFLAGS"
15685    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15686    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15687    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15688      # The linker can only warn and ignore the option if not recognized
15689      # So say no if there are warnings
15690      if test -s conftest.err; then
15691        # Append any errors to the config.log.
15692        cat conftest.err 1>&5
15693        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15694        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15695        if diff conftest.exp conftest.er2 >/dev/null; then
15696          lt_prog_compiler_static_works_F77=yes
15697        fi
15698      else
15699        lt_prog_compiler_static_works_F77=yes
15700      fi
15701    fi
15702    $rm conftest*
15703    LDFLAGS="$save_LDFLAGS"
15704
15705 fi
15706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15707 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15708
15709 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15710     :
15711 else
15712     lt_prog_compiler_static_F77=
15713 fi
15714
15715
15716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15718 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   lt_cv_prog_compiler_c_o_F77=no
15722    $rm -r conftest 2>/dev/null
15723    mkdir conftest
15724    cd conftest
15725    mkdir out
15726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15727
15728    lt_compiler_flag="-o out/conftest2.$ac_objext"
15729    # Insert the option either (1) after the last *FLAGS variable, or
15730    # (2) before a word containing "conftest.", or (3) at the end.
15731    # Note that $ac_compile itself does not contain backslashes and begins
15732    # with a dollar sign (not a hyphen), so the echo should work correctly.
15733    lt_compile=`echo "$ac_compile" | $SED \
15734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15736    -e 's:$: $lt_compiler_flag:'`
15737    (eval echo "\"\$as_me:15737: $lt_compile\"" >&5)
15738    (eval "$lt_compile" 2>out/conftest.err)
15739    ac_status=$?
15740    cat out/conftest.err >&5
15741    echo "$as_me:15741: \$? = $ac_status" >&5
15742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743    then
15744      # The compiler can only warn and ignore the option if not recognized
15745      # So say no if there are warnings
15746      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15749        lt_cv_prog_compiler_c_o_F77=yes
15750      fi
15751    fi
15752    chmod u+w . 2>&5
15753    $rm conftest*
15754    # SGI C++ compiler will create directory out/ii_files/ for
15755    # template instantiation
15756    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15757    $rm out/* && rmdir out
15758    cd ..
15759    rmdir conftest
15760    $rm conftest*
15761
15762 fi
15763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15765
15766
15767 hard_links="nottested"
15768 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15769   # do not overwrite the value of need_locks provided by the user
15770   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15772   hard_links=yes
15773   $rm conftest*
15774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775   touch conftest.a
15776   ln conftest.a conftest.b 2>&5 || hard_links=no
15777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778   { echo "$as_me:$LINENO: result: $hard_links" >&5
15779 echo "${ECHO_T}$hard_links" >&6; }
15780   if test "$hard_links" = no; then
15781     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15783     need_locks=warn
15784   fi
15785 else
15786   need_locks=no
15787 fi
15788
15789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15791
15792   runpath_var=
15793   allow_undefined_flag_F77=
15794   enable_shared_with_static_runtimes_F77=no
15795   archive_cmds_F77=
15796   archive_expsym_cmds_F77=
15797   old_archive_From_new_cmds_F77=
15798   old_archive_from_expsyms_cmds_F77=
15799   export_dynamic_flag_spec_F77=
15800   whole_archive_flag_spec_F77=
15801   thread_safe_flag_spec_F77=
15802   hardcode_libdir_flag_spec_F77=
15803   hardcode_libdir_flag_spec_ld_F77=
15804   hardcode_libdir_separator_F77=
15805   hardcode_direct_F77=no
15806   hardcode_minus_L_F77=no
15807   hardcode_shlibpath_var_F77=unsupported
15808   link_all_deplibs_F77=unknown
15809   hardcode_automatic_F77=no
15810   module_cmds_F77=
15811   module_expsym_cmds_F77=
15812   always_export_symbols_F77=no
15813   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15814   # include_expsyms should be a list of space-separated symbols to be *always*
15815   # included in the symbol list
15816   include_expsyms_F77=
15817   # exclude_expsyms can be an extended regexp of symbols to exclude
15818   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15819   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15820   # as well as any symbol that contains `d'.
15821   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15822   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15823   # platforms (ab)use it in PIC code, but their linkers get confused if
15824   # the symbol is explicitly referenced.  Since portable code cannot
15825   # rely on this symbol name, it's probably fine to never include it in
15826   # preloaded symbol tables.
15827   extract_expsyms_cmds=
15828   # Just being paranoid about ensuring that cc_basename is set.
15829   for cc_temp in $compiler""; do
15830   case $cc_temp in
15831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15833     \-*) ;;
15834     *) break;;
15835   esac
15836 done
15837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15838
15839   case $host_os in
15840   cygwin* | mingw* | pw32*)
15841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15842     # When not using gcc, we currently assume that we are using
15843     # Microsoft Visual C++.
15844     if test "$GCC" != yes; then
15845       with_gnu_ld=no
15846     fi
15847     ;;
15848   interix*)
15849     # we just hope/assume this is gcc and not c89 (= MSVC++)
15850     with_gnu_ld=yes
15851     ;;
15852   openbsd*)
15853     with_gnu_ld=no
15854     ;;
15855   esac
15856
15857   ld_shlibs_F77=yes
15858   if test "$with_gnu_ld" = yes; then
15859     # If archive_cmds runs LD, not CC, wlarc should be empty
15860     wlarc='${wl}'
15861
15862     # Set some defaults for GNU ld with shared library support. These
15863     # are reset later if shared libraries are not supported. Putting them
15864     # here allows them to be overridden if necessary.
15865     runpath_var=LD_RUN_PATH
15866     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15867     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15868     # ancient GNU ld didn't support --whole-archive et. al.
15869     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15870         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15871       else
15872         whole_archive_flag_spec_F77=
15873     fi
15874     supports_anon_versioning=no
15875     case `$LD -v 2>/dev/null` in
15876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15879       *\ 2.11.*) ;; # other 2.11 versions
15880       *) supports_anon_versioning=yes ;;
15881     esac
15882
15883     # See if GNU ld supports shared libraries.
15884     case $host_os in
15885     aix3* | aix4* | aix5*)
15886       # On AIX/PPC, the GNU linker is very broken
15887       if test "$host_cpu" != ia64; then
15888         ld_shlibs_F77=no
15889         cat <<EOF 1>&2
15890
15891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15892 *** to be unable to reliably create shared libraries on AIX.
15893 *** Therefore, libtool is disabling shared libraries support.  If you
15894 *** really care for shared libraries, you may want to modify your PATH
15895 *** so that a non-GNU linker is found, and then restart.
15896
15897 EOF
15898       fi
15899       ;;
15900
15901     amigaos*)
15902       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)'
15903       hardcode_libdir_flag_spec_F77='-L$libdir'
15904       hardcode_minus_L_F77=yes
15905
15906       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15907       # that the semantics of dynamic libraries on AmigaOS, at least up
15908       # to version 4, is to share data among multiple programs linked
15909       # with the same dynamic library.  Since this doesn't match the
15910       # behavior of shared libraries on other platforms, we can't use
15911       # them.
15912       ld_shlibs_F77=no
15913       ;;
15914
15915     beos*)
15916       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15917         allow_undefined_flag_F77=unsupported
15918         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15919         # support --undefined.  This deserves some investigation.  FIXME
15920         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15921       else
15922         ld_shlibs_F77=no
15923       fi
15924       ;;
15925
15926     cygwin* | mingw* | pw32*)
15927       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15928       # as there is no search path for DLLs.
15929       hardcode_libdir_flag_spec_F77='-L$libdir'
15930       allow_undefined_flag_F77=unsupported
15931       always_export_symbols_F77=no
15932       enable_shared_with_static_runtimes_F77=yes
15933       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15934
15935       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15936         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15937         # If the export-symbols file already is a .def file (1st line
15938         # is EXPORTS), use it as is; otherwise, prepend...
15939         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15940           cp $export_symbols $output_objdir/$soname.def;
15941         else
15942           echo EXPORTS > $output_objdir/$soname.def;
15943           cat $export_symbols >> $output_objdir/$soname.def;
15944         fi~
15945         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15946       else
15947         ld_shlibs_F77=no
15948       fi
15949       ;;
15950
15951     interix3*)
15952       hardcode_direct_F77=no
15953       hardcode_shlibpath_var_F77=no
15954       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15955       export_dynamic_flag_spec_F77='${wl}-E'
15956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15957       # Instead, shared libraries are loaded at an image base (0x10000000 by
15958       # default) and relocated if they conflict, which is a slow very memory
15959       # consuming and fragmenting process.  To avoid this, we pick a random,
15960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15962       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'
15963       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'
15964       ;;
15965
15966     linux* | k*bsd*-gnu)
15967       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15968         tmp_addflag=
15969         case $cc_basename,$host_cpu in
15970         pgcc*)                          # Portland Group C compiler
15971           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'
15972           tmp_addflag=' $pic_flag'
15973           ;;
15974         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15975           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'
15976           tmp_addflag=' $pic_flag -Mnomain' ;;
15977         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15978           tmp_addflag=' -i_dynamic' ;;
15979         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15980           tmp_addflag=' -i_dynamic -nofor_main' ;;
15981         ifc* | ifort*)                  # Intel Fortran compiler
15982           tmp_addflag=' -nofor_main' ;;
15983         esac
15984         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15985
15986         if test $supports_anon_versioning = yes; then
15987           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15988   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15989   $echo "local: *; };" >> $output_objdir/$libname.ver~
15990           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15991         fi
15992         link_all_deplibs_F77=no
15993       else
15994         ld_shlibs_F77=no
15995       fi
15996       ;;
15997
15998     netbsd* | netbsdelf*-gnu)
15999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16000         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16001         wlarc=
16002       else
16003         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16004         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16005       fi
16006       ;;
16007
16008     solaris*)
16009       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16010         ld_shlibs_F77=no
16011         cat <<EOF 1>&2
16012
16013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16014 *** create shared libraries on Solaris systems.  Therefore, libtool
16015 *** is disabling shared libraries support.  We urge you to upgrade GNU
16016 *** binutils to release 2.9.1 or newer.  Another option is to modify
16017 *** your PATH or compiler configuration so that the native linker is
16018 *** used, and then restart.
16019
16020 EOF
16021       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16022         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16024       else
16025         ld_shlibs_F77=no
16026       fi
16027       ;;
16028
16029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16030       case `$LD -v 2>&1` in
16031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16032         ld_shlibs_F77=no
16033         cat <<_LT_EOF 1>&2
16034
16035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16037 *** is disabling shared libraries support.  We urge you to upgrade GNU
16038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16039 *** your PATH or compiler configuration so that the native linker is
16040 *** used, and then restart.
16041
16042 _LT_EOF
16043         ;;
16044         *)
16045           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16046             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16047             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16048             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16049           else
16050             ld_shlibs_F77=no
16051           fi
16052         ;;
16053       esac
16054       ;;
16055
16056     sunos4*)
16057       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16058       wlarc=
16059       hardcode_direct_F77=yes
16060       hardcode_shlibpath_var_F77=no
16061       ;;
16062
16063     *)
16064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16065         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16067       else
16068         ld_shlibs_F77=no
16069       fi
16070       ;;
16071     esac
16072
16073     if test "$ld_shlibs_F77" = no; then
16074       runpath_var=
16075       hardcode_libdir_flag_spec_F77=
16076       export_dynamic_flag_spec_F77=
16077       whole_archive_flag_spec_F77=
16078     fi
16079   else
16080     # PORTME fill in a description of your system's linker (not GNU ld)
16081     case $host_os in
16082     aix3*)
16083       allow_undefined_flag_F77=unsupported
16084       always_export_symbols_F77=yes
16085       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'
16086       # Note: this linker hardcodes the directories in LIBPATH if there
16087       # are no directories specified by -L.
16088       hardcode_minus_L_F77=yes
16089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16090         # Neither direct hardcoding nor static linking is supported with a
16091         # broken collect2.
16092         hardcode_direct_F77=unsupported
16093       fi
16094       ;;
16095
16096     aix4* | aix5*)
16097       if test "$host_cpu" = ia64; then
16098         # On IA64, the linker does run time linking by default, so we don't
16099         # have to do anything special.
16100         aix_use_runtimelinking=no
16101         exp_sym_flag='-Bexport'
16102         no_entry_flag=""
16103       else
16104         # If we're using GNU nm, then we don't want the "-C" option.
16105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16106         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16107           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'
16108         else
16109           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'
16110         fi
16111         aix_use_runtimelinking=no
16112
16113         # Test if we are trying to use run time linking or normal
16114         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16115         # need to do runtime linking.
16116         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16117           for ld_flag in $LDFLAGS; do
16118           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16119             aix_use_runtimelinking=yes
16120             break
16121           fi
16122           done
16123           ;;
16124         esac
16125
16126         exp_sym_flag='-bexport'
16127         no_entry_flag='-bnoentry'
16128       fi
16129
16130       # When large executables or shared objects are built, AIX ld can
16131       # have problems creating the table of contents.  If linking a library
16132       # or program results in "error TOC overflow" add -mminimal-toc to
16133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16135
16136       archive_cmds_F77=''
16137       hardcode_direct_F77=yes
16138       hardcode_libdir_separator_F77=':'
16139       link_all_deplibs_F77=yes
16140
16141       if test "$GCC" = yes; then
16142         case $host_os in aix4.[012]|aix4.[012].*)
16143         # We only want to do this on AIX 4.2 and lower, the check
16144         # below for broken collect2 doesn't work under 4.3+
16145           collect2name=`${CC} -print-prog-name=collect2`
16146           if test -f "$collect2name" && \
16147            strings "$collect2name" | grep resolve_lib_name >/dev/null
16148           then
16149           # We have reworked collect2
16150           hardcode_direct_F77=yes
16151           else
16152           # We have old collect2
16153           hardcode_direct_F77=unsupported
16154           # It fails to find uninstalled libraries when the uninstalled
16155           # path is not listed in the libpath.  Setting hardcode_minus_L
16156           # to unsupported forces relinking
16157           hardcode_minus_L_F77=yes
16158           hardcode_libdir_flag_spec_F77='-L$libdir'
16159           hardcode_libdir_separator_F77=
16160           fi
16161           ;;
16162         esac
16163         shared_flag='-shared'
16164         if test "$aix_use_runtimelinking" = yes; then
16165           shared_flag="$shared_flag "'${wl}-G'
16166         fi
16167       else
16168         # not using gcc
16169         if test "$host_cpu" = ia64; then
16170         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16171         # chokes on -Wl,-G. The following line is correct:
16172           shared_flag='-G'
16173         else
16174           if test "$aix_use_runtimelinking" = yes; then
16175             shared_flag='${wl}-G'
16176           else
16177             shared_flag='${wl}-bM:SRE'
16178           fi
16179         fi
16180       fi
16181
16182       # It seems that -bexpall does not export symbols beginning with
16183       # underscore (_), so it is better to generate a list of symbols to export.
16184       always_export_symbols_F77=yes
16185       if test "$aix_use_runtimelinking" = yes; then
16186         # Warning - without using the other runtime loading flags (-brtl),
16187         # -berok will link without error, but may produce a broken library.
16188         allow_undefined_flag_F77='-berok'
16189        # Determine the default libpath from the value encoded in an empty executable.
16190        cat >conftest.$ac_ext <<_ACEOF
16191       program main
16192
16193       end
16194 _ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_link") 2>conftest.er1
16203   ac_status=$?
16204   grep -v '^ *+' conftest.er1 >conftest.err
16205   rm -f conftest.er1
16206   cat conftest.err >&5
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } &&
16209          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16210   { (case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_try") 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; } &&
16219          { ac_try='test -s conftest$ac_exeext'
16220   { (case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225   (eval "$ac_try") 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229
16230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16231 }'`
16232 # Check for a 64-bit object if we didn't find anything.
16233 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; }
16234 }'`; fi
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239
16240 fi
16241
16242 rm -f conftest.err conftest.$ac_objext \
16243       conftest$ac_exeext conftest.$ac_ext
16244 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16245
16246        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16247         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"
16248        else
16249         if test "$host_cpu" = ia64; then
16250           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16251           allow_undefined_flag_F77="-z nodefs"
16252           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"
16253         else
16254          # Determine the default libpath from the value encoded in an empty executable.
16255          cat >conftest.$ac_ext <<_ACEOF
16256       program main
16257
16258       end
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_link") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16275   { (case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_try") 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; } &&
16284          { ac_try='test -s conftest$ac_exeext'
16285   { (case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_try") 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16296 }'`
16297 # Check for a 64-bit object if we didn't find anything.
16298 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; }
16299 }'`; fi
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304
16305 fi
16306
16307 rm -f conftest.err conftest.$ac_objext \
16308       conftest$ac_exeext conftest.$ac_ext
16309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16310
16311          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16312           # Warning - without using the other run time loading flags,
16313           # -berok will link without error, but may produce a broken library.
16314           no_undefined_flag_F77=' ${wl}-bernotok'
16315           allow_undefined_flag_F77=' ${wl}-berok'
16316           # Exported symbols can be pulled into shared objects from archives
16317           whole_archive_flag_spec_F77='$convenience'
16318           archive_cmds_need_lc_F77=yes
16319           # This is similar to how AIX traditionally builds its shared libraries.
16320           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'
16321         fi
16322       fi
16323       ;;
16324
16325     amigaos*)
16326       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)'
16327       hardcode_libdir_flag_spec_F77='-L$libdir'
16328       hardcode_minus_L_F77=yes
16329       # see comment about different semantics on the GNU ld section
16330       ld_shlibs_F77=no
16331       ;;
16332
16333     bsdi[45]*)
16334       export_dynamic_flag_spec_F77=-rdynamic
16335       ;;
16336
16337     cygwin* | mingw* | pw32*)
16338       # When not using gcc, we currently assume that we are using
16339       # Microsoft Visual C++.
16340       # hardcode_libdir_flag_spec is actually meaningless, as there is
16341       # no search path for DLLs.
16342       hardcode_libdir_flag_spec_F77=' '
16343       allow_undefined_flag_F77=unsupported
16344       # Tell ltmain to make .lib files, not .a files.
16345       libext=lib
16346       # Tell ltmain to make .dll files, not .so files.
16347       shrext_cmds=".dll"
16348       # FIXME: Setting linknames here is a bad hack.
16349       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16350       # The linker will automatically build a .lib file if we build a DLL.
16351       old_archive_From_new_cmds_F77='true'
16352       # FIXME: Should let the user specify the lib program.
16353       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16354       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16355       enable_shared_with_static_runtimes_F77=yes
16356       ;;
16357
16358     darwin* | rhapsody*)
16359       case $host_os in
16360         rhapsody* | darwin1.[012])
16361          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16362          ;;
16363        *) # Darwin 1.3 on
16364          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16365            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16366          else
16367            case ${MACOSX_DEPLOYMENT_TARGET} in
16368              10.[012])
16369                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16370                ;;
16371              10.*)
16372                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16373                ;;
16374            esac
16375          fi
16376          ;;
16377       esac
16378       archive_cmds_need_lc_F77=no
16379       hardcode_direct_F77=no
16380       hardcode_automatic_F77=yes
16381       hardcode_shlibpath_var_F77=unsupported
16382       whole_archive_flag_spec_F77=''
16383       link_all_deplibs_F77=yes
16384     if test "$GCC" = yes ; then
16385         output_verbose_link_cmd='echo'
16386         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16387       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16388       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16389       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}'
16390       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}'
16391     else
16392       case $cc_basename in
16393         xlc*)
16394          output_verbose_link_cmd='echo'
16395          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16396          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16397           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16398          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}'
16399           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}'
16400           ;;
16401        *)
16402          ld_shlibs_F77=no
16403           ;;
16404       esac
16405     fi
16406       ;;
16407
16408     dgux*)
16409       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410       hardcode_libdir_flag_spec_F77='-L$libdir'
16411       hardcode_shlibpath_var_F77=no
16412       ;;
16413
16414     freebsd1*)
16415       ld_shlibs_F77=no
16416       ;;
16417
16418     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16419     # support.  Future versions do this automatically, but an explicit c++rt0.o
16420     # does not break anything, and helps significantly (at the cost of a little
16421     # extra space).
16422     freebsd2.2*)
16423       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16424       hardcode_libdir_flag_spec_F77='-R$libdir'
16425       hardcode_direct_F77=yes
16426       hardcode_shlibpath_var_F77=no
16427       ;;
16428
16429     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16430     freebsd2*)
16431       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16432       hardcode_direct_F77=yes
16433       hardcode_minus_L_F77=yes
16434       hardcode_shlibpath_var_F77=no
16435       ;;
16436
16437     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16438     freebsd* | dragonfly*)
16439       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16440       hardcode_libdir_flag_spec_F77='-R$libdir'
16441       hardcode_direct_F77=yes
16442       hardcode_shlibpath_var_F77=no
16443       ;;
16444
16445     hpux9*)
16446       if test "$GCC" = yes; then
16447         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'
16448       else
16449         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'
16450       fi
16451       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16452       hardcode_libdir_separator_F77=:
16453       hardcode_direct_F77=yes
16454
16455       # hardcode_minus_L: Not really in the search PATH,
16456       # but as the default location of the library.
16457       hardcode_minus_L_F77=yes
16458       export_dynamic_flag_spec_F77='${wl}-E'
16459       ;;
16460
16461     hpux10*)
16462       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16463         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16464       else
16465         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16466       fi
16467       if test "$with_gnu_ld" = no; then
16468         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16469         hardcode_libdir_separator_F77=:
16470
16471         hardcode_direct_F77=yes
16472         export_dynamic_flag_spec_F77='${wl}-E'
16473
16474         # hardcode_minus_L: Not really in the search PATH,
16475         # but as the default location of the library.
16476         hardcode_minus_L_F77=yes
16477       fi
16478       ;;
16479
16480     hpux11*)
16481       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16482         case $host_cpu in
16483         hppa*64*)
16484           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16485           ;;
16486         ia64*)
16487           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16488           ;;
16489         *)
16490           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16491           ;;
16492         esac
16493       else
16494         case $host_cpu in
16495         hppa*64*)
16496           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16497           ;;
16498         ia64*)
16499           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16500           ;;
16501         *)
16502           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16503           ;;
16504         esac
16505       fi
16506       if test "$with_gnu_ld" = no; then
16507         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16508         hardcode_libdir_separator_F77=:
16509
16510         case $host_cpu in
16511         hppa*64*|ia64*)
16512           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16513           hardcode_direct_F77=no
16514           hardcode_shlibpath_var_F77=no
16515           ;;
16516         *)
16517           hardcode_direct_F77=yes
16518           export_dynamic_flag_spec_F77='${wl}-E'
16519
16520           # hardcode_minus_L: Not really in the search PATH,
16521           # but as the default location of the library.
16522           hardcode_minus_L_F77=yes
16523           ;;
16524         esac
16525       fi
16526       ;;
16527
16528     irix5* | irix6* | nonstopux*)
16529       if test "$GCC" = yes; then
16530         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'
16531       else
16532         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'
16533         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16534       fi
16535       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16536       hardcode_libdir_separator_F77=:
16537       link_all_deplibs_F77=yes
16538       ;;
16539
16540     netbsd* | netbsdelf*-gnu)
16541       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16542         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16543       else
16544         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16545       fi
16546       hardcode_libdir_flag_spec_F77='-R$libdir'
16547       hardcode_direct_F77=yes
16548       hardcode_shlibpath_var_F77=no
16549       ;;
16550
16551     newsos6)
16552       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16553       hardcode_direct_F77=yes
16554       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16555       hardcode_libdir_separator_F77=:
16556       hardcode_shlibpath_var_F77=no
16557       ;;
16558
16559     openbsd*)
16560       hardcode_direct_F77=yes
16561       hardcode_shlibpath_var_F77=no
16562       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16563         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16564         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16565         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16566         export_dynamic_flag_spec_F77='${wl}-E'
16567       else
16568        case $host_os in
16569          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16570            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571            hardcode_libdir_flag_spec_F77='-R$libdir'
16572            ;;
16573          *)
16574            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16575            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16576            ;;
16577        esac
16578       fi
16579       ;;
16580
16581     os2*)
16582       hardcode_libdir_flag_spec_F77='-L$libdir'
16583       hardcode_minus_L_F77=yes
16584       allow_undefined_flag_F77=unsupported
16585       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'
16586       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16587       ;;
16588
16589     osf3*)
16590       if test "$GCC" = yes; then
16591         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16592         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'
16593       else
16594         allow_undefined_flag_F77=' -expect_unresolved \*'
16595         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'
16596       fi
16597       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16598       hardcode_libdir_separator_F77=:
16599       ;;
16600
16601     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16602       if test "$GCC" = yes; then
16603         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16604         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'
16605         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16606       else
16607         allow_undefined_flag_F77=' -expect_unresolved \*'
16608         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'
16609         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~
16610         $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'
16611
16612         # Both c and cxx compiler support -rpath directly
16613         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16614       fi
16615       hardcode_libdir_separator_F77=:
16616       ;;
16617
16618     solaris*)
16619       no_undefined_flag_F77=' -z text'
16620       if test "$GCC" = yes; then
16621         wlarc='${wl}'
16622         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16623         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16624           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16625       else
16626         wlarc=''
16627         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16628         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16629         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16630       fi
16631       hardcode_libdir_flag_spec_F77='-R$libdir'
16632       hardcode_shlibpath_var_F77=no
16633       case $host_os in
16634       solaris2.[0-5] | solaris2.[0-5].*) ;;
16635       *)
16636         # The compiler driver will combine linker options so we
16637         # cannot just pass the convience library names through
16638         # without $wl, iff we do not link with $LD.
16639         # Luckily, gcc supports the same syntax we need for Sun Studio.
16640         # Supported since Solaris 2.6 (maybe 2.5.1?)
16641         case $wlarc in
16642         '')
16643           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16644         *)
16645           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' ;;
16646         esac ;;
16647       esac
16648       link_all_deplibs_F77=yes
16649       ;;
16650
16651     sunos4*)
16652       if test "x$host_vendor" = xsequent; then
16653         # Use $CC to link under sequent, because it throws in some extra .o
16654         # files that make .init and .fini sections work.
16655         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16656       else
16657         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16658       fi
16659       hardcode_libdir_flag_spec_F77='-L$libdir'
16660       hardcode_direct_F77=yes
16661       hardcode_minus_L_F77=yes
16662       hardcode_shlibpath_var_F77=no
16663       ;;
16664
16665     sysv4)
16666       case $host_vendor in
16667         sni)
16668           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669           hardcode_direct_F77=yes # is this really true???
16670         ;;
16671         siemens)
16672           ## LD is ld it makes a PLAMLIB
16673           ## CC just makes a GrossModule.
16674           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16675           reload_cmds_F77='$CC -r -o $output$reload_objs'
16676           hardcode_direct_F77=no
16677         ;;
16678         motorola)
16679           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16681         ;;
16682       esac
16683       runpath_var='LD_RUN_PATH'
16684       hardcode_shlibpath_var_F77=no
16685       ;;
16686
16687     sysv4.3*)
16688       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689       hardcode_shlibpath_var_F77=no
16690       export_dynamic_flag_spec_F77='-Bexport'
16691       ;;
16692
16693     sysv4*MP*)
16694       if test -d /usr/nec; then
16695         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16696         hardcode_shlibpath_var_F77=no
16697         runpath_var=LD_RUN_PATH
16698         hardcode_runpath_var=yes
16699         ld_shlibs_F77=yes
16700       fi
16701       ;;
16702
16703     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16704       no_undefined_flag_F77='${wl}-z,text'
16705       archive_cmds_need_lc_F77=no
16706       hardcode_shlibpath_var_F77=no
16707       runpath_var='LD_RUN_PATH'
16708
16709       if test "$GCC" = yes; then
16710         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16711         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16712       else
16713         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16715       fi
16716       ;;
16717
16718     sysv5* | sco3.2v5* | sco5v6*)
16719       # Note: We can NOT use -z defs as we might desire, because we do not
16720       # link with -lc, and that would cause any symbols used from libc to
16721       # always be unresolved, which means just about no library would
16722       # ever link correctly.  If we're not using GNU ld we use -z text
16723       # though, which does catch some bad symbols but isn't as heavy-handed
16724       # as -z defs.
16725       no_undefined_flag_F77='${wl}-z,text'
16726       allow_undefined_flag_F77='${wl}-z,nodefs'
16727       archive_cmds_need_lc_F77=no
16728       hardcode_shlibpath_var_F77=no
16729       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16730       hardcode_libdir_separator_F77=':'
16731       link_all_deplibs_F77=yes
16732       export_dynamic_flag_spec_F77='${wl}-Bexport'
16733       runpath_var='LD_RUN_PATH'
16734
16735       if test "$GCC" = yes; then
16736         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16737         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738       else
16739         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16741       fi
16742       ;;
16743
16744     uts4*)
16745       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16746       hardcode_libdir_flag_spec_F77='-L$libdir'
16747       hardcode_shlibpath_var_F77=no
16748       ;;
16749
16750     *)
16751       ld_shlibs_F77=no
16752       ;;
16753     esac
16754   fi
16755
16756 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16757 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16758 test "$ld_shlibs_F77" = no && can_build_shared=no
16759
16760 #
16761 # Do we need to explicitly link libc?
16762 #
16763 case "x$archive_cmds_need_lc_F77" in
16764 x|xyes)
16765   # Assume -lc should be added
16766   archive_cmds_need_lc_F77=yes
16767
16768   if test "$enable_shared" = yes && test "$GCC" = yes; then
16769     case $archive_cmds_F77 in
16770     *'~'*)
16771       # FIXME: we may have to deal with multi-command sequences.
16772       ;;
16773     '$CC '*)
16774       # Test whether the compiler implicitly links with -lc since on some
16775       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16776       # to ld, don't add -lc before -lgcc.
16777       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16779       $rm conftest*
16780       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16781
16782       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783   (eval $ac_compile) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } 2>conftest.err; then
16787         soname=conftest
16788         lib=conftest
16789         libobjs=conftest.$ac_objext
16790         deplibs=
16791         wl=$lt_prog_compiler_wl_F77
16792         pic_flag=$lt_prog_compiler_pic_F77
16793         compiler_flags=-v
16794         linker_flags=-v
16795         verstring=
16796         output_objdir=.
16797         libname=conftest
16798         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16799         allow_undefined_flag_F77=
16800         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16801   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }
16805         then
16806           archive_cmds_need_lc_F77=no
16807         else
16808           archive_cmds_need_lc_F77=yes
16809         fi
16810         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16811       else
16812         cat conftest.err 1>&5
16813       fi
16814       $rm conftest*
16815       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16816 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16817       ;;
16818     esac
16819   fi
16820   ;;
16821 esac
16822
16823 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16824 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16825 library_names_spec=
16826 libname_spec='lib$name'
16827 soname_spec=
16828 shrext_cmds=".so"
16829 postinstall_cmds=
16830 postuninstall_cmds=
16831 finish_cmds=
16832 finish_eval=
16833 shlibpath_var=
16834 shlibpath_overrides_runpath=unknown
16835 version_type=none
16836 dynamic_linker="$host_os ld.so"
16837 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16838 if test "$GCC" = yes; then
16839   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16840   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16841     # if the path contains ";" then we assume it to be the separator
16842     # otherwise default to the standard path separator (i.e. ":") - it is
16843     # assumed that no part of a normal pathname contains ";" but that should
16844     # okay in the real world where ";" in dirpaths is itself problematic.
16845     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16846   else
16847     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16848   fi
16849 else
16850   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16851 fi
16852 need_lib_prefix=unknown
16853 hardcode_into_libs=no
16854
16855 # when you set need_version to no, make sure it does not cause -set_version
16856 # flags to be left without arguments
16857 need_version=unknown
16858
16859 case $host_os in
16860 aix3*)
16861   version_type=linux
16862   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16863   shlibpath_var=LIBPATH
16864
16865   # AIX 3 has no versioning support, so we append a major version to the name.
16866   soname_spec='${libname}${release}${shared_ext}$major'
16867   ;;
16868
16869 aix4* | aix5*)
16870   version_type=linux
16871   need_lib_prefix=no
16872   need_version=no
16873   hardcode_into_libs=yes
16874   if test "$host_cpu" = ia64; then
16875     # AIX 5 supports IA64
16876     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16877     shlibpath_var=LD_LIBRARY_PATH
16878   else
16879     # With GCC up to 2.95.x, collect2 would create an import file
16880     # for dependence libraries.  The import file would start with
16881     # the line `#! .'.  This would cause the generated library to
16882     # depend on `.', always an invalid library.  This was fixed in
16883     # development snapshots of GCC prior to 3.0.
16884     case $host_os in
16885       aix4 | aix4.[01] | aix4.[01].*)
16886       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16887            echo ' yes '
16888            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16889         :
16890       else
16891         can_build_shared=no
16892       fi
16893       ;;
16894     esac
16895     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16896     # soname into executable. Probably we can add versioning support to
16897     # collect2, so additional links can be useful in future.
16898     if test "$aix_use_runtimelinking" = yes; then
16899       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16900       # instead of lib<name>.a to let people know that these are not
16901       # typical AIX shared libraries.
16902       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903     else
16904       # We preserve .a as extension for shared libraries through AIX4.2
16905       # and later when we are not doing run time linking.
16906       library_names_spec='${libname}${release}.a $libname.a'
16907       soname_spec='${libname}${release}${shared_ext}$major'
16908     fi
16909     shlibpath_var=LIBPATH
16910   fi
16911   ;;
16912
16913 amigaos*)
16914   library_names_spec='$libname.ixlibrary $libname.a'
16915   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16916   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'
16917   ;;
16918
16919 beos*)
16920   library_names_spec='${libname}${shared_ext}'
16921   dynamic_linker="$host_os ld.so"
16922   shlibpath_var=LIBRARY_PATH
16923   ;;
16924
16925 bsdi[45]*)
16926   version_type=linux
16927   need_version=no
16928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16929   soname_spec='${libname}${release}${shared_ext}$major'
16930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16934   # the default ld.so.conf also contains /usr/contrib/lib and
16935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16936   # libtool to hard-code these into programs
16937   ;;
16938
16939 cygwin* | mingw* | pw32*)
16940   version_type=windows
16941   shrext_cmds=".dll"
16942   need_version=no
16943   need_lib_prefix=no
16944
16945   case $GCC,$host_os in
16946   yes,cygwin* | yes,mingw* | yes,pw32*)
16947     library_names_spec='$libname.dll.a'
16948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16949     postinstall_cmds='base_file=`basename \${file}`~
16950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16951       dldir=$destdir/`dirname \$dlpath`~
16952       test -d \$dldir || mkdir -p \$dldir~
16953       $install_prog $dir/$dlname \$dldir/$dlname~
16954       chmod a+x \$dldir/$dlname'
16955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16956       dlpath=$dir/\$dldll~
16957        $rm \$dlpath'
16958     shlibpath_overrides_runpath=yes
16959
16960     case $host_os in
16961     cygwin*)
16962       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16963       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16964       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16965       ;;
16966     mingw*)
16967       # MinGW DLLs use traditional 'lib' prefix
16968       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16969       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16970       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16971         # It is most probably a Windows format PATH printed by
16972         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16973         # path with ; separators, and with drive letters. We can handle the
16974         # drive letters (cygwin fileutils understands them), so leave them,
16975         # especially as we might pass files found there to a mingw objdump,
16976         # which wouldn't understand a cygwinified path. Ahh.
16977         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16978       else
16979         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16980       fi
16981       ;;
16982     pw32*)
16983       # pw32 DLLs use 'pw' prefix rather than 'lib'
16984       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16985       ;;
16986     esac
16987     ;;
16988
16989   *)
16990     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16991     ;;
16992   esac
16993   dynamic_linker='Win32 ld.exe'
16994   # FIXME: first we should search . and the directory the executable is in
16995   shlibpath_var=PATH
16996   ;;
16997
16998 darwin* | rhapsody*)
16999   dynamic_linker="$host_os dyld"
17000   version_type=darwin
17001   need_lib_prefix=no
17002   need_version=no
17003   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17004   soname_spec='${libname}${release}${major}$shared_ext'
17005   shlibpath_overrides_runpath=yes
17006   shlibpath_var=DYLD_LIBRARY_PATH
17007   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17008   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17009   if test "$GCC" = yes; then
17010     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"`
17011   else
17012     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17013   fi
17014   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17015   ;;
17016
17017 dgux*)
17018   version_type=linux
17019   need_lib_prefix=no
17020   need_version=no
17021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17022   soname_spec='${libname}${release}${shared_ext}$major'
17023   shlibpath_var=LD_LIBRARY_PATH
17024   ;;
17025
17026 freebsd1*)
17027   dynamic_linker=no
17028   ;;
17029
17030 freebsd* | dragonfly*)
17031   # DragonFly does not have aout.  When/if they implement a new
17032   # versioning mechanism, adjust this.
17033   if test -x /usr/bin/objformat; then
17034     objformat=`/usr/bin/objformat`
17035   else
17036     case $host_os in
17037     freebsd[123]*) objformat=aout ;;
17038     *) objformat=elf ;;
17039     esac
17040   fi
17041   version_type=freebsd-$objformat
17042   case $version_type in
17043     freebsd-elf*)
17044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17045       need_version=no
17046       need_lib_prefix=no
17047       ;;
17048     freebsd-*)
17049       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17050       need_version=yes
17051       ;;
17052   esac
17053   shlibpath_var=LD_LIBRARY_PATH
17054   case $host_os in
17055   freebsd2*)
17056     shlibpath_overrides_runpath=yes
17057     ;;
17058   freebsd3.[01]* | freebsdelf3.[01]*)
17059     shlibpath_overrides_runpath=yes
17060     hardcode_into_libs=yes
17061     ;;
17062   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17063   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17064     shlibpath_overrides_runpath=no
17065     hardcode_into_libs=yes
17066     ;;
17067   freebsd*) # from 4.6 on
17068     shlibpath_overrides_runpath=yes
17069     hardcode_into_libs=yes
17070     ;;
17071   esac
17072   ;;
17073
17074 gnu*)
17075   version_type=linux
17076   need_lib_prefix=no
17077   need_version=no
17078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17079   soname_spec='${libname}${release}${shared_ext}$major'
17080   shlibpath_var=LD_LIBRARY_PATH
17081   hardcode_into_libs=yes
17082   ;;
17083
17084 hpux9* | hpux10* | hpux11*)
17085   # Give a soname corresponding to the major version so that dld.sl refuses to
17086   # link against other versions.
17087   version_type=sunos
17088   need_lib_prefix=no
17089   need_version=no
17090   case $host_cpu in
17091   ia64*)
17092     shrext_cmds='.so'
17093     hardcode_into_libs=yes
17094     dynamic_linker="$host_os dld.so"
17095     shlibpath_var=LD_LIBRARY_PATH
17096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098     soname_spec='${libname}${release}${shared_ext}$major'
17099     if test "X$HPUX_IA64_MODE" = X32; then
17100       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17101     else
17102       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17103     fi
17104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17105     ;;
17106    hppa*64*)
17107      shrext_cmds='.sl'
17108      hardcode_into_libs=yes
17109      dynamic_linker="$host_os dld.sl"
17110      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17111      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17112      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113      soname_spec='${libname}${release}${shared_ext}$major'
17114      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17115      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17116      ;;
17117    *)
17118     shrext_cmds='.sl'
17119     dynamic_linker="$host_os dld.sl"
17120     shlibpath_var=SHLIB_PATH
17121     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123     soname_spec='${libname}${release}${shared_ext}$major'
17124     ;;
17125   esac
17126   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17127   postinstall_cmds='chmod 555 $lib'
17128   ;;
17129
17130 interix3*)
17131   version_type=linux
17132   need_lib_prefix=no
17133   need_version=no
17134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135   soname_spec='${libname}${release}${shared_ext}$major'
17136   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17137   shlibpath_var=LD_LIBRARY_PATH
17138   shlibpath_overrides_runpath=no
17139   hardcode_into_libs=yes
17140   ;;
17141
17142 irix5* | irix6* | nonstopux*)
17143   case $host_os in
17144     nonstopux*) version_type=nonstopux ;;
17145     *)
17146         if test "$lt_cv_prog_gnu_ld" = yes; then
17147                 version_type=linux
17148         else
17149                 version_type=irix
17150         fi ;;
17151   esac
17152   need_lib_prefix=no
17153   need_version=no
17154   soname_spec='${libname}${release}${shared_ext}$major'
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17156   case $host_os in
17157   irix5* | nonstopux*)
17158     libsuff= shlibsuff=
17159     ;;
17160   *)
17161     case $LD in # libtool.m4 will add one of these switches to LD
17162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163       libsuff= shlibsuff= libmagic=32-bit;;
17164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165       libsuff=32 shlibsuff=N32 libmagic=N32;;
17166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168     *) libsuff= shlibsuff= libmagic=never-match;;
17169     esac
17170     ;;
17171   esac
17172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173   shlibpath_overrides_runpath=no
17174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176   hardcode_into_libs=yes
17177   ;;
17178
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17181   dynamic_linker=no
17182   ;;
17183
17184 # This must be Linux ELF.
17185 linux* | k*bsd*-gnu)
17186   version_type=linux
17187   need_lib_prefix=no
17188   need_version=no
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190   soname_spec='${libname}${release}${shared_ext}$major'
17191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   shlibpath_overrides_runpath=no
17194   # This implies no fast_install, which is unacceptable.
17195   # Some rework will be needed to allow for fast_install
17196   # before this can be enabled.
17197   hardcode_into_libs=yes
17198
17199   # Append ld.so.conf contents to the search path
17200   if test -f /etc/ld.so.conf; then
17201     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' ' '`
17202     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17203   fi
17204
17205   # We used to test for /lib/ld.so.1 and disable shared libraries on
17206   # powerpc, because MkLinux only supported shared libraries with the
17207   # GNU dynamic linker.  Since this was broken with cross compilers,
17208   # most powerpc-linux boxes support dynamic linking these days and
17209   # people can always --disable-shared, the test was removed, and we
17210   # assume the GNU/Linux dynamic linker is in use.
17211   dynamic_linker='GNU/Linux ld.so'
17212   ;;
17213
17214 netbsdelf*-gnu)
17215   version_type=linux
17216   need_lib_prefix=no
17217   need_version=no
17218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17219   soname_spec='${libname}${release}${shared_ext}$major'
17220   shlibpath_var=LD_LIBRARY_PATH
17221   shlibpath_overrides_runpath=no
17222   hardcode_into_libs=yes
17223   dynamic_linker='NetBSD ld.elf_so'
17224   ;;
17225
17226 netbsd*)
17227   version_type=sunos
17228   need_lib_prefix=no
17229   need_version=no
17230   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17232     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17233     dynamic_linker='NetBSD (a.out) ld.so'
17234   else
17235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17236     soname_spec='${libname}${release}${shared_ext}$major'
17237     dynamic_linker='NetBSD ld.elf_so'
17238   fi
17239   shlibpath_var=LD_LIBRARY_PATH
17240   shlibpath_overrides_runpath=yes
17241   hardcode_into_libs=yes
17242   ;;
17243
17244 newsos6)
17245   version_type=linux
17246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247   shlibpath_var=LD_LIBRARY_PATH
17248   shlibpath_overrides_runpath=yes
17249   ;;
17250
17251 nto-qnx*)
17252   version_type=linux
17253   need_lib_prefix=no
17254   need_version=no
17255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256   soname_spec='${libname}${release}${shared_ext}$major'
17257   shlibpath_var=LD_LIBRARY_PATH
17258   shlibpath_overrides_runpath=yes
17259   ;;
17260
17261 openbsd*)
17262   version_type=sunos
17263   sys_lib_dlsearch_path_spec="/usr/lib"
17264   need_lib_prefix=no
17265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17266   case $host_os in
17267     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17268     *)                         need_version=no  ;;
17269   esac
17270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17272   shlibpath_var=LD_LIBRARY_PATH
17273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17274     case $host_os in
17275       openbsd2.[89] | openbsd2.[89].*)
17276         shlibpath_overrides_runpath=no
17277         ;;
17278       *)
17279         shlibpath_overrides_runpath=yes
17280         ;;
17281       esac
17282   else
17283     shlibpath_overrides_runpath=yes
17284   fi
17285   ;;
17286
17287 os2*)
17288   libname_spec='$name'
17289   shrext_cmds=".dll"
17290   need_lib_prefix=no
17291   library_names_spec='$libname${shared_ext} $libname.a'
17292   dynamic_linker='OS/2 ld.exe'
17293   shlibpath_var=LIBPATH
17294   ;;
17295
17296 osf3* | osf4* | osf5*)
17297   version_type=osf
17298   need_lib_prefix=no
17299   need_version=no
17300   soname_spec='${libname}${release}${shared_ext}$major'
17301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302   shlibpath_var=LD_LIBRARY_PATH
17303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17305   ;;
17306
17307 solaris*)
17308   version_type=linux
17309   need_lib_prefix=no
17310   need_version=no
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312   soname_spec='${libname}${release}${shared_ext}$major'
17313   shlibpath_var=LD_LIBRARY_PATH
17314   shlibpath_overrides_runpath=yes
17315   hardcode_into_libs=yes
17316   # ldd complains unless libraries are executable
17317   postinstall_cmds='chmod +x $lib'
17318   ;;
17319
17320 sunos4*)
17321   version_type=sunos
17322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17324   shlibpath_var=LD_LIBRARY_PATH
17325   shlibpath_overrides_runpath=yes
17326   if test "$with_gnu_ld" = yes; then
17327     need_lib_prefix=no
17328   fi
17329   need_version=yes
17330   ;;
17331
17332 sysv4 | sysv4.3*)
17333   version_type=linux
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   soname_spec='${libname}${release}${shared_ext}$major'
17336   shlibpath_var=LD_LIBRARY_PATH
17337   case $host_vendor in
17338     sni)
17339       shlibpath_overrides_runpath=no
17340       need_lib_prefix=no
17341       export_dynamic_flag_spec='${wl}-Blargedynsym'
17342       runpath_var=LD_RUN_PATH
17343       ;;
17344     siemens)
17345       need_lib_prefix=no
17346       ;;
17347     motorola)
17348       need_lib_prefix=no
17349       need_version=no
17350       shlibpath_overrides_runpath=no
17351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17352       ;;
17353   esac
17354   ;;
17355
17356 sysv4*MP*)
17357   if test -d /usr/nec ;then
17358     version_type=linux
17359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17360     soname_spec='$libname${shared_ext}.$major'
17361     shlibpath_var=LD_LIBRARY_PATH
17362   fi
17363   ;;
17364
17365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17366   version_type=freebsd-elf
17367   need_lib_prefix=no
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   hardcode_into_libs=yes
17373   if test "$with_gnu_ld" = yes; then
17374     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17375     shlibpath_overrides_runpath=no
17376   else
17377     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17378     shlibpath_overrides_runpath=yes
17379     case $host_os in
17380       sco3.2v5*)
17381         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17382         ;;
17383     esac
17384   fi
17385   sys_lib_dlsearch_path_spec='/usr/lib'
17386   ;;
17387
17388 uts4*)
17389   version_type=linux
17390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391   soname_spec='${libname}${release}${shared_ext}$major'
17392   shlibpath_var=LD_LIBRARY_PATH
17393   ;;
17394
17395 *)
17396   dynamic_linker=no
17397   ;;
17398 esac
17399 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17400 echo "${ECHO_T}$dynamic_linker" >&6; }
17401 test "$dynamic_linker" = no && can_build_shared=no
17402
17403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17404 if test "$GCC" = yes; then
17405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17406 fi
17407
17408 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17410 hardcode_action_F77=
17411 if test -n "$hardcode_libdir_flag_spec_F77" || \
17412    test -n "$runpath_var_F77" || \
17413    test "X$hardcode_automatic_F77" = "Xyes" ; then
17414
17415   # We can hardcode non-existant directories.
17416   if test "$hardcode_direct_F77" != no &&
17417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17418      # have to relink, otherwise we might link with an installed library
17419      # when we should be linking with a yet-to-be-installed one
17420      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17421      test "$hardcode_minus_L_F77" != no; then
17422     # Linking always hardcodes the temporary library directory.
17423     hardcode_action_F77=relink
17424   else
17425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17426     hardcode_action_F77=immediate
17427   fi
17428 else
17429   # We cannot hardcode anything, or else we can only hardcode existing
17430   # directories.
17431   hardcode_action_F77=unsupported
17432 fi
17433 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17434 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17435
17436 if test "$hardcode_action_F77" = relink; then
17437   # Fast installation is not supported
17438   enable_fast_install=no
17439 elif test "$shlibpath_overrides_runpath" = yes ||
17440      test "$enable_shared" = no; then
17441   # Fast installation is not necessary
17442   enable_fast_install=needless
17443 fi
17444
17445
17446 # The else clause should only fire when bootstrapping the
17447 # libtool distribution, otherwise you forgot to ship ltmain.sh
17448 # with your package, and you will get complaints that there are
17449 # no rules to generate ltmain.sh.
17450 if test -f "$ltmain"; then
17451   # See if we are running on zsh, and set the options which allow our commands through
17452   # without removal of \ escapes.
17453   if test -n "${ZSH_VERSION+set}" ; then
17454     setopt NO_GLOB_SUBST
17455   fi
17456   # Now quote all the things that may contain metacharacters while being
17457   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17458   # variables and quote the copies for generation of the libtool script.
17459   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17460     SED SHELL STRIP \
17461     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17462     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17463     deplibs_check_method reload_flag reload_cmds need_locks \
17464     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17465     lt_cv_sys_global_symbol_to_c_name_address \
17466     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17467     old_postinstall_cmds old_postuninstall_cmds \
17468     compiler_F77 \
17469     CC_F77 \
17470     LD_F77 \
17471     lt_prog_compiler_wl_F77 \
17472     lt_prog_compiler_pic_F77 \
17473     lt_prog_compiler_static_F77 \
17474     lt_prog_compiler_no_builtin_flag_F77 \
17475     export_dynamic_flag_spec_F77 \
17476     thread_safe_flag_spec_F77 \
17477     whole_archive_flag_spec_F77 \
17478     enable_shared_with_static_runtimes_F77 \
17479     old_archive_cmds_F77 \
17480     old_archive_from_new_cmds_F77 \
17481     predep_objects_F77 \
17482     postdep_objects_F77 \
17483     predeps_F77 \
17484     postdeps_F77 \
17485     compiler_lib_search_path_F77 \
17486     archive_cmds_F77 \
17487     archive_expsym_cmds_F77 \
17488     postinstall_cmds_F77 \
17489     postuninstall_cmds_F77 \
17490     old_archive_from_expsyms_cmds_F77 \
17491     allow_undefined_flag_F77 \
17492     no_undefined_flag_F77 \
17493     export_symbols_cmds_F77 \
17494     hardcode_libdir_flag_spec_F77 \
17495     hardcode_libdir_flag_spec_ld_F77 \
17496     hardcode_libdir_separator_F77 \
17497     hardcode_automatic_F77 \
17498     module_cmds_F77 \
17499     module_expsym_cmds_F77 \
17500     lt_cv_prog_compiler_c_o_F77 \
17501     exclude_expsyms_F77 \
17502     include_expsyms_F77; do
17503
17504     case $var in
17505     old_archive_cmds_F77 | \
17506     old_archive_from_new_cmds_F77 | \
17507     archive_cmds_F77 | \
17508     archive_expsym_cmds_F77 | \
17509     module_cmds_F77 | \
17510     module_expsym_cmds_F77 | \
17511     old_archive_from_expsyms_cmds_F77 | \
17512     export_symbols_cmds_F77 | \
17513     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17514     postinstall_cmds | postuninstall_cmds | \
17515     old_postinstall_cmds | old_postuninstall_cmds | \
17516     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17517       # Double-quote double-evaled strings.
17518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17519       ;;
17520     *)
17521       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17522       ;;
17523     esac
17524   done
17525
17526   case $lt_echo in
17527   *'\$0 --fallback-echo"')
17528     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17529     ;;
17530   esac
17531
17532 cfgfile="$ofile"
17533
17534   cat <<__EOF__ >> "$cfgfile"
17535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17536
17537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17538
17539 # Shell to use when invoking shell scripts.
17540 SHELL=$lt_SHELL
17541
17542 # Whether or not to build shared libraries.
17543 build_libtool_libs=$enable_shared
17544
17545 # Whether or not to build static libraries.
17546 build_old_libs=$enable_static
17547
17548 # Whether or not to add -lc for building shared libraries.
17549 build_libtool_need_lc=$archive_cmds_need_lc_F77
17550
17551 # Whether or not to disallow shared libs when runtime libs are static
17552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17553
17554 # Whether or not to optimize for fast installation.
17555 fast_install=$enable_fast_install
17556
17557 # The host system.
17558 host_alias=$host_alias
17559 host=$host
17560 host_os=$host_os
17561
17562 # The build system.
17563 build_alias=$build_alias
17564 build=$build
17565 build_os=$build_os
17566
17567 # An echo program that does not interpret backslashes.
17568 echo=$lt_echo
17569
17570 # The archiver.
17571 AR=$lt_AR
17572 AR_FLAGS=$lt_AR_FLAGS
17573
17574 # A C compiler.
17575 LTCC=$lt_LTCC
17576
17577 # LTCC compiler flags.
17578 LTCFLAGS=$lt_LTCFLAGS
17579
17580 # A language-specific compiler.
17581 CC=$lt_compiler_F77
17582
17583 # Is the compiler the GNU C compiler?
17584 with_gcc=$GCC_F77
17585
17586 # An ERE matcher.
17587 EGREP=$lt_EGREP
17588
17589 # The linker used to build libraries.
17590 LD=$lt_LD_F77
17591
17592 # Whether we need hard or soft links.
17593 LN_S=$lt_LN_S
17594
17595 # A BSD-compatible nm program.
17596 NM=$lt_NM
17597
17598 # A symbol stripping program
17599 STRIP=$lt_STRIP
17600
17601 # Used to examine libraries when file_magic_cmd begins "file"
17602 MAGIC_CMD=$MAGIC_CMD
17603
17604 # Used on cygwin: DLL creation program.
17605 DLLTOOL="$DLLTOOL"
17606
17607 # Used on cygwin: object dumper.
17608 OBJDUMP="$OBJDUMP"
17609
17610 # Used on cygwin: assembler.
17611 AS="$AS"
17612
17613 # The name of the directory that contains temporary libtool files.
17614 objdir=$objdir
17615
17616 # How to create reloadable object files.
17617 reload_flag=$lt_reload_flag
17618 reload_cmds=$lt_reload_cmds
17619
17620 # How to pass a linker flag through the compiler.
17621 wl=$lt_lt_prog_compiler_wl_F77
17622
17623 # Object file suffix (normally "o").
17624 objext="$ac_objext"
17625
17626 # Old archive suffix (normally "a").
17627 libext="$libext"
17628
17629 # Shared library suffix (normally ".so").
17630 shrext_cmds='$shrext_cmds'
17631
17632 # Executable file suffix (normally "").
17633 exeext="$exeext"
17634
17635 # Additional compiler flags for building library objects.
17636 pic_flag=$lt_lt_prog_compiler_pic_F77
17637 pic_mode=$pic_mode
17638
17639 # What is the maximum length of a command?
17640 max_cmd_len=$lt_cv_sys_max_cmd_len
17641
17642 # Does compiler simultaneously support -c and -o options?
17643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17644
17645 # Must we lock files when doing compilation?
17646 need_locks=$lt_need_locks
17647
17648 # Do we need the lib prefix for modules?
17649 need_lib_prefix=$need_lib_prefix
17650
17651 # Do we need a version for libraries?
17652 need_version=$need_version
17653
17654 # Whether dlopen is supported.
17655 dlopen_support=$enable_dlopen
17656
17657 # Whether dlopen of programs is supported.
17658 dlopen_self=$enable_dlopen_self
17659
17660 # Whether dlopen of statically linked programs is supported.
17661 dlopen_self_static=$enable_dlopen_self_static
17662
17663 # Compiler flag to prevent dynamic linking.
17664 link_static_flag=$lt_lt_prog_compiler_static_F77
17665
17666 # Compiler flag to turn off builtin functions.
17667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17668
17669 # Compiler flag to allow reflexive dlopens.
17670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17671
17672 # Compiler flag to generate shared objects directly from archives.
17673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17674
17675 # Compiler flag to generate thread-safe objects.
17676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17677
17678 # Library versioning type.
17679 version_type=$version_type
17680
17681 # Format of library name prefix.
17682 libname_spec=$lt_libname_spec
17683
17684 # List of archive names.  First name is the real one, the rest are links.
17685 # The last name is the one that the linker finds with -lNAME.
17686 library_names_spec=$lt_library_names_spec
17687
17688 # The coded name of the library, if different from the real name.
17689 soname_spec=$lt_soname_spec
17690
17691 # Commands used to build and install an old-style archive.
17692 RANLIB=$lt_RANLIB
17693 old_archive_cmds=$lt_old_archive_cmds_F77
17694 old_postinstall_cmds=$lt_old_postinstall_cmds
17695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17696
17697 # Create an old-style archive from a shared archive.
17698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17699
17700 # Create a temporary old-style archive to link instead of a shared archive.
17701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17702
17703 # Commands used to build and install a shared archive.
17704 archive_cmds=$lt_archive_cmds_F77
17705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17706 postinstall_cmds=$lt_postinstall_cmds
17707 postuninstall_cmds=$lt_postuninstall_cmds
17708
17709 # Commands used to build a loadable module (assumed same as above if empty)
17710 module_cmds=$lt_module_cmds_F77
17711 module_expsym_cmds=$lt_module_expsym_cmds_F77
17712
17713 # Commands to strip libraries.
17714 old_striplib=$lt_old_striplib
17715 striplib=$lt_striplib
17716
17717 # Dependencies to place before the objects being linked to create a
17718 # shared library.
17719 predep_objects=$lt_predep_objects_F77
17720
17721 # Dependencies to place after the objects being linked to create a
17722 # shared library.
17723 postdep_objects=$lt_postdep_objects_F77
17724
17725 # Dependencies to place before the objects being linked to create a
17726 # shared library.
17727 predeps=$lt_predeps_F77
17728
17729 # Dependencies to place after the objects being linked to create a
17730 # shared library.
17731 postdeps=$lt_postdeps_F77
17732
17733 # The library search path used internally by the compiler when linking
17734 # a shared library.
17735 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17736
17737 # Method to check whether dependent libraries are shared objects.
17738 deplibs_check_method=$lt_deplibs_check_method
17739
17740 # Command to use when deplibs_check_method == file_magic.
17741 file_magic_cmd=$lt_file_magic_cmd
17742
17743 # Flag that allows shared libraries with undefined symbols to be built.
17744 allow_undefined_flag=$lt_allow_undefined_flag_F77
17745
17746 # Flag that forces no undefined symbols.
17747 no_undefined_flag=$lt_no_undefined_flag_F77
17748
17749 # Commands used to finish a libtool library installation in a directory.
17750 finish_cmds=$lt_finish_cmds
17751
17752 # Same as above, but a single script fragment to be evaled but not shown.
17753 finish_eval=$lt_finish_eval
17754
17755 # Take the output of nm and produce a listing of raw symbols and C names.
17756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17757
17758 # Transform the output of nm in a proper C declaration
17759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17760
17761 # Transform the output of nm in a C name address pair
17762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17763
17764 # This is the shared library runtime path variable.
17765 runpath_var=$runpath_var
17766
17767 # This is the shared library path variable.
17768 shlibpath_var=$shlibpath_var
17769
17770 # Is shlibpath searched before the hard-coded library search path?
17771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17772
17773 # How to hardcode a shared library path into an executable.
17774 hardcode_action=$hardcode_action_F77
17775
17776 # Whether we should hardcode library paths into libraries.
17777 hardcode_into_libs=$hardcode_into_libs
17778
17779 # Flag to hardcode \$libdir into a binary during linking.
17780 # This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17782
17783 # If ld is used when linking, flag to hardcode \$libdir into
17784 # a binary during linking. This must work even if \$libdir does
17785 # not exist.
17786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17787
17788 # Whether we need a single -rpath flag with a separated argument.
17789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17790
17791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17792 # resulting binary.
17793 hardcode_direct=$hardcode_direct_F77
17794
17795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17796 # resulting binary.
17797 hardcode_minus_L=$hardcode_minus_L_F77
17798
17799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17800 # the resulting binary.
17801 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17802
17803 # Set to yes if building a shared library automatically hardcodes DIR into the library
17804 # and all subsequent libraries and executables linked against it.
17805 hardcode_automatic=$hardcode_automatic_F77
17806
17807 # Variables whose values should be saved in libtool wrapper scripts and
17808 # restored at relink time.
17809 variables_saved_for_relink="$variables_saved_for_relink"
17810
17811 # Whether libtool must link a program against all its dependency libraries.
17812 link_all_deplibs=$link_all_deplibs_F77
17813
17814 # Compile-time system search path for libraries
17815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17816
17817 # Run-time system search path for libraries
17818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17819
17820 # Fix the shell variable \$srcfile for the compiler.
17821 fix_srcfile_path="$fix_srcfile_path_F77"
17822
17823 # Set to yes if exported symbols are required.
17824 always_export_symbols=$always_export_symbols_F77
17825
17826 # The commands to list exported symbols.
17827 export_symbols_cmds=$lt_export_symbols_cmds_F77
17828
17829 # The commands to extract the exported symbol list from a shared archive.
17830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17831
17832 # Symbols that should not be listed in the preloaded symbols.
17833 exclude_expsyms=$lt_exclude_expsyms_F77
17834
17835 # Symbols that must always be exported.
17836 include_expsyms=$lt_include_expsyms_F77
17837
17838 # ### END LIBTOOL TAG CONFIG: $tagname
17839
17840 __EOF__
17841
17842
17843 else
17844   # If there is no Makefile yet, we rely on a make rule to execute
17845   # `config.status --recheck' to rerun these tests and create the
17846   # libtool script then.
17847   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17848   if test -f "$ltmain_in"; then
17849     test -f Makefile && make "$ltmain"
17850   fi
17851 fi
17852
17853
17854 ac_ext=c
17855 ac_cpp='$CPP $CPPFLAGS'
17856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17859
17860 CC="$lt_save_CC"
17861
17862         else
17863           tagname=""
17864         fi
17865         ;;
17866
17867       GCJ)
17868         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17869
17870
17871 # Source file extension for Java test sources.
17872 ac_ext=java
17873
17874 # Object file extension for compiled Java test sources.
17875 objext=o
17876 objext_GCJ=$objext
17877
17878 # Code to be used in simple compile tests
17879 lt_simple_compile_test_code="class foo {}\n"
17880
17881 # Code to be used in simple link tests
17882 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17883
17884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17885
17886 # If no C compiler was specified, use CC.
17887 LTCC=${LTCC-"$CC"}
17888
17889 # If no C compiler flags were specified, use CFLAGS.
17890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17891
17892 # Allow CC to be a program name with arguments.
17893 compiler=$CC
17894
17895
17896 # save warnings/boilerplate of simple test code
17897 ac_outfile=conftest.$ac_objext
17898 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17899 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17900 _lt_compiler_boilerplate=`cat conftest.err`
17901 $rm conftest*
17902
17903 ac_outfile=conftest.$ac_objext
17904 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17905 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17906 _lt_linker_boilerplate=`cat conftest.err`
17907 $rm conftest*
17908
17909
17910 # Allow CC to be a program name with arguments.
17911 lt_save_CC="$CC"
17912 CC=${GCJ-"gcj"}
17913 compiler=$CC
17914 compiler_GCJ=$CC
17915 for cc_temp in $compiler""; do
17916   case $cc_temp in
17917     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17918     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17919     \-*) ;;
17920     *) break;;
17921   esac
17922 done
17923 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17924
17925
17926 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17927 archive_cmds_need_lc_GCJ=no
17928
17929 old_archive_cmds_GCJ=$old_archive_cmds
17930
17931
17932 lt_prog_compiler_no_builtin_flag_GCJ=
17933
17934 if test "$GCC" = yes; then
17935   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17936
17937
17938 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17939 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17940 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17941   echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943   lt_cv_prog_compiler_rtti_exceptions=no
17944   ac_outfile=conftest.$ac_objext
17945    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17946    lt_compiler_flag="-fno-rtti -fno-exceptions"
17947    # Insert the option either (1) after the last *FLAGS variable, or
17948    # (2) before a word containing "conftest.", or (3) at the end.
17949    # Note that $ac_compile itself does not contain backslashes and begins
17950    # with a dollar sign (not a hyphen), so the echo should work correctly.
17951    # The option is referenced via a variable to avoid confusing sed.
17952    lt_compile=`echo "$ac_compile" | $SED \
17953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17955    -e 's:$: $lt_compiler_flag:'`
17956    (eval echo "\"\$as_me:17956: $lt_compile\"" >&5)
17957    (eval "$lt_compile" 2>conftest.err)
17958    ac_status=$?
17959    cat conftest.err >&5
17960    echo "$as_me:17960: \$? = $ac_status" >&5
17961    if (exit $ac_status) && test -s "$ac_outfile"; then
17962      # The compiler can only warn and ignore the option if not recognized
17963      # So say no if there are warnings other than the usual output.
17964      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17965      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17966      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17967        lt_cv_prog_compiler_rtti_exceptions=yes
17968      fi
17969    fi
17970    $rm conftest*
17971
17972 fi
17973 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17974 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17975
17976 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17977     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17978 else
17979     :
17980 fi
17981
17982 fi
17983
17984 lt_prog_compiler_wl_GCJ=
17985 lt_prog_compiler_pic_GCJ=
17986 lt_prog_compiler_static_GCJ=
17987
17988 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17989 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17990
17991   if test "$GCC" = yes; then
17992     lt_prog_compiler_wl_GCJ='-Wl,'
17993     lt_prog_compiler_static_GCJ='-static'
17994
17995     case $host_os in
17996       aix*)
17997       # All AIX code is PIC.
17998       if test "$host_cpu" = ia64; then
17999         # AIX 5 now supports IA64 processor
18000         lt_prog_compiler_static_GCJ='-Bstatic'
18001       fi
18002       ;;
18003
18004     amigaos*)
18005       # FIXME: we need at least 68020 code to build shared libraries, but
18006       # adding the `-m68020' flag to GCC prevents building anything better,
18007       # like `-m68040'.
18008       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18009       ;;
18010
18011     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18012       # PIC is the default for these OSes.
18013       ;;
18014
18015     mingw* | pw32* | os2*)
18016       # This hack is so that the source file can tell whether it is being
18017       # built for inclusion in a dll (and should export symbols for example).
18018       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18019       ;;
18020
18021     darwin* | rhapsody*)
18022       # PIC is the default on this platform
18023       # Common symbols not allowed in MH_DYLIB files
18024       lt_prog_compiler_pic_GCJ='-fno-common'
18025       ;;
18026
18027     interix3*)
18028       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18029       # Instead, we relocate shared libraries at runtime.
18030       ;;
18031
18032     msdosdjgpp*)
18033       # Just because we use GCC doesn't mean we suddenly get shared libraries
18034       # on systems that don't support them.
18035       lt_prog_compiler_can_build_shared_GCJ=no
18036       enable_shared=no
18037       ;;
18038
18039     sysv4*MP*)
18040       if test -d /usr/nec; then
18041         lt_prog_compiler_pic_GCJ=-Kconform_pic
18042       fi
18043       ;;
18044
18045     hpux*)
18046       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18047       # not for PA HP-UX.
18048       case $host_cpu in
18049       hppa*64*|ia64*)
18050         # +Z the default
18051         ;;
18052       *)
18053         lt_prog_compiler_pic_GCJ='-fPIC'
18054         ;;
18055       esac
18056       ;;
18057
18058     *)
18059       lt_prog_compiler_pic_GCJ='-fPIC'
18060       ;;
18061     esac
18062   else
18063     # PORTME Check for flag to pass linker flags through the system compiler.
18064     case $host_os in
18065     aix*)
18066       lt_prog_compiler_wl_GCJ='-Wl,'
18067       if test "$host_cpu" = ia64; then
18068         # AIX 5 now supports IA64 processor
18069         lt_prog_compiler_static_GCJ='-Bstatic'
18070       else
18071         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18072       fi
18073       ;;
18074       darwin*)
18075         # PIC is the default on this platform
18076         # Common symbols not allowed in MH_DYLIB files
18077        case $cc_basename in
18078          xlc*)
18079          lt_prog_compiler_pic_GCJ='-qnocommon'
18080          lt_prog_compiler_wl_GCJ='-Wl,'
18081          ;;
18082        esac
18083        ;;
18084
18085     mingw* | pw32* | os2*)
18086       # This hack is so that the source file can tell whether it is being
18087       # built for inclusion in a dll (and should export symbols for example).
18088       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18089       ;;
18090
18091     hpux9* | hpux10* | hpux11*)
18092       lt_prog_compiler_wl_GCJ='-Wl,'
18093       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18094       # not for PA HP-UX.
18095       case $host_cpu in
18096       hppa*64*|ia64*)
18097         # +Z the default
18098         ;;
18099       *)
18100         lt_prog_compiler_pic_GCJ='+Z'
18101         ;;
18102       esac
18103       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18104       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18105       ;;
18106
18107     irix5* | irix6* | nonstopux*)
18108       lt_prog_compiler_wl_GCJ='-Wl,'
18109       # PIC (with -KPIC) is the default.
18110       lt_prog_compiler_static_GCJ='-non_shared'
18111       ;;
18112
18113     newsos6)
18114       lt_prog_compiler_pic_GCJ='-KPIC'
18115       lt_prog_compiler_static_GCJ='-Bstatic'
18116       ;;
18117
18118     linux* | k*bsd*-gnu)
18119       case $cc_basename in
18120       icc* | ecc*)
18121         lt_prog_compiler_wl_GCJ='-Wl,'
18122         lt_prog_compiler_pic_GCJ='-KPIC'
18123         lt_prog_compiler_static_GCJ='-static'
18124         ;;
18125       pgcc* | pgf77* | pgf90* | pgf95*)
18126         # Portland Group compilers (*not* the Pentium gcc compiler,
18127         # which looks to be a dead project)
18128         lt_prog_compiler_wl_GCJ='-Wl,'
18129         lt_prog_compiler_pic_GCJ='-fpic'
18130         lt_prog_compiler_static_GCJ='-Bstatic'
18131         ;;
18132       ccc*)
18133         lt_prog_compiler_wl_GCJ='-Wl,'
18134         # All Alpha code is PIC.
18135         lt_prog_compiler_static_GCJ='-non_shared'
18136         ;;
18137       esac
18138       ;;
18139
18140     osf3* | osf4* | osf5*)
18141       lt_prog_compiler_wl_GCJ='-Wl,'
18142       # All OSF/1 code is PIC.
18143       lt_prog_compiler_static_GCJ='-non_shared'
18144       ;;
18145
18146     solaris*)
18147       lt_prog_compiler_pic_GCJ='-KPIC'
18148       lt_prog_compiler_static_GCJ='-Bstatic'
18149       case $cc_basename in
18150       f77* | f90* | f95*)
18151         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18152       *)
18153         lt_prog_compiler_wl_GCJ='-Wl,';;
18154       esac
18155       ;;
18156
18157     sunos4*)
18158       lt_prog_compiler_wl_GCJ='-Qoption ld '
18159       lt_prog_compiler_pic_GCJ='-PIC'
18160       lt_prog_compiler_static_GCJ='-Bstatic'
18161       ;;
18162
18163     sysv4 | sysv4.2uw2* | sysv4.3*)
18164       lt_prog_compiler_wl_GCJ='-Wl,'
18165       lt_prog_compiler_pic_GCJ='-KPIC'
18166       lt_prog_compiler_static_GCJ='-Bstatic'
18167       ;;
18168
18169     sysv4*MP*)
18170       if test -d /usr/nec ;then
18171         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18172         lt_prog_compiler_static_GCJ='-Bstatic'
18173       fi
18174       ;;
18175
18176     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18177       lt_prog_compiler_wl_GCJ='-Wl,'
18178       lt_prog_compiler_pic_GCJ='-KPIC'
18179       lt_prog_compiler_static_GCJ='-Bstatic'
18180       ;;
18181
18182     unicos*)
18183       lt_prog_compiler_wl_GCJ='-Wl,'
18184       lt_prog_compiler_can_build_shared_GCJ=no
18185       ;;
18186
18187     uts4*)
18188       lt_prog_compiler_pic_GCJ='-pic'
18189       lt_prog_compiler_static_GCJ='-Bstatic'
18190       ;;
18191
18192     *)
18193       lt_prog_compiler_can_build_shared_GCJ=no
18194       ;;
18195     esac
18196   fi
18197
18198 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18199 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18200
18201 #
18202 # Check to make sure the PIC flag actually works.
18203 #
18204 if test -n "$lt_prog_compiler_pic_GCJ"; then
18205
18206 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18207 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18208 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18209   echo $ECHO_N "(cached) $ECHO_C" >&6
18210 else
18211   lt_prog_compiler_pic_works_GCJ=no
18212   ac_outfile=conftest.$ac_objext
18213    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18214    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18215    # Insert the option either (1) after the last *FLAGS variable, or
18216    # (2) before a word containing "conftest.", or (3) at the end.
18217    # Note that $ac_compile itself does not contain backslashes and begins
18218    # with a dollar sign (not a hyphen), so the echo should work correctly.
18219    # The option is referenced via a variable to avoid confusing sed.
18220    lt_compile=`echo "$ac_compile" | $SED \
18221    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18223    -e 's:$: $lt_compiler_flag:'`
18224    (eval echo "\"\$as_me:18224: $lt_compile\"" >&5)
18225    (eval "$lt_compile" 2>conftest.err)
18226    ac_status=$?
18227    cat conftest.err >&5
18228    echo "$as_me:18228: \$? = $ac_status" >&5
18229    if (exit $ac_status) && test -s "$ac_outfile"; then
18230      # The compiler can only warn and ignore the option if not recognized
18231      # So say no if there are warnings other than the usual output.
18232      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18233      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18234      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18235        lt_prog_compiler_pic_works_GCJ=yes
18236      fi
18237    fi
18238    $rm conftest*
18239
18240 fi
18241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18242 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18243
18244 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18245     case $lt_prog_compiler_pic_GCJ in
18246      "" | " "*) ;;
18247      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18248      esac
18249 else
18250     lt_prog_compiler_pic_GCJ=
18251      lt_prog_compiler_can_build_shared_GCJ=no
18252 fi
18253
18254 fi
18255 case $host_os in
18256   # For platforms which do not support PIC, -DPIC is meaningless:
18257   *djgpp*)
18258     lt_prog_compiler_pic_GCJ=
18259     ;;
18260   *)
18261     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18262     ;;
18263 esac
18264
18265 #
18266 # Check to make sure the static flag actually works.
18267 #
18268 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18269 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18270 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18271 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18272   echo $ECHO_N "(cached) $ECHO_C" >&6
18273 else
18274   lt_prog_compiler_static_works_GCJ=no
18275    save_LDFLAGS="$LDFLAGS"
18276    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18277    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18278    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18279      # The linker can only warn and ignore the option if not recognized
18280      # So say no if there are warnings
18281      if test -s conftest.err; then
18282        # Append any errors to the config.log.
18283        cat conftest.err 1>&5
18284        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18285        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18286        if diff conftest.exp conftest.er2 >/dev/null; then
18287          lt_prog_compiler_static_works_GCJ=yes
18288        fi
18289      else
18290        lt_prog_compiler_static_works_GCJ=yes
18291      fi
18292    fi
18293    $rm conftest*
18294    LDFLAGS="$save_LDFLAGS"
18295
18296 fi
18297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18298 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18299
18300 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18301     :
18302 else
18303     lt_prog_compiler_static_GCJ=
18304 fi
18305
18306
18307 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18309 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18310   echo $ECHO_N "(cached) $ECHO_C" >&6
18311 else
18312   lt_cv_prog_compiler_c_o_GCJ=no
18313    $rm -r conftest 2>/dev/null
18314    mkdir conftest
18315    cd conftest
18316    mkdir out
18317    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18318
18319    lt_compiler_flag="-o out/conftest2.$ac_objext"
18320    # Insert the option either (1) after the last *FLAGS variable, or
18321    # (2) before a word containing "conftest.", or (3) at the end.
18322    # Note that $ac_compile itself does not contain backslashes and begins
18323    # with a dollar sign (not a hyphen), so the echo should work correctly.
18324    lt_compile=`echo "$ac_compile" | $SED \
18325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18327    -e 's:$: $lt_compiler_flag:'`
18328    (eval echo "\"\$as_me:18328: $lt_compile\"" >&5)
18329    (eval "$lt_compile" 2>out/conftest.err)
18330    ac_status=$?
18331    cat out/conftest.err >&5
18332    echo "$as_me:18332: \$? = $ac_status" >&5
18333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18334    then
18335      # The compiler can only warn and ignore the option if not recognized
18336      # So say no if there are warnings
18337      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18338      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18339      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18340        lt_cv_prog_compiler_c_o_GCJ=yes
18341      fi
18342    fi
18343    chmod u+w . 2>&5
18344    $rm conftest*
18345    # SGI C++ compiler will create directory out/ii_files/ for
18346    # template instantiation
18347    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18348    $rm out/* && rmdir out
18349    cd ..
18350    rmdir conftest
18351    $rm conftest*
18352
18353 fi
18354 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18356
18357
18358 hard_links="nottested"
18359 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18360   # do not overwrite the value of need_locks provided by the user
18361   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18362 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18363   hard_links=yes
18364   $rm conftest*
18365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18366   touch conftest.a
18367   ln conftest.a conftest.b 2>&5 || hard_links=no
18368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18369   { echo "$as_me:$LINENO: result: $hard_links" >&5
18370 echo "${ECHO_T}$hard_links" >&6; }
18371   if test "$hard_links" = no; then
18372     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18373 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18374     need_locks=warn
18375   fi
18376 else
18377   need_locks=no
18378 fi
18379
18380 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18382
18383   runpath_var=
18384   allow_undefined_flag_GCJ=
18385   enable_shared_with_static_runtimes_GCJ=no
18386   archive_cmds_GCJ=
18387   archive_expsym_cmds_GCJ=
18388   old_archive_From_new_cmds_GCJ=
18389   old_archive_from_expsyms_cmds_GCJ=
18390   export_dynamic_flag_spec_GCJ=
18391   whole_archive_flag_spec_GCJ=
18392   thread_safe_flag_spec_GCJ=
18393   hardcode_libdir_flag_spec_GCJ=
18394   hardcode_libdir_flag_spec_ld_GCJ=
18395   hardcode_libdir_separator_GCJ=
18396   hardcode_direct_GCJ=no
18397   hardcode_minus_L_GCJ=no
18398   hardcode_shlibpath_var_GCJ=unsupported
18399   link_all_deplibs_GCJ=unknown
18400   hardcode_automatic_GCJ=no
18401   module_cmds_GCJ=
18402   module_expsym_cmds_GCJ=
18403   always_export_symbols_GCJ=no
18404   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18405   # include_expsyms should be a list of space-separated symbols to be *always*
18406   # included in the symbol list
18407   include_expsyms_GCJ=
18408   # exclude_expsyms can be an extended regexp of symbols to exclude
18409   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18410   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18411   # as well as any symbol that contains `d'.
18412   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18413   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18414   # platforms (ab)use it in PIC code, but their linkers get confused if
18415   # the symbol is explicitly referenced.  Since portable code cannot
18416   # rely on this symbol name, it's probably fine to never include it in
18417   # preloaded symbol tables.
18418   extract_expsyms_cmds=
18419   # Just being paranoid about ensuring that cc_basename is set.
18420   for cc_temp in $compiler""; do
18421   case $cc_temp in
18422     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18423     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18424     \-*) ;;
18425     *) break;;
18426   esac
18427 done
18428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18429
18430   case $host_os in
18431   cygwin* | mingw* | pw32*)
18432     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18433     # When not using gcc, we currently assume that we are using
18434     # Microsoft Visual C++.
18435     if test "$GCC" != yes; then
18436       with_gnu_ld=no
18437     fi
18438     ;;
18439   interix*)
18440     # we just hope/assume this is gcc and not c89 (= MSVC++)
18441     with_gnu_ld=yes
18442     ;;
18443   openbsd*)
18444     with_gnu_ld=no
18445     ;;
18446   esac
18447
18448   ld_shlibs_GCJ=yes
18449   if test "$with_gnu_ld" = yes; then
18450     # If archive_cmds runs LD, not CC, wlarc should be empty
18451     wlarc='${wl}'
18452
18453     # Set some defaults for GNU ld with shared library support. These
18454     # are reset later if shared libraries are not supported. Putting them
18455     # here allows them to be overridden if necessary.
18456     runpath_var=LD_RUN_PATH
18457     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18458     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18459     # ancient GNU ld didn't support --whole-archive et. al.
18460     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18461         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18462       else
18463         whole_archive_flag_spec_GCJ=
18464     fi
18465     supports_anon_versioning=no
18466     case `$LD -v 2>/dev/null` in
18467       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18468       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18469       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18470       *\ 2.11.*) ;; # other 2.11 versions
18471       *) supports_anon_versioning=yes ;;
18472     esac
18473
18474     # See if GNU ld supports shared libraries.
18475     case $host_os in
18476     aix3* | aix4* | aix5*)
18477       # On AIX/PPC, the GNU linker is very broken
18478       if test "$host_cpu" != ia64; then
18479         ld_shlibs_GCJ=no
18480         cat <<EOF 1>&2
18481
18482 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18483 *** to be unable to reliably create shared libraries on AIX.
18484 *** Therefore, libtool is disabling shared libraries support.  If you
18485 *** really care for shared libraries, you may want to modify your PATH
18486 *** so that a non-GNU linker is found, and then restart.
18487
18488 EOF
18489       fi
18490       ;;
18491
18492     amigaos*)
18493       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)'
18494       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18495       hardcode_minus_L_GCJ=yes
18496
18497       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18498       # that the semantics of dynamic libraries on AmigaOS, at least up
18499       # to version 4, is to share data among multiple programs linked
18500       # with the same dynamic library.  Since this doesn't match the
18501       # behavior of shared libraries on other platforms, we can't use
18502       # them.
18503       ld_shlibs_GCJ=no
18504       ;;
18505
18506     beos*)
18507       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18508         allow_undefined_flag_GCJ=unsupported
18509         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18510         # support --undefined.  This deserves some investigation.  FIXME
18511         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18512       else
18513         ld_shlibs_GCJ=no
18514       fi
18515       ;;
18516
18517     cygwin* | mingw* | pw32*)
18518       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18519       # as there is no search path for DLLs.
18520       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18521       allow_undefined_flag_GCJ=unsupported
18522       always_export_symbols_GCJ=no
18523       enable_shared_with_static_runtimes_GCJ=yes
18524       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18525
18526       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18527         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18528         # If the export-symbols file already is a .def file (1st line
18529         # is EXPORTS), use it as is; otherwise, prepend...
18530         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18531           cp $export_symbols $output_objdir/$soname.def;
18532         else
18533           echo EXPORTS > $output_objdir/$soname.def;
18534           cat $export_symbols >> $output_objdir/$soname.def;
18535         fi~
18536         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18537       else
18538         ld_shlibs_GCJ=no
18539       fi
18540       ;;
18541
18542     interix3*)
18543       hardcode_direct_GCJ=no
18544       hardcode_shlibpath_var_GCJ=no
18545       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18546       export_dynamic_flag_spec_GCJ='${wl}-E'
18547       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18548       # Instead, shared libraries are loaded at an image base (0x10000000 by
18549       # default) and relocated if they conflict, which is a slow very memory
18550       # consuming and fragmenting process.  To avoid this, we pick a random,
18551       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18552       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18553       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'
18554       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'
18555       ;;
18556
18557     linux* | k*bsd*-gnu)
18558       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18559         tmp_addflag=
18560         case $cc_basename,$host_cpu in
18561         pgcc*)                          # Portland Group C compiler
18562           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'
18563           tmp_addflag=' $pic_flag'
18564           ;;
18565         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18566           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'
18567           tmp_addflag=' $pic_flag -Mnomain' ;;
18568         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18569           tmp_addflag=' -i_dynamic' ;;
18570         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18571           tmp_addflag=' -i_dynamic -nofor_main' ;;
18572         ifc* | ifort*)                  # Intel Fortran compiler
18573           tmp_addflag=' -nofor_main' ;;
18574         esac
18575         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576
18577         if test $supports_anon_versioning = yes; then
18578           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18579   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18580   $echo "local: *; };" >> $output_objdir/$libname.ver~
18581           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18582         fi
18583         link_all_deplibs_GCJ=no
18584       else
18585         ld_shlibs_GCJ=no
18586       fi
18587       ;;
18588
18589     netbsd* | netbsdelf*-gnu)
18590       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18591         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18592         wlarc=
18593       else
18594         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18595         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18596       fi
18597       ;;
18598
18599     solaris*)
18600       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18601         ld_shlibs_GCJ=no
18602         cat <<EOF 1>&2
18603
18604 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18605 *** create shared libraries on Solaris systems.  Therefore, libtool
18606 *** is disabling shared libraries support.  We urge you to upgrade GNU
18607 *** binutils to release 2.9.1 or newer.  Another option is to modify
18608 *** your PATH or compiler configuration so that the native linker is
18609 *** used, and then restart.
18610
18611 EOF
18612       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18613         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18614         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18615       else
18616         ld_shlibs_GCJ=no
18617       fi
18618       ;;
18619
18620     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18621       case `$LD -v 2>&1` in
18622         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18623         ld_shlibs_GCJ=no
18624         cat <<_LT_EOF 1>&2
18625
18626 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18627 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18628 *** is disabling shared libraries support.  We urge you to upgrade GNU
18629 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18630 *** your PATH or compiler configuration so that the native linker is
18631 *** used, and then restart.
18632
18633 _LT_EOF
18634         ;;
18635         *)
18636           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18637             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18638             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18639             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18640           else
18641             ld_shlibs_GCJ=no
18642           fi
18643         ;;
18644       esac
18645       ;;
18646
18647     sunos4*)
18648       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18649       wlarc=
18650       hardcode_direct_GCJ=yes
18651       hardcode_shlibpath_var_GCJ=no
18652       ;;
18653
18654     *)
18655       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18656         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18657         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18658       else
18659         ld_shlibs_GCJ=no
18660       fi
18661       ;;
18662     esac
18663
18664     if test "$ld_shlibs_GCJ" = no; then
18665       runpath_var=
18666       hardcode_libdir_flag_spec_GCJ=
18667       export_dynamic_flag_spec_GCJ=
18668       whole_archive_flag_spec_GCJ=
18669     fi
18670   else
18671     # PORTME fill in a description of your system's linker (not GNU ld)
18672     case $host_os in
18673     aix3*)
18674       allow_undefined_flag_GCJ=unsupported
18675       always_export_symbols_GCJ=yes
18676       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'
18677       # Note: this linker hardcodes the directories in LIBPATH if there
18678       # are no directories specified by -L.
18679       hardcode_minus_L_GCJ=yes
18680       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18681         # Neither direct hardcoding nor static linking is supported with a
18682         # broken collect2.
18683         hardcode_direct_GCJ=unsupported
18684       fi
18685       ;;
18686
18687     aix4* | aix5*)
18688       if test "$host_cpu" = ia64; then
18689         # On IA64, the linker does run time linking by default, so we don't
18690         # have to do anything special.
18691         aix_use_runtimelinking=no
18692         exp_sym_flag='-Bexport'
18693         no_entry_flag=""
18694       else
18695         # If we're using GNU nm, then we don't want the "-C" option.
18696         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18697         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18698           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'
18699         else
18700           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'
18701         fi
18702         aix_use_runtimelinking=no
18703
18704         # Test if we are trying to use run time linking or normal
18705         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18706         # need to do runtime linking.
18707         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18708           for ld_flag in $LDFLAGS; do
18709           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18710             aix_use_runtimelinking=yes
18711             break
18712           fi
18713           done
18714           ;;
18715         esac
18716
18717         exp_sym_flag='-bexport'
18718         no_entry_flag='-bnoentry'
18719       fi
18720
18721       # When large executables or shared objects are built, AIX ld can
18722       # have problems creating the table of contents.  If linking a library
18723       # or program results in "error TOC overflow" add -mminimal-toc to
18724       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18725       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18726
18727       archive_cmds_GCJ=''
18728       hardcode_direct_GCJ=yes
18729       hardcode_libdir_separator_GCJ=':'
18730       link_all_deplibs_GCJ=yes
18731
18732       if test "$GCC" = yes; then
18733         case $host_os in aix4.[012]|aix4.[012].*)
18734         # We only want to do this on AIX 4.2 and lower, the check
18735         # below for broken collect2 doesn't work under 4.3+
18736           collect2name=`${CC} -print-prog-name=collect2`
18737           if test -f "$collect2name" && \
18738            strings "$collect2name" | grep resolve_lib_name >/dev/null
18739           then
18740           # We have reworked collect2
18741           hardcode_direct_GCJ=yes
18742           else
18743           # We have old collect2
18744           hardcode_direct_GCJ=unsupported
18745           # It fails to find uninstalled libraries when the uninstalled
18746           # path is not listed in the libpath.  Setting hardcode_minus_L
18747           # to unsupported forces relinking
18748           hardcode_minus_L_GCJ=yes
18749           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18750           hardcode_libdir_separator_GCJ=
18751           fi
18752           ;;
18753         esac
18754         shared_flag='-shared'
18755         if test "$aix_use_runtimelinking" = yes; then
18756           shared_flag="$shared_flag "'${wl}-G'
18757         fi
18758       else
18759         # not using gcc
18760         if test "$host_cpu" = ia64; then
18761         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18762         # chokes on -Wl,-G. The following line is correct:
18763           shared_flag='-G'
18764         else
18765           if test "$aix_use_runtimelinking" = yes; then
18766             shared_flag='${wl}-G'
18767           else
18768             shared_flag='${wl}-bM:SRE'
18769           fi
18770         fi
18771       fi
18772
18773       # It seems that -bexpall does not export symbols beginning with
18774       # underscore (_), so it is better to generate a list of symbols to export.
18775       always_export_symbols_GCJ=yes
18776       if test "$aix_use_runtimelinking" = yes; then
18777         # Warning - without using the other runtime loading flags (-brtl),
18778         # -berok will link without error, but may produce a broken library.
18779         allow_undefined_flag_GCJ='-berok'
18780        # Determine the default libpath from the value encoded in an empty executable.
18781        cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787
18788 int
18789 main ()
18790 {
18791
18792   ;
18793   return 0;
18794 }
18795 _ACEOF
18796 rm -f conftest.$ac_objext conftest$ac_exeext
18797 if { (ac_try="$ac_link"
18798 case "(($ac_try" in
18799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800   *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803   (eval "$ac_link") 2>conftest.er1
18804   ac_status=$?
18805   grep -v '^ *+' conftest.er1 >conftest.err
18806   rm -f conftest.er1
18807   cat conftest.err >&5
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); } &&
18810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18811   { (case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_try") 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; } &&
18820          { ac_try='test -s conftest$ac_exeext'
18821   { (case "(($ac_try" in
18822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823   *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826   (eval "$ac_try") 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830
18831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18832 }'`
18833 # Check for a 64-bit object if we didn't find anything.
18834 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; }
18835 }'`; fi
18836 else
18837   echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840
18841 fi
18842
18843 rm -f conftest.err conftest.$ac_objext \
18844       conftest$ac_exeext conftest.$ac_ext
18845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18846
18847        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18848         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"
18849        else
18850         if test "$host_cpu" = ia64; then
18851           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18852           allow_undefined_flag_GCJ="-z nodefs"
18853           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"
18854         else
18855          # Determine the default libpath from the value encoded in an empty executable.
18856          cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863 int
18864 main ()
18865 {
18866
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886   { (case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_try") 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); }; } &&
18895          { ac_try='test -s conftest$ac_exeext'
18896   { (case "(($ac_try" in
18897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898   *) ac_try_echo=$ac_try;;
18899 esac
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901   (eval "$ac_try") 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905
18906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18907 }'`
18908 # Check for a 64-bit object if we didn't find anything.
18909 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; }
18910 }'`; fi
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915
18916 fi
18917
18918 rm -f conftest.err conftest.$ac_objext \
18919       conftest$ac_exeext conftest.$ac_ext
18920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921
18922          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18923           # Warning - without using the other run time loading flags,
18924           # -berok will link without error, but may produce a broken library.
18925           no_undefined_flag_GCJ=' ${wl}-bernotok'
18926           allow_undefined_flag_GCJ=' ${wl}-berok'
18927           # Exported symbols can be pulled into shared objects from archives
18928           whole_archive_flag_spec_GCJ='$convenience'
18929           archive_cmds_need_lc_GCJ=yes
18930           # This is similar to how AIX traditionally builds its shared libraries.
18931           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'
18932         fi
18933       fi
18934       ;;
18935
18936     amigaos*)
18937       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)'
18938       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18939       hardcode_minus_L_GCJ=yes
18940       # see comment about different semantics on the GNU ld section
18941       ld_shlibs_GCJ=no
18942       ;;
18943
18944     bsdi[45]*)
18945       export_dynamic_flag_spec_GCJ=-rdynamic
18946       ;;
18947
18948     cygwin* | mingw* | pw32*)
18949       # When not using gcc, we currently assume that we are using
18950       # Microsoft Visual C++.
18951       # hardcode_libdir_flag_spec is actually meaningless, as there is
18952       # no search path for DLLs.
18953       hardcode_libdir_flag_spec_GCJ=' '
18954       allow_undefined_flag_GCJ=unsupported
18955       # Tell ltmain to make .lib files, not .a files.
18956       libext=lib
18957       # Tell ltmain to make .dll files, not .so files.
18958       shrext_cmds=".dll"
18959       # FIXME: Setting linknames here is a bad hack.
18960       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18961       # The linker will automatically build a .lib file if we build a DLL.
18962       old_archive_From_new_cmds_GCJ='true'
18963       # FIXME: Should let the user specify the lib program.
18964       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18965       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18966       enable_shared_with_static_runtimes_GCJ=yes
18967       ;;
18968
18969     darwin* | rhapsody*)
18970       case $host_os in
18971         rhapsody* | darwin1.[012])
18972          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18973          ;;
18974        *) # Darwin 1.3 on
18975          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18976            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18977          else
18978            case ${MACOSX_DEPLOYMENT_TARGET} in
18979              10.[012])
18980                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18981                ;;
18982              10.*)
18983                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18984                ;;
18985            esac
18986          fi
18987          ;;
18988       esac
18989       archive_cmds_need_lc_GCJ=no
18990       hardcode_direct_GCJ=no
18991       hardcode_automatic_GCJ=yes
18992       hardcode_shlibpath_var_GCJ=unsupported
18993       whole_archive_flag_spec_GCJ=''
18994       link_all_deplibs_GCJ=yes
18995     if test "$GCC" = yes ; then
18996         output_verbose_link_cmd='echo'
18997         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18998       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18999       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19000       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}'
19001       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}'
19002     else
19003       case $cc_basename in
19004         xlc*)
19005          output_verbose_link_cmd='echo'
19006          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19007          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19008           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19009          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}'
19010           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}'
19011           ;;
19012        *)
19013          ld_shlibs_GCJ=no
19014           ;;
19015       esac
19016     fi
19017       ;;
19018
19019     dgux*)
19020       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19021       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19022       hardcode_shlibpath_var_GCJ=no
19023       ;;
19024
19025     freebsd1*)
19026       ld_shlibs_GCJ=no
19027       ;;
19028
19029     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19030     # support.  Future versions do this automatically, but an explicit c++rt0.o
19031     # does not break anything, and helps significantly (at the cost of a little
19032     # extra space).
19033     freebsd2.2*)
19034       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19035       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19036       hardcode_direct_GCJ=yes
19037       hardcode_shlibpath_var_GCJ=no
19038       ;;
19039
19040     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19041     freebsd2*)
19042       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19043       hardcode_direct_GCJ=yes
19044       hardcode_minus_L_GCJ=yes
19045       hardcode_shlibpath_var_GCJ=no
19046       ;;
19047
19048     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19049     freebsd* | dragonfly*)
19050       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19052       hardcode_direct_GCJ=yes
19053       hardcode_shlibpath_var_GCJ=no
19054       ;;
19055
19056     hpux9*)
19057       if test "$GCC" = yes; then
19058         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'
19059       else
19060         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'
19061       fi
19062       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19063       hardcode_libdir_separator_GCJ=:
19064       hardcode_direct_GCJ=yes
19065
19066       # hardcode_minus_L: Not really in the search PATH,
19067       # but as the default location of the library.
19068       hardcode_minus_L_GCJ=yes
19069       export_dynamic_flag_spec_GCJ='${wl}-E'
19070       ;;
19071
19072     hpux10*)
19073       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19074         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19075       else
19076         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19077       fi
19078       if test "$with_gnu_ld" = no; then
19079         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19080         hardcode_libdir_separator_GCJ=:
19081
19082         hardcode_direct_GCJ=yes
19083         export_dynamic_flag_spec_GCJ='${wl}-E'
19084
19085         # hardcode_minus_L: Not really in the search PATH,
19086         # but as the default location of the library.
19087         hardcode_minus_L_GCJ=yes
19088       fi
19089       ;;
19090
19091     hpux11*)
19092       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19093         case $host_cpu in
19094         hppa*64*)
19095           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19096           ;;
19097         ia64*)
19098           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19099           ;;
19100         *)
19101           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19102           ;;
19103         esac
19104       else
19105         case $host_cpu in
19106         hppa*64*)
19107           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19108           ;;
19109         ia64*)
19110           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19111           ;;
19112         *)
19113           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19114           ;;
19115         esac
19116       fi
19117       if test "$with_gnu_ld" = no; then
19118         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19119         hardcode_libdir_separator_GCJ=:
19120
19121         case $host_cpu in
19122         hppa*64*|ia64*)
19123           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19124           hardcode_direct_GCJ=no
19125           hardcode_shlibpath_var_GCJ=no
19126           ;;
19127         *)
19128           hardcode_direct_GCJ=yes
19129           export_dynamic_flag_spec_GCJ='${wl}-E'
19130
19131           # hardcode_minus_L: Not really in the search PATH,
19132           # but as the default location of the library.
19133           hardcode_minus_L_GCJ=yes
19134           ;;
19135         esac
19136       fi
19137       ;;
19138
19139     irix5* | irix6* | nonstopux*)
19140       if test "$GCC" = yes; then
19141         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'
19142       else
19143         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'
19144         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19145       fi
19146       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19147       hardcode_libdir_separator_GCJ=:
19148       link_all_deplibs_GCJ=yes
19149       ;;
19150
19151     netbsd* | netbsdelf*-gnu)
19152       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19153         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19154       else
19155         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19156       fi
19157       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19158       hardcode_direct_GCJ=yes
19159       hardcode_shlibpath_var_GCJ=no
19160       ;;
19161
19162     newsos6)
19163       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19164       hardcode_direct_GCJ=yes
19165       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19166       hardcode_libdir_separator_GCJ=:
19167       hardcode_shlibpath_var_GCJ=no
19168       ;;
19169
19170     openbsd*)
19171       hardcode_direct_GCJ=yes
19172       hardcode_shlibpath_var_GCJ=no
19173       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19174         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19175         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19176         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19177         export_dynamic_flag_spec_GCJ='${wl}-E'
19178       else
19179        case $host_os in
19180          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19181            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19182            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19183            ;;
19184          *)
19185            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19186            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19187            ;;
19188        esac
19189       fi
19190       ;;
19191
19192     os2*)
19193       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19194       hardcode_minus_L_GCJ=yes
19195       allow_undefined_flag_GCJ=unsupported
19196       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'
19197       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19198       ;;
19199
19200     osf3*)
19201       if test "$GCC" = yes; then
19202         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19203         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'
19204       else
19205         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19206         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'
19207       fi
19208       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19209       hardcode_libdir_separator_GCJ=:
19210       ;;
19211
19212     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19213       if test "$GCC" = yes; then
19214         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19215         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'
19216         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19217       else
19218         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19219         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'
19220         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~
19221         $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'
19222
19223         # Both c and cxx compiler support -rpath directly
19224         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19225       fi
19226       hardcode_libdir_separator_GCJ=:
19227       ;;
19228
19229     solaris*)
19230       no_undefined_flag_GCJ=' -z text'
19231       if test "$GCC" = yes; then
19232         wlarc='${wl}'
19233         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19235           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19236       else
19237         wlarc=''
19238         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19239         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19240         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19241       fi
19242       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19243       hardcode_shlibpath_var_GCJ=no
19244       case $host_os in
19245       solaris2.[0-5] | solaris2.[0-5].*) ;;
19246       *)
19247         # The compiler driver will combine linker options so we
19248         # cannot just pass the convience library names through
19249         # without $wl, iff we do not link with $LD.
19250         # Luckily, gcc supports the same syntax we need for Sun Studio.
19251         # Supported since Solaris 2.6 (maybe 2.5.1?)
19252         case $wlarc in
19253         '')
19254           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19255         *)
19256           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' ;;
19257         esac ;;
19258       esac
19259       link_all_deplibs_GCJ=yes
19260       ;;
19261
19262     sunos4*)
19263       if test "x$host_vendor" = xsequent; then
19264         # Use $CC to link under sequent, because it throws in some extra .o
19265         # files that make .init and .fini sections work.
19266         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19267       else
19268         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19269       fi
19270       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19271       hardcode_direct_GCJ=yes
19272       hardcode_minus_L_GCJ=yes
19273       hardcode_shlibpath_var_GCJ=no
19274       ;;
19275
19276     sysv4)
19277       case $host_vendor in
19278         sni)
19279           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19280           hardcode_direct_GCJ=yes # is this really true???
19281         ;;
19282         siemens)
19283           ## LD is ld it makes a PLAMLIB
19284           ## CC just makes a GrossModule.
19285           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19286           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19287           hardcode_direct_GCJ=no
19288         ;;
19289         motorola)
19290           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19291           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19292         ;;
19293       esac
19294       runpath_var='LD_RUN_PATH'
19295       hardcode_shlibpath_var_GCJ=no
19296       ;;
19297
19298     sysv4.3*)
19299       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19300       hardcode_shlibpath_var_GCJ=no
19301       export_dynamic_flag_spec_GCJ='-Bexport'
19302       ;;
19303
19304     sysv4*MP*)
19305       if test -d /usr/nec; then
19306         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19307         hardcode_shlibpath_var_GCJ=no
19308         runpath_var=LD_RUN_PATH
19309         hardcode_runpath_var=yes
19310         ld_shlibs_GCJ=yes
19311       fi
19312       ;;
19313
19314     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19315       no_undefined_flag_GCJ='${wl}-z,text'
19316       archive_cmds_need_lc_GCJ=no
19317       hardcode_shlibpath_var_GCJ=no
19318       runpath_var='LD_RUN_PATH'
19319
19320       if test "$GCC" = yes; then
19321         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19323       else
19324         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19325         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19326       fi
19327       ;;
19328
19329     sysv5* | sco3.2v5* | sco5v6*)
19330       # Note: We can NOT use -z defs as we might desire, because we do not
19331       # link with -lc, and that would cause any symbols used from libc to
19332       # always be unresolved, which means just about no library would
19333       # ever link correctly.  If we're not using GNU ld we use -z text
19334       # though, which does catch some bad symbols but isn't as heavy-handed
19335       # as -z defs.
19336       no_undefined_flag_GCJ='${wl}-z,text'
19337       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19338       archive_cmds_need_lc_GCJ=no
19339       hardcode_shlibpath_var_GCJ=no
19340       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19341       hardcode_libdir_separator_GCJ=':'
19342       link_all_deplibs_GCJ=yes
19343       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19344       runpath_var='LD_RUN_PATH'
19345
19346       if test "$GCC" = yes; then
19347         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19348         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19349       else
19350         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19351         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19352       fi
19353       ;;
19354
19355     uts4*)
19356       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19358       hardcode_shlibpath_var_GCJ=no
19359       ;;
19360
19361     *)
19362       ld_shlibs_GCJ=no
19363       ;;
19364     esac
19365   fi
19366
19367 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19368 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19369 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19370
19371 #
19372 # Do we need to explicitly link libc?
19373 #
19374 case "x$archive_cmds_need_lc_GCJ" in
19375 x|xyes)
19376   # Assume -lc should be added
19377   archive_cmds_need_lc_GCJ=yes
19378
19379   if test "$enable_shared" = yes && test "$GCC" = yes; then
19380     case $archive_cmds_GCJ in
19381     *'~'*)
19382       # FIXME: we may have to deal with multi-command sequences.
19383       ;;
19384     '$CC '*)
19385       # Test whether the compiler implicitly links with -lc since on some
19386       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19387       # to ld, don't add -lc before -lgcc.
19388       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19389 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19390       $rm conftest*
19391       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19392
19393       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394   (eval $ac_compile) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); } 2>conftest.err; then
19398         soname=conftest
19399         lib=conftest
19400         libobjs=conftest.$ac_objext
19401         deplibs=
19402         wl=$lt_prog_compiler_wl_GCJ
19403         pic_flag=$lt_prog_compiler_pic_GCJ
19404         compiler_flags=-v
19405         linker_flags=-v
19406         verstring=
19407         output_objdir=.
19408         libname=conftest
19409         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19410         allow_undefined_flag_GCJ=
19411         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19412   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }
19416         then
19417           archive_cmds_need_lc_GCJ=no
19418         else
19419           archive_cmds_need_lc_GCJ=yes
19420         fi
19421         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19422       else
19423         cat conftest.err 1>&5
19424       fi
19425       $rm conftest*
19426       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19427 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19428       ;;
19429     esac
19430   fi
19431   ;;
19432 esac
19433
19434 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19435 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19436 library_names_spec=
19437 libname_spec='lib$name'
19438 soname_spec=
19439 shrext_cmds=".so"
19440 postinstall_cmds=
19441 postuninstall_cmds=
19442 finish_cmds=
19443 finish_eval=
19444 shlibpath_var=
19445 shlibpath_overrides_runpath=unknown
19446 version_type=none
19447 dynamic_linker="$host_os ld.so"
19448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19449 if test "$GCC" = yes; then
19450   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19451   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19452     # if the path contains ";" then we assume it to be the separator
19453     # otherwise default to the standard path separator (i.e. ":") - it is
19454     # assumed that no part of a normal pathname contains ";" but that should
19455     # okay in the real world where ";" in dirpaths is itself problematic.
19456     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19457   else
19458     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19459   fi
19460 else
19461   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19462 fi
19463 need_lib_prefix=unknown
19464 hardcode_into_libs=no
19465
19466 # when you set need_version to no, make sure it does not cause -set_version
19467 # flags to be left without arguments
19468 need_version=unknown
19469
19470 case $host_os in
19471 aix3*)
19472   version_type=linux
19473   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19474   shlibpath_var=LIBPATH
19475
19476   # AIX 3 has no versioning support, so we append a major version to the name.
19477   soname_spec='${libname}${release}${shared_ext}$major'
19478   ;;
19479
19480 aix4* | aix5*)
19481   version_type=linux
19482   need_lib_prefix=no
19483   need_version=no
19484   hardcode_into_libs=yes
19485   if test "$host_cpu" = ia64; then
19486     # AIX 5 supports IA64
19487     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19488     shlibpath_var=LD_LIBRARY_PATH
19489   else
19490     # With GCC up to 2.95.x, collect2 would create an import file
19491     # for dependence libraries.  The import file would start with
19492     # the line `#! .'.  This would cause the generated library to
19493     # depend on `.', always an invalid library.  This was fixed in
19494     # development snapshots of GCC prior to 3.0.
19495     case $host_os in
19496       aix4 | aix4.[01] | aix4.[01].*)
19497       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19498            echo ' yes '
19499            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19500         :
19501       else
19502         can_build_shared=no
19503       fi
19504       ;;
19505     esac
19506     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19507     # soname into executable. Probably we can add versioning support to
19508     # collect2, so additional links can be useful in future.
19509     if test "$aix_use_runtimelinking" = yes; then
19510       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19511       # instead of lib<name>.a to let people know that these are not
19512       # typical AIX shared libraries.
19513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19514     else
19515       # We preserve .a as extension for shared libraries through AIX4.2
19516       # and later when we are not doing run time linking.
19517       library_names_spec='${libname}${release}.a $libname.a'
19518       soname_spec='${libname}${release}${shared_ext}$major'
19519     fi
19520     shlibpath_var=LIBPATH
19521   fi
19522   ;;
19523
19524 amigaos*)
19525   library_names_spec='$libname.ixlibrary $libname.a'
19526   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19527   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'
19528   ;;
19529
19530 beos*)
19531   library_names_spec='${libname}${shared_ext}'
19532   dynamic_linker="$host_os ld.so"
19533   shlibpath_var=LIBRARY_PATH
19534   ;;
19535
19536 bsdi[45]*)
19537   version_type=linux
19538   need_version=no
19539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19540   soname_spec='${libname}${release}${shared_ext}$major'
19541   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19542   shlibpath_var=LD_LIBRARY_PATH
19543   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19544   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19545   # the default ld.so.conf also contains /usr/contrib/lib and
19546   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19547   # libtool to hard-code these into programs
19548   ;;
19549
19550 cygwin* | mingw* | pw32*)
19551   version_type=windows
19552   shrext_cmds=".dll"
19553   need_version=no
19554   need_lib_prefix=no
19555
19556   case $GCC,$host_os in
19557   yes,cygwin* | yes,mingw* | yes,pw32*)
19558     library_names_spec='$libname.dll.a'
19559     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19560     postinstall_cmds='base_file=`basename \${file}`~
19561       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19562       dldir=$destdir/`dirname \$dlpath`~
19563       test -d \$dldir || mkdir -p \$dldir~
19564       $install_prog $dir/$dlname \$dldir/$dlname~
19565       chmod a+x \$dldir/$dlname'
19566     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19567       dlpath=$dir/\$dldll~
19568        $rm \$dlpath'
19569     shlibpath_overrides_runpath=yes
19570
19571     case $host_os in
19572     cygwin*)
19573       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19574       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19575       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19576       ;;
19577     mingw*)
19578       # MinGW DLLs use traditional 'lib' prefix
19579       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19580       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19581       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19582         # It is most probably a Windows format PATH printed by
19583         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19584         # path with ; separators, and with drive letters. We can handle the
19585         # drive letters (cygwin fileutils understands them), so leave them,
19586         # especially as we might pass files found there to a mingw objdump,
19587         # which wouldn't understand a cygwinified path. Ahh.
19588         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19589       else
19590         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19591       fi
19592       ;;
19593     pw32*)
19594       # pw32 DLLs use 'pw' prefix rather than 'lib'
19595       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19596       ;;
19597     esac
19598     ;;
19599
19600   *)
19601     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19602     ;;
19603   esac
19604   dynamic_linker='Win32 ld.exe'
19605   # FIXME: first we should search . and the directory the executable is in
19606   shlibpath_var=PATH
19607   ;;
19608
19609 darwin* | rhapsody*)
19610   dynamic_linker="$host_os dyld"
19611   version_type=darwin
19612   need_lib_prefix=no
19613   need_version=no
19614   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19615   soname_spec='${libname}${release}${major}$shared_ext'
19616   shlibpath_overrides_runpath=yes
19617   shlibpath_var=DYLD_LIBRARY_PATH
19618   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19619   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19620   if test "$GCC" = yes; then
19621     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"`
19622   else
19623     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19624   fi
19625   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19626   ;;
19627
19628 dgux*)
19629   version_type=linux
19630   need_lib_prefix=no
19631   need_version=no
19632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19633   soname_spec='${libname}${release}${shared_ext}$major'
19634   shlibpath_var=LD_LIBRARY_PATH
19635   ;;
19636
19637 freebsd1*)
19638   dynamic_linker=no
19639   ;;
19640
19641 freebsd* | dragonfly*)
19642   # DragonFly does not have aout.  When/if they implement a new
19643   # versioning mechanism, adjust this.
19644   if test -x /usr/bin/objformat; then
19645     objformat=`/usr/bin/objformat`
19646   else
19647     case $host_os in
19648     freebsd[123]*) objformat=aout ;;
19649     *) objformat=elf ;;
19650     esac
19651   fi
19652   version_type=freebsd-$objformat
19653   case $version_type in
19654     freebsd-elf*)
19655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19656       need_version=no
19657       need_lib_prefix=no
19658       ;;
19659     freebsd-*)
19660       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19661       need_version=yes
19662       ;;
19663   esac
19664   shlibpath_var=LD_LIBRARY_PATH
19665   case $host_os in
19666   freebsd2*)
19667     shlibpath_overrides_runpath=yes
19668     ;;
19669   freebsd3.[01]* | freebsdelf3.[01]*)
19670     shlibpath_overrides_runpath=yes
19671     hardcode_into_libs=yes
19672     ;;
19673   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19674   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19675     shlibpath_overrides_runpath=no
19676     hardcode_into_libs=yes
19677     ;;
19678   freebsd*) # from 4.6 on
19679     shlibpath_overrides_runpath=yes
19680     hardcode_into_libs=yes
19681     ;;
19682   esac
19683   ;;
19684
19685 gnu*)
19686   version_type=linux
19687   need_lib_prefix=no
19688   need_version=no
19689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19690   soname_spec='${libname}${release}${shared_ext}$major'
19691   shlibpath_var=LD_LIBRARY_PATH
19692   hardcode_into_libs=yes
19693   ;;
19694
19695 hpux9* | hpux10* | hpux11*)
19696   # Give a soname corresponding to the major version so that dld.sl refuses to
19697   # link against other versions.
19698   version_type=sunos
19699   need_lib_prefix=no
19700   need_version=no
19701   case $host_cpu in
19702   ia64*)
19703     shrext_cmds='.so'
19704     hardcode_into_libs=yes
19705     dynamic_linker="$host_os dld.so"
19706     shlibpath_var=LD_LIBRARY_PATH
19707     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709     soname_spec='${libname}${release}${shared_ext}$major'
19710     if test "X$HPUX_IA64_MODE" = X32; then
19711       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19712     else
19713       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19714     fi
19715     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19716     ;;
19717    hppa*64*)
19718      shrext_cmds='.sl'
19719      hardcode_into_libs=yes
19720      dynamic_linker="$host_os dld.sl"
19721      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19722      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19723      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724      soname_spec='${libname}${release}${shared_ext}$major'
19725      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19726      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19727      ;;
19728    *)
19729     shrext_cmds='.sl'
19730     dynamic_linker="$host_os dld.sl"
19731     shlibpath_var=SHLIB_PATH
19732     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19734     soname_spec='${libname}${release}${shared_ext}$major'
19735     ;;
19736   esac
19737   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19738   postinstall_cmds='chmod 555 $lib'
19739   ;;
19740
19741 interix3*)
19742   version_type=linux
19743   need_lib_prefix=no
19744   need_version=no
19745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19746   soname_spec='${libname}${release}${shared_ext}$major'
19747   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19748   shlibpath_var=LD_LIBRARY_PATH
19749   shlibpath_overrides_runpath=no
19750   hardcode_into_libs=yes
19751   ;;
19752
19753 irix5* | irix6* | nonstopux*)
19754   case $host_os in
19755     nonstopux*) version_type=nonstopux ;;
19756     *)
19757         if test "$lt_cv_prog_gnu_ld" = yes; then
19758                 version_type=linux
19759         else
19760                 version_type=irix
19761         fi ;;
19762   esac
19763   need_lib_prefix=no
19764   need_version=no
19765   soname_spec='${libname}${release}${shared_ext}$major'
19766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19767   case $host_os in
19768   irix5* | nonstopux*)
19769     libsuff= shlibsuff=
19770     ;;
19771   *)
19772     case $LD in # libtool.m4 will add one of these switches to LD
19773     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19774       libsuff= shlibsuff= libmagic=32-bit;;
19775     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19776       libsuff=32 shlibsuff=N32 libmagic=N32;;
19777     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19778       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19779     *) libsuff= shlibsuff= libmagic=never-match;;
19780     esac
19781     ;;
19782   esac
19783   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19784   shlibpath_overrides_runpath=no
19785   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19786   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19787   hardcode_into_libs=yes
19788   ;;
19789
19790 # No shared lib support for Linux oldld, aout, or coff.
19791 linux*oldld* | linux*aout* | linux*coff*)
19792   dynamic_linker=no
19793   ;;
19794
19795 # This must be Linux ELF.
19796 linux* | k*bsd*-gnu)
19797   version_type=linux
19798   need_lib_prefix=no
19799   need_version=no
19800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801   soname_spec='${libname}${release}${shared_ext}$major'
19802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19803   shlibpath_var=LD_LIBRARY_PATH
19804   shlibpath_overrides_runpath=no
19805   # This implies no fast_install, which is unacceptable.
19806   # Some rework will be needed to allow for fast_install
19807   # before this can be enabled.
19808   hardcode_into_libs=yes
19809
19810   # Append ld.so.conf contents to the search path
19811   if test -f /etc/ld.so.conf; then
19812     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' ' '`
19813     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19814   fi
19815
19816   # We used to test for /lib/ld.so.1 and disable shared libraries on
19817   # powerpc, because MkLinux only supported shared libraries with the
19818   # GNU dynamic linker.  Since this was broken with cross compilers,
19819   # most powerpc-linux boxes support dynamic linking these days and
19820   # people can always --disable-shared, the test was removed, and we
19821   # assume the GNU/Linux dynamic linker is in use.
19822   dynamic_linker='GNU/Linux ld.so'
19823   ;;
19824
19825 netbsdelf*-gnu)
19826   version_type=linux
19827   need_lib_prefix=no
19828   need_version=no
19829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19830   soname_spec='${libname}${release}${shared_ext}$major'
19831   shlibpath_var=LD_LIBRARY_PATH
19832   shlibpath_overrides_runpath=no
19833   hardcode_into_libs=yes
19834   dynamic_linker='NetBSD ld.elf_so'
19835   ;;
19836
19837 netbsd*)
19838   version_type=sunos
19839   need_lib_prefix=no
19840   need_version=no
19841   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19843     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19844     dynamic_linker='NetBSD (a.out) ld.so'
19845   else
19846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19847     soname_spec='${libname}${release}${shared_ext}$major'
19848     dynamic_linker='NetBSD ld.elf_so'
19849   fi
19850   shlibpath_var=LD_LIBRARY_PATH
19851   shlibpath_overrides_runpath=yes
19852   hardcode_into_libs=yes
19853   ;;
19854
19855 newsos6)
19856   version_type=linux
19857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858   shlibpath_var=LD_LIBRARY_PATH
19859   shlibpath_overrides_runpath=yes
19860   ;;
19861
19862 nto-qnx*)
19863   version_type=linux
19864   need_lib_prefix=no
19865   need_version=no
19866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19867   soname_spec='${libname}${release}${shared_ext}$major'
19868   shlibpath_var=LD_LIBRARY_PATH
19869   shlibpath_overrides_runpath=yes
19870   ;;
19871
19872 openbsd*)
19873   version_type=sunos
19874   sys_lib_dlsearch_path_spec="/usr/lib"
19875   need_lib_prefix=no
19876   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19877   case $host_os in
19878     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19879     *)                         need_version=no  ;;
19880   esac
19881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19882   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19883   shlibpath_var=LD_LIBRARY_PATH
19884   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885     case $host_os in
19886       openbsd2.[89] | openbsd2.[89].*)
19887         shlibpath_overrides_runpath=no
19888         ;;
19889       *)
19890         shlibpath_overrides_runpath=yes
19891         ;;
19892       esac
19893   else
19894     shlibpath_overrides_runpath=yes
19895   fi
19896   ;;
19897
19898 os2*)
19899   libname_spec='$name'
19900   shrext_cmds=".dll"
19901   need_lib_prefix=no
19902   library_names_spec='$libname${shared_ext} $libname.a'
19903   dynamic_linker='OS/2 ld.exe'
19904   shlibpath_var=LIBPATH
19905   ;;
19906
19907 osf3* | osf4* | osf5*)
19908   version_type=osf
19909   need_lib_prefix=no
19910   need_version=no
19911   soname_spec='${libname}${release}${shared_ext}$major'
19912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19913   shlibpath_var=LD_LIBRARY_PATH
19914   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19915   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19916   ;;
19917
19918 solaris*)
19919   version_type=linux
19920   need_lib_prefix=no
19921   need_version=no
19922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19923   soname_spec='${libname}${release}${shared_ext}$major'
19924   shlibpath_var=LD_LIBRARY_PATH
19925   shlibpath_overrides_runpath=yes
19926   hardcode_into_libs=yes
19927   # ldd complains unless libraries are executable
19928   postinstall_cmds='chmod +x $lib'
19929   ;;
19930
19931 sunos4*)
19932   version_type=sunos
19933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19934   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19935   shlibpath_var=LD_LIBRARY_PATH
19936   shlibpath_overrides_runpath=yes
19937   if test "$with_gnu_ld" = yes; then
19938     need_lib_prefix=no
19939   fi
19940   need_version=yes
19941   ;;
19942
19943 sysv4 | sysv4.3*)
19944   version_type=linux
19945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946   soname_spec='${libname}${release}${shared_ext}$major'
19947   shlibpath_var=LD_LIBRARY_PATH
19948   case $host_vendor in
19949     sni)
19950       shlibpath_overrides_runpath=no
19951       need_lib_prefix=no
19952       export_dynamic_flag_spec='${wl}-Blargedynsym'
19953       runpath_var=LD_RUN_PATH
19954       ;;
19955     siemens)
19956       need_lib_prefix=no
19957       ;;
19958     motorola)
19959       need_lib_prefix=no
19960       need_version=no
19961       shlibpath_overrides_runpath=no
19962       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19963       ;;
19964   esac
19965   ;;
19966
19967 sysv4*MP*)
19968   if test -d /usr/nec ;then
19969     version_type=linux
19970     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19971     soname_spec='$libname${shared_ext}.$major'
19972     shlibpath_var=LD_LIBRARY_PATH
19973   fi
19974   ;;
19975
19976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19977   version_type=freebsd-elf
19978   need_lib_prefix=no
19979   need_version=no
19980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19981   soname_spec='${libname}${release}${shared_ext}$major'
19982   shlibpath_var=LD_LIBRARY_PATH
19983   hardcode_into_libs=yes
19984   if test "$with_gnu_ld" = yes; then
19985     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19986     shlibpath_overrides_runpath=no
19987   else
19988     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19989     shlibpath_overrides_runpath=yes
19990     case $host_os in
19991       sco3.2v5*)
19992         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19993         ;;
19994     esac
19995   fi
19996   sys_lib_dlsearch_path_spec='/usr/lib'
19997   ;;
19998
19999 uts4*)
20000   version_type=linux
20001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002   soname_spec='${libname}${release}${shared_ext}$major'
20003   shlibpath_var=LD_LIBRARY_PATH
20004   ;;
20005
20006 *)
20007   dynamic_linker=no
20008   ;;
20009 esac
20010 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20011 echo "${ECHO_T}$dynamic_linker" >&6; }
20012 test "$dynamic_linker" = no && can_build_shared=no
20013
20014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20015 if test "$GCC" = yes; then
20016   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20017 fi
20018
20019 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20021 hardcode_action_GCJ=
20022 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20023    test -n "$runpath_var_GCJ" || \
20024    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20025
20026   # We can hardcode non-existant directories.
20027   if test "$hardcode_direct_GCJ" != no &&
20028      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20029      # have to relink, otherwise we might link with an installed library
20030      # when we should be linking with a yet-to-be-installed one
20031      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20032      test "$hardcode_minus_L_GCJ" != no; then
20033     # Linking always hardcodes the temporary library directory.
20034     hardcode_action_GCJ=relink
20035   else
20036     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20037     hardcode_action_GCJ=immediate
20038   fi
20039 else
20040   # We cannot hardcode anything, or else we can only hardcode existing
20041   # directories.
20042   hardcode_action_GCJ=unsupported
20043 fi
20044 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20045 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20046
20047 if test "$hardcode_action_GCJ" = relink; then
20048   # Fast installation is not supported
20049   enable_fast_install=no
20050 elif test "$shlibpath_overrides_runpath" = yes ||
20051      test "$enable_shared" = no; then
20052   # Fast installation is not necessary
20053   enable_fast_install=needless
20054 fi
20055
20056
20057 # The else clause should only fire when bootstrapping the
20058 # libtool distribution, otherwise you forgot to ship ltmain.sh
20059 # with your package, and you will get complaints that there are
20060 # no rules to generate ltmain.sh.
20061 if test -f "$ltmain"; then
20062   # See if we are running on zsh, and set the options which allow our commands through
20063   # without removal of \ escapes.
20064   if test -n "${ZSH_VERSION+set}" ; then
20065     setopt NO_GLOB_SUBST
20066   fi
20067   # Now quote all the things that may contain metacharacters while being
20068   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20069   # variables and quote the copies for generation of the libtool script.
20070   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20071     SED SHELL STRIP \
20072     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20073     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20074     deplibs_check_method reload_flag reload_cmds need_locks \
20075     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20076     lt_cv_sys_global_symbol_to_c_name_address \
20077     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20078     old_postinstall_cmds old_postuninstall_cmds \
20079     compiler_GCJ \
20080     CC_GCJ \
20081     LD_GCJ \
20082     lt_prog_compiler_wl_GCJ \
20083     lt_prog_compiler_pic_GCJ \
20084     lt_prog_compiler_static_GCJ \
20085     lt_prog_compiler_no_builtin_flag_GCJ \
20086     export_dynamic_flag_spec_GCJ \
20087     thread_safe_flag_spec_GCJ \
20088     whole_archive_flag_spec_GCJ \
20089     enable_shared_with_static_runtimes_GCJ \
20090     old_archive_cmds_GCJ \
20091     old_archive_from_new_cmds_GCJ \
20092     predep_objects_GCJ \
20093     postdep_objects_GCJ \
20094     predeps_GCJ \
20095     postdeps_GCJ \
20096     compiler_lib_search_path_GCJ \
20097     archive_cmds_GCJ \
20098     archive_expsym_cmds_GCJ \
20099     postinstall_cmds_GCJ \
20100     postuninstall_cmds_GCJ \
20101     old_archive_from_expsyms_cmds_GCJ \
20102     allow_undefined_flag_GCJ \
20103     no_undefined_flag_GCJ \
20104     export_symbols_cmds_GCJ \
20105     hardcode_libdir_flag_spec_GCJ \
20106     hardcode_libdir_flag_spec_ld_GCJ \
20107     hardcode_libdir_separator_GCJ \
20108     hardcode_automatic_GCJ \
20109     module_cmds_GCJ \
20110     module_expsym_cmds_GCJ \
20111     lt_cv_prog_compiler_c_o_GCJ \
20112     exclude_expsyms_GCJ \
20113     include_expsyms_GCJ; do
20114
20115     case $var in
20116     old_archive_cmds_GCJ | \
20117     old_archive_from_new_cmds_GCJ | \
20118     archive_cmds_GCJ | \
20119     archive_expsym_cmds_GCJ | \
20120     module_cmds_GCJ | \
20121     module_expsym_cmds_GCJ | \
20122     old_archive_from_expsyms_cmds_GCJ | \
20123     export_symbols_cmds_GCJ | \
20124     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20125     postinstall_cmds | postuninstall_cmds | \
20126     old_postinstall_cmds | old_postuninstall_cmds | \
20127     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20128       # Double-quote double-evaled strings.
20129       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20130       ;;
20131     *)
20132       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20133       ;;
20134     esac
20135   done
20136
20137   case $lt_echo in
20138   *'\$0 --fallback-echo"')
20139     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20140     ;;
20141   esac
20142
20143 cfgfile="$ofile"
20144
20145   cat <<__EOF__ >> "$cfgfile"
20146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20147
20148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149
20150 # Shell to use when invoking shell scripts.
20151 SHELL=$lt_SHELL
20152
20153 # Whether or not to build shared libraries.
20154 build_libtool_libs=$enable_shared
20155
20156 # Whether or not to build static libraries.
20157 build_old_libs=$enable_static
20158
20159 # Whether or not to add -lc for building shared libraries.
20160 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20161
20162 # Whether or not to disallow shared libs when runtime libs are static
20163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20164
20165 # Whether or not to optimize for fast installation.
20166 fast_install=$enable_fast_install
20167
20168 # The host system.
20169 host_alias=$host_alias
20170 host=$host
20171 host_os=$host_os
20172
20173 # The build system.
20174 build_alias=$build_alias
20175 build=$build
20176 build_os=$build_os
20177
20178 # An echo program that does not interpret backslashes.
20179 echo=$lt_echo
20180
20181 # The archiver.
20182 AR=$lt_AR
20183 AR_FLAGS=$lt_AR_FLAGS
20184
20185 # A C compiler.
20186 LTCC=$lt_LTCC
20187
20188 # LTCC compiler flags.
20189 LTCFLAGS=$lt_LTCFLAGS
20190
20191 # A language-specific compiler.
20192 CC=$lt_compiler_GCJ
20193
20194 # Is the compiler the GNU C compiler?
20195 with_gcc=$GCC_GCJ
20196
20197 # An ERE matcher.
20198 EGREP=$lt_EGREP
20199
20200 # The linker used to build libraries.
20201 LD=$lt_LD_GCJ
20202
20203 # Whether we need hard or soft links.
20204 LN_S=$lt_LN_S
20205
20206 # A BSD-compatible nm program.
20207 NM=$lt_NM
20208
20209 # A symbol stripping program
20210 STRIP=$lt_STRIP
20211
20212 # Used to examine libraries when file_magic_cmd begins "file"
20213 MAGIC_CMD=$MAGIC_CMD
20214
20215 # Used on cygwin: DLL creation program.
20216 DLLTOOL="$DLLTOOL"
20217
20218 # Used on cygwin: object dumper.
20219 OBJDUMP="$OBJDUMP"
20220
20221 # Used on cygwin: assembler.
20222 AS="$AS"
20223
20224 # The name of the directory that contains temporary libtool files.
20225 objdir=$objdir
20226
20227 # How to create reloadable object files.
20228 reload_flag=$lt_reload_flag
20229 reload_cmds=$lt_reload_cmds
20230
20231 # How to pass a linker flag through the compiler.
20232 wl=$lt_lt_prog_compiler_wl_GCJ
20233
20234 # Object file suffix (normally "o").
20235 objext="$ac_objext"
20236
20237 # Old archive suffix (normally "a").
20238 libext="$libext"
20239
20240 # Shared library suffix (normally ".so").
20241 shrext_cmds='$shrext_cmds'
20242
20243 # Executable file suffix (normally "").
20244 exeext="$exeext"
20245
20246 # Additional compiler flags for building library objects.
20247 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20248 pic_mode=$pic_mode
20249
20250 # What is the maximum length of a command?
20251 max_cmd_len=$lt_cv_sys_max_cmd_len
20252
20253 # Does compiler simultaneously support -c and -o options?
20254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20255
20256 # Must we lock files when doing compilation?
20257 need_locks=$lt_need_locks
20258
20259 # Do we need the lib prefix for modules?
20260 need_lib_prefix=$need_lib_prefix
20261
20262 # Do we need a version for libraries?
20263 need_version=$need_version
20264
20265 # Whether dlopen is supported.
20266 dlopen_support=$enable_dlopen
20267
20268 # Whether dlopen of programs is supported.
20269 dlopen_self=$enable_dlopen_self
20270
20271 # Whether dlopen of statically linked programs is supported.
20272 dlopen_self_static=$enable_dlopen_self_static
20273
20274 # Compiler flag to prevent dynamic linking.
20275 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20276
20277 # Compiler flag to turn off builtin functions.
20278 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20279
20280 # Compiler flag to allow reflexive dlopens.
20281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20282
20283 # Compiler flag to generate shared objects directly from archives.
20284 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20285
20286 # Compiler flag to generate thread-safe objects.
20287 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20288
20289 # Library versioning type.
20290 version_type=$version_type
20291
20292 # Format of library name prefix.
20293 libname_spec=$lt_libname_spec
20294
20295 # List of archive names.  First name is the real one, the rest are links.
20296 # The last name is the one that the linker finds with -lNAME.
20297 library_names_spec=$lt_library_names_spec
20298
20299 # The coded name of the library, if different from the real name.
20300 soname_spec=$lt_soname_spec
20301
20302 # Commands used to build and install an old-style archive.
20303 RANLIB=$lt_RANLIB
20304 old_archive_cmds=$lt_old_archive_cmds_GCJ
20305 old_postinstall_cmds=$lt_old_postinstall_cmds
20306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20307
20308 # Create an old-style archive from a shared archive.
20309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20310
20311 # Create a temporary old-style archive to link instead of a shared archive.
20312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20313
20314 # Commands used to build and install a shared archive.
20315 archive_cmds=$lt_archive_cmds_GCJ
20316 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20317 postinstall_cmds=$lt_postinstall_cmds
20318 postuninstall_cmds=$lt_postuninstall_cmds
20319
20320 # Commands used to build a loadable module (assumed same as above if empty)
20321 module_cmds=$lt_module_cmds_GCJ
20322 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20323
20324 # Commands to strip libraries.
20325 old_striplib=$lt_old_striplib
20326 striplib=$lt_striplib
20327
20328 # Dependencies to place before the objects being linked to create a
20329 # shared library.
20330 predep_objects=$lt_predep_objects_GCJ
20331
20332 # Dependencies to place after the objects being linked to create a
20333 # shared library.
20334 postdep_objects=$lt_postdep_objects_GCJ
20335
20336 # Dependencies to place before the objects being linked to create a
20337 # shared library.
20338 predeps=$lt_predeps_GCJ
20339
20340 # Dependencies to place after the objects being linked to create a
20341 # shared library.
20342 postdeps=$lt_postdeps_GCJ
20343
20344 # The library search path used internally by the compiler when linking
20345 # a shared library.
20346 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20347
20348 # Method to check whether dependent libraries are shared objects.
20349 deplibs_check_method=$lt_deplibs_check_method
20350
20351 # Command to use when deplibs_check_method == file_magic.
20352 file_magic_cmd=$lt_file_magic_cmd
20353
20354 # Flag that allows shared libraries with undefined symbols to be built.
20355 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20356
20357 # Flag that forces no undefined symbols.
20358 no_undefined_flag=$lt_no_undefined_flag_GCJ
20359
20360 # Commands used to finish a libtool library installation in a directory.
20361 finish_cmds=$lt_finish_cmds
20362
20363 # Same as above, but a single script fragment to be evaled but not shown.
20364 finish_eval=$lt_finish_eval
20365
20366 # Take the output of nm and produce a listing of raw symbols and C names.
20367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20368
20369 # Transform the output of nm in a proper C declaration
20370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20371
20372 # Transform the output of nm in a C name address pair
20373 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20374
20375 # This is the shared library runtime path variable.
20376 runpath_var=$runpath_var
20377
20378 # This is the shared library path variable.
20379 shlibpath_var=$shlibpath_var
20380
20381 # Is shlibpath searched before the hard-coded library search path?
20382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20383
20384 # How to hardcode a shared library path into an executable.
20385 hardcode_action=$hardcode_action_GCJ
20386
20387 # Whether we should hardcode library paths into libraries.
20388 hardcode_into_libs=$hardcode_into_libs
20389
20390 # Flag to hardcode \$libdir into a binary during linking.
20391 # This must work even if \$libdir does not exist.
20392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20393
20394 # If ld is used when linking, flag to hardcode \$libdir into
20395 # a binary during linking. This must work even if \$libdir does
20396 # not exist.
20397 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20398
20399 # Whether we need a single -rpath flag with a separated argument.
20400 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20401
20402 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20403 # resulting binary.
20404 hardcode_direct=$hardcode_direct_GCJ
20405
20406 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20407 # resulting binary.
20408 hardcode_minus_L=$hardcode_minus_L_GCJ
20409
20410 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20411 # the resulting binary.
20412 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20413
20414 # Set to yes if building a shared library automatically hardcodes DIR into the library
20415 # and all subsequent libraries and executables linked against it.
20416 hardcode_automatic=$hardcode_automatic_GCJ
20417
20418 # Variables whose values should be saved in libtool wrapper scripts and
20419 # restored at relink time.
20420 variables_saved_for_relink="$variables_saved_for_relink"
20421
20422 # Whether libtool must link a program against all its dependency libraries.
20423 link_all_deplibs=$link_all_deplibs_GCJ
20424
20425 # Compile-time system search path for libraries
20426 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20427
20428 # Run-time system search path for libraries
20429 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20430
20431 # Fix the shell variable \$srcfile for the compiler.
20432 fix_srcfile_path="$fix_srcfile_path_GCJ"
20433
20434 # Set to yes if exported symbols are required.
20435 always_export_symbols=$always_export_symbols_GCJ
20436
20437 # The commands to list exported symbols.
20438 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20439
20440 # The commands to extract the exported symbol list from a shared archive.
20441 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20442
20443 # Symbols that should not be listed in the preloaded symbols.
20444 exclude_expsyms=$lt_exclude_expsyms_GCJ
20445
20446 # Symbols that must always be exported.
20447 include_expsyms=$lt_include_expsyms_GCJ
20448
20449 # ### END LIBTOOL TAG CONFIG: $tagname
20450
20451 __EOF__
20452
20453
20454 else
20455   # If there is no Makefile yet, we rely on a make rule to execute
20456   # `config.status --recheck' to rerun these tests and create the
20457   # libtool script then.
20458   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20459   if test -f "$ltmain_in"; then
20460     test -f Makefile && make "$ltmain"
20461   fi
20462 fi
20463
20464
20465 ac_ext=c
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471 CC="$lt_save_CC"
20472
20473         else
20474           tagname=""
20475         fi
20476         ;;
20477
20478       RC)
20479
20480
20481 # Source file extension for RC test sources.
20482 ac_ext=rc
20483
20484 # Object file extension for compiled RC test sources.
20485 objext=o
20486 objext_RC=$objext
20487
20488 # Code to be used in simple compile tests
20489 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20490
20491 # Code to be used in simple link tests
20492 lt_simple_link_test_code="$lt_simple_compile_test_code"
20493
20494 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20495
20496 # If no C compiler was specified, use CC.
20497 LTCC=${LTCC-"$CC"}
20498
20499 # If no C compiler flags were specified, use CFLAGS.
20500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20501
20502 # Allow CC to be a program name with arguments.
20503 compiler=$CC
20504
20505
20506 # save warnings/boilerplate of simple test code
20507 ac_outfile=conftest.$ac_objext
20508 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20510 _lt_compiler_boilerplate=`cat conftest.err`
20511 $rm conftest*
20512
20513 ac_outfile=conftest.$ac_objext
20514 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20516 _lt_linker_boilerplate=`cat conftest.err`
20517 $rm conftest*
20518
20519
20520 # Allow CC to be a program name with arguments.
20521 lt_save_CC="$CC"
20522 CC=${RC-"windres"}
20523 compiler=$CC
20524 compiler_RC=$CC
20525 for cc_temp in $compiler""; do
20526   case $cc_temp in
20527     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20528     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20529     \-*) ;;
20530     *) break;;
20531   esac
20532 done
20533 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20534
20535 lt_cv_prog_compiler_c_o_RC=yes
20536
20537 # The else clause should only fire when bootstrapping the
20538 # libtool distribution, otherwise you forgot to ship ltmain.sh
20539 # with your package, and you will get complaints that there are
20540 # no rules to generate ltmain.sh.
20541 if test -f "$ltmain"; then
20542   # See if we are running on zsh, and set the options which allow our commands through
20543   # without removal of \ escapes.
20544   if test -n "${ZSH_VERSION+set}" ; then
20545     setopt NO_GLOB_SUBST
20546   fi
20547   # Now quote all the things that may contain metacharacters while being
20548   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20549   # variables and quote the copies for generation of the libtool script.
20550   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20551     SED SHELL STRIP \
20552     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20553     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20554     deplibs_check_method reload_flag reload_cmds need_locks \
20555     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20556     lt_cv_sys_global_symbol_to_c_name_address \
20557     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20558     old_postinstall_cmds old_postuninstall_cmds \
20559     compiler_RC \
20560     CC_RC \
20561     LD_RC \
20562     lt_prog_compiler_wl_RC \
20563     lt_prog_compiler_pic_RC \
20564     lt_prog_compiler_static_RC \
20565     lt_prog_compiler_no_builtin_flag_RC \
20566     export_dynamic_flag_spec_RC \
20567     thread_safe_flag_spec_RC \
20568     whole_archive_flag_spec_RC \
20569     enable_shared_with_static_runtimes_RC \
20570     old_archive_cmds_RC \
20571     old_archive_from_new_cmds_RC \
20572     predep_objects_RC \
20573     postdep_objects_RC \
20574     predeps_RC \
20575     postdeps_RC \
20576     compiler_lib_search_path_RC \
20577     archive_cmds_RC \
20578     archive_expsym_cmds_RC \
20579     postinstall_cmds_RC \
20580     postuninstall_cmds_RC \
20581     old_archive_from_expsyms_cmds_RC \
20582     allow_undefined_flag_RC \
20583     no_undefined_flag_RC \
20584     export_symbols_cmds_RC \
20585     hardcode_libdir_flag_spec_RC \
20586     hardcode_libdir_flag_spec_ld_RC \
20587     hardcode_libdir_separator_RC \
20588     hardcode_automatic_RC \
20589     module_cmds_RC \
20590     module_expsym_cmds_RC \
20591     lt_cv_prog_compiler_c_o_RC \
20592     exclude_expsyms_RC \
20593     include_expsyms_RC; do
20594
20595     case $var in
20596     old_archive_cmds_RC | \
20597     old_archive_from_new_cmds_RC | \
20598     archive_cmds_RC | \
20599     archive_expsym_cmds_RC | \
20600     module_cmds_RC | \
20601     module_expsym_cmds_RC | \
20602     old_archive_from_expsyms_cmds_RC | \
20603     export_symbols_cmds_RC | \
20604     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20605     postinstall_cmds | postuninstall_cmds | \
20606     old_postinstall_cmds | old_postuninstall_cmds | \
20607     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20608       # Double-quote double-evaled strings.
20609       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20610       ;;
20611     *)
20612       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20613       ;;
20614     esac
20615   done
20616
20617   case $lt_echo in
20618   *'\$0 --fallback-echo"')
20619     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20620     ;;
20621   esac
20622
20623 cfgfile="$ofile"
20624
20625   cat <<__EOF__ >> "$cfgfile"
20626 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20627
20628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20629
20630 # Shell to use when invoking shell scripts.
20631 SHELL=$lt_SHELL
20632
20633 # Whether or not to build shared libraries.
20634 build_libtool_libs=$enable_shared
20635
20636 # Whether or not to build static libraries.
20637 build_old_libs=$enable_static
20638
20639 # Whether or not to add -lc for building shared libraries.
20640 build_libtool_need_lc=$archive_cmds_need_lc_RC
20641
20642 # Whether or not to disallow shared libs when runtime libs are static
20643 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20644
20645 # Whether or not to optimize for fast installation.
20646 fast_install=$enable_fast_install
20647
20648 # The host system.
20649 host_alias=$host_alias
20650 host=$host
20651 host_os=$host_os
20652
20653 # The build system.
20654 build_alias=$build_alias
20655 build=$build
20656 build_os=$build_os
20657
20658 # An echo program that does not interpret backslashes.
20659 echo=$lt_echo
20660
20661 # The archiver.
20662 AR=$lt_AR
20663 AR_FLAGS=$lt_AR_FLAGS
20664
20665 # A C compiler.
20666 LTCC=$lt_LTCC
20667
20668 # LTCC compiler flags.
20669 LTCFLAGS=$lt_LTCFLAGS
20670
20671 # A language-specific compiler.
20672 CC=$lt_compiler_RC
20673
20674 # Is the compiler the GNU C compiler?
20675 with_gcc=$GCC_RC
20676
20677 # An ERE matcher.
20678 EGREP=$lt_EGREP
20679
20680 # The linker used to build libraries.
20681 LD=$lt_LD_RC
20682
20683 # Whether we need hard or soft links.
20684 LN_S=$lt_LN_S
20685
20686 # A BSD-compatible nm program.
20687 NM=$lt_NM
20688
20689 # A symbol stripping program
20690 STRIP=$lt_STRIP
20691
20692 # Used to examine libraries when file_magic_cmd begins "file"
20693 MAGIC_CMD=$MAGIC_CMD
20694
20695 # Used on cygwin: DLL creation program.
20696 DLLTOOL="$DLLTOOL"
20697
20698 # Used on cygwin: object dumper.
20699 OBJDUMP="$OBJDUMP"
20700
20701 # Used on cygwin: assembler.
20702 AS="$AS"
20703
20704 # The name of the directory that contains temporary libtool files.
20705 objdir=$objdir
20706
20707 # How to create reloadable object files.
20708 reload_flag=$lt_reload_flag
20709 reload_cmds=$lt_reload_cmds
20710
20711 # How to pass a linker flag through the compiler.
20712 wl=$lt_lt_prog_compiler_wl_RC
20713
20714 # Object file suffix (normally "o").
20715 objext="$ac_objext"
20716
20717 # Old archive suffix (normally "a").
20718 libext="$libext"
20719
20720 # Shared library suffix (normally ".so").
20721 shrext_cmds='$shrext_cmds'
20722
20723 # Executable file suffix (normally "").
20724 exeext="$exeext"
20725
20726 # Additional compiler flags for building library objects.
20727 pic_flag=$lt_lt_prog_compiler_pic_RC
20728 pic_mode=$pic_mode
20729
20730 # What is the maximum length of a command?
20731 max_cmd_len=$lt_cv_sys_max_cmd_len
20732
20733 # Does compiler simultaneously support -c and -o options?
20734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20735
20736 # Must we lock files when doing compilation?
20737 need_locks=$lt_need_locks
20738
20739 # Do we need the lib prefix for modules?
20740 need_lib_prefix=$need_lib_prefix
20741
20742 # Do we need a version for libraries?
20743 need_version=$need_version
20744
20745 # Whether dlopen is supported.
20746 dlopen_support=$enable_dlopen
20747
20748 # Whether dlopen of programs is supported.
20749 dlopen_self=$enable_dlopen_self
20750
20751 # Whether dlopen of statically linked programs is supported.
20752 dlopen_self_static=$enable_dlopen_self_static
20753
20754 # Compiler flag to prevent dynamic linking.
20755 link_static_flag=$lt_lt_prog_compiler_static_RC
20756
20757 # Compiler flag to turn off builtin functions.
20758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20759
20760 # Compiler flag to allow reflexive dlopens.
20761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20762
20763 # Compiler flag to generate shared objects directly from archives.
20764 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20765
20766 # Compiler flag to generate thread-safe objects.
20767 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20768
20769 # Library versioning type.
20770 version_type=$version_type
20771
20772 # Format of library name prefix.
20773 libname_spec=$lt_libname_spec
20774
20775 # List of archive names.  First name is the real one, the rest are links.
20776 # The last name is the one that the linker finds with -lNAME.
20777 library_names_spec=$lt_library_names_spec
20778
20779 # The coded name of the library, if different from the real name.
20780 soname_spec=$lt_soname_spec
20781
20782 # Commands used to build and install an old-style archive.
20783 RANLIB=$lt_RANLIB
20784 old_archive_cmds=$lt_old_archive_cmds_RC
20785 old_postinstall_cmds=$lt_old_postinstall_cmds
20786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20787
20788 # Create an old-style archive from a shared archive.
20789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20790
20791 # Create a temporary old-style archive to link instead of a shared archive.
20792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20793
20794 # Commands used to build and install a shared archive.
20795 archive_cmds=$lt_archive_cmds_RC
20796 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20797 postinstall_cmds=$lt_postinstall_cmds
20798 postuninstall_cmds=$lt_postuninstall_cmds
20799
20800 # Commands used to build a loadable module (assumed same as above if empty)
20801 module_cmds=$lt_module_cmds_RC
20802 module_expsym_cmds=$lt_module_expsym_cmds_RC
20803
20804 # Commands to strip libraries.
20805 old_striplib=$lt_old_striplib
20806 striplib=$lt_striplib
20807
20808 # Dependencies to place before the objects being linked to create a
20809 # shared library.
20810 predep_objects=$lt_predep_objects_RC
20811
20812 # Dependencies to place after the objects being linked to create a
20813 # shared library.
20814 postdep_objects=$lt_postdep_objects_RC
20815
20816 # Dependencies to place before the objects being linked to create a
20817 # shared library.
20818 predeps=$lt_predeps_RC
20819
20820 # Dependencies to place after the objects being linked to create a
20821 # shared library.
20822 postdeps=$lt_postdeps_RC
20823
20824 # The library search path used internally by the compiler when linking
20825 # a shared library.
20826 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20827
20828 # Method to check whether dependent libraries are shared objects.
20829 deplibs_check_method=$lt_deplibs_check_method
20830
20831 # Command to use when deplibs_check_method == file_magic.
20832 file_magic_cmd=$lt_file_magic_cmd
20833
20834 # Flag that allows shared libraries with undefined symbols to be built.
20835 allow_undefined_flag=$lt_allow_undefined_flag_RC
20836
20837 # Flag that forces no undefined symbols.
20838 no_undefined_flag=$lt_no_undefined_flag_RC
20839
20840 # Commands used to finish a libtool library installation in a directory.
20841 finish_cmds=$lt_finish_cmds
20842
20843 # Same as above, but a single script fragment to be evaled but not shown.
20844 finish_eval=$lt_finish_eval
20845
20846 # Take the output of nm and produce a listing of raw symbols and C names.
20847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20848
20849 # Transform the output of nm in a proper C declaration
20850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20851
20852 # Transform the output of nm in a C name address pair
20853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20854
20855 # This is the shared library runtime path variable.
20856 runpath_var=$runpath_var
20857
20858 # This is the shared library path variable.
20859 shlibpath_var=$shlibpath_var
20860
20861 # Is shlibpath searched before the hard-coded library search path?
20862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20863
20864 # How to hardcode a shared library path into an executable.
20865 hardcode_action=$hardcode_action_RC
20866
20867 # Whether we should hardcode library paths into libraries.
20868 hardcode_into_libs=$hardcode_into_libs
20869
20870 # Flag to hardcode \$libdir into a binary during linking.
20871 # This must work even if \$libdir does not exist.
20872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20873
20874 # If ld is used when linking, flag to hardcode \$libdir into
20875 # a binary during linking. This must work even if \$libdir does
20876 # not exist.
20877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20878
20879 # Whether we need a single -rpath flag with a separated argument.
20880 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20881
20882 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20883 # resulting binary.
20884 hardcode_direct=$hardcode_direct_RC
20885
20886 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20887 # resulting binary.
20888 hardcode_minus_L=$hardcode_minus_L_RC
20889
20890 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20891 # the resulting binary.
20892 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20893
20894 # Set to yes if building a shared library automatically hardcodes DIR into the library
20895 # and all subsequent libraries and executables linked against it.
20896 hardcode_automatic=$hardcode_automatic_RC
20897
20898 # Variables whose values should be saved in libtool wrapper scripts and
20899 # restored at relink time.
20900 variables_saved_for_relink="$variables_saved_for_relink"
20901
20902 # Whether libtool must link a program against all its dependency libraries.
20903 link_all_deplibs=$link_all_deplibs_RC
20904
20905 # Compile-time system search path for libraries
20906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20907
20908 # Run-time system search path for libraries
20909 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20910
20911 # Fix the shell variable \$srcfile for the compiler.
20912 fix_srcfile_path="$fix_srcfile_path_RC"
20913
20914 # Set to yes if exported symbols are required.
20915 always_export_symbols=$always_export_symbols_RC
20916
20917 # The commands to list exported symbols.
20918 export_symbols_cmds=$lt_export_symbols_cmds_RC
20919
20920 # The commands to extract the exported symbol list from a shared archive.
20921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20922
20923 # Symbols that should not be listed in the preloaded symbols.
20924 exclude_expsyms=$lt_exclude_expsyms_RC
20925
20926 # Symbols that must always be exported.
20927 include_expsyms=$lt_include_expsyms_RC
20928
20929 # ### END LIBTOOL TAG CONFIG: $tagname
20930
20931 __EOF__
20932
20933
20934 else
20935   # If there is no Makefile yet, we rely on a make rule to execute
20936   # `config.status --recheck' to rerun these tests and create the
20937   # libtool script then.
20938   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20939   if test -f "$ltmain_in"; then
20940     test -f Makefile && make "$ltmain"
20941   fi
20942 fi
20943
20944
20945 ac_ext=c
20946 ac_cpp='$CPP $CPPFLAGS'
20947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950
20951 CC="$lt_save_CC"
20952
20953         ;;
20954
20955       *)
20956         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20957 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20958    { (exit 1); exit 1; }; }
20959         ;;
20960       esac
20961
20962       # Append the new tag name to the list of available tags.
20963       if test -n "$tagname" ; then
20964       available_tags="$available_tags $tagname"
20965     fi
20966     fi
20967   done
20968   IFS="$lt_save_ifs"
20969
20970   # Now substitute the updated list of available tags.
20971   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20972     mv "${ofile}T" "$ofile"
20973     chmod +x "$ofile"
20974   else
20975     rm -f "${ofile}T"
20976     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20977 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20978    { (exit 1); exit 1; }; }
20979   fi
20980 fi
20981
20982
20983
20984 # This can be used to rebuild libtool when needed
20985 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20986
20987 # Always use our own libtool.
20988 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20989
20990 # Prevent multiple expansion
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012 if test "x$cross_compiling" = "xno"; then
21013         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21014 else
21015         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21016 fi
21017
21018
21019
21020 if test -n "$ac_tool_prefix"; then
21021   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21022 set dummy ${ac_tool_prefix}ar; ac_word=$2
21023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21025 if test "${ac_cv_prog_AR+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   if test -n "$AR"; then
21029   ac_cv_prog_AR="$AR" # Let the user override the test.
21030 else
21031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21032 for as_dir in $PATH
21033 do
21034   IFS=$as_save_IFS
21035   test -z "$as_dir" && as_dir=.
21036   for ac_exec_ext in '' $ac_executable_extensions; do
21037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21038     ac_cv_prog_AR="${ac_tool_prefix}ar"
21039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21040     break 2
21041   fi
21042 done
21043 done
21044 IFS=$as_save_IFS
21045
21046 fi
21047 fi
21048 AR=$ac_cv_prog_AR
21049 if test -n "$AR"; then
21050   { echo "$as_me:$LINENO: result: $AR" >&5
21051 echo "${ECHO_T}$AR" >&6; }
21052 else
21053   { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21055 fi
21056
21057
21058 fi
21059 if test -z "$ac_cv_prog_AR"; then
21060   ac_ct_AR=$AR
21061   # Extract the first word of "ar", so it can be a program name with args.
21062 set dummy ar; ac_word=$2
21063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   if test -n "$ac_ct_AR"; then
21069   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21070 else
21071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21072 for as_dir in $PATH
21073 do
21074   IFS=$as_save_IFS
21075   test -z "$as_dir" && as_dir=.
21076   for ac_exec_ext in '' $ac_executable_extensions; do
21077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21078     ac_cv_prog_ac_ct_AR="ar"
21079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21080     break 2
21081   fi
21082 done
21083 done
21084 IFS=$as_save_IFS
21085
21086 fi
21087 fi
21088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21089 if test -n "$ac_ct_AR"; then
21090   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21091 echo "${ECHO_T}$ac_ct_AR" >&6; }
21092 else
21093   { echo "$as_me:$LINENO: result: no" >&5
21094 echo "${ECHO_T}no" >&6; }
21095 fi
21096
21097   if test "x$ac_ct_AR" = x; then
21098     AR=""
21099   else
21100     case $cross_compiling:$ac_tool_warned in
21101 yes:)
21102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21103 whose name does not start with the host triplet.  If you think this
21104 configuration is useful to you, please write to autoconf@gnu.org." >&5
21105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21106 whose name does not start with the host triplet.  If you think this
21107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21108 ac_tool_warned=yes ;;
21109 esac
21110     AR=$ac_ct_AR
21111   fi
21112 else
21113   AR="$ac_cv_prog_AR"
21114 fi
21115
21116 if test -n "$ac_tool_prefix"; then
21117   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21118 set dummy ${ac_tool_prefix}ld; ac_word=$2
21119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21121 if test "${ac_cv_prog_LD+set}" = set; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124   if test -n "$LD"; then
21125   ac_cv_prog_LD="$LD" # Let the user override the test.
21126 else
21127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21128 for as_dir in $PATH
21129 do
21130   IFS=$as_save_IFS
21131   test -z "$as_dir" && as_dir=.
21132   for ac_exec_ext in '' $ac_executable_extensions; do
21133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21134     ac_cv_prog_LD="${ac_tool_prefix}ld"
21135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21136     break 2
21137   fi
21138 done
21139 done
21140 IFS=$as_save_IFS
21141
21142 fi
21143 fi
21144 LD=$ac_cv_prog_LD
21145 if test -n "$LD"; then
21146   { echo "$as_me:$LINENO: result: $LD" >&5
21147 echo "${ECHO_T}$LD" >&6; }
21148 else
21149   { echo "$as_me:$LINENO: result: no" >&5
21150 echo "${ECHO_T}no" >&6; }
21151 fi
21152
21153
21154 fi
21155 if test -z "$ac_cv_prog_LD"; then
21156   ac_ct_LD=$LD
21157   # Extract the first word of "ld", so it can be a program name with args.
21158 set dummy ld; ac_word=$2
21159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21161 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21162   echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164   if test -n "$ac_ct_LD"; then
21165   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21166 else
21167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21168 for as_dir in $PATH
21169 do
21170   IFS=$as_save_IFS
21171   test -z "$as_dir" && as_dir=.
21172   for ac_exec_ext in '' $ac_executable_extensions; do
21173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21174     ac_cv_prog_ac_ct_LD="ld"
21175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21176     break 2
21177   fi
21178 done
21179 done
21180 IFS=$as_save_IFS
21181
21182 fi
21183 fi
21184 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21185 if test -n "$ac_ct_LD"; then
21186   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21187 echo "${ECHO_T}$ac_ct_LD" >&6; }
21188 else
21189   { echo "$as_me:$LINENO: result: no" >&5
21190 echo "${ECHO_T}no" >&6; }
21191 fi
21192
21193   if test "x$ac_ct_LD" = x; then
21194     LD=""
21195   else
21196     case $cross_compiling:$ac_tool_warned in
21197 yes:)
21198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21199 whose name does not start with the host triplet.  If you think this
21200 configuration is useful to you, please write to autoconf@gnu.org." >&5
21201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21202 whose name does not start with the host triplet.  If you think this
21203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21204 ac_tool_warned=yes ;;
21205 esac
21206     LD=$ac_ct_LD
21207   fi
21208 else
21209   LD="$ac_cv_prog_LD"
21210 fi
21211
21212
21213 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21215 if test "${ac_cv_header_stdc+set}" = set; then
21216   echo $ECHO_N "(cached) $ECHO_C" >&6
21217 else
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #include <stdlib.h>
21225 #include <stdarg.h>
21226 #include <string.h>
21227 #include <float.h>
21228
21229 int
21230 main ()
21231 {
21232
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_compile") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } &&
21251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21252   { (case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_try") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; } &&
21261          { ac_try='test -s conftest.$ac_objext'
21262   { (case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_try") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   ac_cv_header_stdc=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276         ac_cv_header_stdc=no
21277 fi
21278
21279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21280
21281 if test $ac_cv_header_stdc = yes; then
21282   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21283   cat >conftest.$ac_ext <<_ACEOF
21284 /* confdefs.h.  */
21285 _ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h.  */
21289 #include <string.h>
21290
21291 _ACEOF
21292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21293   $EGREP "memchr" >/dev/null 2>&1; then
21294   :
21295 else
21296   ac_cv_header_stdc=no
21297 fi
21298 rm -f conftest*
21299
21300 fi
21301
21302 if test $ac_cv_header_stdc = yes; then
21303   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21304   cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 #include <stdlib.h>
21311
21312 _ACEOF
21313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21314   $EGREP "free" >/dev/null 2>&1; then
21315   :
21316 else
21317   ac_cv_header_stdc=no
21318 fi
21319 rm -f conftest*
21320
21321 fi
21322
21323 if test $ac_cv_header_stdc = yes; then
21324   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21325   if test "$cross_compiling" = yes; then
21326   :
21327 else
21328   cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 #include <ctype.h>
21335 #include <stdlib.h>
21336 #if ((' ' & 0x0FF) == 0x020)
21337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21339 #else
21340 # define ISLOWER(c) \
21341                    (('a' <= (c) && (c) <= 'i') \
21342                      || ('j' <= (c) && (c) <= 'r') \
21343                      || ('s' <= (c) && (c) <= 'z'))
21344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21345 #endif
21346
21347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21348 int
21349 main ()
21350 {
21351   int i;
21352   for (i = 0; i < 256; i++)
21353     if (XOR (islower (i), ISLOWER (i))
21354         || toupper (i) != TOUPPER (i))
21355       return 2;
21356   return 0;
21357 }
21358 _ACEOF
21359 rm -f conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_link") 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21370   { (case "(($ac_try" in
21371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372   *) ac_try_echo=$ac_try;;
21373 esac
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375   (eval "$ac_try") 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; }; then
21379   :
21380 else
21381   echo "$as_me: program exited with status $ac_status" >&5
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 ( exit $ac_status )
21386 ac_cv_header_stdc=no
21387 fi
21388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21389 fi
21390
21391
21392 fi
21393 fi
21394 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21395 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21396 if test $ac_cv_header_stdc = yes; then
21397
21398 cat >>confdefs.h <<\_ACEOF
21399 #define STDC_HEADERS 1
21400 _ACEOF
21401
21402 fi
21403
21404
21405   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21406 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21407   if test "${knfsd_cv_glibc2+set}" = set; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410   cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416
21417       #include <features.h>
21418       #if !defined(__GLIBC__)
21419       # error Nope
21420       #endif
21421
21422 _ACEOF
21423 if { (ac_try="$ac_cpp conftest.$ac_ext"
21424 case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } >/dev/null; then
21436   if test -s conftest.err; then
21437     ac_cpp_err=$ac_c_preproc_warn_flag
21438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21439   else
21440     ac_cpp_err=
21441   fi
21442 else
21443   ac_cpp_err=yes
21444 fi
21445 if test -z "$ac_cpp_err"; then
21446   knfsd_cv_glibc2=yes
21447 else
21448   echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451   knfsd_cv_glibc2=no
21452 fi
21453
21454 rm -f conftest.err conftest.$ac_ext
21455 fi
21456
21457   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21458 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21459   if test $knfsd_cv_glibc2 = yes; then
21460     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21461     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21462   fi
21463
21464
21465   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21466 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21467   if test "${knfsd_cv_bsd_signals+set}" = set; then
21468   echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470   if test "$cross_compiling" = yes; then
21471   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21472 See \`config.log' for more details." >&5
21473 echo "$as_me: error: cannot run test program while cross compiling
21474 See \`config.log' for more details." >&2;}
21475    { (exit 1); exit 1; }; }
21476 else
21477   cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483
21484         #include <signal.h>
21485         #include <unistd.h>
21486         #include <sys/wait.h>
21487
21488         static int counter = 0;
21489         static RETSIGTYPE handler(int num) { counter++; }
21490
21491         int main()
21492         {
21493                 int     s;
21494                 if ((s = fork()) < 0) return 1;
21495                 if (s != 0) {
21496                         if (wait(&s) < 0) return 1;
21497                         return WIFSIGNALED(s)? 1 : 0;
21498                 }
21499
21500                 signal(SIGHUP, handler);
21501                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21502                 return (counter == 2)? 0 : 1;
21503         }
21504
21505 _ACEOF
21506 rm -f conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510   *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513   (eval "$ac_link") 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21517   { (case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_try") 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; }; then
21526   knfsd_cv_bsd_signals=yes
21527 else
21528   echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 ( exit $ac_status )
21533 knfsd_cv_bsd_signals=no
21534 fi
21535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21536 fi
21537
21538
21539 fi
21540      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21541 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21542     test $knfsd_cv_bsd_signals = yes &&
21543 cat >>confdefs.h <<\_ACEOF
21544 #define HAVE_BSD_SIGNALS 1
21545 _ACEOF
21546
21547
21548
21549 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21550 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
21551 if test "${ac_cv_lib_socket_main+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554   ac_check_lib_save_LIBS=$LIBS
21555 LIBS="-lsocket  $LIBS"
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562
21563
21564 int
21565 main ()
21566 {
21567 return main ();
21568   ;
21569   return 0;
21570 }
21571 _ACEOF
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576   *) ac_try_echo=$ac_try;;
21577 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579   (eval "$ac_link") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } &&
21586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21587   { (case "(($ac_try" in
21588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589   *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592   (eval "$ac_try") 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; } &&
21596          { ac_try='test -s conftest$ac_exeext'
21597   { (case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_try") 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; }; then
21606   ac_cv_lib_socket_main=yes
21607 else
21608   echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611         ac_cv_lib_socket_main=no
21612 fi
21613
21614 rm -f conftest.err conftest.$ac_objext \
21615       conftest$ac_exeext conftest.$ac_ext
21616 LIBS=$ac_check_lib_save_LIBS
21617 fi
21618 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21619 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
21620 if test $ac_cv_lib_socket_main = yes; then
21621   LIBSOCKET="-lnsl"
21622 fi
21623
21624 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21625 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
21626 if test "${ac_cv_lib_nsl_main+set}" = set; then
21627   echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629   ac_check_lib_save_LIBS=$LIBS
21630 LIBS="-lnsl  $LIBS"
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637
21638
21639 int
21640 main ()
21641 {
21642 return main ();
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_link") 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } &&
21661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21662   { (case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_try") 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); }; } &&
21671          { ac_try='test -s conftest$ac_exeext'
21672   { (case "(($ac_try" in
21673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674   *) ac_try_echo=$ac_try;;
21675 esac
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677   (eval "$ac_try") 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; }; then
21681   ac_cv_lib_nsl_main=yes
21682 else
21683   echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686         ac_cv_lib_nsl_main=no
21687 fi
21688
21689 rm -f conftest.err conftest.$ac_objext \
21690       conftest$ac_exeext conftest.$ac_ext
21691 LIBS=$ac_check_lib_save_LIBS
21692 fi
21693 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21694 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
21695 if test $ac_cv_lib_nsl_main = yes; then
21696   LIBNSL="-lnsl"
21697 fi
21698
21699 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21700 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21701 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   ac_check_lib_save_LIBS=$LIBS
21705 LIBS="-lcrypt  $LIBS"
21706 cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712
21713 /* Override any GCC internal prototype to avoid an error.
21714    Use char because int might match the return type of a GCC
21715    builtin and then its argument prototype would still apply.  */
21716 #ifdef __cplusplus
21717 extern "C"
21718 #endif
21719 char crypt ();
21720 int
21721 main ()
21722 {
21723 return crypt ();
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_link") 2>conftest.er1
21736   ac_status=$?
21737   grep -v '^ *+' conftest.er1 >conftest.err
21738   rm -f conftest.er1
21739   cat conftest.err >&5
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } &&
21742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21743   { (case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_try") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; } &&
21752          { ac_try='test -s conftest$ac_exeext'
21753   { (case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_try") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; }; then
21762   ac_cv_lib_crypt_crypt=yes
21763 else
21764   echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767         ac_cv_lib_crypt_crypt=no
21768 fi
21769
21770 rm -f conftest.err conftest.$ac_objext \
21771       conftest$ac_exeext conftest.$ac_ext
21772 LIBS=$ac_check_lib_save_LIBS
21773 fi
21774 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21775 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21776 if test $ac_cv_lib_crypt_crypt = yes; then
21777   LIBCRYPT="-lcrypt"
21778 fi
21779
21780 if test "$enable_nfsv4" = yes; then
21781     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21782 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21783 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786   ac_check_lib_save_LIBS=$LIBS
21787 LIBS="-levent  $LIBS"
21788 cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794
21795 /* Override any GCC internal prototype to avoid an error.
21796    Use char because int might match the return type of a GCC
21797    builtin and then its argument prototype would still apply.  */
21798 #ifdef __cplusplus
21799 extern "C"
21800 #endif
21801 char event_dispatch ();
21802 int
21803 main ()
21804 {
21805 return event_dispatch ();
21806   ;
21807   return 0;
21808 }
21809 _ACEOF
21810 rm -f conftest.$ac_objext conftest$ac_exeext
21811 if { (ac_try="$ac_link"
21812 case "(($ac_try" in
21813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814   *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817   (eval "$ac_link") 2>conftest.er1
21818   ac_status=$?
21819   grep -v '^ *+' conftest.er1 >conftest.err
21820   rm -f conftest.er1
21821   cat conftest.err >&5
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } &&
21824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825   { (case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_try") 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; } &&
21834          { ac_try='test -s conftest$ac_exeext'
21835   { (case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_try") 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; }; then
21844   ac_cv_lib_event_event_dispatch=yes
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849         ac_cv_lib_event_event_dispatch=no
21850 fi
21851
21852 rm -f conftest.err conftest.$ac_objext \
21853       conftest$ac_exeext conftest.$ac_ext
21854 LIBS=$ac_check_lib_save_LIBS
21855 fi
21856 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21857 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21858 if test $ac_cv_lib_event_event_dispatch = yes; then
21859   libevent=1
21860 else
21861   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21862 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21863    { (exit 1); exit 1; }; }
21864 fi
21865
21866     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21867 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21868 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21869   echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21871   ac_check_lib_save_LIBS=$LIBS
21872 LIBS="-lnfsidmap  $LIBS"
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879
21880 /* Override any GCC internal prototype to avoid an error.
21881    Use char because int might match the return type of a GCC
21882    builtin and then its argument prototype would still apply.  */
21883 #ifdef __cplusplus
21884 extern "C"
21885 #endif
21886 char nfs4_init_name_mapping ();
21887 int
21888 main ()
21889 {
21890 return nfs4_init_name_mapping ();
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_link") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } &&
21909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21910   { (case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_try") 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; } &&
21919          { ac_try='test -s conftest$ac_exeext'
21920   { (case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_try") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21935 fi
21936
21937 rm -f conftest.err conftest.$ac_objext \
21938       conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21940 fi
21941 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21942 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21943 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21944   libnfsidmap=1
21945 else
21946   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21947 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21948    { (exit 1); exit 1; }; }
21949 fi
21950
21951
21952 for ac_header in event.h
21953 do
21954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959   echo $ECHO_N "(cached) $ECHO_C" >&6
21960 fi
21961 ac_res=`eval echo '${'$as_ac_Header'}'`
21962                { echo "$as_me:$LINENO: result: $ac_res" >&5
21963 echo "${ECHO_T}$ac_res" >&6; }
21964 else
21965   # Is the header compilable?
21966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 $ac_includes_default
21975 #include <$ac_header>
21976 _ACEOF
21977 rm -f conftest.$ac_objext
21978 if { (ac_try="$ac_compile"
21979 case "(($ac_try" in
21980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981   *) ac_try_echo=$ac_try;;
21982 esac
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984   (eval "$ac_compile") 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } &&
21991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21992   { (case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_try") 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; } &&
22001          { ac_try='test -s conftest.$ac_objext'
22002   { (case "(($ac_try" in
22003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004   *) ac_try_echo=$ac_try;;
22005 esac
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007   (eval "$ac_try") 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   ac_header_compiler=yes
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016         ac_header_compiler=no
22017 fi
22018
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22022
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h.  */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h.  */
22032 #include <$ac_header>
22033 _ACEOF
22034 if { (ac_try="$ac_cpp conftest.$ac_ext"
22035 case "(($ac_try" in
22036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037   *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22041   ac_status=$?
22042   grep -v '^ *+' conftest.er1 >conftest.err
22043   rm -f conftest.er1
22044   cat conftest.err >&5
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); } >/dev/null; then
22047   if test -s conftest.err; then
22048     ac_cpp_err=$ac_c_preproc_warn_flag
22049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22050   else
22051     ac_cpp_err=
22052   fi
22053 else
22054   ac_cpp_err=yes
22055 fi
22056 if test -z "$ac_cpp_err"; then
22057   ac_header_preproc=yes
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062   ac_header_preproc=no
22063 fi
22064
22065 rm -f conftest.err conftest.$ac_ext
22066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067 echo "${ECHO_T}$ac_header_preproc" >&6; }
22068
22069 # So?  What about this header?
22070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071   yes:no: )
22072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076     ac_header_preproc=yes
22077     ;;
22078   no:yes:* )
22079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22091     ( cat <<\_ASBOX
22092 ## ------------------------------- ##
22093 ## Report this to nfs@lists.sf.net ##
22094 ## ------------------------------- ##
22095 _ASBOX
22096      ) | sed "s/^/$as_me: WARNING:     /" >&2
22097     ;;
22098 esac
22099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104   eval "$as_ac_Header=\$ac_header_preproc"
22105 fi
22106 ac_res=`eval echo '${'$as_ac_Header'}'`
22107                { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22109
22110 fi
22111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22112   cat >>confdefs.h <<_ACEOF
22113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22114 _ACEOF
22115
22116 else
22117   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22118 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22119    { (exit 1); exit 1; }; }
22120 fi
22121
22122 done
22123
22124
22125 for ac_header in nfsidmap.h
22126 do
22127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 fi
22134 ac_res=`eval echo '${'$as_ac_Header'}'`
22135                { echo "$as_me:$LINENO: result: $ac_res" >&5
22136 echo "${ECHO_T}$ac_res" >&6; }
22137 else
22138   # Is the header compilable?
22139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22141 cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147 $ac_includes_default
22148 #include <$ac_header>
22149 _ACEOF
22150 rm -f conftest.$ac_objext
22151 if { (ac_try="$ac_compile"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_compile") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } &&
22164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22165   { (case "(($ac_try" in
22166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22167   *) ac_try_echo=$ac_try;;
22168 esac
22169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22170   (eval "$ac_try") 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; } &&
22174          { ac_try='test -s conftest.$ac_objext'
22175   { (case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_try") 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; }; then
22184   ac_header_compiler=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189         ac_header_compiler=no
22190 fi
22191
22192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22194 echo "${ECHO_T}$ac_header_compiler" >&6; }
22195
22196 # Is the header present?
22197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205 #include <$ac_header>
22206 _ACEOF
22207 if { (ac_try="$ac_cpp conftest.$ac_ext"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } >/dev/null; then
22220   if test -s conftest.err; then
22221     ac_cpp_err=$ac_c_preproc_warn_flag
22222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22223   else
22224     ac_cpp_err=
22225   fi
22226 else
22227   ac_cpp_err=yes
22228 fi
22229 if test -z "$ac_cpp_err"; then
22230   ac_header_preproc=yes
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235   ac_header_preproc=no
22236 fi
22237
22238 rm -f conftest.err conftest.$ac_ext
22239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22240 echo "${ECHO_T}$ac_header_preproc" >&6; }
22241
22242 # So?  What about this header?
22243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22244   yes:no: )
22245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22249     ac_header_preproc=yes
22250     ;;
22251   no:yes:* )
22252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22264     ( cat <<\_ASBOX
22265 ## ------------------------------- ##
22266 ## Report this to nfs@lists.sf.net ##
22267 ## ------------------------------- ##
22268 _ASBOX
22269      ) | sed "s/^/$as_me: WARNING:     /" >&2
22270     ;;
22271 esac
22272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22275   echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22277   eval "$as_ac_Header=\$ac_header_preproc"
22278 fi
22279 ac_res=`eval echo '${'$as_ac_Header'}'`
22280                { echo "$as_me:$LINENO: result: $ac_res" >&5
22281 echo "${ECHO_T}$ac_res" >&6; }
22282
22283 fi
22284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22285   cat >>confdefs.h <<_ACEOF
22286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22287 _ACEOF
22288
22289 else
22290   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22291 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22292    { (exit 1); exit 1; }; }
22293 fi
22294
22295 done
22296
22297             if test "$enable_gss" = yes; then
22298
22299
22300 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22301         if test -n "$ac_tool_prefix"; then
22302   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22303 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22306 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   case $PKG_CONFIG in
22310   [\\/]* | ?:[\\/]*)
22311   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22312   ;;
22313   *)
22314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $PATH
22316 do
22317   IFS=$as_save_IFS
22318   test -z "$as_dir" && as_dir=.
22319   for ac_exec_ext in '' $ac_executable_extensions; do
22320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22321     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22323     break 2
22324   fi
22325 done
22326 done
22327 IFS=$as_save_IFS
22328
22329   ;;
22330 esac
22331 fi
22332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22333 if test -n "$PKG_CONFIG"; then
22334   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22335 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22336 else
22337   { echo "$as_me:$LINENO: result: no" >&5
22338 echo "${ECHO_T}no" >&6; }
22339 fi
22340
22341
22342 fi
22343 if test -z "$ac_cv_path_PKG_CONFIG"; then
22344   ac_pt_PKG_CONFIG=$PKG_CONFIG
22345   # Extract the first word of "pkg-config", so it can be a program name with args.
22346 set dummy pkg-config; ac_word=$2
22347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22349 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22350   echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352   case $ac_pt_PKG_CONFIG in
22353   [\\/]* | ?:[\\/]*)
22354   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22355   ;;
22356   *)
22357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22358 for as_dir in $PATH
22359 do
22360   IFS=$as_save_IFS
22361   test -z "$as_dir" && as_dir=.
22362   for ac_exec_ext in '' $ac_executable_extensions; do
22363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22364     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22366     break 2
22367   fi
22368 done
22369 done
22370 IFS=$as_save_IFS
22371
22372   ;;
22373 esac
22374 fi
22375 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22376 if test -n "$ac_pt_PKG_CONFIG"; then
22377   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22378 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22379 else
22380   { echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6; }
22382 fi
22383
22384   if test "x$ac_pt_PKG_CONFIG" = x; then
22385     PKG_CONFIG=""
22386   else
22387     case $cross_compiling:$ac_tool_warned in
22388 yes:)
22389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22390 whose name does not start with the host triplet.  If you think this
22391 configuration is useful to you, please write to autoconf@gnu.org." >&5
22392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22393 whose name does not start with the host triplet.  If you think this
22394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22395 ac_tool_warned=yes ;;
22396 esac
22397     PKG_CONFIG=$ac_pt_PKG_CONFIG
22398   fi
22399 else
22400   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22401 fi
22402
22403 fi
22404 if test -n "$PKG_CONFIG"; then
22405         _pkg_min_version=0.9.0
22406         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22407 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22408         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22409                 { echo "$as_me:$LINENO: result: yes" >&5
22410 echo "${ECHO_T}yes" >&6; }
22411         else
22412                 { echo "$as_me:$LINENO: result: no" >&5
22413 echo "${ECHO_T}no" >&6; }
22414                 PKG_CONFIG=""
22415         fi
22416
22417 fi
22418
22419 pkg_failed=no
22420 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22421 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22422
22423 if test -n "$PKG_CONFIG"; then
22424     if test -n "$RPCSECGSS_CFLAGS"; then
22425         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22426     else
22427         if test -n "$PKG_CONFIG" && \
22428     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22429   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22430   ac_status=$?
22431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432   (exit $ac_status); }; then
22433   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
22434 else
22435   pkg_failed=yes
22436 fi
22437     fi
22438 else
22439         pkg_failed=untried
22440 fi
22441 if test -n "$PKG_CONFIG"; then
22442     if test -n "$RPCSECGSS_LIBS"; then
22443         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22444     else
22445         if test -n "$PKG_CONFIG" && \
22446     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
22447   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
22448   ac_status=$?
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); }; then
22451   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
22452 else
22453   pkg_failed=yes
22454 fi
22455     fi
22456 else
22457         pkg_failed=untried
22458 fi
22459
22460
22461
22462 if test $pkg_failed = yes; then
22463
22464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22465         _pkg_short_errors_supported=yes
22466 else
22467         _pkg_short_errors_supported=no
22468 fi
22469         if test $_pkg_short_errors_supported = yes; then
22470                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22471         else
22472                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
22473         fi
22474         # Put the nasty error message in config.log where it belongs
22475         echo "$RPCSECGSS_PKG_ERRORS" >&5
22476
22477         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22478 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22479    { (exit 1); exit 1; }; }
22480        { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22481 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22482    { (exit 1); exit 1; }; }
22483        { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22484 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22485    { (exit 1); exit 1; }; }
22486
22487
22488 elif test $pkg_failed = untried; then
22489         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss." >&5
22490 echo "$as_me: error: Unable to locate information required to use librpcsecgss." >&2;}
22491    { (exit 1); exit 1; }; }
22492        { { echo "$as_me:$LINENO: error: If you have pkgconfig installed, you might try setting environment" >&5
22493 echo "$as_me: error: If you have pkgconfig installed, you might try setting environment" >&2;}
22494    { (exit 1); exit 1; }; }
22495        { { echo "$as_me:$LINENO: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
22496 echo "$as_me: error: variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
22497    { (exit 1); exit 1; }; }
22498
22499
22500 else
22501         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22502         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22503         { echo "$as_me:$LINENO: result: yes" >&5
22504 echo "${ECHO_T}yes" >&6; }
22505         :
22506 fi
22507
22508 pkg_failed=no
22509 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
22510 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
22511
22512 if test -n "$PKG_CONFIG"; then
22513     if test -n "$GSSAPI_CFLAGS"; then
22514         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
22515     else
22516         if test -n "$PKG_CONFIG" && \
22517     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22518   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; then
22522   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
22523 else
22524   pkg_failed=yes
22525 fi
22526     fi
22527 else
22528         pkg_failed=untried
22529 fi
22530 if test -n "$PKG_CONFIG"; then
22531     if test -n "$GSSAPI_LIBS"; then
22532         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
22533     else
22534         if test -n "$PKG_CONFIG" && \
22535     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
22536   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; then
22540   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
22541 else
22542   pkg_failed=yes
22543 fi
22544     fi
22545 else
22546         pkg_failed=untried
22547 fi
22548
22549
22550
22551 if test $pkg_failed = yes; then
22552
22553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22554         _pkg_short_errors_supported=yes
22555 else
22556         _pkg_short_errors_supported=no
22557 fi
22558         if test $_pkg_short_errors_supported = yes; then
22559                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22560         else
22561                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
22562         fi
22563         # Put the nasty error message in config.log where it belongs
22564         echo "$GSSAPI_PKG_ERRORS" >&5
22565
22566         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
22567
22568 $GSSAPI_PKG_ERRORS
22569
22570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22571 installed software in a non-standard prefix.
22572
22573 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22574 and GSSAPI_LIBS to avoid the need to call pkg-config.
22575 See the pkg-config man page for more details.
22576 " >&5
22577 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
22578
22579 $GSSAPI_PKG_ERRORS
22580
22581 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22582 installed software in a non-standard prefix.
22583
22584 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22585 and GSSAPI_LIBS to avoid the need to call pkg-config.
22586 See the pkg-config man page for more details.
22587 " >&2;}
22588    { (exit 1); exit 1; }; }
22589 elif test $pkg_failed = untried; then
22590         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22591 is in your PATH or set the PKG_CONFIG environment variable to the full
22592 path to pkg-config.
22593
22594 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22595 and GSSAPI_LIBS to avoid the need to call pkg-config.
22596 See the pkg-config man page for more details.
22597
22598 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22599 See \`config.log' for more details." >&5
22600 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22601 is in your PATH or set the PKG_CONFIG environment variable to the full
22602 path to pkg-config.
22603
22604 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22605 and GSSAPI_LIBS to avoid the need to call pkg-config.
22606 See the pkg-config man page for more details.
22607
22608 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22609 See \`config.log' for more details." >&2;}
22610    { (exit 1); exit 1; }; }
22611 else
22612         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22613         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22614         { echo "$as_me:$LINENO: result: yes" >&5
22615 echo "${ECHO_T}yes" >&6; }
22616         :
22617 fi
22618     fi
22619
22620 fi
22621 if test "$knfsd_cv_glibc2" = no; then
22622     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22623 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22624 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627   ac_check_lib_save_LIBS=$LIBS
22628 LIBS="-lbsd  $LIBS"
22629 cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635
22636 /* Override any GCC internal prototype to avoid an error.
22637    Use char because int might match the return type of a GCC
22638    builtin and then its argument prototype would still apply.  */
22639 #ifdef __cplusplus
22640 extern "C"
22641 #endif
22642 char daemon ();
22643 int
22644 main ()
22645 {
22646 return daemon ();
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext conftest$ac_exeext
22652 if { (ac_try="$ac_link"
22653 case "(($ac_try" in
22654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655   *) ac_try_echo=$ac_try;;
22656 esac
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658   (eval "$ac_link") 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } &&
22665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22666   { (case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671   (eval "$ac_try") 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); }; } &&
22675          { ac_try='test -s conftest$ac_exeext'
22676   { (case "(($ac_try" in
22677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678   *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681   (eval "$ac_try") 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ac_cv_lib_bsd_daemon=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         ac_cv_lib_bsd_daemon=no
22691 fi
22692
22693 rm -f conftest.err conftest.$ac_objext \
22694       conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22696 fi
22697 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22698 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22699 if test $ac_cv_lib_bsd_daemon = yes; then
22700   LIBBSD="-lbsd"
22701 fi
22702
22703 fi
22704
22705
22706
22707
22708
22709 if test "$enable_gss" = yes; then
22710
22711 for ac_header in nfsidmap.h
22712 do
22713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22715   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22718   echo $ECHO_N "(cached) $ECHO_C" >&6
22719 fi
22720 ac_res=`eval echo '${'$as_ac_Header'}'`
22721                { echo "$as_me:$LINENO: result: $ac_res" >&5
22722 echo "${ECHO_T}$ac_res" >&6; }
22723 else
22724   # Is the header compilable?
22725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733 $ac_includes_default
22734 #include <$ac_header>
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_compile") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } &&
22750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22751   { (case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_try") 2>&5
22757   ac_status=$?
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); }; } &&
22760          { ac_try='test -s conftest.$ac_objext'
22761   { (case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_try") 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; }; then
22770   ac_header_compiler=yes
22771 else
22772   echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775         ac_header_compiler=no
22776 fi
22777
22778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22780 echo "${ECHO_T}$ac_header_compiler" >&6; }
22781
22782 # Is the header present?
22783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22785 cat >conftest.$ac_ext <<_ACEOF
22786 /* confdefs.h.  */
22787 _ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h.  */
22791 #include <$ac_header>
22792 _ACEOF
22793 if { (ac_try="$ac_cpp conftest.$ac_ext"
22794 case "(($ac_try" in
22795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796   *) ac_try_echo=$ac_try;;
22797 esac
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22800   ac_status=$?
22801   grep -v '^ *+' conftest.er1 >conftest.err
22802   rm -f conftest.er1
22803   cat conftest.err >&5
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); } >/dev/null; then
22806   if test -s conftest.err; then
22807     ac_cpp_err=$ac_c_preproc_warn_flag
22808     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22809   else
22810     ac_cpp_err=
22811   fi
22812 else
22813   ac_cpp_err=yes
22814 fi
22815 if test -z "$ac_cpp_err"; then
22816   ac_header_preproc=yes
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821   ac_header_preproc=no
22822 fi
22823
22824 rm -f conftest.err conftest.$ac_ext
22825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22826 echo "${ECHO_T}$ac_header_preproc" >&6; }
22827
22828 # So?  What about this header?
22829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22830   yes:no: )
22831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22835     ac_header_preproc=yes
22836     ;;
22837   no:yes:* )
22838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22850     ( cat <<\_ASBOX
22851 ## ------------------------------- ##
22852 ## Report this to nfs@lists.sf.net ##
22853 ## ------------------------------- ##
22854 _ASBOX
22855      ) | sed "s/^/$as_me: WARNING:     /" >&2
22856     ;;
22857 esac
22858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863   eval "$as_ac_Header=\$ac_header_preproc"
22864 fi
22865 ac_res=`eval echo '${'$as_ac_Header'}'`
22866                { echo "$as_me:$LINENO: result: $ac_res" >&5
22867 echo "${ECHO_T}$ac_res" >&6; }
22868
22869 fi
22870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22871   cat >>confdefs.h <<_ACEOF
22872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22873 _ACEOF
22874
22875 else
22876   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22877 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22878    { (exit 1); exit 1; }; }
22879 fi
22880
22881 done
22882
22883
22884 for ac_header in spkm3.h
22885 do
22886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22891   echo $ECHO_N "(cached) $ECHO_C" >&6
22892 fi
22893 ac_res=`eval echo '${'$as_ac_Header'}'`
22894                { echo "$as_me:$LINENO: result: $ac_res" >&5
22895 echo "${ECHO_T}$ac_res" >&6; }
22896 else
22897   # Is the header compilable?
22898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 $ac_includes_default
22907 #include <$ac_header>
22908 _ACEOF
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913   *) ac_try_echo=$ac_try;;
22914 esac
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916   (eval "$ac_compile") 2>conftest.er1
22917   ac_status=$?
22918   grep -v '^ *+' conftest.er1 >conftest.err
22919   rm -f conftest.er1
22920   cat conftest.err >&5
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } &&
22923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22924   { (case "(($ac_try" in
22925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926   *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929   (eval "$ac_try") 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; } &&
22933          { ac_try='test -s conftest.$ac_objext'
22934   { (case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_try") 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; }; then
22943   ac_header_compiler=yes
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948         ac_header_compiler=no
22949 fi
22950
22951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22953 echo "${ECHO_T}$ac_header_compiler" >&6; }
22954
22955 # Is the header present?
22956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 #include <$ac_header>
22965 _ACEOF
22966 if { (ac_try="$ac_cpp conftest.$ac_ext"
22967 case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } >/dev/null; then
22979   if test -s conftest.err; then
22980     ac_cpp_err=$ac_c_preproc_warn_flag
22981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22982   else
22983     ac_cpp_err=
22984   fi
22985 else
22986   ac_cpp_err=yes
22987 fi
22988 if test -z "$ac_cpp_err"; then
22989   ac_header_preproc=yes
22990 else
22991   echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994   ac_header_preproc=no
22995 fi
22996
22997 rm -f conftest.err conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22999 echo "${ECHO_T}$ac_header_preproc" >&6; }
23000
23001 # So?  What about this header?
23002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23003   yes:no: )
23004     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23008     ac_header_preproc=yes
23009     ;;
23010   no:yes:* )
23011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23013     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23014 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23015     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23017     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23018 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23021     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23023     ( cat <<\_ASBOX
23024 ## ------------------------------- ##
23025 ## Report this to nfs@lists.sf.net ##
23026 ## ------------------------------- ##
23027 _ASBOX
23028      ) | sed "s/^/$as_me: WARNING:     /" >&2
23029     ;;
23030 esac
23031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23034   echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036   eval "$as_ac_Header=\$ac_header_preproc"
23037 fi
23038 ac_res=`eval echo '${'$as_ac_Header'}'`
23039                { echo "$as_me:$LINENO: result: $ac_res" >&5
23040 echo "${ECHO_T}$ac_res" >&6; }
23041
23042 fi
23043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23044   cat >>confdefs.h <<_ACEOF
23045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23046 _ACEOF
23047
23048 else
23049   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23050 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23051 fi
23052
23053 done
23054
23055     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23056 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23057 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   ac_check_lib_save_LIBS=$LIBS
23061 LIBS="-lnfsidmap  $LIBS"
23062 cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068
23069 /* Override any GCC internal prototype to avoid an error.
23070    Use char because int might match the return type of a GCC
23071    builtin and then its argument prototype would still apply.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 char nfs4_set_debug ();
23076 int
23077 main ()
23078 {
23079 return nfs4_set_debug ();
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_link") 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } &&
23098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23099   { (case "(($ac_try" in
23100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23101   *) ac_try_echo=$ac_try;;
23102 esac
23103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23104   (eval "$ac_try") 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; } &&
23108          { ac_try='test -s conftest$ac_exeext'
23109   { (case "(($ac_try" in
23110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111   *) ac_try_echo=$ac_try;;
23112 esac
23113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23114   (eval "$ac_try") 2>&5
23115   ac_status=$?
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); }; }; then
23118   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23119 else
23120   echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23124 fi
23125
23126 rm -f conftest.err conftest.$ac_objext \
23127       conftest$ac_exeext conftest.$ac_ext
23128 LIBS=$ac_check_lib_save_LIBS
23129 fi
23130 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23131 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23132 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23133
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_NFS4_SET_DEBUG 1
23136 _ACEOF
23137
23138 fi
23139
23140
23141
23142   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23143 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23144
23145 # Check whether --with-krb5 was given.
23146 if test "${with_krb5+set}" = set; then
23147   withval=$with_krb5;  case "$withval" in
23148     yes|no)
23149        krb5_with=""
23150        ;;
23151     *)
23152        krb5_with="$withval"
23153        ;;
23154     esac
23155
23156 fi
23157
23158
23159   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23160              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23161             K5CONFIG=""
23162     if test -f $dir/bin/krb5-config; then
23163       K5CONFIG=$dir/bin/krb5-config
23164     elif test -f "/usr/kerberos/bin/krb5-config"; then
23165       K5CONFIG="/usr/kerberos/bin/krb5-config"
23166     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23167       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23168     fi
23169     if test "$K5CONFIG" != ""; then
23170       KRBCFLAGS=`$K5CONFIG --cflags`
23171       KRBLIBS=`$K5CONFIG --libs gssapi`
23172       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23173
23174 cat >>confdefs.h <<_ACEOF
23175 #define KRB5_VERSION $K5VERS
23176 _ACEOF
23177
23178       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23179                 \( -f $dir/lib/libgssapi_krb5.a -o \
23180                    -f $dir/lib/libgssapi_krb5.so \) ; then
23181
23182 cat >>confdefs.h <<\_ACEOF
23183 #define HAVE_KRB5 1
23184 _ACEOF
23185
23186          KRBDIR="$dir"
23187                      if test $K5VERS -le 131; then
23188
23189 cat >>confdefs.h <<\_ACEOF
23190 #define USE_GSS_KRB5_CCACHE_NAME 1
23191 _ACEOF
23192
23193          fi
23194          gssapi_lib=gssapi_krb5
23195          break
23196                   elif test \( -f $dir/include/heim_err.h -o\
23197                  -f $dir/include/heimdal/heim_err.h \) -a \
23198                 -f $dir/lib/libroken.a; then
23199
23200 cat >>confdefs.h <<\_ACEOF
23201 #define HAVE_HEIMDAL 1
23202 _ACEOF
23203
23204          KRBDIR="$dir"
23205          gssapi_lib=gssapi
23206         break
23207       fi
23208     fi
23209   done
23210     if test "x$KRBDIR" = "x"; then
23211     if test "x$krb5_with" = "x"; then
23212       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23213 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23214    { (exit 1); exit 1; }; }
23215     else
23216       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23217 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23218    { (exit 1); exit 1; }; }
23219     fi
23220   fi
23221   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23222 echo "${ECHO_T}$KRBDIR" >&6; }
23223
23224     echo "The current KRBDIR is $KRBDIR"
23225   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23226        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23227     KRBLDFLAGS="";
23228   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23229     KRBLDFLAGS="";
23230   else
23231     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23232   fi
23233
23234     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23235 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23236 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23237 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* Override any GCC internal prototype to avoid an error.
23250    Use char because int might match the return type of a GCC
23251    builtin and then its argument prototype would still apply.  */
23252 #ifdef __cplusplus
23253 extern "C"
23254 #endif
23255 char gss_krb5_export_lucid_sec_context ();
23256 int
23257 main ()
23258 {
23259 return gss_krb5_export_lucid_sec_context ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23279   { (case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_try") 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; } &&
23288          { ac_try='test -s conftest$ac_exeext'
23289   { (case "(($ac_try" in
23290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291   *) ac_try_echo=$ac_try;;
23292 esac
23293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294   (eval "$ac_try") 2>&5
23295   ac_status=$?
23296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297   (exit $ac_status); }; }; then
23298   eval "$as_ac_Lib=yes"
23299 else
23300   echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23302
23303         eval "$as_ac_Lib=no"
23304 fi
23305
23306 rm -f conftest.err conftest.$ac_objext \
23307       conftest$ac_exeext conftest.$ac_ext
23308 LIBS=$ac_check_lib_save_LIBS
23309 fi
23310 ac_res=`eval echo '${'$as_ac_Lib'}'`
23311                { echo "$as_me:$LINENO: result: $ac_res" >&5
23312 echo "${ECHO_T}$ac_res" >&6; }
23313 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23314
23315 cat >>confdefs.h <<\_ACEOF
23316 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23317 _ACEOF
23318
23319 fi
23320
23321   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23322 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23323 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23324 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23325   echo $ECHO_N "(cached) $ECHO_C" >&6
23326 else
23327   ac_check_lib_save_LIBS=$LIBS
23328 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23329 cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h.  */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h.  */
23335
23336 /* Override any GCC internal prototype to avoid an error.
23337    Use char because int might match the return type of a GCC
23338    builtin and then its argument prototype would still apply.  */
23339 #ifdef __cplusplus
23340 extern "C"
23341 #endif
23342 char gss_krb5_set_allowable_enctypes ();
23343 int
23344 main ()
23345 {
23346 return gss_krb5_set_allowable_enctypes ();
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } &&
23365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23366   { (case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_try") 2>&5
23372   ac_status=$?
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); }; } &&
23375          { ac_try='test -s conftest$ac_exeext'
23376   { (case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_try") 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   eval "$as_ac_Lib=yes"
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390         eval "$as_ac_Lib=no"
23391 fi
23392
23393 rm -f conftest.err conftest.$ac_objext \
23394       conftest$ac_exeext conftest.$ac_ext
23395 LIBS=$ac_check_lib_save_LIBS
23396 fi
23397 ac_res=`eval echo '${'$as_ac_Lib'}'`
23398                { echo "$as_me:$LINENO: result: $ac_res" >&5
23399 echo "${ECHO_T}$ac_res" >&6; }
23400 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23401
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23404 _ACEOF
23405
23406 fi
23407
23408   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23409 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23410 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23411 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23412   echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414   ac_check_lib_save_LIBS=$LIBS
23415 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422
23423 /* Override any GCC internal prototype to avoid an error.
23424    Use char because int might match the return type of a GCC
23425    builtin and then its argument prototype would still apply.  */
23426 #ifdef __cplusplus
23427 extern "C"
23428 #endif
23429 char gss_krb5_ccache_name ();
23430 int
23431 main ()
23432 {
23433 return gss_krb5_ccache_name ();
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (ac_try="$ac_link"
23440 case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_link") 2>conftest.er1
23446   ac_status=$?
23447   grep -v '^ *+' conftest.er1 >conftest.err
23448   rm -f conftest.er1
23449   cat conftest.err >&5
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } &&
23452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23453   { (case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_try") 2>&5
23459   ac_status=$?
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); }; } &&
23462          { ac_try='test -s conftest$ac_exeext'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   eval "$as_ac_Lib=yes"
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477         eval "$as_ac_Lib=no"
23478 fi
23479
23480 rm -f conftest.err conftest.$ac_objext \
23481       conftest$ac_exeext conftest.$ac_ext
23482 LIBS=$ac_check_lib_save_LIBS
23483 fi
23484 ac_res=`eval echo '${'$as_ac_Lib'}'`
23485                { echo "$as_me:$LINENO: result: $ac_res" >&5
23486 echo "${ECHO_T}$ac_res" >&6; }
23487 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23488
23489 cat >>confdefs.h <<\_ACEOF
23490 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23491 _ACEOF
23492
23493 fi
23494
23495
23496     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23497     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23498 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23499   fi
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23510 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23511 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23512   echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514   ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h.  */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h.  */
23522
23523 /* Override any GCC internal prototype to avoid an error.
23524    Use char because int might match the return type of a GCC
23525    builtin and then its argument prototype would still apply.  */
23526 #ifdef __cplusplus
23527 extern "C"
23528 #endif
23529 char authgss_create_default ();
23530 int
23531 main ()
23532 {
23533 return authgss_create_default ();
23534   ;
23535   return 0;
23536 }
23537 _ACEOF
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_link") 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } &&
23552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553   { (case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_try") 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; } &&
23562          { ac_try='test -s conftest$ac_exeext'
23563   { (case "(($ac_try" in
23564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565   *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568   (eval "$ac_try") 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572   ac_cv_lib_rpcsecgss_authgss_create_default=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577         ac_cv_lib_rpcsecgss_authgss_create_default=no
23578 fi
23579
23580 rm -f conftest.err conftest.$ac_objext \
23581       conftest$ac_exeext conftest.$ac_ext
23582 LIBS=$ac_check_lib_save_LIBS
23583 fi
23584 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
23585 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
23586 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
23587   librpcsecgss=1
23588 else
23589   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
23590 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
23591    { (exit 1); exit 1; }; }
23592 fi
23593
23594   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
23595 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
23596 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   ac_check_lib_save_LIBS=$LIBS
23600 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h.  */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h.  */
23607
23608 /* Override any GCC internal prototype to avoid an error.
23609    Use char because int might match the return type of a GCC
23610    builtin and then its argument prototype would still apply.  */
23611 #ifdef __cplusplus
23612 extern "C"
23613 #endif
23614 char authgss_set_debug_level ();
23615 int
23616 main ()
23617 {
23618 return authgss_set_debug_level ();
23619   ;
23620   return 0;
23621 }
23622 _ACEOF
23623 rm -f conftest.$ac_objext conftest$ac_exeext
23624 if { (ac_try="$ac_link"
23625 case "(($ac_try" in
23626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627   *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630   (eval "$ac_link") 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } &&
23637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23638   { (case "(($ac_try" in
23639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640   *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643   (eval "$ac_try") 2>&5
23644   ac_status=$?
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); }; } &&
23647          { ac_try='test -s conftest$ac_exeext'
23648   { (case "(($ac_try" in
23649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650   *) ac_try_echo=$ac_try;;
23651 esac
23652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653   (eval "$ac_try") 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); }; }; then
23657   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
23658 else
23659   echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23661
23662         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
23663 fi
23664
23665 rm -f conftest.err conftest.$ac_objext \
23666       conftest$ac_exeext conftest.$ac_ext
23667 LIBS=$ac_check_lib_save_LIBS
23668 fi
23669 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
23670 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
23671 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
23675 _ACEOF
23676
23677 fi
23678
23679
23680 fi
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
23706                  malloc.h memory.h netdb.h netinet/in.h paths.h \
23707                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
23708                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
23709                  syslog.h unistd.h com_err.h et/com_err.h \
23710                  ifaddrs.h
23711 do
23712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23714   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23717   echo $ECHO_N "(cached) $ECHO_C" >&6
23718 fi
23719 ac_res=`eval echo '${'$as_ac_Header'}'`
23720                { echo "$as_me:$LINENO: result: $ac_res" >&5
23721 echo "${ECHO_T}$ac_res" >&6; }
23722 else
23723   # Is the header compilable?
23724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23732 $ac_includes_default
23733 #include <$ac_header>
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739   *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742   (eval "$ac_compile") 2>conftest.er1
23743   ac_status=$?
23744   grep -v '^ *+' conftest.er1 >conftest.err
23745   rm -f conftest.er1
23746   cat conftest.err >&5
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); } &&
23749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23750   { (case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23755   (eval "$ac_try") 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; } &&
23759          { ac_try='test -s conftest.$ac_objext'
23760   { (case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_try") 2>&5
23766   ac_status=$?
23767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768   (exit $ac_status); }; }; then
23769   ac_header_compiler=yes
23770 else
23771   echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         ac_header_compiler=no
23775 fi
23776
23777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23779 echo "${ECHO_T}$ac_header_compiler" >&6; }
23780
23781 # Is the header present?
23782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 #include <$ac_header>
23791 _ACEOF
23792 if { (ac_try="$ac_cpp conftest.$ac_ext"
23793 case "(($ac_try" in
23794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795   *) ac_try_echo=$ac_try;;
23796 esac
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23799   ac_status=$?
23800   grep -v '^ *+' conftest.er1 >conftest.err
23801   rm -f conftest.er1
23802   cat conftest.err >&5
23803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804   (exit $ac_status); } >/dev/null; then
23805   if test -s conftest.err; then
23806     ac_cpp_err=$ac_c_preproc_warn_flag
23807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23808   else
23809     ac_cpp_err=
23810   fi
23811 else
23812   ac_cpp_err=yes
23813 fi
23814 if test -z "$ac_cpp_err"; then
23815   ac_header_preproc=yes
23816 else
23817   echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23819
23820   ac_header_preproc=no
23821 fi
23822
23823 rm -f conftest.err conftest.$ac_ext
23824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23825 echo "${ECHO_T}$ac_header_preproc" >&6; }
23826
23827 # So?  What about this header?
23828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23829   yes:no: )
23830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23834     ac_header_preproc=yes
23835     ;;
23836   no:yes:* )
23837     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23839     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23840 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23841     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23843     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23844 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23847     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23849     ( cat <<\_ASBOX
23850 ## ------------------------------- ##
23851 ## Report this to nfs@lists.sf.net ##
23852 ## ------------------------------- ##
23853 _ASBOX
23854      ) | sed "s/^/$as_me: WARNING:     /" >&2
23855     ;;
23856 esac
23857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23860   echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862   eval "$as_ac_Header=\$ac_header_preproc"
23863 fi
23864 ac_res=`eval echo '${'$as_ac_Header'}'`
23865                { echo "$as_me:$LINENO: result: $ac_res" >&5
23866 echo "${ECHO_T}$ac_res" >&6; }
23867
23868 fi
23869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23870   cat >>confdefs.h <<_ACEOF
23871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23872 _ACEOF
23873
23874 fi
23875
23876 done
23877
23878
23879 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23880 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23881 if test "${ac_cv_c_const+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   cat >conftest.$ac_ext <<_ACEOF
23885 /* confdefs.h.  */
23886 _ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h.  */
23890
23891 int
23892 main ()
23893 {
23894 /* FIXME: Include the comments suggested by Paul. */
23895 #ifndef __cplusplus
23896   /* Ultrix mips cc rejects this.  */
23897   typedef int charset[2];
23898   const charset x;
23899   /* SunOS 4.1.1 cc rejects this.  */
23900   char const *const *ccp;
23901   char **p;
23902   /* NEC SVR4.0.2 mips cc rejects this.  */
23903   struct point {int x, y;};
23904   static struct point const zero = {0,0};
23905   /* AIX XL C 1.02.0.0 rejects this.
23906      It does not let you subtract one const X* pointer from another in
23907      an arm of an if-expression whose if-part is not a constant
23908      expression */
23909   const char *g = "string";
23910   ccp = &g + (g ? g-g : 0);
23911   /* HPUX 7.0 cc rejects these. */
23912   ++ccp;
23913   p = (char**) ccp;
23914   ccp = (char const *const *) p;
23915   { /* SCO 3.2v4 cc rejects this.  */
23916     char *t;
23917     char const *s = 0 ? (char *) 0 : (char const *) 0;
23918
23919     *t++ = 0;
23920     if (s) return 0;
23921   }
23922   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23923     int x[] = {25, 17};
23924     const int *foo = &x[0];
23925     ++foo;
23926   }
23927   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23928     typedef const int *iptr;
23929     iptr p = 0;
23930     ++p;
23931   }
23932   { /* AIX XL C 1.02.0.0 rejects this saying
23933        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23934     struct s { int j; const int *ap[3]; };
23935     struct s *b; b->j = 5;
23936   }
23937   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23938     const int foo = 10;
23939     if (!foo) return 0;
23940   }
23941   return !x[0] && !zero.x;
23942 #endif
23943
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 rm -f conftest.$ac_objext
23949 if { (ac_try="$ac_compile"
23950 case "(($ac_try" in
23951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952   *) ac_try_echo=$ac_try;;
23953 esac
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955   (eval "$ac_compile") 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } &&
23962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23963   { (case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_try") 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); }; } &&
23972          { ac_try='test -s conftest.$ac_objext'
23973   { (case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_try") 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; }; then
23982   ac_cv_c_const=yes
23983 else
23984   echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987         ac_cv_c_const=no
23988 fi
23989
23990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23991 fi
23992 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23993 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23994 if test $ac_cv_c_const = no; then
23995
23996 cat >>confdefs.h <<\_ACEOF
23997 #define const
23998 _ACEOF
23999
24000 fi
24001
24002 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24003 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24004 if test "${ac_cv_type_uid_t+set}" = set; then
24005   echo $ECHO_N "(cached) $ECHO_C" >&6
24006 else
24007   cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h.  */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h.  */
24013 #include <sys/types.h>
24014
24015 _ACEOF
24016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24017   $EGREP "uid_t" >/dev/null 2>&1; then
24018   ac_cv_type_uid_t=yes
24019 else
24020   ac_cv_type_uid_t=no
24021 fi
24022 rm -f conftest*
24023
24024 fi
24025 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24026 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24027 if test $ac_cv_type_uid_t = no; then
24028
24029 cat >>confdefs.h <<\_ACEOF
24030 #define uid_t int
24031 _ACEOF
24032
24033
24034 cat >>confdefs.h <<\_ACEOF
24035 #define gid_t int
24036 _ACEOF
24037
24038 fi
24039
24040 { echo "$as_me:$LINENO: checking for inline" >&5
24041 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24042 if test "${ac_cv_c_inline+set}" = set; then
24043   echo $ECHO_N "(cached) $ECHO_C" >&6
24044 else
24045   ac_cv_c_inline=no
24046 for ac_kw in inline __inline__ __inline; do
24047   cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h.  */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h.  */
24053 #ifndef __cplusplus
24054 typedef int foo_t;
24055 static $ac_kw foo_t static_foo () {return 0; }
24056 $ac_kw foo_t foo () {return 0; }
24057 #endif
24058
24059 _ACEOF
24060 rm -f conftest.$ac_objext
24061 if { (ac_try="$ac_compile"
24062 case "(($ac_try" in
24063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064   *) ac_try_echo=$ac_try;;
24065 esac
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067   (eval "$ac_compile") 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } &&
24074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24075   { (case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080   (eval "$ac_try") 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; } &&
24084          { ac_try='test -s conftest.$ac_objext'
24085   { (case "(($ac_try" in
24086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087   *) ac_try_echo=$ac_try;;
24088 esac
24089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24090   (eval "$ac_try") 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; }; then
24094   ac_cv_c_inline=$ac_kw
24095 else
24096   echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24098
24099
24100 fi
24101
24102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24103   test "$ac_cv_c_inline" != no && break
24104 done
24105
24106 fi
24107 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24108 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24109
24110
24111 case $ac_cv_c_inline in
24112   inline | yes) ;;
24113   *)
24114     case $ac_cv_c_inline in
24115       no) ac_val=;;
24116       *) ac_val=$ac_cv_c_inline;;
24117     esac
24118     cat >>confdefs.h <<_ACEOF
24119 #ifndef __cplusplus
24120 #define inline $ac_val
24121 #endif
24122 _ACEOF
24123     ;;
24124 esac
24125
24126 { echo "$as_me:$LINENO: checking for off_t" >&5
24127 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24128 if test "${ac_cv_type_off_t+set}" = set; then
24129   echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131   cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137 $ac_includes_default
24138 typedef off_t ac__type_new_;
24139 int
24140 main ()
24141 {
24142 if ((ac__type_new_ *) 0)
24143   return 0;
24144 if (sizeof (ac__type_new_))
24145   return 0;
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154   *) ac_try_echo=$ac_try;;
24155 esac
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157   (eval "$ac_compile") 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } &&
24164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24165   { (case "(($ac_try" in
24166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167   *) ac_try_echo=$ac_try;;
24168 esac
24169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170   (eval "$ac_try") 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; } &&
24174          { ac_try='test -s conftest.$ac_objext'
24175   { (case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_try") 2>&5
24181   ac_status=$?
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184   ac_cv_type_off_t=yes
24185 else
24186   echo "$as_me: failed program was:" >&5
24187 sed 's/^/| /' conftest.$ac_ext >&5
24188
24189         ac_cv_type_off_t=no
24190 fi
24191
24192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24193 fi
24194 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24195 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24196 if test $ac_cv_type_off_t = yes; then
24197   :
24198 else
24199
24200 cat >>confdefs.h <<_ACEOF
24201 #define off_t long int
24202 _ACEOF
24203
24204 fi
24205
24206 { echo "$as_me:$LINENO: checking for pid_t" >&5
24207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24208 if test "${ac_cv_type_pid_t+set}" = set; then
24209   echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24211   cat >conftest.$ac_ext <<_ACEOF
24212 /* confdefs.h.  */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h.  */
24217 $ac_includes_default
24218 typedef pid_t ac__type_new_;
24219 int
24220 main ()
24221 {
24222 if ((ac__type_new_ *) 0)
24223   return 0;
24224 if (sizeof (ac__type_new_))
24225   return 0;
24226   ;
24227   return 0;
24228 }
24229 _ACEOF
24230 rm -f conftest.$ac_objext
24231 if { (ac_try="$ac_compile"
24232 case "(($ac_try" in
24233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234   *) ac_try_echo=$ac_try;;
24235 esac
24236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24237   (eval "$ac_compile") 2>conftest.er1
24238   ac_status=$?
24239   grep -v '^ *+' conftest.er1 >conftest.err
24240   rm -f conftest.er1
24241   cat conftest.err >&5
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); } &&
24244          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24245   { (case "(($ac_try" in
24246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247   *) ac_try_echo=$ac_try;;
24248 esac
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250   (eval "$ac_try") 2>&5
24251   ac_status=$?
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); }; } &&
24254          { ac_try='test -s conftest.$ac_objext'
24255   { (case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_try") 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); }; }; then
24264   ac_cv_type_pid_t=yes
24265 else
24266   echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24268
24269         ac_cv_type_pid_t=no
24270 fi
24271
24272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24273 fi
24274 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24275 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24276 if test $ac_cv_type_pid_t = yes; then
24277   :
24278 else
24279
24280 cat >>confdefs.h <<_ACEOF
24281 #define pid_t int
24282 _ACEOF
24283
24284 fi
24285
24286 { echo "$as_me:$LINENO: checking for size_t" >&5
24287 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24288 if test "${ac_cv_type_size_t+set}" = set; then
24289   echo $ECHO_N "(cached) $ECHO_C" >&6
24290 else
24291   cat >conftest.$ac_ext <<_ACEOF
24292 /* confdefs.h.  */
24293 _ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h.  */
24297 $ac_includes_default
24298 typedef size_t ac__type_new_;
24299 int
24300 main ()
24301 {
24302 if ((ac__type_new_ *) 0)
24303   return 0;
24304 if (sizeof (ac__type_new_))
24305   return 0;
24306   ;
24307   return 0;
24308 }
24309 _ACEOF
24310 rm -f conftest.$ac_objext
24311 if { (ac_try="$ac_compile"
24312 case "(($ac_try" in
24313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24314   *) ac_try_echo=$ac_try;;
24315 esac
24316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24317   (eval "$ac_compile") 2>conftest.er1
24318   ac_status=$?
24319   grep -v '^ *+' conftest.er1 >conftest.err
24320   rm -f conftest.er1
24321   cat conftest.err >&5
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); } &&
24324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24325   { (case "(($ac_try" in
24326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327   *) ac_try_echo=$ac_try;;
24328 esac
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330   (eval "$ac_try") 2>&5
24331   ac_status=$?
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); }; } &&
24334          { ac_try='test -s conftest.$ac_objext'
24335   { (case "(($ac_try" in
24336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337   *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340   (eval "$ac_try") 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; }; then
24344   ac_cv_type_size_t=yes
24345 else
24346   echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349         ac_cv_type_size_t=no
24350 fi
24351
24352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24353 fi
24354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24356 if test $ac_cv_type_size_t = yes; then
24357   :
24358 else
24359
24360 cat >>confdefs.h <<_ACEOF
24361 #define size_t unsigned int
24362 _ACEOF
24363
24364 fi
24365
24366 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24367 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24368 if test "${ac_cv_header_time+set}" = set; then
24369   echo $ECHO_N "(cached) $ECHO_C" >&6
24370 else
24371   cat >conftest.$ac_ext <<_ACEOF
24372 /* confdefs.h.  */
24373 _ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h.  */
24377 #include <sys/types.h>
24378 #include <sys/time.h>
24379 #include <time.h>
24380
24381 int
24382 main ()
24383 {
24384 if ((struct tm *) 0)
24385 return 0;
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest.$ac_objext
24391 if { (ac_try="$ac_compile"
24392 case "(($ac_try" in
24393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394   *) ac_try_echo=$ac_try;;
24395 esac
24396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24397   (eval "$ac_compile") 2>conftest.er1
24398   ac_status=$?
24399   grep -v '^ *+' conftest.er1 >conftest.err
24400   rm -f conftest.er1
24401   cat conftest.err >&5
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); } &&
24404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24405   { (case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_try") 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; } &&
24414          { ac_try='test -s conftest.$ac_objext'
24415   { (case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420   (eval "$ac_try") 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; }; then
24424   ac_cv_header_time=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ac_cv_header_time=no
24430 fi
24431
24432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24433 fi
24434 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24435 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24436 if test $ac_cv_header_time = yes; then
24437
24438 cat >>confdefs.h <<\_ACEOF
24439 #define TIME_WITH_SYS_TIME 1
24440 _ACEOF
24441
24442 fi
24443
24444 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24445 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_struct_tm+set}" = set; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449   cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 #include <sys/types.h>
24456 #include <time.h>
24457
24458 int
24459 main ()
24460 {
24461 struct tm *tp; tp->tm_sec;
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470   *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473   (eval "$ac_compile") 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } &&
24480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481   { (case "(($ac_try" in
24482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483   *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486   (eval "$ac_try") 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; } &&
24490          { ac_try='test -s conftest.$ac_objext'
24491   { (case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_try") 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; }; then
24500   ac_cv_struct_tm=time.h
24501 else
24502   echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505         ac_cv_struct_tm=sys/time.h
24506 fi
24507
24508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24509 fi
24510 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24511 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24512 if test $ac_cv_struct_tm = sys/time.h; then
24513
24514 cat >>confdefs.h <<\_ACEOF
24515 #define TM_IN_SYS_TIME 1
24516 _ACEOF
24517
24518 fi
24519
24520
24521 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24522 # for constant arguments.  Useless!
24523 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24524 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24525 if test "${ac_cv_working_alloca_h+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <alloca.h>
24535 int
24536 main ()
24537 {
24538 char *p = (char *) alloca (2 * sizeof (int));
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550   (eval "$ac_link") 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } &&
24557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24558   { (case "(($ac_try" in
24559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560   *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563   (eval "$ac_try") 2>&5
24564   ac_status=$?
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); }; } &&
24567          { ac_try='test -s conftest$ac_exeext'
24568   { (case "(($ac_try" in
24569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570   *) ac_try_echo=$ac_try;;
24571 esac
24572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573   (eval "$ac_try") 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   ac_cv_working_alloca_h=yes
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582         ac_cv_working_alloca_h=no
24583 fi
24584
24585 rm -f conftest.err conftest.$ac_objext \
24586       conftest$ac_exeext conftest.$ac_ext
24587 fi
24588 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24589 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24590 if test $ac_cv_working_alloca_h = yes; then
24591
24592 cat >>confdefs.h <<\_ACEOF
24593 #define HAVE_ALLOCA_H 1
24594 _ACEOF
24595
24596 fi
24597
24598 { echo "$as_me:$LINENO: checking for alloca" >&5
24599 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24600 if test "${ac_cv_func_alloca_works+set}" = set; then
24601   echo $ECHO_N "(cached) $ECHO_C" >&6
24602 else
24603   cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 #ifdef __GNUC__
24610 # define alloca __builtin_alloca
24611 #else
24612 # ifdef _MSC_VER
24613 #  include <malloc.h>
24614 #  define alloca _alloca
24615 # else
24616 #  if HAVE_ALLOCA_H
24617 #   include <alloca.h>
24618 #  else
24619 #   ifdef _AIX
24620  #pragma alloca
24621 #   else
24622 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24623 char *alloca ();
24624 #    endif
24625 #   endif
24626 #  endif
24627 # endif
24628 #endif
24629
24630 int
24631 main ()
24632 {
24633 char *p = (char *) alloca (1);
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_link") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } &&
24652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24653   { (case "(($ac_try" in
24654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655   *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658   (eval "$ac_try") 2>&5
24659   ac_status=$?
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); }; } &&
24662          { ac_try='test -s conftest$ac_exeext'
24663   { (case "(($ac_try" in
24664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24665   *) ac_try_echo=$ac_try;;
24666 esac
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668   (eval "$ac_try") 2>&5
24669   ac_status=$?
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); }; }; then
24672   ac_cv_func_alloca_works=yes
24673 else
24674   echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24676
24677         ac_cv_func_alloca_works=no
24678 fi
24679
24680 rm -f conftest.err conftest.$ac_objext \
24681       conftest$ac_exeext conftest.$ac_ext
24682 fi
24683 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24684 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24685
24686 if test $ac_cv_func_alloca_works = yes; then
24687
24688 cat >>confdefs.h <<\_ACEOF
24689 #define HAVE_ALLOCA 1
24690 _ACEOF
24691
24692 else
24693   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24694 # that cause trouble.  Some versions do not even contain alloca or
24695 # contain a buggy version.  If you still want to use their alloca,
24696 # use ar to extract alloca.o from them instead of compiling alloca.c.
24697
24698 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24699
24700 cat >>confdefs.h <<\_ACEOF
24701 #define C_ALLOCA 1
24702 _ACEOF
24703
24704
24705 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24706 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24707 if test "${ac_cv_os_cray+set}" = set; then
24708   echo $ECHO_N "(cached) $ECHO_C" >&6
24709 else
24710   cat >conftest.$ac_ext <<_ACEOF
24711 /* confdefs.h.  */
24712 _ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h.  */
24716 #if defined CRAY && ! defined CRAY2
24717 webecray
24718 #else
24719 wenotbecray
24720 #endif
24721
24722 _ACEOF
24723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24724   $EGREP "webecray" >/dev/null 2>&1; then
24725   ac_cv_os_cray=yes
24726 else
24727   ac_cv_os_cray=no
24728 fi
24729 rm -f conftest*
24730
24731 fi
24732 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24733 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24734 if test $ac_cv_os_cray = yes; then
24735   for ac_func in _getb67 GETB67 getb67; do
24736     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742   cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h.  */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h.  */
24748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24750 #define $ac_func innocuous_$ac_func
24751
24752 /* System header to define __stub macros and hopefully few prototypes,
24753     which can conflict with char $ac_func (); below.
24754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24755     <limits.h> exists even on freestanding compilers.  */
24756
24757 #ifdef __STDC__
24758 # include <limits.h>
24759 #else
24760 # include <assert.h>
24761 #endif
24762
24763 #undef $ac_func
24764
24765 /* Override any GCC internal prototype to avoid an error.
24766    Use char because int might match the return type of a GCC
24767    builtin and then its argument prototype would still apply.  */
24768 #ifdef __cplusplus
24769 extern "C"
24770 #endif
24771 char $ac_func ();
24772 /* The GNU C library defines this for functions which it implements
24773     to always fail with ENOSYS.  Some functions are actually named
24774     something starting with __ and the normal name is an alias.  */
24775 #if defined __stub_$ac_func || defined __stub___$ac_func
24776 choke me
24777 #endif
24778
24779 int
24780 main ()
24781 {
24782 return $ac_func ();
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_link") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } &&
24801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24802   { (case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24807   (eval "$ac_try") 2>&5
24808   ac_status=$?
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); }; } &&
24811          { ac_try='test -s conftest$ac_exeext'
24812   { (case "(($ac_try" in
24813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814   *) ac_try_echo=$ac_try;;
24815 esac
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817   (eval "$ac_try") 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; }; then
24821   eval "$as_ac_var=yes"
24822 else
24823   echo "$as_me: failed program was:" >&5
24824 sed 's/^/| /' conftest.$ac_ext >&5
24825
24826         eval "$as_ac_var=no"
24827 fi
24828
24829 rm -f conftest.err conftest.$ac_objext \
24830       conftest$ac_exeext conftest.$ac_ext
24831 fi
24832 ac_res=`eval echo '${'$as_ac_var'}'`
24833                { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 if test `eval echo '${'$as_ac_var'}'` = yes; then
24836
24837 cat >>confdefs.h <<_ACEOF
24838 #define CRAY_STACKSEG_END $ac_func
24839 _ACEOF
24840
24841     break
24842 fi
24843
24844   done
24845 fi
24846
24847 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24848 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24849 if test "${ac_cv_c_stack_direction+set}" = set; then
24850   echo $ECHO_N "(cached) $ECHO_C" >&6
24851 else
24852   if test "$cross_compiling" = yes; then
24853   ac_cv_c_stack_direction=0
24854 else
24855   cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861 $ac_includes_default
24862 int
24863 find_stack_direction ()
24864 {
24865   static char *addr = 0;
24866   auto char dummy;
24867   if (addr == 0)
24868     {
24869       addr = &dummy;
24870       return find_stack_direction ();
24871     }
24872   else
24873     return (&dummy > addr) ? 1 : -1;
24874 }
24875
24876 int
24877 main ()
24878 {
24879   return find_stack_direction () < 0;
24880 }
24881 _ACEOF
24882 rm -f conftest$ac_exeext
24883 if { (ac_try="$ac_link"
24884 case "(($ac_try" in
24885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886   *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889   (eval "$ac_link") 2>&5
24890   ac_status=$?
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24893   { (case "(($ac_try" in
24894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895   *) ac_try_echo=$ac_try;;
24896 esac
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898   (eval "$ac_try") 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_cv_c_stack_direction=1
24903 else
24904   echo "$as_me: program exited with status $ac_status" >&5
24905 echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908 ( exit $ac_status )
24909 ac_cv_c_stack_direction=-1
24910 fi
24911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24912 fi
24913
24914
24915 fi
24916 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24917 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24918
24919 cat >>confdefs.h <<_ACEOF
24920 #define STACK_DIRECTION $ac_cv_c_stack_direction
24921 _ACEOF
24922
24923
24924 fi
24925
24926
24927
24928
24929
24930
24931 ac_header_dirent=no
24932 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24933   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24934 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24935 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
24936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24937   echo $ECHO_N "(cached) $ECHO_C" >&6
24938 else
24939   cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945 #include <sys/types.h>
24946 #include <$ac_hdr>
24947
24948 int
24949 main ()
24950 {
24951 if ((DIR *) 0)
24952 return 0;
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961   *) ac_try_echo=$ac_try;;
24962 esac
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964   (eval "$ac_compile") 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } &&
24971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24972   { (case "(($ac_try" in
24973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974   *) ac_try_echo=$ac_try;;
24975 esac
24976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24977   (eval "$ac_try") 2>&5
24978   ac_status=$?
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); }; } &&
24981          { ac_try='test -s conftest.$ac_objext'
24982   { (case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_try") 2>&5
24988   ac_status=$?
24989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990   (exit $ac_status); }; }; then
24991   eval "$as_ac_Header=yes"
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996         eval "$as_ac_Header=no"
24997 fi
24998
24999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25000 fi
25001 ac_res=`eval echo '${'$as_ac_Header'}'`
25002                { echo "$as_me:$LINENO: result: $ac_res" >&5
25003 echo "${ECHO_T}$ac_res" >&6; }
25004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25005   cat >>confdefs.h <<_ACEOF
25006 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25007 _ACEOF
25008
25009 ac_header_dirent=$ac_hdr; break
25010 fi
25011
25012 done
25013 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25014 if test $ac_header_dirent = dirent.h; then
25015   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25016 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25017 if test "${ac_cv_search_opendir+set}" = set; then
25018   echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020   ac_func_search_save_LIBS=$LIBS
25021 cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h.  */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h.  */
25027
25028 /* Override any GCC internal prototype to avoid an error.
25029    Use char because int might match the return type of a GCC
25030    builtin and then its argument prototype would still apply.  */
25031 #ifdef __cplusplus
25032 extern "C"
25033 #endif
25034 char opendir ();
25035 int
25036 main ()
25037 {
25038 return opendir ();
25039   ;
25040   return 0;
25041 }
25042 _ACEOF
25043 for ac_lib in '' dir; do
25044   if test -z "$ac_lib"; then
25045     ac_res="none required"
25046   else
25047     ac_res=-l$ac_lib
25048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25049   fi
25050   rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (ac_try="$ac_link"
25052 case "(($ac_try" in
25053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054   *) ac_try_echo=$ac_try;;
25055 esac
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057   (eval "$ac_link") 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } &&
25064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25065   { (case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_try") 2>&5
25071   ac_status=$?
25072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073   (exit $ac_status); }; } &&
25074          { ac_try='test -s conftest$ac_exeext'
25075   { (case "(($ac_try" in
25076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077   *) ac_try_echo=$ac_try;;
25078 esac
25079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25080   (eval "$ac_try") 2>&5
25081   ac_status=$?
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); }; }; then
25084   ac_cv_search_opendir=$ac_res
25085 else
25086   echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089
25090 fi
25091
25092 rm -f conftest.err conftest.$ac_objext \
25093       conftest$ac_exeext
25094   if test "${ac_cv_search_opendir+set}" = set; then
25095   break
25096 fi
25097 done
25098 if test "${ac_cv_search_opendir+set}" = set; then
25099   :
25100 else
25101   ac_cv_search_opendir=no
25102 fi
25103 rm conftest.$ac_ext
25104 LIBS=$ac_func_search_save_LIBS
25105 fi
25106 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25107 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25108 ac_res=$ac_cv_search_opendir
25109 if test "$ac_res" != no; then
25110   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25111
25112 fi
25113
25114 else
25115   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25117 if test "${ac_cv_search_opendir+set}" = set; then
25118   echo $ECHO_N "(cached) $ECHO_C" >&6
25119 else
25120   ac_func_search_save_LIBS=$LIBS
25121 cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h.  */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h.  */
25127
25128 /* Override any GCC internal prototype to avoid an error.
25129    Use char because int might match the return type of a GCC
25130    builtin and then its argument prototype would still apply.  */
25131 #ifdef __cplusplus
25132 extern "C"
25133 #endif
25134 char opendir ();
25135 int
25136 main ()
25137 {
25138 return opendir ();
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 for ac_lib in '' x; do
25144   if test -z "$ac_lib"; then
25145     ac_res="none required"
25146   else
25147     ac_res=-l$ac_lib
25148     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25149   fi
25150   rm -f conftest.$ac_objext conftest$ac_exeext
25151 if { (ac_try="$ac_link"
25152 case "(($ac_try" in
25153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154   *) ac_try_echo=$ac_try;;
25155 esac
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157   (eval "$ac_link") 2>conftest.er1
25158   ac_status=$?
25159   grep -v '^ *+' conftest.er1 >conftest.err
25160   rm -f conftest.er1
25161   cat conftest.err >&5
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); } &&
25164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25165   { (case "(($ac_try" in
25166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167   *) ac_try_echo=$ac_try;;
25168 esac
25169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25170   (eval "$ac_try") 2>&5
25171   ac_status=$?
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); }; } &&
25174          { ac_try='test -s conftest$ac_exeext'
25175   { (case "(($ac_try" in
25176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177   *) ac_try_echo=$ac_try;;
25178 esac
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180   (eval "$ac_try") 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; }; then
25184   ac_cv_search_opendir=$ac_res
25185 else
25186   echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25188
25189
25190 fi
25191
25192 rm -f conftest.err conftest.$ac_objext \
25193       conftest$ac_exeext
25194   if test "${ac_cv_search_opendir+set}" = set; then
25195   break
25196 fi
25197 done
25198 if test "${ac_cv_search_opendir+set}" = set; then
25199   :
25200 else
25201   ac_cv_search_opendir=no
25202 fi
25203 rm conftest.$ac_ext
25204 LIBS=$ac_func_search_save_LIBS
25205 fi
25206 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25207 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25208 ac_res=$ac_cv_search_opendir
25209 if test "$ac_res" != no; then
25210   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25211
25212 fi
25213
25214 fi
25215
25216 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25217 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25218 if test "${ac_cv_func_closedir_void+set}" = set; then
25219   echo $ECHO_N "(cached) $ECHO_C" >&6
25220 else
25221   if test "$cross_compiling" = yes; then
25222   ac_cv_func_closedir_void=yes
25223 else
25224   cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h.  */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h.  */
25230 $ac_includes_default
25231 #include <$ac_header_dirent>
25232 #ifndef __cplusplus
25233 int closedir ();
25234 #endif
25235
25236 int
25237 main ()
25238 {
25239 return closedir (opendir (".")) != 0;
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest$ac_exeext
25245 if { (ac_try="$ac_link"
25246 case "(($ac_try" in
25247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248   *) ac_try_echo=$ac_try;;
25249 esac
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251   (eval "$ac_link") 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25255   { (case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_try") 2>&5
25261   ac_status=$?
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); }; }; then
25264   ac_cv_func_closedir_void=no
25265 else
25266   echo "$as_me: program exited with status $ac_status" >&5
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270 ( exit $ac_status )
25271 ac_cv_func_closedir_void=yes
25272 fi
25273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25274 fi
25275
25276
25277 fi
25278 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25279 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25280 if test $ac_cv_func_closedir_void = yes; then
25281
25282 cat >>confdefs.h <<\_ACEOF
25283 #define CLOSEDIR_VOID 1
25284 _ACEOF
25285
25286 fi
25287
25288 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25289 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25290 if test "${ac_cv_lib_error_at_line+set}" = set; then
25291   echo $ECHO_N "(cached) $ECHO_C" >&6
25292 else
25293   cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299 $ac_includes_default
25300 int
25301 main ()
25302 {
25303 error_at_line (0, 0, "", 0, "");
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (ac_try="$ac_link"
25310 case "(($ac_try" in
25311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312   *) ac_try_echo=$ac_try;;
25313 esac
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315   (eval "$ac_link") 2>conftest.er1
25316   ac_status=$?
25317   grep -v '^ *+' conftest.er1 >conftest.err
25318   rm -f conftest.er1
25319   cat conftest.err >&5
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); } &&
25322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25323   { (case "(($ac_try" in
25324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325   *) ac_try_echo=$ac_try;;
25326 esac
25327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25328   (eval "$ac_try") 2>&5
25329   ac_status=$?
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); }; } &&
25332          { ac_try='test -s conftest$ac_exeext'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_try") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; }; then
25342   ac_cv_lib_error_at_line=yes
25343 else
25344   echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25346
25347         ac_cv_lib_error_at_line=no
25348 fi
25349
25350 rm -f conftest.err conftest.$ac_objext \
25351       conftest$ac_exeext conftest.$ac_ext
25352 fi
25353 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25354 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25355 if test $ac_cv_lib_error_at_line = no; then
25356   case " $LIBOBJS " in
25357   *" error.$ac_objext "* ) ;;
25358   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25359  ;;
25360 esac
25361
25362 fi
25363
25364
25365 for ac_header in vfork.h
25366 do
25367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372   echo $ECHO_N "(cached) $ECHO_C" >&6
25373 fi
25374 ac_res=`eval echo '${'$as_ac_Header'}'`
25375                { echo "$as_me:$LINENO: result: $ac_res" >&5
25376 echo "${ECHO_T}$ac_res" >&6; }
25377 else
25378   # Is the header compilable?
25379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387 $ac_includes_default
25388 #include <$ac_header>
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394   *) ac_try_echo=$ac_try;;
25395 esac
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397   (eval "$ac_compile") 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } &&
25404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25405   { (case "(($ac_try" in
25406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407   *) ac_try_echo=$ac_try;;
25408 esac
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410   (eval "$ac_try") 2>&5
25411   ac_status=$?
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; } &&
25414          { ac_try='test -s conftest.$ac_objext'
25415   { (case "(($ac_try" in
25416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417   *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420   (eval "$ac_try") 2>&5
25421   ac_status=$?
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); }; }; then
25424   ac_header_compiler=yes
25425 else
25426   echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25428
25429         ac_header_compiler=no
25430 fi
25431
25432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25434 echo "${ECHO_T}$ac_header_compiler" >&6; }
25435
25436 # Is the header present?
25437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25439 cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h.  */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h.  */
25445 #include <$ac_header>
25446 _ACEOF
25447 if { (ac_try="$ac_cpp conftest.$ac_ext"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } >/dev/null; then
25460   if test -s conftest.err; then
25461     ac_cpp_err=$ac_c_preproc_warn_flag
25462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25463   else
25464     ac_cpp_err=
25465   fi
25466 else
25467   ac_cpp_err=yes
25468 fi
25469 if test -z "$ac_cpp_err"; then
25470   ac_header_preproc=yes
25471 else
25472   echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25474
25475   ac_header_preproc=no
25476 fi
25477
25478 rm -f conftest.err conftest.$ac_ext
25479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25480 echo "${ECHO_T}$ac_header_preproc" >&6; }
25481
25482 # So?  What about this header?
25483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25484   yes:no: )
25485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25489     ac_header_preproc=yes
25490     ;;
25491   no:yes:* )
25492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25504     ( cat <<\_ASBOX
25505 ## ------------------------------- ##
25506 ## Report this to nfs@lists.sf.net ##
25507 ## ------------------------------- ##
25508 _ASBOX
25509      ) | sed "s/^/$as_me: WARNING:     /" >&2
25510     ;;
25511 esac
25512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25515   echo $ECHO_N "(cached) $ECHO_C" >&6
25516 else
25517   eval "$as_ac_Header=\$ac_header_preproc"
25518 fi
25519 ac_res=`eval echo '${'$as_ac_Header'}'`
25520                { echo "$as_me:$LINENO: result: $ac_res" >&5
25521 echo "${ECHO_T}$ac_res" >&6; }
25522
25523 fi
25524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25525   cat >>confdefs.h <<_ACEOF
25526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25527 _ACEOF
25528
25529 fi
25530
25531 done
25532
25533
25534
25535 for ac_func in fork vfork
25536 do
25537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25551 #define $ac_func innocuous_$ac_func
25552
25553 /* System header to define __stub macros and hopefully few prototypes,
25554     which can conflict with char $ac_func (); below.
25555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25556     <limits.h> exists even on freestanding compilers.  */
25557
25558 #ifdef __STDC__
25559 # include <limits.h>
25560 #else
25561 # include <assert.h>
25562 #endif
25563
25564 #undef $ac_func
25565
25566 /* Override any GCC internal prototype to avoid an error.
25567    Use char because int might match the return type of a GCC
25568    builtin and then its argument prototype would still apply.  */
25569 #ifdef __cplusplus
25570 extern "C"
25571 #endif
25572 char $ac_func ();
25573 /* The GNU C library defines this for functions which it implements
25574     to always fail with ENOSYS.  Some functions are actually named
25575     something starting with __ and the normal name is an alias.  */
25576 #if defined __stub_$ac_func || defined __stub___$ac_func
25577 choke me
25578 #endif
25579
25580 int
25581 main ()
25582 {
25583 return $ac_func ();
25584   ;
25585   return 0;
25586 }
25587 _ACEOF
25588 rm -f conftest.$ac_objext conftest$ac_exeext
25589 if { (ac_try="$ac_link"
25590 case "(($ac_try" in
25591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592   *) ac_try_echo=$ac_try;;
25593 esac
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595   (eval "$ac_link") 2>conftest.er1
25596   ac_status=$?
25597   grep -v '^ *+' conftest.er1 >conftest.err
25598   rm -f conftest.er1
25599   cat conftest.err >&5
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } &&
25602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25603   { (case "(($ac_try" in
25604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605   *) ac_try_echo=$ac_try;;
25606 esac
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608   (eval "$ac_try") 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); }; } &&
25612          { ac_try='test -s conftest$ac_exeext'
25613   { (case "(($ac_try" in
25614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615   *) ac_try_echo=$ac_try;;
25616 esac
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618   (eval "$ac_try") 2>&5
25619   ac_status=$?
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); }; }; then
25622   eval "$as_ac_var=yes"
25623 else
25624   echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25626
25627         eval "$as_ac_var=no"
25628 fi
25629
25630 rm -f conftest.err conftest.$ac_objext \
25631       conftest$ac_exeext conftest.$ac_ext
25632 fi
25633 ac_res=`eval echo '${'$as_ac_var'}'`
25634                { echo "$as_me:$LINENO: result: $ac_res" >&5
25635 echo "${ECHO_T}$ac_res" >&6; }
25636 if test `eval echo '${'$as_ac_var'}'` = yes; then
25637   cat >>confdefs.h <<_ACEOF
25638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25639 _ACEOF
25640
25641 fi
25642 done
25643
25644 if test "x$ac_cv_func_fork" = xyes; then
25645   { echo "$as_me:$LINENO: checking for working fork" >&5
25646 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25647 if test "${ac_cv_func_fork_works+set}" = set; then
25648   echo $ECHO_N "(cached) $ECHO_C" >&6
25649 else
25650   if test "$cross_compiling" = yes; then
25651   ac_cv_func_fork_works=cross
25652 else
25653   cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659 $ac_includes_default
25660 int
25661 main ()
25662 {
25663
25664           /* By Ruediger Kuhlmann. */
25665           return fork () < 0;
25666
25667   ;
25668   return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest$ac_exeext
25672 if { (ac_try="$ac_link"
25673 case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678   (eval "$ac_link") 2>&5
25679   ac_status=$?
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25682   { (case "(($ac_try" in
25683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25684   *) ac_try_echo=$ac_try;;
25685 esac
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25687   (eval "$ac_try") 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; }; then
25691   ac_cv_func_fork_works=yes
25692 else
25693   echo "$as_me: program exited with status $ac_status" >&5
25694 echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697 ( exit $ac_status )
25698 ac_cv_func_fork_works=no
25699 fi
25700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25701 fi
25702
25703
25704 fi
25705 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25706 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25707
25708 else
25709   ac_cv_func_fork_works=$ac_cv_func_fork
25710 fi
25711 if test "x$ac_cv_func_fork_works" = xcross; then
25712   case $host in
25713     *-*-amigaos* | *-*-msdosdjgpp*)
25714       # Override, as these systems have only a dummy fork() stub
25715       ac_cv_func_fork_works=no
25716       ;;
25717     *)
25718       ac_cv_func_fork_works=yes
25719       ;;
25720   esac
25721   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25722 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25723 fi
25724 ac_cv_func_vfork_works=$ac_cv_func_vfork
25725 if test "x$ac_cv_func_vfork" = xyes; then
25726   { echo "$as_me:$LINENO: checking for working vfork" >&5
25727 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25728 if test "${ac_cv_func_vfork_works+set}" = set; then
25729   echo $ECHO_N "(cached) $ECHO_C" >&6
25730 else
25731   if test "$cross_compiling" = yes; then
25732   ac_cv_func_vfork_works=cross
25733 else
25734   cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h.  */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h.  */
25740 /* Thanks to Paul Eggert for this test.  */
25741 $ac_includes_default
25742 #include <sys/wait.h>
25743 #if HAVE_VFORK_H
25744 # include <vfork.h>
25745 #endif
25746 /* On some sparc systems, changes by the child to local and incoming
25747    argument registers are propagated back to the parent.  The compiler
25748    is told about this with #include <vfork.h>, but some compilers
25749    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25750    static variable whose address is put into a register that is
25751    clobbered by the vfork.  */
25752 static void
25753 #ifdef __cplusplus
25754 sparc_address_test (int arg)
25755 # else
25756 sparc_address_test (arg) int arg;
25757 #endif
25758 {
25759   static pid_t child;
25760   if (!child) {
25761     child = vfork ();
25762     if (child < 0) {
25763       perror ("vfork");
25764       _exit(2);
25765     }
25766     if (!child) {
25767       arg = getpid();
25768       write(-1, "", 0);
25769       _exit (arg);
25770     }
25771   }
25772 }
25773
25774 int
25775 main ()
25776 {
25777   pid_t parent = getpid ();
25778   pid_t child;
25779
25780   sparc_address_test (0);
25781
25782   child = vfork ();
25783
25784   if (child == 0) {
25785     /* Here is another test for sparc vfork register problems.  This
25786        test uses lots of local variables, at least as many local
25787        variables as main has allocated so far including compiler
25788        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25789        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25790        reuse the register of parent for one of the local variables,
25791        since it will think that parent can't possibly be used any more
25792        in this routine.  Assigning to the local variable will thus
25793        munge parent in the parent process.  */
25794     pid_t
25795       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25796       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25797     /* Convince the compiler that p..p7 are live; otherwise, it might
25798        use the same hardware register for all 8 local variables.  */
25799     if (p != p1 || p != p2 || p != p3 || p != p4
25800         || p != p5 || p != p6 || p != p7)
25801       _exit(1);
25802
25803     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25804        from child file descriptors.  If the child closes a descriptor
25805        before it execs or exits, this munges the parent's descriptor
25806        as well.  Test for this by closing stdout in the child.  */
25807     _exit(close(fileno(stdout)) != 0);
25808   } else {
25809     int status;
25810     struct stat st;
25811
25812     while (wait(&status) != child)
25813       ;
25814     return (
25815          /* Was there some problem with vforking?  */
25816          child < 0
25817
25818          /* Did the child fail?  (This shouldn't happen.)  */
25819          || status
25820
25821          /* Did the vfork/compiler bug occur?  */
25822          || parent != getpid()
25823
25824          /* Did the file descriptor bug occur?  */
25825          || fstat(fileno(stdout), &st) != 0
25826          );
25827   }
25828 }
25829 _ACEOF
25830 rm -f conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_link") 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25841   { (case "(($ac_try" in
25842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843   *) ac_try_echo=$ac_try;;
25844 esac
25845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25846   (eval "$ac_try") 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850   ac_cv_func_vfork_works=yes
25851 else
25852   echo "$as_me: program exited with status $ac_status" >&5
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856 ( exit $ac_status )
25857 ac_cv_func_vfork_works=no
25858 fi
25859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25860 fi
25861
25862
25863 fi
25864 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25865 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25866
25867 fi;
25868 if test "x$ac_cv_func_fork_works" = xcross; then
25869   ac_cv_func_vfork_works=$ac_cv_func_vfork
25870   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25871 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25872 fi
25873
25874 if test "x$ac_cv_func_vfork_works" = xyes; then
25875
25876 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_WORKING_VFORK 1
25878 _ACEOF
25879
25880 else
25881
25882 cat >>confdefs.h <<\_ACEOF
25883 #define vfork fork
25884 _ACEOF
25885
25886 fi
25887 if test "x$ac_cv_func_fork_works" = xyes; then
25888
25889 cat >>confdefs.h <<\_ACEOF
25890 #define HAVE_WORKING_FORK 1
25891 _ACEOF
25892
25893 fi
25894
25895 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
25896 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
25897 if test "${ac_cv_type_getgroups+set}" = set; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25900   if test "$cross_compiling" = yes; then
25901   ac_cv_type_getgroups=cross
25902 else
25903   cat >conftest.$ac_ext <<_ACEOF
25904 /* confdefs.h.  */
25905 _ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h.  */
25909 /* Thanks to Mike Rendell for this test.  */
25910 $ac_includes_default
25911 #define NGID 256
25912 #undef MAX
25913 #define MAX(x, y) ((x) > (y) ? (x) : (y))
25914
25915 int
25916 main ()
25917 {
25918   gid_t gidset[NGID];
25919   int i, n;
25920   union { gid_t gval; long int lval; }  val;
25921
25922   val.lval = -1;
25923   for (i = 0; i < NGID; i++)
25924     gidset[i] = val.gval;
25925   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
25926                  gidset);
25927   /* Exit non-zero if getgroups seems to require an array of ints.  This
25928      happens when gid_t is short int but getgroups modifies an array
25929      of ints.  */
25930   return n > 0 && gidset[n] != val.gval;
25931 }
25932 _ACEOF
25933 rm -f conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940   (eval "$ac_link") 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25944   { (case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949   (eval "$ac_try") 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); }; }; then
25953   ac_cv_type_getgroups=gid_t
25954 else
25955   echo "$as_me: program exited with status $ac_status" >&5
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25958
25959 ( exit $ac_status )
25960 ac_cv_type_getgroups=int
25961 fi
25962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25963 fi
25964
25965
25966 if test $ac_cv_type_getgroups = cross; then
25967         cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h.  */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h.  */
25973 #include <unistd.h>
25974
25975 _ACEOF
25976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25977   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
25978   ac_cv_type_getgroups=gid_t
25979 else
25980   ac_cv_type_getgroups=int
25981 fi
25982 rm -f conftest*
25983
25984 fi
25985 fi
25986 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
25987 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
25988
25989 cat >>confdefs.h <<_ACEOF
25990 #define GETGROUPS_T $ac_cv_type_getgroups
25991 _ACEOF
25992
25993
25994 { echo "$as_me:$LINENO: checking for getgroups" >&5
25995 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
25996 if test "${ac_cv_func_getgroups+set}" = set; then
25997   echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999   cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26007 #define getgroups innocuous_getgroups
26008
26009 /* System header to define __stub macros and hopefully few prototypes,
26010     which can conflict with char getgroups (); below.
26011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26012     <limits.h> exists even on freestanding compilers.  */
26013
26014 #ifdef __STDC__
26015 # include <limits.h>
26016 #else
26017 # include <assert.h>
26018 #endif
26019
26020 #undef getgroups
26021
26022 /* Override any GCC internal prototype to avoid an error.
26023    Use char because int might match the return type of a GCC
26024    builtin and then its argument prototype would still apply.  */
26025 #ifdef __cplusplus
26026 extern "C"
26027 #endif
26028 char getgroups ();
26029 /* The GNU C library defines this for functions which it implements
26030     to always fail with ENOSYS.  Some functions are actually named
26031     something starting with __ and the normal name is an alias.  */
26032 #if defined __stub_getgroups || defined __stub___getgroups
26033 choke me
26034 #endif
26035
26036 int
26037 main ()
26038 {
26039 return getgroups ();
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (ac_try="$ac_link"
26046 case "(($ac_try" in
26047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048   *) ac_try_echo=$ac_try;;
26049 esac
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051   (eval "$ac_link") 2>conftest.er1
26052   ac_status=$?
26053   grep -v '^ *+' conftest.er1 >conftest.err
26054   rm -f conftest.er1
26055   cat conftest.err >&5
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); } &&
26058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26059   { (case "(($ac_try" in
26060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26061   *) ac_try_echo=$ac_try;;
26062 esac
26063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26064   (eval "$ac_try") 2>&5
26065   ac_status=$?
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); }; } &&
26068          { ac_try='test -s conftest$ac_exeext'
26069   { (case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074   (eval "$ac_try") 2>&5
26075   ac_status=$?
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); }; }; then
26078   ac_cv_func_getgroups=yes
26079 else
26080   echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26082
26083         ac_cv_func_getgroups=no
26084 fi
26085
26086 rm -f conftest.err conftest.$ac_objext \
26087       conftest$ac_exeext conftest.$ac_ext
26088 fi
26089 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26090 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26091
26092
26093 # If we don't yet have getgroups, see if it's in -lbsd.
26094 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26095 ac_save_LIBS=$LIBS
26096 if test $ac_cv_func_getgroups = no; then
26097   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26098 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26099 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 else
26102   ac_check_lib_save_LIBS=$LIBS
26103 LIBS="-lbsd  $LIBS"
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h.  */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h.  */
26110
26111 /* Override any GCC internal prototype to avoid an error.
26112    Use char because int might match the return type of a GCC
26113    builtin and then its argument prototype would still apply.  */
26114 #ifdef __cplusplus
26115 extern "C"
26116 #endif
26117 char getgroups ();
26118 int
26119 main ()
26120 {
26121 return getgroups ();
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 rm -f conftest.$ac_objext conftest$ac_exeext
26127 if { (ac_try="$ac_link"
26128 case "(($ac_try" in
26129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26130   *) ac_try_echo=$ac_try;;
26131 esac
26132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26133   (eval "$ac_link") 2>conftest.er1
26134   ac_status=$?
26135   grep -v '^ *+' conftest.er1 >conftest.err
26136   rm -f conftest.er1
26137   cat conftest.err >&5
26138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139   (exit $ac_status); } &&
26140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26141   { (case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146   (eval "$ac_try") 2>&5
26147   ac_status=$?
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); }; } &&
26150          { ac_try='test -s conftest$ac_exeext'
26151   { (case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156   (eval "$ac_try") 2>&5
26157   ac_status=$?
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); }; }; then
26160   ac_cv_lib_bsd_getgroups=yes
26161 else
26162   echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165         ac_cv_lib_bsd_getgroups=no
26166 fi
26167
26168 rm -f conftest.err conftest.$ac_objext \
26169       conftest$ac_exeext conftest.$ac_ext
26170 LIBS=$ac_check_lib_save_LIBS
26171 fi
26172 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26173 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26174 if test $ac_cv_lib_bsd_getgroups = yes; then
26175   GETGROUPS_LIB=-lbsd
26176 fi
26177
26178 fi
26179
26180 # Run the program to test the functionality of the system-supplied
26181 # getgroups function only if there is such a function.
26182 if test $ac_cv_func_getgroups = yes; then
26183   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26184 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26185 if test "${ac_cv_func_getgroups_works+set}" = set; then
26186   echo $ECHO_N "(cached) $ECHO_C" >&6
26187 else
26188   if test "$cross_compiling" = yes; then
26189   ac_cv_func_getgroups_works=no
26190 else
26191   cat >conftest.$ac_ext <<_ACEOF
26192 /* confdefs.h.  */
26193 _ACEOF
26194 cat confdefs.h >>conftest.$ac_ext
26195 cat >>conftest.$ac_ext <<_ACEOF
26196 /* end confdefs.h.  */
26197 $ac_includes_default
26198 int
26199 main ()
26200 {
26201 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26202        return getgroups (0, 0) == -1;
26203   ;
26204   return 0;
26205 }
26206 _ACEOF
26207 rm -f conftest$ac_exeext
26208 if { (ac_try="$ac_link"
26209 case "(($ac_try" in
26210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26211   *) ac_try_echo=$ac_try;;
26212 esac
26213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26214   (eval "$ac_link") 2>&5
26215   ac_status=$?
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26218   { (case "(($ac_try" in
26219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26220   *) ac_try_echo=$ac_try;;
26221 esac
26222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26223   (eval "$ac_try") 2>&5
26224   ac_status=$?
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); }; }; then
26227   ac_cv_func_getgroups_works=yes
26228 else
26229   echo "$as_me: program exited with status $ac_status" >&5
26230 echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26232
26233 ( exit $ac_status )
26234 ac_cv_func_getgroups_works=no
26235 fi
26236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26237 fi
26238
26239
26240
26241 fi
26242 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26243 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26244   if test $ac_cv_func_getgroups_works = yes; then
26245
26246 cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_GETGROUPS 1
26248 _ACEOF
26249
26250   fi
26251 fi
26252 LIBS=$ac_save_LIBS
26253
26254 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26255 # -lseq on Dynix/PTX, -lgen on Unixware.
26256 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26257 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26258 if test "${ac_cv_search_getmntent+set}" = set; then
26259   echo $ECHO_N "(cached) $ECHO_C" >&6
26260 else
26261   ac_func_search_save_LIBS=$LIBS
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h.  */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h.  */
26268
26269 /* Override any GCC internal prototype to avoid an error.
26270    Use char because int might match the return type of a GCC
26271    builtin and then its argument prototype would still apply.  */
26272 #ifdef __cplusplus
26273 extern "C"
26274 #endif
26275 char getmntent ();
26276 int
26277 main ()
26278 {
26279 return getmntent ();
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 for ac_lib in '' sun seq gen; do
26285   if test -z "$ac_lib"; then
26286     ac_res="none required"
26287   else
26288     ac_res=-l$ac_lib
26289     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26290   fi
26291   rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (ac_try="$ac_link"
26293 case "(($ac_try" in
26294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295   *) ac_try_echo=$ac_try;;
26296 esac
26297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298   (eval "$ac_link") 2>conftest.er1
26299   ac_status=$?
26300   grep -v '^ *+' conftest.er1 >conftest.err
26301   rm -f conftest.er1
26302   cat conftest.err >&5
26303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304   (exit $ac_status); } &&
26305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26306   { (case "(($ac_try" in
26307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308   *) ac_try_echo=$ac_try;;
26309 esac
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311   (eval "$ac_try") 2>&5
26312   ac_status=$?
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); }; } &&
26315          { ac_try='test -s conftest$ac_exeext'
26316   { (case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321   (eval "$ac_try") 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; }; then
26325   ac_cv_search_getmntent=$ac_res
26326 else
26327   echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26329
26330
26331 fi
26332
26333 rm -f conftest.err conftest.$ac_objext \
26334       conftest$ac_exeext
26335   if test "${ac_cv_search_getmntent+set}" = set; then
26336   break
26337 fi
26338 done
26339 if test "${ac_cv_search_getmntent+set}" = set; then
26340   :
26341 else
26342   ac_cv_search_getmntent=no
26343 fi
26344 rm conftest.$ac_ext
26345 LIBS=$ac_func_search_save_LIBS
26346 fi
26347 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26348 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26349 ac_res=$ac_cv_search_getmntent
26350 if test "$ac_res" != no; then
26351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26352
26353 fi
26354
26355
26356 for ac_func in getmntent
26357 do
26358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h.  */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h.  */
26370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26372 #define $ac_func innocuous_$ac_func
26373
26374 /* System header to define __stub macros and hopefully few prototypes,
26375     which can conflict with char $ac_func (); below.
26376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26377     <limits.h> exists even on freestanding compilers.  */
26378
26379 #ifdef __STDC__
26380 # include <limits.h>
26381 #else
26382 # include <assert.h>
26383 #endif
26384
26385 #undef $ac_func
26386
26387 /* Override any GCC internal prototype to avoid an error.
26388    Use char because int might match the return type of a GCC
26389    builtin and then its argument prototype would still apply.  */
26390 #ifdef __cplusplus
26391 extern "C"
26392 #endif
26393 char $ac_func ();
26394 /* The GNU C library defines this for functions which it implements
26395     to always fail with ENOSYS.  Some functions are actually named
26396     something starting with __ and the normal name is an alias.  */
26397 #if defined __stub_$ac_func || defined __stub___$ac_func
26398 choke me
26399 #endif
26400
26401 int
26402 main ()
26403 {
26404 return $ac_func ();
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest.$ac_objext conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_link") 2>conftest.er1
26417   ac_status=$?
26418   grep -v '^ *+' conftest.er1 >conftest.err
26419   rm -f conftest.er1
26420   cat conftest.err >&5
26421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); } &&
26423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26424   { (case "(($ac_try" in
26425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426   *) ac_try_echo=$ac_try;;
26427 esac
26428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429   (eval "$ac_try") 2>&5
26430   ac_status=$?
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); }; } &&
26433          { ac_try='test -s conftest$ac_exeext'
26434   { (case "(($ac_try" in
26435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436   *) ac_try_echo=$ac_try;;
26437 esac
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439   (eval "$ac_try") 2>&5
26440   ac_status=$?
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); }; }; then
26443   eval "$as_ac_var=yes"
26444 else
26445   echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448         eval "$as_ac_var=no"
26449 fi
26450
26451 rm -f conftest.err conftest.$ac_objext \
26452       conftest$ac_exeext conftest.$ac_ext
26453 fi
26454 ac_res=`eval echo '${'$as_ac_var'}'`
26455                { echo "$as_me:$LINENO: result: $ac_res" >&5
26456 echo "${ECHO_T}$ac_res" >&6; }
26457 if test `eval echo '${'$as_ac_var'}'` = yes; then
26458   cat >>confdefs.h <<_ACEOF
26459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26460 _ACEOF
26461
26462 fi
26463 done
26464
26465
26466 if test $ac_cv_c_compiler_gnu = yes; then
26467     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26468 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26469 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26470   echo $ECHO_N "(cached) $ECHO_C" >&6
26471 else
26472     ac_pattern="Autoconf.*'x'"
26473   cat >conftest.$ac_ext <<_ACEOF
26474 /* confdefs.h.  */
26475 _ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h.  */
26479 #include <sgtty.h>
26480 Autoconf TIOCGETP
26481 _ACEOF
26482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26483   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26484   ac_cv_prog_gcc_traditional=yes
26485 else
26486   ac_cv_prog_gcc_traditional=no
26487 fi
26488 rm -f conftest*
26489
26490
26491   if test $ac_cv_prog_gcc_traditional = no; then
26492     cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498 #include <termio.h>
26499 Autoconf TCGETA
26500 _ACEOF
26501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26502   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26503   ac_cv_prog_gcc_traditional=yes
26504 fi
26505 rm -f conftest*
26506
26507   fi
26508 fi
26509 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26510 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26511   if test $ac_cv_prog_gcc_traditional = yes; then
26512     CC="$CC -traditional"
26513   fi
26514 fi
26515
26516 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26517 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26518 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26519   echo $ECHO_N "(cached) $ECHO_C" >&6
26520 else
26521   rm -f conftest.sym conftest.file
26522 echo >conftest.file
26523 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26524   if test "$cross_compiling" = yes; then
26525   ac_cv_func_lstat_dereferences_slashed_symlink=no
26526 else
26527   cat >conftest.$ac_ext <<_ACEOF
26528 /* confdefs.h.  */
26529 _ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h.  */
26533 $ac_includes_default
26534 int
26535 main ()
26536 {
26537 struct stat sbuf;
26538      /* Linux will dereference the symlink and fail.
26539         That is better in the sense that it means we will not
26540         have to compile and use the lstat wrapper.  */
26541      return lstat ("conftest.sym/", &sbuf) == 0;
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_link") 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26557   { (case "(($ac_try" in
26558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559   *) ac_try_echo=$ac_try;;
26560 esac
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562   (eval "$ac_try") 2>&5
26563   ac_status=$?
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); }; }; then
26566   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26567 else
26568   echo "$as_me: program exited with status $ac_status" >&5
26569 echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572 ( exit $ac_status )
26573 ac_cv_func_lstat_dereferences_slashed_symlink=no
26574 fi
26575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26576 fi
26577
26578
26579 else
26580   # If the `ln -s' command failed, then we probably don't even
26581   # have an lstat function.
26582   ac_cv_func_lstat_dereferences_slashed_symlink=no
26583 fi
26584 rm -f conftest.sym conftest.file
26585
26586 fi
26587 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26588 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26589
26590 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26591
26592 cat >>confdefs.h <<_ACEOF
26593 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26594 _ACEOF
26595
26596
26597 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26598   case " $LIBOBJS " in
26599   *" lstat.$ac_objext "* ) ;;
26600   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26601  ;;
26602 esac
26603
26604 fi
26605
26606 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26607 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26608 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26609   echo $ECHO_N "(cached) $ECHO_C" >&6
26610 else
26611   if test "$cross_compiling" = yes; then
26612   ac_cv_func_lstat_empty_string_bug=yes
26613 else
26614   cat >conftest.$ac_ext <<_ACEOF
26615 /* confdefs.h.  */
26616 _ACEOF
26617 cat confdefs.h >>conftest.$ac_ext
26618 cat >>conftest.$ac_ext <<_ACEOF
26619 /* end confdefs.h.  */
26620 $ac_includes_default
26621 int
26622 main ()
26623 {
26624 struct stat sbuf;
26625   return lstat ("", &sbuf) == 0;
26626   ;
26627   return 0;
26628 }
26629 _ACEOF
26630 rm -f conftest$ac_exeext
26631 if { (ac_try="$ac_link"
26632 case "(($ac_try" in
26633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634   *) ac_try_echo=$ac_try;;
26635 esac
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637   (eval "$ac_link") 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26641   { (case "(($ac_try" in
26642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643   *) ac_try_echo=$ac_try;;
26644 esac
26645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26646   (eval "$ac_try") 2>&5
26647   ac_status=$?
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); }; }; then
26650   ac_cv_func_lstat_empty_string_bug=no
26651 else
26652   echo "$as_me: program exited with status $ac_status" >&5
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26655
26656 ( exit $ac_status )
26657 ac_cv_func_lstat_empty_string_bug=yes
26658 fi
26659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26660 fi
26661
26662
26663 fi
26664 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26665 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26666 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26667   case " $LIBOBJS " in
26668   *" lstat.$ac_objext "* ) ;;
26669   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26670  ;;
26671 esac
26672
26673
26674 cat >>confdefs.h <<_ACEOF
26675 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26676 _ACEOF
26677
26678 fi
26679
26680 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26681 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26682 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26683   echo $ECHO_N "(cached) $ECHO_C" >&6
26684 else
26685   rm -f conftest.sym conftest.file
26686 echo >conftest.file
26687 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26688   if test "$cross_compiling" = yes; then
26689   ac_cv_func_lstat_dereferences_slashed_symlink=no
26690 else
26691   cat >conftest.$ac_ext <<_ACEOF
26692 /* confdefs.h.  */
26693 _ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h.  */
26697 $ac_includes_default
26698 int
26699 main ()
26700 {
26701 struct stat sbuf;
26702      /* Linux will dereference the symlink and fail.
26703         That is better in the sense that it means we will not
26704         have to compile and use the lstat wrapper.  */
26705      return lstat ("conftest.sym/", &sbuf) == 0;
26706   ;
26707   return 0;
26708 }
26709 _ACEOF
26710 rm -f conftest$ac_exeext
26711 if { (ac_try="$ac_link"
26712 case "(($ac_try" in
26713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26714   *) ac_try_echo=$ac_try;;
26715 esac
26716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26717   (eval "$ac_link") 2>&5
26718   ac_status=$?
26719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26721   { (case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726   (eval "$ac_try") 2>&5
26727   ac_status=$?
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); }; }; then
26730   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26731 else
26732   echo "$as_me: program exited with status $ac_status" >&5
26733 echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26735
26736 ( exit $ac_status )
26737 ac_cv_func_lstat_dereferences_slashed_symlink=no
26738 fi
26739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26740 fi
26741
26742
26743 else
26744   # If the `ln -s' command failed, then we probably don't even
26745   # have an lstat function.
26746   ac_cv_func_lstat_dereferences_slashed_symlink=no
26747 fi
26748 rm -f conftest.sym conftest.file
26749
26750 fi
26751 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26752 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26753
26754 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26755
26756 cat >>confdefs.h <<_ACEOF
26757 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26758 _ACEOF
26759
26760
26761 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26762   case " $LIBOBJS " in
26763   *" lstat.$ac_objext "* ) ;;
26764   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26765  ;;
26766 esac
26767
26768 fi
26769
26770 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26771 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26772 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26773   echo $ECHO_N "(cached) $ECHO_C" >&6
26774 else
26775   cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781 #include <sys/types.h>
26782 int
26783 main ()
26784 {
26785 return makedev(0, 0);
26786   ;
26787   return 0;
26788 }
26789 _ACEOF
26790 rm -f conftest.$ac_objext conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794   *) ac_try_echo=$ac_try;;
26795 esac
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797   (eval "$ac_link") 2>conftest.er1
26798   ac_status=$?
26799   grep -v '^ *+' conftest.er1 >conftest.err
26800   rm -f conftest.er1
26801   cat conftest.err >&5
26802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803   (exit $ac_status); } &&
26804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26805   { (case "(($ac_try" in
26806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26807   *) ac_try_echo=$ac_try;;
26808 esac
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810   (eval "$ac_try") 2>&5
26811   ac_status=$?
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); }; } &&
26814          { ac_try='test -s conftest$ac_exeext'
26815   { (case "(($ac_try" in
26816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817   *) ac_try_echo=$ac_try;;
26818 esac
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820   (eval "$ac_try") 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; }; then
26824   ac_cv_header_sys_types_h_makedev=yes
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829         ac_cv_header_sys_types_h_makedev=no
26830 fi
26831
26832 rm -f conftest.err conftest.$ac_objext \
26833       conftest$ac_exeext conftest.$ac_ext
26834
26835 fi
26836 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26838
26839 if test $ac_cv_header_sys_types_h_makedev = no; then
26840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26841   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26844   echo $ECHO_N "(cached) $ECHO_C" >&6
26845 fi
26846 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26848 else
26849   # Is the header compilable?
26850 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858 $ac_includes_default
26859 #include <sys/mkdev.h>
26860 _ACEOF
26861 rm -f conftest.$ac_objext
26862 if { (ac_try="$ac_compile"
26863 case "(($ac_try" in
26864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26865   *) ac_try_echo=$ac_try;;
26866 esac
26867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26868   (eval "$ac_compile") 2>conftest.er1
26869   ac_status=$?
26870   grep -v '^ *+' conftest.er1 >conftest.err
26871   rm -f conftest.er1
26872   cat conftest.err >&5
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); } &&
26875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26876   { (case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881   (eval "$ac_try") 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; } &&
26885          { ac_try='test -s conftest.$ac_objext'
26886   { (case "(($ac_try" in
26887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888   *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891   (eval "$ac_try") 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895   ac_header_compiler=yes
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900         ac_header_compiler=no
26901 fi
26902
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26905 echo "${ECHO_T}$ac_header_compiler" >&6; }
26906
26907 # Is the header present?
26908 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26909 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26910 cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916 #include <sys/mkdev.h>
26917 _ACEOF
26918 if { (ac_try="$ac_cpp conftest.$ac_ext"
26919 case "(($ac_try" in
26920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26921   *) ac_try_echo=$ac_try;;
26922 esac
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26925   ac_status=$?
26926   grep -v '^ *+' conftest.er1 >conftest.err
26927   rm -f conftest.er1
26928   cat conftest.err >&5
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); } >/dev/null; then
26931   if test -s conftest.err; then
26932     ac_cpp_err=$ac_c_preproc_warn_flag
26933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26934   else
26935     ac_cpp_err=
26936   fi
26937 else
26938   ac_cpp_err=yes
26939 fi
26940 if test -z "$ac_cpp_err"; then
26941   ac_header_preproc=yes
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946   ac_header_preproc=no
26947 fi
26948
26949 rm -f conftest.err conftest.$ac_ext
26950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951 echo "${ECHO_T}$ac_header_preproc" >&6; }
26952
26953 # So?  What about this header?
26954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26955   yes:no: )
26956     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26958     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26960     ac_header_preproc=yes
26961     ;;
26962   no:yes:* )
26963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26967     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26971     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26973     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26975     ( cat <<\_ASBOX
26976 ## ------------------------------- ##
26977 ## Report this to nfs@lists.sf.net ##
26978 ## ------------------------------- ##
26979 _ASBOX
26980      ) | sed "s/^/$as_me: WARNING:     /" >&2
26981     ;;
26982 esac
26983 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26984 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26985 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26986   echo $ECHO_N "(cached) $ECHO_C" >&6
26987 else
26988   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26989 fi
26990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26992
26993 fi
26994 if test $ac_cv_header_sys_mkdev_h = yes; then
26995
26996 cat >>confdefs.h <<\_ACEOF
26997 #define MAJOR_IN_MKDEV 1
26998 _ACEOF
26999
27000 fi
27001
27002
27003
27004   if test $ac_cv_header_sys_mkdev_h = no; then
27005     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27006   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27007 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27008 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27009   echo $ECHO_N "(cached) $ECHO_C" >&6
27010 fi
27011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27012 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27013 else
27014   # Is the header compilable?
27015 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27016 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 $ac_includes_default
27024 #include <sys/sysmacros.h>
27025 _ACEOF
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_compile") 2>conftest.er1
27034   ac_status=$?
27035   grep -v '^ *+' conftest.er1 >conftest.err
27036   rm -f conftest.er1
27037   cat conftest.err >&5
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); } &&
27040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27041   { (case "(($ac_try" in
27042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043   *) ac_try_echo=$ac_try;;
27044 esac
27045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046   (eval "$ac_try") 2>&5
27047   ac_status=$?
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); }; } &&
27050          { ac_try='test -s conftest.$ac_objext'
27051   { (case "(($ac_try" in
27052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053   *) ac_try_echo=$ac_try;;
27054 esac
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056   (eval "$ac_try") 2>&5
27057   ac_status=$?
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); }; }; then
27060   ac_header_compiler=yes
27061 else
27062   echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27064
27065         ac_header_compiler=no
27066 fi
27067
27068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27070 echo "${ECHO_T}$ac_header_compiler" >&6; }
27071
27072 # Is the header present?
27073 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27074 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27075 cat >conftest.$ac_ext <<_ACEOF
27076 /* confdefs.h.  */
27077 _ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h.  */
27081 #include <sys/sysmacros.h>
27082 _ACEOF
27083 if { (ac_try="$ac_cpp conftest.$ac_ext"
27084 case "(($ac_try" in
27085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086   *) ac_try_echo=$ac_try;;
27087 esac
27088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27090   ac_status=$?
27091   grep -v '^ *+' conftest.er1 >conftest.err
27092   rm -f conftest.er1
27093   cat conftest.err >&5
27094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095   (exit $ac_status); } >/dev/null; then
27096   if test -s conftest.err; then
27097     ac_cpp_err=$ac_c_preproc_warn_flag
27098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27099   else
27100     ac_cpp_err=
27101   fi
27102 else
27103   ac_cpp_err=yes
27104 fi
27105 if test -z "$ac_cpp_err"; then
27106   ac_header_preproc=yes
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111   ac_header_preproc=no
27112 fi
27113
27114 rm -f conftest.err conftest.$ac_ext
27115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27116 echo "${ECHO_T}$ac_header_preproc" >&6; }
27117
27118 # So?  What about this header?
27119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27120   yes:no: )
27121     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27122 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27123     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27124 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27125     ac_header_preproc=yes
27126     ;;
27127   no:yes:* )
27128     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27129 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27130     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27131 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27132     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27133 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27134     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27135 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27136     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27137 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27138     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27139 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27140     ( cat <<\_ASBOX
27141 ## ------------------------------- ##
27142 ## Report this to nfs@lists.sf.net ##
27143 ## ------------------------------- ##
27144 _ASBOX
27145      ) | sed "s/^/$as_me: WARNING:     /" >&2
27146     ;;
27147 esac
27148 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27149 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27150 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27154 fi
27155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27156 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27157
27158 fi
27159 if test $ac_cv_header_sys_sysmacros_h = yes; then
27160
27161 cat >>confdefs.h <<\_ACEOF
27162 #define MAJOR_IN_SYSMACROS 1
27163 _ACEOF
27164
27165 fi
27166
27167
27168   fi
27169 fi
27170
27171 #AC_FUNC_MALLOC
27172 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27173 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27174 if test "${ac_cv_func_memcmp_working+set}" = set; then
27175   echo $ECHO_N "(cached) $ECHO_C" >&6
27176 else
27177   if test "$cross_compiling" = yes; then
27178   ac_cv_func_memcmp_working=no
27179 else
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 int
27188 main ()
27189 {
27190
27191   /* Some versions of memcmp are not 8-bit clean.  */
27192   char c0 = '\100', c1 = '\200', c2 = '\201';
27193   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27194     return 1;
27195
27196   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27197      or more and with at least one buffer not starting on a 4-byte boundary.
27198      William Lewis provided this test program.   */
27199   {
27200     char foo[21];
27201     char bar[21];
27202     int i;
27203     for (i = 0; i < 4; i++)
27204       {
27205         char *a = foo + i;
27206         char *b = bar + i;
27207         strcpy (a, "--------01111111");
27208         strcpy (b, "--------10000000");
27209         if (memcmp (a, b, 16) >= 0)
27210           return 1;
27211       }
27212     return 0;
27213   }
27214
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest$ac_exeext
27220 if { (ac_try="$ac_link"
27221 case "(($ac_try" in
27222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223   *) ac_try_echo=$ac_try;;
27224 esac
27225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27226   (eval "$ac_link") 2>&5
27227   ac_status=$?
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27230   { (case "(($ac_try" in
27231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27232   *) ac_try_echo=$ac_try;;
27233 esac
27234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27235   (eval "$ac_try") 2>&5
27236   ac_status=$?
27237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); }; }; then
27239   ac_cv_func_memcmp_working=yes
27240 else
27241   echo "$as_me: program exited with status $ac_status" >&5
27242 echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27244
27245 ( exit $ac_status )
27246 ac_cv_func_memcmp_working=no
27247 fi
27248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27249 fi
27250
27251
27252 fi
27253 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27254 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27255 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27256   *" memcmp.$ac_objext "* ) ;;
27257   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27258  ;;
27259 esac
27260
27261
27262 #AC_FUNC_REALLOC
27263
27264
27265 for ac_header in sys/select.h sys/socket.h
27266 do
27267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 fi
27274 ac_res=`eval echo '${'$as_ac_Header'}'`
27275                { echo "$as_me:$LINENO: result: $ac_res" >&5
27276 echo "${ECHO_T}$ac_res" >&6; }
27277 else
27278   # Is the header compilable?
27279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27281 cat >conftest.$ac_ext <<_ACEOF
27282 /* confdefs.h.  */
27283 _ACEOF
27284 cat confdefs.h >>conftest.$ac_ext
27285 cat >>conftest.$ac_ext <<_ACEOF
27286 /* end confdefs.h.  */
27287 $ac_includes_default
27288 #include <$ac_header>
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (ac_try="$ac_compile"
27292 case "(($ac_try" in
27293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294   *) ac_try_echo=$ac_try;;
27295 esac
27296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297   (eval "$ac_compile") 2>conftest.er1
27298   ac_status=$?
27299   grep -v '^ *+' conftest.er1 >conftest.err
27300   rm -f conftest.er1
27301   cat conftest.err >&5
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); } &&
27304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305   { (case "(($ac_try" in
27306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307   *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310   (eval "$ac_try") 2>&5
27311   ac_status=$?
27312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); }; } &&
27314          { ac_try='test -s conftest.$ac_objext'
27315   { (case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_try") 2>&5
27321   ac_status=$?
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); }; }; then
27324   ac_header_compiler=yes
27325 else
27326   echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27328
27329         ac_header_compiler=no
27330 fi
27331
27332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27334 echo "${ECHO_T}$ac_header_compiler" >&6; }
27335
27336 # Is the header present?
27337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27339 cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 #include <$ac_header>
27346 _ACEOF
27347 if { (ac_try="$ac_cpp conftest.$ac_ext"
27348 case "(($ac_try" in
27349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27350   *) ac_try_echo=$ac_try;;
27351 esac
27352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } >/dev/null; then
27360   if test -s conftest.err; then
27361     ac_cpp_err=$ac_c_preproc_warn_flag
27362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27363   else
27364     ac_cpp_err=
27365   fi
27366 else
27367   ac_cpp_err=yes
27368 fi
27369 if test -z "$ac_cpp_err"; then
27370   ac_header_preproc=yes
27371 else
27372   echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27374
27375   ac_header_preproc=no
27376 fi
27377
27378 rm -f conftest.err conftest.$ac_ext
27379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27380 echo "${ECHO_T}$ac_header_preproc" >&6; }
27381
27382 # So?  What about this header?
27383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27384   yes:no: )
27385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27389     ac_header_preproc=yes
27390     ;;
27391   no:yes:* )
27392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27404     ( cat <<\_ASBOX
27405 ## ------------------------------- ##
27406 ## Report this to nfs@lists.sf.net ##
27407 ## ------------------------------- ##
27408 _ASBOX
27409      ) | sed "s/^/$as_me: WARNING:     /" >&2
27410     ;;
27411 esac
27412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27415   echo $ECHO_N "(cached) $ECHO_C" >&6
27416 else
27417   eval "$as_ac_Header=\$ac_header_preproc"
27418 fi
27419 ac_res=`eval echo '${'$as_ac_Header'}'`
27420                { echo "$as_me:$LINENO: result: $ac_res" >&5
27421 echo "${ECHO_T}$ac_res" >&6; }
27422
27423 fi
27424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27425   cat >>confdefs.h <<_ACEOF
27426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27427 _ACEOF
27428
27429 fi
27430
27431 done
27432
27433 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27434 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27435 if test "${ac_cv_func_select_args+set}" = set; then
27436   echo $ECHO_N "(cached) $ECHO_C" >&6
27437 else
27438   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27439  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27440   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27441    cat >conftest.$ac_ext <<_ACEOF
27442 /* confdefs.h.  */
27443 _ACEOF
27444 cat confdefs.h >>conftest.$ac_ext
27445 cat >>conftest.$ac_ext <<_ACEOF
27446 /* end confdefs.h.  */
27447 $ac_includes_default
27448 #if HAVE_SYS_SELECT_H
27449 # include <sys/select.h>
27450 #endif
27451 #if HAVE_SYS_SOCKET_H
27452 # include <sys/socket.h>
27453 #endif
27454
27455 int
27456 main ()
27457 {
27458 extern int select ($ac_arg1,
27459                                             $ac_arg234, $ac_arg234, $ac_arg234,
27460                                             $ac_arg5);
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469   *) ac_try_echo=$ac_try;;
27470 esac
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472   (eval "$ac_compile") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } &&
27479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480   { (case "(($ac_try" in
27481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482   *) ac_try_echo=$ac_try;;
27483 esac
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485   (eval "$ac_try") 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; } &&
27489          { ac_try='test -s conftest.$ac_objext'
27490   { (case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495   (eval "$ac_try") 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; }; then
27499   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27500 else
27501   echo "$as_me: failed program was:" >&5
27502 sed 's/^/| /' conftest.$ac_ext >&5
27503
27504
27505 fi
27506
27507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27508   done
27509  done
27510 done
27511 # Provide a safe default value.
27512 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27513
27514 fi
27515 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27516 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27517 ac_save_IFS=$IFS; IFS=','
27518 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27519 IFS=$ac_save_IFS
27520 shift
27521
27522 cat >>confdefs.h <<_ACEOF
27523 #define SELECT_TYPE_ARG1 $1
27524 _ACEOF
27525
27526
27527 cat >>confdefs.h <<_ACEOF
27528 #define SELECT_TYPE_ARG234 ($2)
27529 _ACEOF
27530
27531
27532 cat >>confdefs.h <<_ACEOF
27533 #define SELECT_TYPE_ARG5 ($3)
27534 _ACEOF
27535
27536 rm -f conftest*
27537
27538 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27539 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27540 if test "${ac_cv_type_signal+set}" = set; then
27541   echo $ECHO_N "(cached) $ECHO_C" >&6
27542 else
27543   cat >conftest.$ac_ext <<_ACEOF
27544 /* confdefs.h.  */
27545 _ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h.  */
27549 #include <sys/types.h>
27550 #include <signal.h>
27551
27552 int
27553 main ()
27554 {
27555 return *(signal (0, 0)) (0) == 1;
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 rm -f conftest.$ac_objext
27561 if { (ac_try="$ac_compile"
27562 case "(($ac_try" in
27563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564   *) ac_try_echo=$ac_try;;
27565 esac
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567   (eval "$ac_compile") 2>conftest.er1
27568   ac_status=$?
27569   grep -v '^ *+' conftest.er1 >conftest.err
27570   rm -f conftest.er1
27571   cat conftest.err >&5
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); } &&
27574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27575   { (case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580   (eval "$ac_try") 2>&5
27581   ac_status=$?
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); }; } &&
27584          { ac_try='test -s conftest.$ac_objext'
27585   { (case "(($ac_try" in
27586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587   *) ac_try_echo=$ac_try;;
27588 esac
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590   (eval "$ac_try") 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; }; then
27594   ac_cv_type_signal=int
27595 else
27596   echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27598
27599         ac_cv_type_signal=void
27600 fi
27601
27602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27603 fi
27604 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27605 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27606
27607 cat >>confdefs.h <<_ACEOF
27608 #define RETSIGTYPE $ac_cv_type_signal
27609 _ACEOF
27610
27611
27612 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27613 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27614 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   if test "$cross_compiling" = yes; then
27618   ac_cv_func_stat_empty_string_bug=yes
27619 else
27620   cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h.  */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h.  */
27626 $ac_includes_default
27627 int
27628 main ()
27629 {
27630 struct stat sbuf;
27631   return stat ("", &sbuf) == 0;
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 rm -f conftest$ac_exeext
27637 if { (ac_try="$ac_link"
27638 case "(($ac_try" in
27639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640   *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643   (eval "$ac_link") 2>&5
27644   ac_status=$?
27645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27647   { (case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652   (eval "$ac_try") 2>&5
27653   ac_status=$?
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); }; }; then
27656   ac_cv_func_stat_empty_string_bug=no
27657 else
27658   echo "$as_me: program exited with status $ac_status" >&5
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662 ( exit $ac_status )
27663 ac_cv_func_stat_empty_string_bug=yes
27664 fi
27665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27666 fi
27667
27668
27669 fi
27670 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27671 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27672 if test $ac_cv_func_stat_empty_string_bug = yes; then
27673   case " $LIBOBJS " in
27674   *" stat.$ac_objext "* ) ;;
27675   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27676  ;;
27677 esac
27678
27679
27680 cat >>confdefs.h <<_ACEOF
27681 #define HAVE_STAT_EMPTY_STRING_BUG 1
27682 _ACEOF
27683
27684 fi
27685
27686
27687 for ac_func in vprintf
27688 do
27689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27693   echo $ECHO_N "(cached) $ECHO_C" >&6
27694 else
27695   cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h.  */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h.  */
27701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27703 #define $ac_func innocuous_$ac_func
27704
27705 /* System header to define __stub macros and hopefully few prototypes,
27706     which can conflict with char $ac_func (); below.
27707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27708     <limits.h> exists even on freestanding compilers.  */
27709
27710 #ifdef __STDC__
27711 # include <limits.h>
27712 #else
27713 # include <assert.h>
27714 #endif
27715
27716 #undef $ac_func
27717
27718 /* Override any GCC internal prototype to avoid an error.
27719    Use char because int might match the return type of a GCC
27720    builtin and then its argument prototype would still apply.  */
27721 #ifdef __cplusplus
27722 extern "C"
27723 #endif
27724 char $ac_func ();
27725 /* The GNU C library defines this for functions which it implements
27726     to always fail with ENOSYS.  Some functions are actually named
27727     something starting with __ and the normal name is an alias.  */
27728 #if defined __stub_$ac_func || defined __stub___$ac_func
27729 choke me
27730 #endif
27731
27732 int
27733 main ()
27734 {
27735 return $ac_func ();
27736   ;
27737   return 0;
27738 }
27739 _ACEOF
27740 rm -f conftest.$ac_objext conftest$ac_exeext
27741 if { (ac_try="$ac_link"
27742 case "(($ac_try" in
27743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744   *) ac_try_echo=$ac_try;;
27745 esac
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747   (eval "$ac_link") 2>conftest.er1
27748   ac_status=$?
27749   grep -v '^ *+' conftest.er1 >conftest.err
27750   rm -f conftest.er1
27751   cat conftest.err >&5
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } &&
27754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27755   { (case "(($ac_try" in
27756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757   *) ac_try_echo=$ac_try;;
27758 esac
27759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760   (eval "$ac_try") 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); }; } &&
27764          { ac_try='test -s conftest$ac_exeext'
27765   { (case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_try") 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; }; then
27774   eval "$as_ac_var=yes"
27775 else
27776   echo "$as_me: failed program was:" >&5
27777 sed 's/^/| /' conftest.$ac_ext >&5
27778
27779         eval "$as_ac_var=no"
27780 fi
27781
27782 rm -f conftest.err conftest.$ac_objext \
27783       conftest$ac_exeext conftest.$ac_ext
27784 fi
27785 ac_res=`eval echo '${'$as_ac_var'}'`
27786                { echo "$as_me:$LINENO: result: $ac_res" >&5
27787 echo "${ECHO_T}$ac_res" >&6; }
27788 if test `eval echo '${'$as_ac_var'}'` = yes; then
27789   cat >>confdefs.h <<_ACEOF
27790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27791 _ACEOF
27792
27793 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27794 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27795 if test "${ac_cv_func__doprnt+set}" = set; then
27796   echo $ECHO_N "(cached) $ECHO_C" >&6
27797 else
27798   cat >conftest.$ac_ext <<_ACEOF
27799 /* confdefs.h.  */
27800 _ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h.  */
27804 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27806 #define _doprnt innocuous__doprnt
27807
27808 /* System header to define __stub macros and hopefully few prototypes,
27809     which can conflict with char _doprnt (); below.
27810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27811     <limits.h> exists even on freestanding compilers.  */
27812
27813 #ifdef __STDC__
27814 # include <limits.h>
27815 #else
27816 # include <assert.h>
27817 #endif
27818
27819 #undef _doprnt
27820
27821 /* Override any GCC internal prototype to avoid an error.
27822    Use char because int might match the return type of a GCC
27823    builtin and then its argument prototype would still apply.  */
27824 #ifdef __cplusplus
27825 extern "C"
27826 #endif
27827 char _doprnt ();
27828 /* The GNU C library defines this for functions which it implements
27829     to always fail with ENOSYS.  Some functions are actually named
27830     something starting with __ and the normal name is an alias.  */
27831 #if defined __stub__doprnt || defined __stub____doprnt
27832 choke me
27833 #endif
27834
27835 int
27836 main ()
27837 {
27838 return _doprnt ();
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 rm -f conftest.$ac_objext conftest$ac_exeext
27844 if { (ac_try="$ac_link"
27845 case "(($ac_try" in
27846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847   *) ac_try_echo=$ac_try;;
27848 esac
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850   (eval "$ac_link") 2>conftest.er1
27851   ac_status=$?
27852   grep -v '^ *+' conftest.er1 >conftest.err
27853   rm -f conftest.er1
27854   cat conftest.err >&5
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); } &&
27857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858   { (case "(($ac_try" in
27859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860   *) ac_try_echo=$ac_try;;
27861 esac
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863   (eval "$ac_try") 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; } &&
27867          { ac_try='test -s conftest$ac_exeext'
27868   { (case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   ac_cv_func__doprnt=yes
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882         ac_cv_func__doprnt=no
27883 fi
27884
27885 rm -f conftest.err conftest.$ac_objext \
27886       conftest$ac_exeext conftest.$ac_ext
27887 fi
27888 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27889 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27890 if test $ac_cv_func__doprnt = yes; then
27891
27892 cat >>confdefs.h <<\_ACEOF
27893 #define HAVE_DOPRNT 1
27894 _ACEOF
27895
27896 fi
27897
27898 fi
27899 done
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27932                gethostbyaddr gethostbyname gethostname getmntent \
27933                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27934                realpath rmdir select socket strcasecmp strchr strdup \
27935                strerror strrchr strtol strtoul sigprocmask
27936 do
27937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27941   echo $ECHO_N "(cached) $ECHO_C" >&6
27942 else
27943   cat >conftest.$ac_ext <<_ACEOF
27944 /* confdefs.h.  */
27945 _ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h.  */
27949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27951 #define $ac_func innocuous_$ac_func
27952
27953 /* System header to define __stub macros and hopefully few prototypes,
27954     which can conflict with char $ac_func (); below.
27955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27956     <limits.h> exists even on freestanding compilers.  */
27957
27958 #ifdef __STDC__
27959 # include <limits.h>
27960 #else
27961 # include <assert.h>
27962 #endif
27963
27964 #undef $ac_func
27965
27966 /* Override any GCC internal prototype to avoid an error.
27967    Use char because int might match the return type of a GCC
27968    builtin and then its argument prototype would still apply.  */
27969 #ifdef __cplusplus
27970 extern "C"
27971 #endif
27972 char $ac_func ();
27973 /* The GNU C library defines this for functions which it implements
27974     to always fail with ENOSYS.  Some functions are actually named
27975     something starting with __ and the normal name is an alias.  */
27976 #if defined __stub_$ac_func || defined __stub___$ac_func
27977 choke me
27978 #endif
27979
27980 int
27981 main ()
27982 {
27983 return $ac_func ();
27984   ;
27985   return 0;
27986 }
27987 _ACEOF
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_link") 2>conftest.er1
27996   ac_status=$?
27997   grep -v '^ *+' conftest.er1 >conftest.err
27998   rm -f conftest.er1
27999   cat conftest.err >&5
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); } &&
28002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28003   { (case "(($ac_try" in
28004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005   *) ac_try_echo=$ac_try;;
28006 esac
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28008   (eval "$ac_try") 2>&5
28009   ac_status=$?
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); }; } &&
28012          { ac_try='test -s conftest$ac_exeext'
28013   { (case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_try") 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; }; then
28022   eval "$as_ac_var=yes"
28023 else
28024   echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027         eval "$as_ac_var=no"
28028 fi
28029
28030 rm -f conftest.err conftest.$ac_objext \
28031       conftest$ac_exeext conftest.$ac_ext
28032 fi
28033 ac_res=`eval echo '${'$as_ac_var'}'`
28034                { echo "$as_me:$LINENO: result: $ac_res" >&5
28035 echo "${ECHO_T}$ac_res" >&6; }
28036 if test `eval echo '${'$as_ac_var'}'` = yes; then
28037   cat >>confdefs.h <<_ACEOF
28038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28039 _ACEOF
28040
28041 fi
28042 done
28043
28044
28045
28046 { echo "$as_me:$LINENO: checking for short" >&5
28047 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28048 if test "${ac_cv_type_short+set}" = set; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   cat >conftest.$ac_ext <<_ACEOF
28052 /* confdefs.h.  */
28053 _ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h.  */
28057 $ac_includes_default
28058 typedef short ac__type_new_;
28059 int
28060 main ()
28061 {
28062 if ((ac__type_new_ *) 0)
28063   return 0;
28064 if (sizeof (ac__type_new_))
28065   return 0;
28066   ;
28067   return 0;
28068 }
28069 _ACEOF
28070 rm -f conftest.$ac_objext
28071 if { (ac_try="$ac_compile"
28072 case "(($ac_try" in
28073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074   *) ac_try_echo=$ac_try;;
28075 esac
28076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077   (eval "$ac_compile") 2>conftest.er1
28078   ac_status=$?
28079   grep -v '^ *+' conftest.er1 >conftest.err
28080   rm -f conftest.er1
28081   cat conftest.err >&5
28082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083   (exit $ac_status); } &&
28084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28085   { (case "(($ac_try" in
28086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087   *) ac_try_echo=$ac_try;;
28088 esac
28089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090   (eval "$ac_try") 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; } &&
28094          { ac_try='test -s conftest.$ac_objext'
28095   { (case "(($ac_try" in
28096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28097   *) ac_try_echo=$ac_try;;
28098 esac
28099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28100   (eval "$ac_try") 2>&5
28101   ac_status=$?
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); }; }; then
28104   ac_cv_type_short=yes
28105 else
28106   echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28108
28109         ac_cv_type_short=no
28110 fi
28111
28112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28113 fi
28114 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28115 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28116
28117 { echo "$as_me:$LINENO: checking size of short" >&5
28118 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28119 if test "${ac_cv_sizeof_short+set}" = set; then
28120   echo $ECHO_N "(cached) $ECHO_C" >&6
28121 else
28122   if test "$ac_cv_type_short" = yes; then
28123   # The cast to long int works around a bug in the HP C Compiler
28124   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28125   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28126   # This bug is HP SR number 8606223364.
28127   if test "$cross_compiling" = yes; then
28128   # Depending upon the size, compute the lo and hi bounds.
28129 cat >conftest.$ac_ext <<_ACEOF
28130 /* confdefs.h.  */
28131 _ACEOF
28132 cat confdefs.h >>conftest.$ac_ext
28133 cat >>conftest.$ac_ext <<_ACEOF
28134 /* end confdefs.h.  */
28135 $ac_includes_default
28136                    typedef short ac__type_sizeof_;
28137 int
28138 main ()
28139 {
28140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28141 test_array [0] = 0
28142
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 rm -f conftest.$ac_objext
28148 if { (ac_try="$ac_compile"
28149 case "(($ac_try" in
28150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151   *) ac_try_echo=$ac_try;;
28152 esac
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154   (eval "$ac_compile") 2>conftest.er1
28155   ac_status=$?
28156   grep -v '^ *+' conftest.er1 >conftest.err
28157   rm -f conftest.er1
28158   cat conftest.err >&5
28159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160   (exit $ac_status); } &&
28161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28162   { (case "(($ac_try" in
28163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164   *) ac_try_echo=$ac_try;;
28165 esac
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167   (eval "$ac_try") 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); }; } &&
28171          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28178   ac_status=$?
28179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); }; }; then
28181   ac_lo=0 ac_mid=0
28182   while :; do
28183     cat >conftest.$ac_ext <<_ACEOF
28184 /* confdefs.h.  */
28185 _ACEOF
28186 cat confdefs.h >>conftest.$ac_ext
28187 cat >>conftest.$ac_ext <<_ACEOF
28188 /* end confdefs.h.  */
28189 $ac_includes_default
28190                    typedef short ac__type_sizeof_;
28191 int
28192 main ()
28193 {
28194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28195 test_array [0] = 0
28196
28197   ;
28198   return 0;
28199 }
28200 _ACEOF
28201 rm -f conftest.$ac_objext
28202 if { (ac_try="$ac_compile"
28203 case "(($ac_try" in
28204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205   *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208   (eval "$ac_compile") 2>conftest.er1
28209   ac_status=$?
28210   grep -v '^ *+' conftest.er1 >conftest.err
28211   rm -f conftest.er1
28212   cat conftest.err >&5
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); } &&
28215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28216   { (case "(($ac_try" in
28217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218   *) ac_try_echo=$ac_try;;
28219 esac
28220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221   (eval "$ac_try") 2>&5
28222   ac_status=$?
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); }; } &&
28225          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; }; then
28235   ac_hi=$ac_mid; break
28236 else
28237   echo "$as_me: failed program was:" >&5
28238 sed 's/^/| /' conftest.$ac_ext >&5
28239
28240         ac_lo=`expr $ac_mid + 1`
28241                         if test $ac_lo -le $ac_mid; then
28242                           ac_lo= ac_hi=
28243                           break
28244                         fi
28245                         ac_mid=`expr 2 '*' $ac_mid + 1`
28246 fi
28247
28248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28249   done
28250 else
28251   echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254         cat >conftest.$ac_ext <<_ACEOF
28255 /* confdefs.h.  */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h.  */
28260 $ac_includes_default
28261                    typedef short ac__type_sizeof_;
28262 int
28263 main ()
28264 {
28265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28266 test_array [0] = 0
28267
28268   ;
28269   return 0;
28270 }
28271 _ACEOF
28272 rm -f conftest.$ac_objext
28273 if { (ac_try="$ac_compile"
28274 case "(($ac_try" in
28275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276   *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279   (eval "$ac_compile") 2>conftest.er1
28280   ac_status=$?
28281   grep -v '^ *+' conftest.er1 >conftest.err
28282   rm -f conftest.er1
28283   cat conftest.err >&5
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); } &&
28286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28287   { (case "(($ac_try" in
28288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289   *) ac_try_echo=$ac_try;;
28290 esac
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292   (eval "$ac_try") 2>&5
28293   ac_status=$?
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); }; } &&
28296          { ac_try='test -s conftest.$ac_objext'
28297   { (case "(($ac_try" in
28298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299   *) ac_try_echo=$ac_try;;
28300 esac
28301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302   (eval "$ac_try") 2>&5
28303   ac_status=$?
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); }; }; then
28306   ac_hi=-1 ac_mid=-1
28307   while :; do
28308     cat >conftest.$ac_ext <<_ACEOF
28309 /* confdefs.h.  */
28310 _ACEOF
28311 cat confdefs.h >>conftest.$ac_ext
28312 cat >>conftest.$ac_ext <<_ACEOF
28313 /* end confdefs.h.  */
28314 $ac_includes_default
28315                    typedef short ac__type_sizeof_;
28316 int
28317 main ()
28318 {
28319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28320 test_array [0] = 0
28321
28322   ;
28323   return 0;
28324 }
28325 _ACEOF
28326 rm -f conftest.$ac_objext
28327 if { (ac_try="$ac_compile"
28328 case "(($ac_try" in
28329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330   *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333   (eval "$ac_compile") 2>conftest.er1
28334   ac_status=$?
28335   grep -v '^ *+' conftest.er1 >conftest.err
28336   rm -f conftest.er1
28337   cat conftest.err >&5
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); } &&
28340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28341   { (case "(($ac_try" in
28342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28343   *) ac_try_echo=$ac_try;;
28344 esac
28345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28346   (eval "$ac_try") 2>&5
28347   ac_status=$?
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); }; } &&
28350          { ac_try='test -s conftest.$ac_objext'
28351   { (case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_try") 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); }; }; then
28360   ac_lo=$ac_mid; break
28361 else
28362   echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28364
28365         ac_hi=`expr '(' $ac_mid ')' - 1`
28366                         if test $ac_mid -le $ac_hi; then
28367                           ac_lo= ac_hi=
28368                           break
28369                         fi
28370                         ac_mid=`expr 2 '*' $ac_mid`
28371 fi
28372
28373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28374   done
28375 else
28376   echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379         ac_lo= ac_hi=
28380 fi
28381
28382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28383 fi
28384
28385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28386 # Binary search between lo and hi bounds.
28387 while test "x$ac_lo" != "x$ac_hi"; do
28388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28389   cat >conftest.$ac_ext <<_ACEOF
28390 /* confdefs.h.  */
28391 _ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h.  */
28395 $ac_includes_default
28396                    typedef short ac__type_sizeof_;
28397 int
28398 main ()
28399 {
28400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28401 test_array [0] = 0
28402
28403   ;
28404   return 0;
28405 }
28406 _ACEOF
28407 rm -f conftest.$ac_objext
28408 if { (ac_try="$ac_compile"
28409 case "(($ac_try" in
28410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411   *) ac_try_echo=$ac_try;;
28412 esac
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414   (eval "$ac_compile") 2>conftest.er1
28415   ac_status=$?
28416   grep -v '^ *+' conftest.er1 >conftest.err
28417   rm -f conftest.er1
28418   cat conftest.err >&5
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); } &&
28421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28422   { (case "(($ac_try" in
28423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424   *) ac_try_echo=$ac_try;;
28425 esac
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427   (eval "$ac_try") 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; } &&
28431          { ac_try='test -s conftest.$ac_objext'
28432   { (case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437   (eval "$ac_try") 2>&5
28438   ac_status=$?
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); }; }; then
28441   ac_hi=$ac_mid
28442 else
28443   echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446         ac_lo=`expr '(' $ac_mid ')' + 1`
28447 fi
28448
28449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28450 done
28451 case $ac_lo in
28452 ?*) ac_cv_sizeof_short=$ac_lo;;
28453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28454 See \`config.log' for more details." >&5
28455 echo "$as_me: error: cannot compute sizeof (short)
28456 See \`config.log' for more details." >&2;}
28457    { (exit 77); exit 77; }; } ;;
28458 esac
28459 else
28460   cat >conftest.$ac_ext <<_ACEOF
28461 /* confdefs.h.  */
28462 _ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h.  */
28466 $ac_includes_default
28467                    typedef short ac__type_sizeof_;
28468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28470 #include <stdio.h>
28471 #include <stdlib.h>
28472 int
28473 main ()
28474 {
28475
28476   FILE *f = fopen ("conftest.val", "w");
28477   if (! f)
28478     return 1;
28479   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28480     {
28481       long int i = longval ();
28482       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28483         return 1;
28484       fprintf (f, "%ld\n", i);
28485     }
28486   else
28487     {
28488       unsigned long int i = ulongval ();
28489       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28490         return 1;
28491       fprintf (f, "%lu\n", i);
28492     }
28493   return ferror (f) || fclose (f) != 0;
28494
28495   ;
28496   return 0;
28497 }
28498 _ACEOF
28499 rm -f conftest$ac_exeext
28500 if { (ac_try="$ac_link"
28501 case "(($ac_try" in
28502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28503   *) ac_try_echo=$ac_try;;
28504 esac
28505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28506   (eval "$ac_link") 2>&5
28507   ac_status=$?
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28510   { (case "(($ac_try" in
28511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28512   *) ac_try_echo=$ac_try;;
28513 esac
28514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28515   (eval "$ac_try") 2>&5
28516   ac_status=$?
28517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518   (exit $ac_status); }; }; then
28519   ac_cv_sizeof_short=`cat conftest.val`
28520 else
28521   echo "$as_me: program exited with status $ac_status" >&5
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 ( exit $ac_status )
28526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28527 See \`config.log' for more details." >&5
28528 echo "$as_me: error: cannot compute sizeof (short)
28529 See \`config.log' for more details." >&2;}
28530    { (exit 77); exit 77; }; }
28531 fi
28532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28533 fi
28534 rm -f conftest.val
28535 else
28536   ac_cv_sizeof_short=0
28537 fi
28538 fi
28539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28540 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28541 cat >>confdefs.h <<_ACEOF
28542 #define SIZEOF_SHORT $ac_cv_sizeof_short
28543 _ACEOF
28544
28545
28546 { echo "$as_me:$LINENO: checking for int" >&5
28547 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28548 if test "${ac_cv_type_int+set}" = set; then
28549   echo $ECHO_N "(cached) $ECHO_C" >&6
28550 else
28551   cat >conftest.$ac_ext <<_ACEOF
28552 /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557 $ac_includes_default
28558 typedef int ac__type_new_;
28559 int
28560 main ()
28561 {
28562 if ((ac__type_new_ *) 0)
28563   return 0;
28564 if (sizeof (ac__type_new_))
28565   return 0;
28566   ;
28567   return 0;
28568 }
28569 _ACEOF
28570 rm -f conftest.$ac_objext
28571 if { (ac_try="$ac_compile"
28572 case "(($ac_try" in
28573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574   *) ac_try_echo=$ac_try;;
28575 esac
28576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577   (eval "$ac_compile") 2>conftest.er1
28578   ac_status=$?
28579   grep -v '^ *+' conftest.er1 >conftest.err
28580   rm -f conftest.er1
28581   cat conftest.err >&5
28582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583   (exit $ac_status); } &&
28584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28585   { (case "(($ac_try" in
28586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587   *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590   (eval "$ac_try") 2>&5
28591   ac_status=$?
28592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593   (exit $ac_status); }; } &&
28594          { ac_try='test -s conftest.$ac_objext'
28595   { (case "(($ac_try" in
28596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597   *) ac_try_echo=$ac_try;;
28598 esac
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600   (eval "$ac_try") 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; }; then
28604   ac_cv_type_int=yes
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609         ac_cv_type_int=no
28610 fi
28611
28612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28613 fi
28614 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28615 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28616
28617 { echo "$as_me:$LINENO: checking size of int" >&5
28618 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28619 if test "${ac_cv_sizeof_int+set}" = set; then
28620   echo $ECHO_N "(cached) $ECHO_C" >&6
28621 else
28622   if test "$ac_cv_type_int" = yes; then
28623   # The cast to long int works around a bug in the HP C Compiler
28624   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28625   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28626   # This bug is HP SR number 8606223364.
28627   if test "$cross_compiling" = yes; then
28628   # Depending upon the size, compute the lo and hi bounds.
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635 $ac_includes_default
28636                    typedef int ac__type_sizeof_;
28637 int
28638 main ()
28639 {
28640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28641 test_array [0] = 0
28642
28643   ;
28644   return 0;
28645 }
28646 _ACEOF
28647 rm -f conftest.$ac_objext
28648 if { (ac_try="$ac_compile"
28649 case "(($ac_try" in
28650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651   *) ac_try_echo=$ac_try;;
28652 esac
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654   (eval "$ac_compile") 2>conftest.er1
28655   ac_status=$?
28656   grep -v '^ *+' conftest.er1 >conftest.err
28657   rm -f conftest.er1
28658   cat conftest.err >&5
28659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660   (exit $ac_status); } &&
28661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28662   { (case "(($ac_try" in
28663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664   *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667   (eval "$ac_try") 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); }; } &&
28671          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28678   ac_status=$?
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); }; }; then
28681   ac_lo=0 ac_mid=0
28682   while :; do
28683     cat >conftest.$ac_ext <<_ACEOF
28684 /* confdefs.h.  */
28685 _ACEOF
28686 cat confdefs.h >>conftest.$ac_ext
28687 cat >>conftest.$ac_ext <<_ACEOF
28688 /* end confdefs.h.  */
28689 $ac_includes_default
28690                    typedef int ac__type_sizeof_;
28691 int
28692 main ()
28693 {
28694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28695 test_array [0] = 0
28696
28697   ;
28698   return 0;
28699 }
28700 _ACEOF
28701 rm -f conftest.$ac_objext
28702 if { (ac_try="$ac_compile"
28703 case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708   (eval "$ac_compile") 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } &&
28715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28716   { (case "(($ac_try" in
28717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718   *) ac_try_echo=$ac_try;;
28719 esac
28720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721   (eval "$ac_try") 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; } &&
28725          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
28732   ac_status=$?
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); }; }; then
28735   ac_hi=$ac_mid; break
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740         ac_lo=`expr $ac_mid + 1`
28741                         if test $ac_lo -le $ac_mid; then
28742                           ac_lo= ac_hi=
28743                           break
28744                         fi
28745                         ac_mid=`expr 2 '*' $ac_mid + 1`
28746 fi
28747
28748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28749   done
28750 else
28751   echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28753
28754         cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760 $ac_includes_default
28761                    typedef int ac__type_sizeof_;
28762 int
28763 main ()
28764 {
28765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28766 test_array [0] = 0
28767
28768   ;
28769   return 0;
28770 }
28771 _ACEOF
28772 rm -f conftest.$ac_objext
28773 if { (ac_try="$ac_compile"
28774 case "(($ac_try" in
28775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776   *) ac_try_echo=$ac_try;;
28777 esac
28778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779   (eval "$ac_compile") 2>conftest.er1
28780   ac_status=$?
28781   grep -v '^ *+' conftest.er1 >conftest.err
28782   rm -f conftest.er1
28783   cat conftest.err >&5
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); } &&
28786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28787   { (case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792   (eval "$ac_try") 2>&5
28793   ac_status=$?
28794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795   (exit $ac_status); }; } &&
28796          { ac_try='test -s conftest.$ac_objext'
28797   { (case "(($ac_try" in
28798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799   *) ac_try_echo=$ac_try;;
28800 esac
28801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28802   (eval "$ac_try") 2>&5
28803   ac_status=$?
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); }; }; then
28806   ac_hi=-1 ac_mid=-1
28807   while :; do
28808     cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814 $ac_includes_default
28815                    typedef int ac__type_sizeof_;
28816 int
28817 main ()
28818 {
28819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28820 test_array [0] = 0
28821
28822   ;
28823   return 0;
28824 }
28825 _ACEOF
28826 rm -f conftest.$ac_objext
28827 if { (ac_try="$ac_compile"
28828 case "(($ac_try" in
28829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830   *) ac_try_echo=$ac_try;;
28831 esac
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833   (eval "$ac_compile") 2>conftest.er1
28834   ac_status=$?
28835   grep -v '^ *+' conftest.er1 >conftest.err
28836   rm -f conftest.er1
28837   cat conftest.err >&5
28838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839   (exit $ac_status); } &&
28840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28841   { (case "(($ac_try" in
28842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28843   *) ac_try_echo=$ac_try;;
28844 esac
28845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28846   (eval "$ac_try") 2>&5
28847   ac_status=$?
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); }; } &&
28850          { ac_try='test -s conftest.$ac_objext'
28851   { (case "(($ac_try" in
28852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853   *) ac_try_echo=$ac_try;;
28854 esac
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856   (eval "$ac_try") 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); }; }; then
28860   ac_lo=$ac_mid; break
28861 else
28862   echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28864
28865         ac_hi=`expr '(' $ac_mid ')' - 1`
28866                         if test $ac_mid -le $ac_hi; then
28867                           ac_lo= ac_hi=
28868                           break
28869                         fi
28870                         ac_mid=`expr 2 '*' $ac_mid`
28871 fi
28872
28873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28874   done
28875 else
28876   echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879         ac_lo= ac_hi=
28880 fi
28881
28882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28883 fi
28884
28885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28886 # Binary search between lo and hi bounds.
28887 while test "x$ac_lo" != "x$ac_hi"; do
28888   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28889   cat >conftest.$ac_ext <<_ACEOF
28890 /* confdefs.h.  */
28891 _ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h.  */
28895 $ac_includes_default
28896                    typedef int ac__type_sizeof_;
28897 int
28898 main ()
28899 {
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28901 test_array [0] = 0
28902
28903   ;
28904   return 0;
28905 }
28906 _ACEOF
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911   *) ac_try_echo=$ac_try;;
28912 esac
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914   (eval "$ac_compile") 2>conftest.er1
28915   ac_status=$?
28916   grep -v '^ *+' conftest.er1 >conftest.err
28917   rm -f conftest.er1
28918   cat conftest.err >&5
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); } &&
28921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28922   { (case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_try") 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); }; } &&
28931          { ac_try='test -s conftest.$ac_objext'
28932   { (case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_try") 2>&5
28938   ac_status=$?
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); }; }; then
28941   ac_hi=$ac_mid
28942 else
28943   echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28945
28946         ac_lo=`expr '(' $ac_mid ')' + 1`
28947 fi
28948
28949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28950 done
28951 case $ac_lo in
28952 ?*) ac_cv_sizeof_int=$ac_lo;;
28953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28954 See \`config.log' for more details." >&5
28955 echo "$as_me: error: cannot compute sizeof (int)
28956 See \`config.log' for more details." >&2;}
28957    { (exit 77); exit 77; }; } ;;
28958 esac
28959 else
28960   cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966 $ac_includes_default
28967                    typedef int ac__type_sizeof_;
28968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28970 #include <stdio.h>
28971 #include <stdlib.h>
28972 int
28973 main ()
28974 {
28975
28976   FILE *f = fopen ("conftest.val", "w");
28977   if (! f)
28978     return 1;
28979   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28980     {
28981       long int i = longval ();
28982       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28983         return 1;
28984       fprintf (f, "%ld\n", i);
28985     }
28986   else
28987     {
28988       unsigned long int i = ulongval ();
28989       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28990         return 1;
28991       fprintf (f, "%lu\n", i);
28992     }
28993   return ferror (f) || fclose (f) != 0;
28994
28995   ;
28996   return 0;
28997 }
28998 _ACEOF
28999 rm -f conftest$ac_exeext
29000 if { (ac_try="$ac_link"
29001 case "(($ac_try" in
29002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003   *) ac_try_echo=$ac_try;;
29004 esac
29005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006   (eval "$ac_link") 2>&5
29007   ac_status=$?
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29010   { (case "(($ac_try" in
29011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012   *) ac_try_echo=$ac_try;;
29013 esac
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015   (eval "$ac_try") 2>&5
29016   ac_status=$?
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); }; }; then
29019   ac_cv_sizeof_int=`cat conftest.val`
29020 else
29021   echo "$as_me: program exited with status $ac_status" >&5
29022 echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29024
29025 ( exit $ac_status )
29026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29027 See \`config.log' for more details." >&5
29028 echo "$as_me: error: cannot compute sizeof (int)
29029 See \`config.log' for more details." >&2;}
29030    { (exit 77); exit 77; }; }
29031 fi
29032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29033 fi
29034 rm -f conftest.val
29035 else
29036   ac_cv_sizeof_int=0
29037 fi
29038 fi
29039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29040 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29041 cat >>confdefs.h <<_ACEOF
29042 #define SIZEOF_INT $ac_cv_sizeof_int
29043 _ACEOF
29044
29045
29046 { echo "$as_me:$LINENO: checking for long" >&5
29047 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29048 if test "${ac_cv_type_long+set}" = set; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051   cat >conftest.$ac_ext <<_ACEOF
29052 /* confdefs.h.  */
29053 _ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h.  */
29057 $ac_includes_default
29058 typedef long ac__type_new_;
29059 int
29060 main ()
29061 {
29062 if ((ac__type_new_ *) 0)
29063   return 0;
29064 if (sizeof (ac__type_new_))
29065   return 0;
29066   ;
29067   return 0;
29068 }
29069 _ACEOF
29070 rm -f conftest.$ac_objext
29071 if { (ac_try="$ac_compile"
29072 case "(($ac_try" in
29073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074   *) ac_try_echo=$ac_try;;
29075 esac
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077   (eval "$ac_compile") 2>conftest.er1
29078   ac_status=$?
29079   grep -v '^ *+' conftest.er1 >conftest.err
29080   rm -f conftest.er1
29081   cat conftest.err >&5
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } &&
29084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29085   { (case "(($ac_try" in
29086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087   *) ac_try_echo=$ac_try;;
29088 esac
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090   (eval "$ac_try") 2>&5
29091   ac_status=$?
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); }; } &&
29094          { ac_try='test -s conftest.$ac_objext'
29095   { (case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_try") 2>&5
29101   ac_status=$?
29102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103   (exit $ac_status); }; }; then
29104   ac_cv_type_long=yes
29105 else
29106   echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29108
29109         ac_cv_type_long=no
29110 fi
29111
29112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29113 fi
29114 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29115 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29116
29117 { echo "$as_me:$LINENO: checking size of long" >&5
29118 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29119 if test "${ac_cv_sizeof_long+set}" = set; then
29120   echo $ECHO_N "(cached) $ECHO_C" >&6
29121 else
29122   if test "$ac_cv_type_long" = yes; then
29123   # The cast to long int works around a bug in the HP C Compiler
29124   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29125   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29126   # This bug is HP SR number 8606223364.
29127   if test "$cross_compiling" = yes; then
29128   # Depending upon the size, compute the lo and hi bounds.
29129 cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135 $ac_includes_default
29136                    typedef long ac__type_sizeof_;
29137 int
29138 main ()
29139 {
29140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29141 test_array [0] = 0
29142
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 rm -f conftest.$ac_objext
29148 if { (ac_try="$ac_compile"
29149 case "(($ac_try" in
29150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151   *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154   (eval "$ac_compile") 2>conftest.er1
29155   ac_status=$?
29156   grep -v '^ *+' conftest.er1 >conftest.err
29157   rm -f conftest.er1
29158   cat conftest.err >&5
29159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); } &&
29161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29162   { (case "(($ac_try" in
29163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164   *) ac_try_echo=$ac_try;;
29165 esac
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167   (eval "$ac_try") 2>&5
29168   ac_status=$?
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); }; } &&
29171          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29178   ac_status=$?
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); }; }; then
29181   ac_lo=0 ac_mid=0
29182   while :; do
29183     cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h.  */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h.  */
29189 $ac_includes_default
29190                    typedef long ac__type_sizeof_;
29191 int
29192 main ()
29193 {
29194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29195 test_array [0] = 0
29196
29197   ;
29198   return 0;
29199 }
29200 _ACEOF
29201 rm -f conftest.$ac_objext
29202 if { (ac_try="$ac_compile"
29203 case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208   (eval "$ac_compile") 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29216   { (case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_try") 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; } &&
29225          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235   ac_hi=$ac_mid; break
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240         ac_lo=`expr $ac_mid + 1`
29241                         if test $ac_lo -le $ac_mid; then
29242                           ac_lo= ac_hi=
29243                           break
29244                         fi
29245                         ac_mid=`expr 2 '*' $ac_mid + 1`
29246 fi
29247
29248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29249   done
29250 else
29251   echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.$ac_ext >&5
29253
29254         cat >conftest.$ac_ext <<_ACEOF
29255 /* confdefs.h.  */
29256 _ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h.  */
29260 $ac_includes_default
29261                    typedef long ac__type_sizeof_;
29262 int
29263 main ()
29264 {
29265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29266 test_array [0] = 0
29267
29268   ;
29269   return 0;
29270 }
29271 _ACEOF
29272 rm -f conftest.$ac_objext
29273 if { (ac_try="$ac_compile"
29274 case "(($ac_try" in
29275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29276   *) ac_try_echo=$ac_try;;
29277 esac
29278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29279   (eval "$ac_compile") 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } &&
29286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29287   { (case "(($ac_try" in
29288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289   *) ac_try_echo=$ac_try;;
29290 esac
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292   (eval "$ac_try") 2>&5
29293   ac_status=$?
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); }; } &&
29296          { ac_try='test -s conftest.$ac_objext'
29297   { (case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302   (eval "$ac_try") 2>&5
29303   ac_status=$?
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); }; }; then
29306   ac_hi=-1 ac_mid=-1
29307   while :; do
29308     cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314 $ac_includes_default
29315                    typedef long ac__type_sizeof_;
29316 int
29317 main ()
29318 {
29319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29320 test_array [0] = 0
29321
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext
29327 if { (ac_try="$ac_compile"
29328 case "(($ac_try" in
29329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29330   *) ac_try_echo=$ac_try;;
29331 esac
29332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29333   (eval "$ac_compile") 2>conftest.er1
29334   ac_status=$?
29335   grep -v '^ *+' conftest.er1 >conftest.err
29336   rm -f conftest.er1
29337   cat conftest.err >&5
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); } &&
29340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29341   { (case "(($ac_try" in
29342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343   *) ac_try_echo=$ac_try;;
29344 esac
29345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346   (eval "$ac_try") 2>&5
29347   ac_status=$?
29348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349   (exit $ac_status); }; } &&
29350          { ac_try='test -s conftest.$ac_objext'
29351   { (case "(($ac_try" in
29352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353   *) ac_try_echo=$ac_try;;
29354 esac
29355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356   (eval "$ac_try") 2>&5
29357   ac_status=$?
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); }; }; then
29360   ac_lo=$ac_mid; break
29361 else
29362   echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29364
29365         ac_hi=`expr '(' $ac_mid ')' - 1`
29366                         if test $ac_mid -le $ac_hi; then
29367                           ac_lo= ac_hi=
29368                           break
29369                         fi
29370                         ac_mid=`expr 2 '*' $ac_mid`
29371 fi
29372
29373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29374   done
29375 else
29376   echo "$as_me: failed program was:" >&5
29377 sed 's/^/| /' conftest.$ac_ext >&5
29378
29379         ac_lo= ac_hi=
29380 fi
29381
29382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29383 fi
29384
29385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29386 # Binary search between lo and hi bounds.
29387 while test "x$ac_lo" != "x$ac_hi"; do
29388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29389   cat >conftest.$ac_ext <<_ACEOF
29390 /* confdefs.h.  */
29391 _ACEOF
29392 cat confdefs.h >>conftest.$ac_ext
29393 cat >>conftest.$ac_ext <<_ACEOF
29394 /* end confdefs.h.  */
29395 $ac_includes_default
29396                    typedef long ac__type_sizeof_;
29397 int
29398 main ()
29399 {
29400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29401 test_array [0] = 0
29402
29403   ;
29404   return 0;
29405 }
29406 _ACEOF
29407 rm -f conftest.$ac_objext
29408 if { (ac_try="$ac_compile"
29409 case "(($ac_try" in
29410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411   *) ac_try_echo=$ac_try;;
29412 esac
29413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29414   (eval "$ac_compile") 2>conftest.er1
29415   ac_status=$?
29416   grep -v '^ *+' conftest.er1 >conftest.err
29417   rm -f conftest.er1
29418   cat conftest.err >&5
29419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420   (exit $ac_status); } &&
29421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29422   { (case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_try") 2>&5
29428   ac_status=$?
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); }; } &&
29431          { ac_try='test -s conftest.$ac_objext'
29432   { (case "(($ac_try" in
29433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29434   *) ac_try_echo=$ac_try;;
29435 esac
29436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29437   (eval "$ac_try") 2>&5
29438   ac_status=$?
29439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440   (exit $ac_status); }; }; then
29441   ac_hi=$ac_mid
29442 else
29443   echo "$as_me: failed program was:" >&5
29444 sed 's/^/| /' conftest.$ac_ext >&5
29445
29446         ac_lo=`expr '(' $ac_mid ')' + 1`
29447 fi
29448
29449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29450 done
29451 case $ac_lo in
29452 ?*) ac_cv_sizeof_long=$ac_lo;;
29453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29454 See \`config.log' for more details." >&5
29455 echo "$as_me: error: cannot compute sizeof (long)
29456 See \`config.log' for more details." >&2;}
29457    { (exit 77); exit 77; }; } ;;
29458 esac
29459 else
29460   cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466 $ac_includes_default
29467                    typedef long ac__type_sizeof_;
29468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29470 #include <stdio.h>
29471 #include <stdlib.h>
29472 int
29473 main ()
29474 {
29475
29476   FILE *f = fopen ("conftest.val", "w");
29477   if (! f)
29478     return 1;
29479   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29480     {
29481       long int i = longval ();
29482       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29483         return 1;
29484       fprintf (f, "%ld\n", i);
29485     }
29486   else
29487     {
29488       unsigned long int i = ulongval ();
29489       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29490         return 1;
29491       fprintf (f, "%lu\n", i);
29492     }
29493   return ferror (f) || fclose (f) != 0;
29494
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 rm -f conftest$ac_exeext
29500 if { (ac_try="$ac_link"
29501 case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_link") 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29510   { (case "(($ac_try" in
29511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512   *) ac_try_echo=$ac_try;;
29513 esac
29514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29515   (eval "$ac_try") 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ac_cv_sizeof_long=`cat conftest.val`
29520 else
29521   echo "$as_me: program exited with status $ac_status" >&5
29522 echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525 ( exit $ac_status )
29526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29527 See \`config.log' for more details." >&5
29528 echo "$as_me: error: cannot compute sizeof (long)
29529 See \`config.log' for more details." >&2;}
29530    { (exit 77); exit 77; }; }
29531 fi
29532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29533 fi
29534 rm -f conftest.val
29535 else
29536   ac_cv_sizeof_long=0
29537 fi
29538 fi
29539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29540 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29541 cat >>confdefs.h <<_ACEOF
29542 #define SIZEOF_LONG $ac_cv_sizeof_long
29543 _ACEOF
29544
29545
29546 { echo "$as_me:$LINENO: checking for size_t" >&5
29547 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29548 if test "${ac_cv_type_size_t+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551   cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 $ac_includes_default
29558 typedef size_t ac__type_new_;
29559 int
29560 main ()
29561 {
29562 if ((ac__type_new_ *) 0)
29563   return 0;
29564 if (sizeof (ac__type_new_))
29565   return 0;
29566   ;
29567   return 0;
29568 }
29569 _ACEOF
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29577   (eval "$ac_compile") 2>conftest.er1
29578   ac_status=$?
29579   grep -v '^ *+' conftest.er1 >conftest.err
29580   rm -f conftest.er1
29581   cat conftest.err >&5
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); } &&
29584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29585   { (case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_try") 2>&5
29591   ac_status=$?
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); }; } &&
29594          { ac_try='test -s conftest.$ac_objext'
29595   { (case "(($ac_try" in
29596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29597   *) ac_try_echo=$ac_try;;
29598 esac
29599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29600   (eval "$ac_try") 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   ac_cv_type_size_t=yes
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609         ac_cv_type_size_t=no
29610 fi
29611
29612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29613 fi
29614 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29615 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29616
29617 { echo "$as_me:$LINENO: checking size of size_t" >&5
29618 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29619 if test "${ac_cv_sizeof_size_t+set}" = set; then
29620   echo $ECHO_N "(cached) $ECHO_C" >&6
29621 else
29622   if test "$ac_cv_type_size_t" = yes; then
29623   # The cast to long int works around a bug in the HP C Compiler
29624   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29625   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29626   # This bug is HP SR number 8606223364.
29627   if test "$cross_compiling" = yes; then
29628   # Depending upon the size, compute the lo and hi bounds.
29629 cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635 $ac_includes_default
29636                    typedef size_t ac__type_sizeof_;
29637 int
29638 main ()
29639 {
29640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29641 test_array [0] = 0
29642
29643   ;
29644   return 0;
29645 }
29646 _ACEOF
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_compile") 2>conftest.er1
29655   ac_status=$?
29656   grep -v '^ *+' conftest.er1 >conftest.err
29657   rm -f conftest.er1
29658   cat conftest.err >&5
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); } &&
29661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662   { (case "(($ac_try" in
29663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664   *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667   (eval "$ac_try") 2>&5
29668   ac_status=$?
29669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670   (exit $ac_status); }; } &&
29671          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29678   ac_status=$?
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); }; }; then
29681   ac_lo=0 ac_mid=0
29682   while :; do
29683     cat >conftest.$ac_ext <<_ACEOF
29684 /* confdefs.h.  */
29685 _ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h.  */
29689 $ac_includes_default
29690                    typedef size_t ac__type_sizeof_;
29691 int
29692 main ()
29693 {
29694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29695 test_array [0] = 0
29696
29697   ;
29698   return 0;
29699 }
29700 _ACEOF
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705   *) ac_try_echo=$ac_try;;
29706 esac
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708   (eval "$ac_compile") 2>conftest.er1
29709   ac_status=$?
29710   grep -v '^ *+' conftest.er1 >conftest.err
29711   rm -f conftest.er1
29712   cat conftest.err >&5
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); } &&
29715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
29732   ac_status=$?
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); }; }; then
29735   ac_hi=$ac_mid; break
29736 else
29737   echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29739
29740         ac_lo=`expr $ac_mid + 1`
29741                         if test $ac_lo -le $ac_mid; then
29742                           ac_lo= ac_hi=
29743                           break
29744                         fi
29745                         ac_mid=`expr 2 '*' $ac_mid + 1`
29746 fi
29747
29748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29749   done
29750 else
29751   echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29753
29754         cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h.  */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h.  */
29760 $ac_includes_default
29761                    typedef size_t ac__type_sizeof_;
29762 int
29763 main ()
29764 {
29765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29766 test_array [0] = 0
29767
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 rm -f conftest.$ac_objext
29773 if { (ac_try="$ac_compile"
29774 case "(($ac_try" in
29775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776   *) ac_try_echo=$ac_try;;
29777 esac
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779   (eval "$ac_compile") 2>conftest.er1
29780   ac_status=$?
29781   grep -v '^ *+' conftest.er1 >conftest.err
29782   rm -f conftest.er1
29783   cat conftest.err >&5
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); } &&
29786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787   { (case "(($ac_try" in
29788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789   *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792   (eval "$ac_try") 2>&5
29793   ac_status=$?
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); }; } &&
29796          { ac_try='test -s conftest.$ac_objext'
29797   { (case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802   (eval "$ac_try") 2>&5
29803   ac_status=$?
29804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805   (exit $ac_status); }; }; then
29806   ac_hi=-1 ac_mid=-1
29807   while :; do
29808     cat >conftest.$ac_ext <<_ACEOF
29809 /* confdefs.h.  */
29810 _ACEOF
29811 cat confdefs.h >>conftest.$ac_ext
29812 cat >>conftest.$ac_ext <<_ACEOF
29813 /* end confdefs.h.  */
29814 $ac_includes_default
29815                    typedef size_t ac__type_sizeof_;
29816 int
29817 main ()
29818 {
29819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29820 test_array [0] = 0
29821
29822   ;
29823   return 0;
29824 }
29825 _ACEOF
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830   *) ac_try_echo=$ac_try;;
29831 esac
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833   (eval "$ac_compile") 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } &&
29840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29841   { (case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_try") 2>&5
29847   ac_status=$?
29848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); }; } &&
29850          { ac_try='test -s conftest.$ac_objext'
29851   { (case "(($ac_try" in
29852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853   *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856   (eval "$ac_try") 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   ac_lo=$ac_mid; break
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865         ac_hi=`expr '(' $ac_mid ')' - 1`
29866                         if test $ac_mid -le $ac_hi; then
29867                           ac_lo= ac_hi=
29868                           break
29869                         fi
29870                         ac_mid=`expr 2 '*' $ac_mid`
29871 fi
29872
29873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29874   done
29875 else
29876   echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29878
29879         ac_lo= ac_hi=
29880 fi
29881
29882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29883 fi
29884
29885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29886 # Binary search between lo and hi bounds.
29887 while test "x$ac_lo" != "x$ac_hi"; do
29888   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29889   cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h.  */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h.  */
29895 $ac_includes_default
29896                    typedef size_t ac__type_sizeof_;
29897 int
29898 main ()
29899 {
29900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29901 test_array [0] = 0
29902
29903   ;
29904   return 0;
29905 }
29906 _ACEOF
29907 rm -f conftest.$ac_objext
29908 if { (ac_try="$ac_compile"
29909 case "(($ac_try" in
29910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29911   *) ac_try_echo=$ac_try;;
29912 esac
29913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29914   (eval "$ac_compile") 2>conftest.er1
29915   ac_status=$?
29916   grep -v '^ *+' conftest.er1 >conftest.err
29917   rm -f conftest.er1
29918   cat conftest.err >&5
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); } &&
29921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29922   { (case "(($ac_try" in
29923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924   *) ac_try_echo=$ac_try;;
29925 esac
29926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927   (eval "$ac_try") 2>&5
29928   ac_status=$?
29929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930   (exit $ac_status); }; } &&
29931          { ac_try='test -s conftest.$ac_objext'
29932   { (case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_try") 2>&5
29938   ac_status=$?
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); }; }; then
29941   ac_hi=$ac_mid
29942 else
29943   echo "$as_me: failed program was:" >&5
29944 sed 's/^/| /' conftest.$ac_ext >&5
29945
29946         ac_lo=`expr '(' $ac_mid ')' + 1`
29947 fi
29948
29949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29950 done
29951 case $ac_lo in
29952 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29953 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29954 See \`config.log' for more details." >&5
29955 echo "$as_me: error: cannot compute sizeof (size_t)
29956 See \`config.log' for more details." >&2;}
29957    { (exit 77); exit 77; }; } ;;
29958 esac
29959 else
29960   cat >conftest.$ac_ext <<_ACEOF
29961 /* confdefs.h.  */
29962 _ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h.  */
29966 $ac_includes_default
29967                    typedef size_t ac__type_sizeof_;
29968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29970 #include <stdio.h>
29971 #include <stdlib.h>
29972 int
29973 main ()
29974 {
29975
29976   FILE *f = fopen ("conftest.val", "w");
29977   if (! f)
29978     return 1;
29979   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29980     {
29981       long int i = longval ();
29982       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29983         return 1;
29984       fprintf (f, "%ld\n", i);
29985     }
29986   else
29987     {
29988       unsigned long int i = ulongval ();
29989       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29990         return 1;
29991       fprintf (f, "%lu\n", i);
29992     }
29993   return ferror (f) || fclose (f) != 0;
29994
29995   ;
29996   return 0;
29997 }
29998 _ACEOF
29999 rm -f conftest$ac_exeext
30000 if { (ac_try="$ac_link"
30001 case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_link") 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30010   { (case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_try") 2>&5
30016   ac_status=$?
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); }; }; then
30019   ac_cv_sizeof_size_t=`cat conftest.val`
30020 else
30021   echo "$as_me: program exited with status $ac_status" >&5
30022 echo "$as_me: failed program was:" >&5
30023 sed 's/^/| /' conftest.$ac_ext >&5
30024
30025 ( exit $ac_status )
30026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
30027 See \`config.log' for more details." >&5
30028 echo "$as_me: error: cannot compute sizeof (size_t)
30029 See \`config.log' for more details." >&2;}
30030    { (exit 77); exit 77; }; }
30031 fi
30032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30033 fi
30034 rm -f conftest.val
30035 else
30036   ac_cv_sizeof_size_t=0
30037 fi
30038 fi
30039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
30040 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
30041 cat >>confdefs.h <<_ACEOF
30042 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
30043 _ACEOF
30044
30045
30046 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30047 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30048 if test "${ac_cv_type_socklen_t+set}" = set; then
30049   echo $ECHO_N "(cached) $ECHO_C" >&6
30050 else
30051   cat >conftest.$ac_ext <<_ACEOF
30052 /* confdefs.h.  */
30053 _ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h.  */
30057 $ac_includes_default
30058 typedef socklen_t ac__type_new_;
30059 int
30060 main ()
30061 {
30062 if ((ac__type_new_ *) 0)
30063   return 0;
30064 if (sizeof (ac__type_new_))
30065   return 0;
30066   ;
30067   return 0;
30068 }
30069 _ACEOF
30070 rm -f conftest.$ac_objext
30071 if { (ac_try="$ac_compile"
30072 case "(($ac_try" in
30073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074   *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077   (eval "$ac_compile") 2>conftest.er1
30078   ac_status=$?
30079   grep -v '^ *+' conftest.er1 >conftest.err
30080   rm -f conftest.er1
30081   cat conftest.err >&5
30082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083   (exit $ac_status); } &&
30084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30085   { (case "(($ac_try" in
30086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087   *) ac_try_echo=$ac_try;;
30088 esac
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090   (eval "$ac_try") 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; } &&
30094          { ac_try='test -s conftest.$ac_objext'
30095   { (case "(($ac_try" in
30096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097   *) ac_try_echo=$ac_try;;
30098 esac
30099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100   (eval "$ac_try") 2>&5
30101   ac_status=$?
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); }; }; then
30104   ac_cv_type_socklen_t=yes
30105 else
30106   echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30108
30109         ac_cv_type_socklen_t=no
30110 fi
30111
30112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30113 fi
30114 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30115 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30116
30117 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30118 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30119 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30120   echo $ECHO_N "(cached) $ECHO_C" >&6
30121 else
30122   if test "$ac_cv_type_socklen_t" = yes; then
30123   # The cast to long int works around a bug in the HP C Compiler
30124   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30125   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30126   # This bug is HP SR number 8606223364.
30127   if test "$cross_compiling" = yes; then
30128   # Depending upon the size, compute the lo and hi bounds.
30129 cat >conftest.$ac_ext <<_ACEOF
30130 /* confdefs.h.  */
30131 _ACEOF
30132 cat confdefs.h >>conftest.$ac_ext
30133 cat >>conftest.$ac_ext <<_ACEOF
30134 /* end confdefs.h.  */
30135 $ac_includes_default
30136                    typedef socklen_t ac__type_sizeof_;
30137 int
30138 main ()
30139 {
30140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30141 test_array [0] = 0
30142
30143   ;
30144   return 0;
30145 }
30146 _ACEOF
30147 rm -f conftest.$ac_objext
30148 if { (ac_try="$ac_compile"
30149 case "(($ac_try" in
30150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30151   *) ac_try_echo=$ac_try;;
30152 esac
30153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30154   (eval "$ac_compile") 2>conftest.er1
30155   ac_status=$?
30156   grep -v '^ *+' conftest.er1 >conftest.err
30157   rm -f conftest.er1
30158   cat conftest.err >&5
30159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160   (exit $ac_status); } &&
30161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30162   { (case "(($ac_try" in
30163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164   *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167   (eval "$ac_try") 2>&5
30168   ac_status=$?
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); }; } &&
30171          { ac_try='test -s conftest.$ac_objext'
30172   { (case "(($ac_try" in
30173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174   *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177   (eval "$ac_try") 2>&5
30178   ac_status=$?
30179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180   (exit $ac_status); }; }; then
30181   ac_lo=0 ac_mid=0
30182   while :; do
30183     cat >conftest.$ac_ext <<_ACEOF
30184 /* confdefs.h.  */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h.  */
30189 $ac_includes_default
30190                    typedef socklen_t ac__type_sizeof_;
30191 int
30192 main ()
30193 {
30194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30195 test_array [0] = 0
30196
30197   ;
30198   return 0;
30199 }
30200 _ACEOF
30201 rm -f conftest.$ac_objext
30202 if { (ac_try="$ac_compile"
30203 case "(($ac_try" in
30204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205   *) ac_try_echo=$ac_try;;
30206 esac
30207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30208   (eval "$ac_compile") 2>conftest.er1
30209   ac_status=$?
30210   grep -v '^ *+' conftest.er1 >conftest.err
30211   rm -f conftest.er1
30212   cat conftest.err >&5
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); } &&
30215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30216   { (case "(($ac_try" in
30217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218   *) ac_try_echo=$ac_try;;
30219 esac
30220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30221   (eval "$ac_try") 2>&5
30222   ac_status=$?
30223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224   (exit $ac_status); }; } &&
30225          { ac_try='test -s conftest.$ac_objext'
30226   { (case "(($ac_try" in
30227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228   *) ac_try_echo=$ac_try;;
30229 esac
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231   (eval "$ac_try") 2>&5
30232   ac_status=$?
30233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234   (exit $ac_status); }; }; then
30235   ac_hi=$ac_mid; break
30236 else
30237   echo "$as_me: failed program was:" >&5
30238 sed 's/^/| /' conftest.$ac_ext >&5
30239
30240         ac_lo=`expr $ac_mid + 1`
30241                         if test $ac_lo -le $ac_mid; then
30242                           ac_lo= ac_hi=
30243                           break
30244                         fi
30245                         ac_mid=`expr 2 '*' $ac_mid + 1`
30246 fi
30247
30248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30249   done
30250 else
30251   echo "$as_me: failed program was:" >&5
30252 sed 's/^/| /' conftest.$ac_ext >&5
30253
30254         cat >conftest.$ac_ext <<_ACEOF
30255 /* confdefs.h.  */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h.  */
30260 $ac_includes_default
30261                    typedef socklen_t ac__type_sizeof_;
30262 int
30263 main ()
30264 {
30265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30266 test_array [0] = 0
30267
30268   ;
30269   return 0;
30270 }
30271 _ACEOF
30272 rm -f conftest.$ac_objext
30273 if { (ac_try="$ac_compile"
30274 case "(($ac_try" in
30275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276   *) ac_try_echo=$ac_try;;
30277 esac
30278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279   (eval "$ac_compile") 2>conftest.er1
30280   ac_status=$?
30281   grep -v '^ *+' conftest.er1 >conftest.err
30282   rm -f conftest.er1
30283   cat conftest.err >&5
30284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285   (exit $ac_status); } &&
30286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30287   { (case "(($ac_try" in
30288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289   *) ac_try_echo=$ac_try;;
30290 esac
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292   (eval "$ac_try") 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest.$ac_objext'
30297   { (case "(($ac_try" in
30298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299   *) ac_try_echo=$ac_try;;
30300 esac
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302   (eval "$ac_try") 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); }; }; then
30306   ac_hi=-1 ac_mid=-1
30307   while :; do
30308     cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h.  */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h.  */
30314 $ac_includes_default
30315                    typedef socklen_t ac__type_sizeof_;
30316 int
30317 main ()
30318 {
30319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30320 test_array [0] = 0
30321
30322   ;
30323   return 0;
30324 }
30325 _ACEOF
30326 rm -f conftest.$ac_objext
30327 if { (ac_try="$ac_compile"
30328 case "(($ac_try" in
30329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330   *) ac_try_echo=$ac_try;;
30331 esac
30332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333   (eval "$ac_compile") 2>conftest.er1
30334   ac_status=$?
30335   grep -v '^ *+' conftest.er1 >conftest.err
30336   rm -f conftest.er1
30337   cat conftest.err >&5
30338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339   (exit $ac_status); } &&
30340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30341   { (case "(($ac_try" in
30342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30343   *) ac_try_echo=$ac_try;;
30344 esac
30345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30346   (eval "$ac_try") 2>&5
30347   ac_status=$?
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); }; } &&
30350          { ac_try='test -s conftest.$ac_objext'
30351   { (case "(($ac_try" in
30352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30353   *) ac_try_echo=$ac_try;;
30354 esac
30355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30356   (eval "$ac_try") 2>&5
30357   ac_status=$?
30358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359   (exit $ac_status); }; }; then
30360   ac_lo=$ac_mid; break
30361 else
30362   echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30364
30365         ac_hi=`expr '(' $ac_mid ')' - 1`
30366                         if test $ac_mid -le $ac_hi; then
30367                           ac_lo= ac_hi=
30368                           break
30369                         fi
30370                         ac_mid=`expr 2 '*' $ac_mid`
30371 fi
30372
30373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30374   done
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379         ac_lo= ac_hi=
30380 fi
30381
30382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30383 fi
30384
30385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30386 # Binary search between lo and hi bounds.
30387 while test "x$ac_lo" != "x$ac_hi"; do
30388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30389   cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395 $ac_includes_default
30396                    typedef socklen_t ac__type_sizeof_;
30397 int
30398 main ()
30399 {
30400 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30401 test_array [0] = 0
30402
30403   ;
30404   return 0;
30405 }
30406 _ACEOF
30407 rm -f conftest.$ac_objext
30408 if { (ac_try="$ac_compile"
30409 case "(($ac_try" in
30410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411   *) ac_try_echo=$ac_try;;
30412 esac
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414   (eval "$ac_compile") 2>conftest.er1
30415   ac_status=$?
30416   grep -v '^ *+' conftest.er1 >conftest.err
30417   rm -f conftest.er1
30418   cat conftest.err >&5
30419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420   (exit $ac_status); } &&
30421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30422   { (case "(($ac_try" in
30423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424   *) ac_try_echo=$ac_try;;
30425 esac
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427   (eval "$ac_try") 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; } &&
30431          { ac_try='test -s conftest.$ac_objext'
30432   { (case "(($ac_try" in
30433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434   *) ac_try_echo=$ac_try;;
30435 esac
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437   (eval "$ac_try") 2>&5
30438   ac_status=$?
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); }; }; then
30441   ac_hi=$ac_mid
30442 else
30443   echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30445
30446         ac_lo=`expr '(' $ac_mid ')' + 1`
30447 fi
30448
30449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30450 done
30451 case $ac_lo in
30452 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30453 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30454 See \`config.log' for more details." >&5
30455 echo "$as_me: error: cannot compute sizeof (socklen_t)
30456 See \`config.log' for more details." >&2;}
30457    { (exit 77); exit 77; }; } ;;
30458 esac
30459 else
30460   cat >conftest.$ac_ext <<_ACEOF
30461 /* confdefs.h.  */
30462 _ACEOF
30463 cat confdefs.h >>conftest.$ac_ext
30464 cat >>conftest.$ac_ext <<_ACEOF
30465 /* end confdefs.h.  */
30466 $ac_includes_default
30467                    typedef socklen_t ac__type_sizeof_;
30468 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30469 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30470 #include <stdio.h>
30471 #include <stdlib.h>
30472 int
30473 main ()
30474 {
30475
30476   FILE *f = fopen ("conftest.val", "w");
30477   if (! f)
30478     return 1;
30479   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30480     {
30481       long int i = longval ();
30482       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30483         return 1;
30484       fprintf (f, "%ld\n", i);
30485     }
30486   else
30487     {
30488       unsigned long int i = ulongval ();
30489       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30490         return 1;
30491       fprintf (f, "%lu\n", i);
30492     }
30493   return ferror (f) || fclose (f) != 0;
30494
30495   ;
30496   return 0;
30497 }
30498 _ACEOF
30499 rm -f conftest$ac_exeext
30500 if { (ac_try="$ac_link"
30501 case "(($ac_try" in
30502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503   *) ac_try_echo=$ac_try;;
30504 esac
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506   (eval "$ac_link") 2>&5
30507   ac_status=$?
30508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30510   { (case "(($ac_try" in
30511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512   *) ac_try_echo=$ac_try;;
30513 esac
30514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515   (eval "$ac_try") 2>&5
30516   ac_status=$?
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); }; }; then
30519   ac_cv_sizeof_socklen_t=`cat conftest.val`
30520 else
30521   echo "$as_me: program exited with status $ac_status" >&5
30522 echo "$as_me: failed program was:" >&5
30523 sed 's/^/| /' conftest.$ac_ext >&5
30524
30525 ( exit $ac_status )
30526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30527 See \`config.log' for more details." >&5
30528 echo "$as_me: error: cannot compute sizeof (socklen_t)
30529 See \`config.log' for more details." >&2;}
30530    { (exit 77); exit 77; }; }
30531 fi
30532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30533 fi
30534 rm -f conftest.val
30535 else
30536   ac_cv_sizeof_socklen_t=0
30537 fi
30538 fi
30539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30540 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30541 cat >>confdefs.h <<_ACEOF
30542 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30543 _ACEOF
30544
30545
30546
30547
30548
30549 cat >>confdefs.h <<_ACEOF
30550 #define NFS_STATEDIR "$statedir"
30551 _ACEOF
30552
30553
30554 if test "x$cross_compiling" = "xno"; then
30555         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30556         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30557         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30558         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30559 else
30560         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30561         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30562         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30563         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30564 fi
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576 case $host in
30577   alpha*)
30578     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
30579   *)
30580     ARCHFLAGS="" ;;
30581 esac
30582
30583 my_am_cflags="-Wall $ARCHFLAGS -pipe"
30584
30585 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
30586
30587 AM_CFLAGS="$my_am_cflags"
30588
30589
30590 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30591 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30592
30593
30594 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"
30595
30596 cat >confcache <<\_ACEOF
30597 # This file is a shell script that caches the results of configure
30598 # tests run on this system so they can be shared between configure
30599 # scripts and configure runs, see configure's option --config-cache.
30600 # It is not useful on other systems.  If it contains results you don't
30601 # want to keep, you may remove or edit it.
30602 #
30603 # config.status only pays attention to the cache file if you give it
30604 # the --recheck option to rerun configure.
30605 #
30606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30608 # following values.
30609
30610 _ACEOF
30611
30612 # The following way of writing the cache mishandles newlines in values,
30613 # but we know of no workaround that is simple, portable, and efficient.
30614 # So, we kill variables containing newlines.
30615 # Ultrix sh set writes to stderr and can't be redirected directly,
30616 # and sets the high bit in the cache file unless we assign to the vars.
30617 (
30618   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30619     eval ac_val=\$$ac_var
30620     case $ac_val in #(
30621     *${as_nl}*)
30622       case $ac_var in #(
30623       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30624 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30625       esac
30626       case $ac_var in #(
30627       _ | IFS | as_nl) ;; #(
30628       *) $as_unset $ac_var ;;
30629       esac ;;
30630     esac
30631   done
30632
30633   (set) 2>&1 |
30634     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30635     *${as_nl}ac_space=\ *)
30636       # `set' does not quote correctly, so add quotes (double-quote
30637       # substitution turns \\\\ into \\, and sed turns \\ into \).
30638       sed -n \
30639         "s/'/'\\\\''/g;
30640           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30641       ;; #(
30642     *)
30643       # `set' quotes correctly as required by POSIX, so do not add quotes.
30644       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30645       ;;
30646     esac |
30647     sort
30648 ) |
30649   sed '
30650      /^ac_cv_env_/b end
30651      t clear
30652      :clear
30653      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30654      t end
30655      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30656      :end' >>confcache
30657 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30658   if test -w "$cache_file"; then
30659     test "x$cache_file" != "x/dev/null" &&
30660       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30661 echo "$as_me: updating cache $cache_file" >&6;}
30662     cat confcache >$cache_file
30663   else
30664     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30665 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30666   fi
30667 fi
30668 rm -f confcache
30669
30670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30671 # Let make expand exec_prefix.
30672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30673
30674 DEFS=-DHAVE_CONFIG_H
30675
30676 ac_libobjs=
30677 ac_ltlibobjs=
30678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30679   # 1. Remove the extension, and $U if already installed.
30680   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30681   ac_i=`echo "$ac_i" | sed "$ac_script"`
30682   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30683   #    will be set to the directory where LIBOBJS objects are built.
30684   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30685   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30686 done
30687 LIBOBJS=$ac_libobjs
30688
30689 LTLIBOBJS=$ac_ltlibobjs
30690
30691
30692 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30693   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30694 Usually this means the macro was only invoked conditionally." >&5
30695 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30696 Usually this means the macro was only invoked conditionally." >&2;}
30697    { (exit 1); exit 1; }; }
30698 fi
30699 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30700   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30701 Usually this means the macro was only invoked conditionally." >&5
30702 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30703 Usually this means the macro was only invoked conditionally." >&2;}
30704    { (exit 1); exit 1; }; }
30705 fi
30706 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
30707   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30708 Usually this means the macro was only invoked conditionally." >&5
30709 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
30710 Usually this means the macro was only invoked conditionally." >&2;}
30711    { (exit 1); exit 1; }; }
30712 fi
30713 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30714   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30715 Usually this means the macro was only invoked conditionally." >&5
30716 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30717 Usually this means the macro was only invoked conditionally." >&2;}
30718    { (exit 1); exit 1; }; }
30719 fi
30720 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30721   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30722 Usually this means the macro was only invoked conditionally." >&5
30723 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30724 Usually this means the macro was only invoked conditionally." >&2;}
30725    { (exit 1); exit 1; }; }
30726 fi
30727 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30728   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30729 Usually this means the macro was only invoked conditionally." >&5
30730 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30731 Usually this means the macro was only invoked conditionally." >&2;}
30732    { (exit 1); exit 1; }; }
30733 fi
30734 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30735   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30736 Usually this means the macro was only invoked conditionally." >&5
30737 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30738 Usually this means the macro was only invoked conditionally." >&2;}
30739    { (exit 1); exit 1; }; }
30740 fi
30741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30742   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30743 Usually this means the macro was only invoked conditionally." >&5
30744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30745 Usually this means the macro was only invoked conditionally." >&2;}
30746    { (exit 1); exit 1; }; }
30747 fi
30748
30749 : ${CONFIG_STATUS=./config.status}
30750 ac_clean_files_save=$ac_clean_files
30751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30752 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30754 cat >$CONFIG_STATUS <<_ACEOF
30755 #! $SHELL
30756 # Generated by $as_me.
30757 # Run this file to recreate the current configuration.
30758 # Compiler output produced by configure, useful for debugging
30759 # configure, is in config.log if it exists.
30760
30761 debug=false
30762 ac_cs_recheck=false
30763 ac_cs_silent=false
30764 SHELL=\${CONFIG_SHELL-$SHELL}
30765 _ACEOF
30766
30767 cat >>$CONFIG_STATUS <<\_ACEOF
30768 ## --------------------- ##
30769 ## M4sh Initialization.  ##
30770 ## --------------------- ##
30771
30772 # Be Bourne compatible
30773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30774   emulate sh
30775   NULLCMD=:
30776   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30777   # is contrary to our usage.  Disable this feature.
30778   alias -g '${1+"$@"}'='"$@"'
30779   setopt NO_GLOB_SUBST
30780 else
30781   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
30782 fi
30783 BIN_SH=xpg4; export BIN_SH # for Tru64
30784 DUALCASE=1; export DUALCASE # for MKS sh
30785
30786
30787 # PATH needs CR
30788 # Avoid depending upon Character Ranges.
30789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30792 as_cr_digits='0123456789'
30793 as_cr_alnum=$as_cr_Letters$as_cr_digits
30794
30795 # The user is always right.
30796 if test "${PATH_SEPARATOR+set}" != set; then
30797   echo "#! /bin/sh" >conf$$.sh
30798   echo  "exit 0"   >>conf$$.sh
30799   chmod +x conf$$.sh
30800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30801     PATH_SEPARATOR=';'
30802   else
30803     PATH_SEPARATOR=:
30804   fi
30805   rm -f conf$$.sh
30806 fi
30807
30808 # Support unset when possible.
30809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30810   as_unset=unset
30811 else
30812   as_unset=false
30813 fi
30814
30815
30816 # IFS
30817 # We need space, tab and new line, in precisely that order.  Quoting is
30818 # there to prevent editors from complaining about space-tab.
30819 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30820 # splitting by setting IFS to empty value.)
30821 as_nl='
30822 '
30823 IFS=" ""        $as_nl"
30824
30825 # Find who we are.  Look in the path if we contain no directory separator.
30826 case $0 in
30827   *[\\/]* ) as_myself=$0 ;;
30828   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829 for as_dir in $PATH
30830 do
30831   IFS=$as_save_IFS
30832   test -z "$as_dir" && as_dir=.
30833   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30834 done
30835 IFS=$as_save_IFS
30836
30837      ;;
30838 esac
30839 # We did not find ourselves, most probably we were run as `sh COMMAND'
30840 # in which case we are not to be found in the path.
30841 if test "x$as_myself" = x; then
30842   as_myself=$0
30843 fi
30844 if test ! -f "$as_myself"; then
30845   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30846   { (exit 1); exit 1; }
30847 fi
30848
30849 # Work around bugs in pre-3.0 UWIN ksh.
30850 for as_var in ENV MAIL MAILPATH
30851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30852 done
30853 PS1='$ '
30854 PS2='> '
30855 PS4='+ '
30856
30857 # NLS nuisances.
30858 for as_var in \
30859   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30860   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30861   LC_TELEPHONE LC_TIME
30862 do
30863   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30864     eval $as_var=C; export $as_var
30865   else
30866     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30867   fi
30868 done
30869
30870 # Required to use basename.
30871 if expr a : '\(a\)' >/dev/null 2>&1 &&
30872    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30873   as_expr=expr
30874 else
30875   as_expr=false
30876 fi
30877
30878 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30879   as_basename=basename
30880 else
30881   as_basename=false
30882 fi
30883
30884
30885 # Name of the executable.
30886 as_me=`$as_basename -- "$0" ||
30887 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30888          X"$0" : 'X\(//\)$' \| \
30889          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30890 echo X/"$0" |
30891     sed '/^.*\/\([^/][^/]*\)\/*$/{
30892             s//\1/
30893             q
30894           }
30895           /^X\/\(\/\/\)$/{
30896             s//\1/
30897             q
30898           }
30899           /^X\/\(\/\).*/{
30900             s//\1/
30901             q
30902           }
30903           s/.*/./; q'`
30904
30905 # CDPATH.
30906 $as_unset CDPATH
30907
30908
30909
30910   as_lineno_1=$LINENO
30911   as_lineno_2=$LINENO
30912   test "x$as_lineno_1" != "x$as_lineno_2" &&
30913   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30914
30915   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30916   # uniformly replaced by the line number.  The first 'sed' inserts a
30917   # line-number line after each line using $LINENO; the second 'sed'
30918   # does the real work.  The second script uses 'N' to pair each
30919   # line-number line with the line containing $LINENO, and appends
30920   # trailing '-' during substitution so that $LINENO is not a special
30921   # case at line end.
30922   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30923   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30924   # E. McMahon (1931-1989) for sed's syntax.  :-)
30925   sed -n '
30926     p
30927     /[$]LINENO/=
30928   ' <$as_myself |
30929     sed '
30930       s/[$]LINENO.*/&-/
30931       t lineno
30932       b
30933       :lineno
30934       N
30935       :loop
30936       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30937       t loop
30938       s/-\n.*//
30939     ' >$as_me.lineno &&
30940   chmod +x "$as_me.lineno" ||
30941     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30942    { (exit 1); exit 1; }; }
30943
30944   # Don't try to exec as it changes $[0], causing all sort of problems
30945   # (the dirname of $[0] is not the place where we might find the
30946   # original and so on.  Autoconf is especially sensitive to this).
30947   . "./$as_me.lineno"
30948   # Exit status is that of the last command.
30949   exit
30950 }
30951
30952
30953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30954   as_dirname=dirname
30955 else
30956   as_dirname=false
30957 fi
30958
30959 ECHO_C= ECHO_N= ECHO_T=
30960 case `echo -n x` in
30961 -n*)
30962   case `echo 'x\c'` in
30963   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30964   *)   ECHO_C='\c';;
30965   esac;;
30966 *)
30967   ECHO_N='-n';;
30968 esac
30969
30970 if expr a : '\(a\)' >/dev/null 2>&1 &&
30971    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30972   as_expr=expr
30973 else
30974   as_expr=false
30975 fi
30976
30977 rm -f conf$$ conf$$.exe conf$$.file
30978 if test -d conf$$.dir; then
30979   rm -f conf$$.dir/conf$$.file
30980 else
30981   rm -f conf$$.dir
30982   mkdir conf$$.dir
30983 fi
30984 echo >conf$$.file
30985 if ln -s conf$$.file conf$$ 2>/dev/null; then
30986   as_ln_s='ln -s'
30987   # ... but there are two gotchas:
30988   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30989   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30990   # In both cases, we have to default to `cp -p'.
30991   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30992     as_ln_s='cp -p'
30993 elif ln conf$$.file conf$$ 2>/dev/null; then
30994   as_ln_s=ln
30995 else
30996   as_ln_s='cp -p'
30997 fi
30998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30999 rmdir conf$$.dir 2>/dev/null
31000
31001 if mkdir -p . 2>/dev/null; then
31002   as_mkdir_p=:
31003 else
31004   test -d ./-p && rmdir ./-p
31005   as_mkdir_p=false
31006 fi
31007
31008 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
31009 # systems may use methods other than mode bits to determine executability.
31010 cat >conf$$.file <<_ASEOF
31011 #! /bin/sh
31012 exit 0
31013 _ASEOF
31014 chmod +x conf$$.file
31015 if test -x conf$$.file >/dev/null 2>&1; then
31016   as_executable_p="test -x"
31017 else
31018   as_executable_p=:
31019 fi
31020 rm -f conf$$.file
31021
31022 # Sed expression to map a string onto a valid CPP name.
31023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31024
31025 # Sed expression to map a string onto a valid variable name.
31026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31027
31028
31029 exec 6>&1
31030
31031 # Save the log message, to keep $[0] and so on meaningful, and to
31032 # report actual input values of CONFIG_FILES etc. instead of their
31033 # values after options handling.
31034 ac_log="
31035 This file was extended by linux nfs-utils $as_me 1.0.9, which was
31036 generated by GNU Autoconf 2.59e.  Invocation command line was
31037
31038   CONFIG_FILES    = $CONFIG_FILES
31039   CONFIG_HEADERS  = $CONFIG_HEADERS
31040   CONFIG_LINKS    = $CONFIG_LINKS
31041   CONFIG_COMMANDS = $CONFIG_COMMANDS
31042   $ $0 $@
31043
31044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31045 "
31046
31047 _ACEOF
31048
31049 cat >>$CONFIG_STATUS <<_ACEOF
31050 # Files that config.status was made for.
31051 config_files="$ac_config_files"
31052 config_headers="$ac_config_headers"
31053 config_commands="$ac_config_commands"
31054
31055 _ACEOF
31056
31057 cat >>$CONFIG_STATUS <<\_ACEOF
31058 ac_cs_usage="\
31059 \`$as_me' instantiates files from templates according to the
31060 current configuration.
31061
31062 Usage: $0 [OPTIONS] [FILE]...
31063
31064   -h, --help       print this help, then exit
31065   -V, --version    print version number, then exit
31066   -q, --quiet      do not print progress messages
31067   -d, --debug      don't remove temporary files
31068       --recheck    update $as_me by reconfiguring in the same conditions
31069   --file=FILE[:TEMPLATE]
31070                    instantiate the configuration file FILE
31071   --header=FILE[:TEMPLATE]
31072                    instantiate the configuration header FILE
31073
31074 Configuration files:
31075 $config_files
31076
31077 Configuration headers:
31078 $config_headers
31079
31080 Configuration commands:
31081 $config_commands
31082
31083 Report bugs to <bug-autoconf@gnu.org>."
31084
31085 _ACEOF
31086 cat >>$CONFIG_STATUS <<_ACEOF
31087 ac_cs_version="\\
31088 linux nfs-utils config.status 1.0.9
31089 configured by $0, generated by GNU Autoconf 2.59e,
31090   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31091
31092 Copyright (C) 2006 Free Software Foundation, Inc.
31093 This config.status script is free software; the Free Software Foundation
31094 gives unlimited permission to copy, distribute and modify it."
31095
31096 ac_pwd='$ac_pwd'
31097 srcdir='$srcdir'
31098 INSTALL='$INSTALL'
31099 _ACEOF
31100
31101 cat >>$CONFIG_STATUS <<\_ACEOF
31102 # If no file are specified by the user, then we need to provide default
31103 # value.  By we need to know if files were specified by the user.
31104 ac_need_defaults=:
31105 while test $# != 0
31106 do
31107   case $1 in
31108   --*=*)
31109     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31110     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31111     ac_shift=:
31112     ;;
31113   *)
31114     ac_option=$1
31115     ac_optarg=$2
31116     ac_shift=shift
31117     ;;
31118   esac
31119
31120   case $ac_option in
31121   # Handling of the options.
31122   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31123     ac_cs_recheck=: ;;
31124   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31125     echo "$ac_cs_version"; exit ;;
31126   --debug | --debu | --deb | --de | --d | -d )
31127     debug=: ;;
31128   --file | --fil | --fi | --f )
31129     $ac_shift
31130     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31131     ac_need_defaults=false;;
31132   --header | --heade | --head | --hea )
31133     $ac_shift
31134     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31135     ac_need_defaults=false;;
31136   --he | --h)
31137     # Conflict between --help and --header
31138     { echo "$as_me: error: ambiguous option: $1
31139 Try \`$0 --help' for more information." >&2
31140    { (exit 1); exit 1; }; };;
31141   --help | --hel | -h )
31142     echo "$ac_cs_usage"; exit ;;
31143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31144   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31145     ac_cs_silent=: ;;
31146
31147   # This is an error.
31148   -*) { echo "$as_me: error: unrecognized option: $1
31149 Try \`$0 --help' for more information." >&2
31150    { (exit 1); exit 1; }; } ;;
31151
31152   *) ac_config_targets="$ac_config_targets $1"
31153      ac_need_defaults=false ;;
31154
31155   esac
31156   shift
31157 done
31158
31159 ac_configure_extra_args=
31160
31161 if $ac_cs_silent; then
31162   exec 6>/dev/null
31163   ac_configure_extra_args="$ac_configure_extra_args --silent"
31164 fi
31165
31166 _ACEOF
31167 cat >>$CONFIG_STATUS <<_ACEOF
31168 if \$ac_cs_recheck; then
31169   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31170   CONFIG_SHELL=$SHELL
31171   export CONFIG_SHELL
31172   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31173 fi
31174
31175 _ACEOF
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31177 exec 5>>config.log
31178 {
31179   echo
31180   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31181 ## Running $as_me. ##
31182 _ASBOX
31183   echo "$ac_log"
31184 } >&5
31185
31186 _ACEOF
31187 cat >>$CONFIG_STATUS <<_ACEOF
31188 #
31189 # INIT-COMMANDS
31190 #
31191 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31192
31193 _ACEOF
31194
31195 cat >>$CONFIG_STATUS <<\_ACEOF
31196
31197 # Handling of arguments.
31198 for ac_config_target in $ac_config_targets
31199 do
31200   case $ac_config_target in
31201     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31202     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31203     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31204     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31205     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31206     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31207     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31208     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31209     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31210     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31211     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31212     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31213     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31214     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31215     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
31216     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
31217     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31218     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31219     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31220     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31221     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31222     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31223     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31224     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31225     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
31226     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31227     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31228     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31229     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31230     "utils/nhfsstone/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
31231     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
31232     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31233     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31234
31235   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31237    { (exit 1); exit 1; }; };;
31238   esac
31239 done
31240
31241
31242 # If the user did not use the arguments to specify the items to instantiate,
31243 # then the envvar interface is used.  Set only those that are not.
31244 # We use the long form for the default assignment because of an extremely
31245 # bizarre bug on SunOS 4.1.3.
31246 if $ac_need_defaults; then
31247   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31248   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31249   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31250 fi
31251
31252 # Have a temporary directory for convenience.  Make it in the build tree
31253 # simply because there is no reason against having it here, and in addition,
31254 # creating and moving files from /tmp can sometimes cause problems.
31255 # Hook for its removal unless debugging.
31256 # Note that there is a small window in which the directory will not be cleaned:
31257 # after its creation but before its name has been assigned to `$tmp'.
31258 $debug ||
31259 {
31260   tmp=
31261   trap 'exit_status=$?
31262   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31263 ' 0
31264   trap '{ (exit 1); exit 1; }' 1 2 13 15
31265 }
31266 # Create a (secure) tmp directory for tmp files.
31267
31268 {
31269   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31270   test -n "$tmp" && test -d "$tmp"
31271 }  ||
31272 {
31273   tmp=./conf$$-$RANDOM
31274   (umask 077 && mkdir "$tmp")
31275 } ||
31276 {
31277    echo "$me: cannot create a temporary directory in ." >&2
31278    { (exit 1); exit 1; }
31279 }
31280
31281 #
31282 # Set up the sed scripts for CONFIG_FILES section.
31283 #
31284
31285 # No need to generate the scripts if there are no CONFIG_FILES.
31286 # This happens for instance when ./config.status config.h
31287 if test -n "$CONFIG_FILES"; then
31288
31289 _ACEOF
31290
31291
31292
31293 ac_delim='%!_!# '
31294 for ac_last_try in false false false false false :; do
31295   cat >conf$$subs.sed <<_ACEOF
31296 SHELL!$SHELL$ac_delim
31297 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31298 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31299 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31300 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31301 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31302 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31303 exec_prefix!$exec_prefix$ac_delim
31304 prefix!$prefix$ac_delim
31305 program_transform_name!$program_transform_name$ac_delim
31306 bindir!$bindir$ac_delim
31307 sbindir!$sbindir$ac_delim
31308 libexecdir!$libexecdir$ac_delim
31309 datarootdir!$datarootdir$ac_delim
31310 datadir!$datadir$ac_delim
31311 sysconfdir!$sysconfdir$ac_delim
31312 sharedstatedir!$sharedstatedir$ac_delim
31313 localstatedir!$localstatedir$ac_delim
31314 includedir!$includedir$ac_delim
31315 oldincludedir!$oldincludedir$ac_delim
31316 docdir!$docdir$ac_delim
31317 infodir!$infodir$ac_delim
31318 htmldir!$htmldir$ac_delim
31319 dvidir!$dvidir$ac_delim
31320 pdfdir!$pdfdir$ac_delim
31321 psdir!$psdir$ac_delim
31322 libdir!$libdir$ac_delim
31323 localedir!$localedir$ac_delim
31324 mandir!$mandir$ac_delim
31325 DEFS!$DEFS$ac_delim
31326 ECHO_C!$ECHO_C$ac_delim
31327 ECHO_N!$ECHO_N$ac_delim
31328 ECHO_T!$ECHO_T$ac_delim
31329 LIBS!$LIBS$ac_delim
31330 build_alias!$build_alias$ac_delim
31331 host_alias!$host_alias$ac_delim
31332 target_alias!$target_alias$ac_delim
31333 build!$build$ac_delim
31334 build_cpu!$build_cpu$ac_delim
31335 build_vendor!$build_vendor$ac_delim
31336 build_os!$build_os$ac_delim
31337 host!$host$ac_delim
31338 host_cpu!$host_cpu$ac_delim
31339 host_vendor!$host_vendor$ac_delim
31340 host_os!$host_os$ac_delim
31341 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31342 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31343 INSTALL_DATA!$INSTALL_DATA$ac_delim
31344 CYGPATH_W!$CYGPATH_W$ac_delim
31345 PACKAGE!$PACKAGE$ac_delim
31346 VERSION!$VERSION$ac_delim
31347 ACLOCAL!$ACLOCAL$ac_delim
31348 AUTOCONF!$AUTOCONF$ac_delim
31349 AUTOMAKE!$AUTOMAKE$ac_delim
31350 AUTOHEADER!$AUTOHEADER$ac_delim
31351 MAKEINFO!$MAKEINFO$ac_delim
31352 install_sh!$install_sh$ac_delim
31353 STRIP!$STRIP$ac_delim
31354 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31355 mkdir_p!$mkdir_p$ac_delim
31356 AWK!$AWK$ac_delim
31357 SET_MAKE!$SET_MAKE$ac_delim
31358 am__leading_dot!$am__leading_dot$ac_delim
31359 AMTAR!$AMTAR$ac_delim
31360 am__tar!$am__tar$ac_delim
31361 am__untar!$am__untar$ac_delim
31362 RELEASE!$RELEASE$ac_delim
31363 statedir!$statedir$ac_delim
31364 statduser!$statduser$ac_delim
31365 enable_nfsv3!$enable_nfsv3$ac_delim
31366 IDMAPD!$IDMAPD$ac_delim
31367 enable_nfsv4!$enable_nfsv4$ac_delim
31368 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31369 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31370 GSSD!$GSSD$ac_delim
31371 SVCGSSD!$SVCGSSD$ac_delim
31372 enable_gss!$enable_gss$ac_delim
31373 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31374 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31375 kprefix!$kprefix$ac_delim
31376 secure_statd!$secure_statd$ac_delim
31377 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
31378 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
31379 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31380 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31381 CC!$CC$ac_delim
31382 CFLAGS!$CFLAGS$ac_delim
31383 LDFLAGS!$LDFLAGS$ac_delim
31384 CPPFLAGS!$CPPFLAGS$ac_delim
31385 ac_ct_CC!$ac_ct_CC$ac_delim
31386 EXEEXT!$EXEEXT$ac_delim
31387 OBJEXT!$OBJEXT$ac_delim
31388 DEPDIR!$DEPDIR$ac_delim
31389 am__include!$am__include$ac_delim
31390 am__quote!$am__quote$ac_delim
31391 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31392 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31393 _ACEOF
31394
31395   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31396     break
31397   elif $ac_last_try; then
31398     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31399 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31400    { (exit 1); exit 1; }; }
31401   else
31402     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31403   fi
31404 done
31405
31406 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31407 if test -n "$ac_eof"; then
31408   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31409   ac_eof=`expr $ac_eof + 1`
31410 fi
31411
31412 cat >>$CONFIG_STATUS <<_ACEOF
31413 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31415 _ACEOF
31416 sed '
31417 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31418 s/^/s,@/; s/!/@,|#_!!_#|/
31419 :n
31420 t n
31421 s/'"$ac_delim"'$/,g/; t
31422 s/$/\\/; p
31423 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31424 ' >>$CONFIG_STATUS <conf$$subs.sed
31425 rm -f conf$$subs.sed
31426 cat >>$CONFIG_STATUS <<_ACEOF
31427 CEOF$ac_eof
31428 _ACEOF
31429
31430
31431 ac_delim='%!_!# '
31432 for ac_last_try in false false false false false :; do
31433   cat >conf$$subs.sed <<_ACEOF
31434 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31435 CCDEPMODE!$CCDEPMODE$ac_delim
31436 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31437 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31438 LIBWRAP!$LIBWRAP$ac_delim
31439 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31440 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31441 CXX!$CXX$ac_delim
31442 CXXFLAGS!$CXXFLAGS$ac_delim
31443 ac_ct_CXX!$ac_ct_CXX$ac_delim
31444 CXXDEPMODE!$CXXDEPMODE$ac_delim
31445 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31446 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31447 CPP!$CPP$ac_delim
31448 LN_S!$LN_S$ac_delim
31449 GREP!$GREP$ac_delim
31450 EGREP!$EGREP$ac_delim
31451 ECHO!$ECHO$ac_delim
31452 AR!$AR$ac_delim
31453 RANLIB!$RANLIB$ac_delim
31454 CXXCPP!$CXXCPP$ac_delim
31455 F77!$F77$ac_delim
31456 FFLAGS!$FFLAGS$ac_delim
31457 ac_ct_F77!$ac_ct_F77$ac_delim
31458 LIBTOOL!$LIBTOOL$ac_delim
31459 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31460 LD!$LD$ac_delim
31461 PKG_CONFIG!$PKG_CONFIG$ac_delim
31462 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31463 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31464 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
31465 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
31466 LIBSOCKET!$LIBSOCKET$ac_delim
31467 LIBNSL!$LIBNSL$ac_delim
31468 LIBCRYPT!$LIBCRYPT$ac_delim
31469 LIBBSD!$LIBBSD$ac_delim
31470 KRBDIR!$KRBDIR$ac_delim
31471 KRBLIBS!$KRBLIBS$ac_delim
31472 KRBCFLAGS!$KRBCFLAGS$ac_delim
31473 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31474 K5VERS!$K5VERS$ac_delim
31475 ALLOCA!$ALLOCA$ac_delim
31476 LIBOBJS!$LIBOBJS$ac_delim
31477 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31478 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31479 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31480 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31481 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31482 AM_CFLAGS!$AM_CFLAGS$ac_delim
31483 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31484 LTLIBOBJS!$LTLIBOBJS$ac_delim
31485 _ACEOF
31486
31487   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
31488     break
31489   elif $ac_last_try; then
31490     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31491 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31492    { (exit 1); exit 1; }; }
31493   else
31494     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31495   fi
31496 done
31497
31498 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31499 if test -n "$ac_eof"; then
31500   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31501   ac_eof=`expr $ac_eof + 1`
31502 fi
31503
31504 cat >>$CONFIG_STATUS <<_ACEOF
31505 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31507 _ACEOF
31508 sed '
31509 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31510 s/^/s,@/; s/!/@,|#_!!_#|/
31511 :n
31512 t n
31513 s/'"$ac_delim"'$/,g/; t
31514 s/$/\\/; p
31515 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31516 ' >>$CONFIG_STATUS <conf$$subs.sed
31517 rm -f conf$$subs.sed
31518 cat >>$CONFIG_STATUS <<_ACEOF
31519 :end
31520 s/|#_!!_#|//g
31521 CEOF$ac_eof
31522 _ACEOF
31523
31524
31525 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31526 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31527 # trailing colons and then remove the whole line if VPATH becomes empty
31528 # (actually we leave an empty line to preserve line numbers).
31529 if test "x$srcdir" = x.; then
31530   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31531 s/:*\$(srcdir):*/:/
31532 s/:*\${srcdir}:*/:/
31533 s/:*@srcdir@:*/:/
31534 s/^\([^=]*=[     ]*\):*/\1/
31535 s/:*$//
31536 s/^[^=]*=[       ]*$//
31537 }'
31538 fi
31539
31540 cat >>$CONFIG_STATUS <<\_ACEOF
31541 fi # test -n "$CONFIG_FILES"
31542
31543
31544 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31545 do
31546   case $ac_tag in
31547   :[FHLC]) ac_mode=$ac_tag; continue;;
31548   esac
31549   case $ac_mode$ac_tag in
31550   :[FHL]*:*);;
31551   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31552 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31553    { (exit 1); exit 1; }; };;
31554   :[FH]-) ac_tag=-:-;;
31555   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31556   esac
31557   ac_save_IFS=$IFS
31558   IFS=:
31559   set x $ac_tag
31560   IFS=$ac_save_IFS
31561   shift
31562   ac_file=$1
31563   shift
31564
31565   case $ac_mode in
31566   :L) ac_source=$1;;
31567   :[FH])
31568     ac_file_inputs=
31569     for ac_f
31570     do
31571       case $ac_f in
31572       -) ac_f="$tmp/stdin";;
31573       *) # Look for the file first in the build tree, then in the source tree
31574          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31575          # because $ac_f cannot contain `:'.
31576          test -f "$ac_f" ||
31577            case $ac_f in
31578            [\\/$]*) false;;
31579            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31580            esac ||
31581            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31582 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31583    { (exit 1); exit 1; }; };;
31584       esac
31585       ac_file_inputs="$ac_file_inputs $ac_f"
31586     done
31587
31588     # Let's still pretend it is `configure' which instantiates (i.e., don't
31589     # use $as_me), people would be surprised to read:
31590     #    /* config.h.  Generated by config.status.  */
31591     configure_input="Generated from "`IFS=:
31592           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31593     if test x"$ac_file" != x-; then
31594       configure_input="$ac_file.  $configure_input"
31595       { echo "$as_me:$LINENO: creating $ac_file" >&5
31596 echo "$as_me: creating $ac_file" >&6;}
31597     fi
31598
31599     case $ac_tag in
31600     *:-:* | *:-) cat >"$tmp/stdin";;
31601     esac
31602     ;;
31603   esac
31604
31605   ac_dir=`$as_dirname -- "$ac_file" ||
31606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31607          X"$ac_file" : 'X\(//\)[^/]' \| \
31608          X"$ac_file" : 'X\(//\)$' \| \
31609          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31610 echo X"$ac_file" |
31611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31612             s//\1/
31613             q
31614           }
31615           /^X\(\/\/\)[^/].*/{
31616             s//\1/
31617             q
31618           }
31619           /^X\(\/\/\)$/{
31620             s//\1/
31621             q
31622           }
31623           /^X\(\/\).*/{
31624             s//\1/
31625             q
31626           }
31627           s/.*/./; q'`
31628   { as_dir="$ac_dir"
31629   case $as_dir in #(
31630   -*) as_dir=./$as_dir;;
31631   esac
31632   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31633     as_dirs=
31634     while :; do
31635       case $as_dir in #(
31636       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31637       *) as_qdir=$as_dir;;
31638       esac
31639       as_dirs="'$as_qdir' $as_dirs"
31640       as_dir=`$as_dirname -- "$as_dir" ||
31641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31642          X"$as_dir" : 'X\(//\)[^/]' \| \
31643          X"$as_dir" : 'X\(//\)$' \| \
31644          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31645 echo X"$as_dir" |
31646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31647             s//\1/
31648             q
31649           }
31650           /^X\(\/\/\)[^/].*/{
31651             s//\1/
31652             q
31653           }
31654           /^X\(\/\/\)$/{
31655             s//\1/
31656             q
31657           }
31658           /^X\(\/\).*/{
31659             s//\1/
31660             q
31661           }
31662           s/.*/./; q'`
31663       test -d "$as_dir" && break
31664     done
31665     test -z "$as_dirs" || eval "mkdir $as_dirs"
31666   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31667 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31668    { (exit 1); exit 1; }; }; }
31669   ac_builddir=.
31670
31671 case "$ac_dir" in
31672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31673 *)
31674   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31675   # A ".." for each directory in $ac_dir_suffix.
31676   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31677   case $ac_top_builddir_sub in
31678   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31679   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31680   esac ;;
31681 esac
31682 ac_abs_top_builddir=$ac_pwd
31683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31684 # for backward compatibility:
31685 ac_top_builddir=$ac_top_build_prefix
31686
31687 case $srcdir in
31688   .)  # We are building in place.
31689     ac_srcdir=.
31690     ac_top_srcdir=$ac_top_builddir_sub
31691     ac_abs_top_srcdir=$ac_pwd ;;
31692   [\\/]* | ?:[\\/]* )  # Absolute name.
31693     ac_srcdir=$srcdir$ac_dir_suffix;
31694     ac_top_srcdir=$srcdir
31695     ac_abs_top_srcdir=$srcdir ;;
31696   *) # Relative name.
31697     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31698     ac_top_srcdir=$ac_top_build_prefix$srcdir
31699     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31700 esac
31701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31702
31703
31704   case $ac_mode in
31705   :F)
31706   #
31707   # CONFIG_FILE
31708   #
31709
31710   case $INSTALL in
31711   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31712   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31713   esac
31714 _ACEOF
31715
31716 cat >>$CONFIG_STATUS <<\_ACEOF
31717 # If the template does not know about datarootdir, expand it.
31718 # FIXME: This hack should be removed a few years after 2.60.
31719 ac_datarootdir_hack=; ac_datarootdir_seen=
31720
31721 case `sed -n '/datarootdir/ {
31722   p
31723   q
31724 }
31725 /@datadir@/p
31726 /@docdir@/p
31727 /@infodir@/p
31728 /@localedir@/p
31729 /@mandir@/p
31730 ' $ac_file_inputs` in
31731 *datarootdir*) ac_datarootdir_seen=yes;;
31732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31733   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31734 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31735 _ACEOF
31736 cat >>$CONFIG_STATUS <<_ACEOF
31737   ac_datarootdir_hack='
31738   s&@datadir@&$datadir&g
31739   s&@docdir@&$docdir&g
31740   s&@infodir@&$infodir&g
31741   s&@localedir@&$localedir&g
31742   s&@mandir@&$mandir&g
31743     s&\\\${datarootdir}&$datarootdir&g' ;;
31744 esac
31745 _ACEOF
31746
31747 # Neutralize VPATH when `$srcdir' = `.'.
31748 # Shell code in configure.ac might set extrasub.
31749 # FIXME: do we really want to maintain this feature?
31750 cat >>$CONFIG_STATUS <<_ACEOF
31751   sed "$ac_vpsub
31752 $extrasub
31753 _ACEOF
31754 cat >>$CONFIG_STATUS <<\_ACEOF
31755 :t
31756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31757 s&@configure_input@&$configure_input&;t t
31758 s&@top_builddir@&$ac_top_builddir_sub&;t t
31759 s&@srcdir@&$ac_srcdir&;t t
31760 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31761 s&@top_srcdir@&$ac_top_srcdir&;t t
31762 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31763 s&@builddir@&$ac_builddir&;t t
31764 s&@abs_builddir@&$ac_abs_builddir&;t t
31765 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31766 s&@INSTALL@&$ac_INSTALL&;t t
31767 $ac_datarootdir_hack
31768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31769
31770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31771   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31772   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31773 which seems to be undefined.  Please make sure it is defined." >&5
31774 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31775 which seems to be undefined.  Please make sure it is defined." >&2;}
31776
31777   rm -f "$tmp/stdin"
31778   case $ac_file in
31779   -) cat "$tmp/out"; rm -f "$tmp/out";;
31780   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31781   esac
31782  ;;
31783   :H)
31784   #
31785   # CONFIG_HEADER
31786   #
31787 _ACEOF
31788
31789 # Transform confdefs.h into a sed script `conftest.defines', that
31790 # substitutes the proper values into config.h.in to produce config.h.
31791 rm -f conftest.defines conftest.tail
31792 # First, append a space to every undef/define line, to ease matching.
31793 echo 's/$/ /' >conftest.defines
31794 # Then, protect against being on the right side of a sed subst, or in
31795 # an unquoted here document, in config.status.  If some macros were
31796 # called several times there might be several #defines for the same
31797 # symbol, which is useless.  But do not sort them, since the last
31798 # AC_DEFINE must be honored.
31799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31800 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31801 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31802 # PARAMS is the parameter list in the macro definition--in most cases, it's
31803 # just an empty string.
31804 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31805 ac_dB='\\)[      (].*,\\1define\\2'
31806 ac_dC=' '
31807 ac_dD=' ,'
31808
31809 uniq confdefs.h |
31810   sed -n '
31811         t rset
31812         :rset
31813         s/^[     ]*#[    ]*define[       ][      ]*//
31814         t ok
31815         d
31816         :ok
31817         s/[\\&,]/\\&/g
31818         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31819         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31820   ' >>conftest.defines
31821
31822 # Remove the space that was appended to ease matching.
31823 # Then replace #undef with comments.  This is necessary, for
31824 # example, in the case of _POSIX_SOURCE, which is predefined and required
31825 # on some systems where configure will not decide to define it.
31826 # (The regexp can be short, since the line contains either #define or #undef.)
31827 echo 's/ $//
31828 s,^[     #]*u.*,/* & */,' >>conftest.defines
31829
31830 # Break up conftest.defines:
31831 ac_max_sed_lines=50
31832
31833 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31834 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31835 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31836 # et cetera.
31837 ac_in='$ac_file_inputs'
31838 ac_out='"$tmp/out1"'
31839 ac_nxt='"$tmp/out2"'
31840
31841 while :
31842 do
31843   # Write a here document:
31844     cat >>$CONFIG_STATUS <<_ACEOF
31845     # First, check the format of the line:
31846     cat >"\$tmp/defines.sed" <<\\CEOF
31847 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31848 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31849 b
31850 :def
31851 _ACEOF
31852   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31853   echo 'CEOF
31854     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31855   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31856   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31857   grep . conftest.tail >/dev/null || break
31858   rm -f conftest.defines
31859   mv conftest.tail conftest.defines
31860 done
31861 rm -f conftest.defines conftest.tail
31862
31863 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31864 cat >>$CONFIG_STATUS <<\_ACEOF
31865   if test x"$ac_file" != x-; then
31866     echo "/* $configure_input  */" >"$tmp/config.h"
31867     cat "$ac_result" >>"$tmp/config.h"
31868     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31869       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31870 echo "$as_me: $ac_file is unchanged" >&6;}
31871     else
31872       rm -f $ac_file
31873       mv "$tmp/config.h" $ac_file
31874     fi
31875   else
31876     echo "/* $configure_input  */"
31877     cat "$ac_result"
31878   fi
31879   rm -f "$tmp/out12"
31880 # Compute $ac_file's index in $config_headers.
31881 _am_stamp_count=1
31882 for _am_header in $config_headers :; do
31883   case $_am_header in
31884     $ac_file | $ac_file:* )
31885       break ;;
31886     * )
31887       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31888   esac
31889 done
31890 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31891 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31892          X$ac_file : 'X\(//\)[^/]' \| \
31893          X$ac_file : 'X\(//\)$' \| \
31894          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31895 echo X$ac_file |
31896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31897             s//\1/
31898             q
31899           }
31900           /^X\(\/\/\)[^/].*/{
31901             s//\1/
31902             q
31903           }
31904           /^X\(\/\/\)$/{
31905             s//\1/
31906             q
31907           }
31908           /^X\(\/\).*/{
31909             s//\1/
31910             q
31911           }
31912           s/.*/./; q'`/stamp-h$_am_stamp_count
31913  ;;
31914
31915   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31916 echo "$as_me: executing $ac_file commands" >&6;}
31917  ;;
31918   esac
31919
31920
31921   case $ac_file$ac_mode in
31922     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31923   # Strip MF so we end up with the name of the file.
31924   mf=`echo "$mf" | sed -e 's/:.*$//'`
31925   # Check whether this is an Automake generated Makefile or not.
31926   # We used to match only the files named `Makefile.in', but
31927   # some people rename them; so instead we look at the file content.
31928   # Grep'ing the first line is not enough: some people post-process
31929   # each Makefile.in and add a new line on top of each file to say so.
31930   # So let's grep whole file.
31931   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31932     dirpart=`$as_dirname -- "$mf" ||
31933 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31934          X"$mf" : 'X\(//\)[^/]' \| \
31935          X"$mf" : 'X\(//\)$' \| \
31936          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31937 echo X"$mf" |
31938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31939             s//\1/
31940             q
31941           }
31942           /^X\(\/\/\)[^/].*/{
31943             s//\1/
31944             q
31945           }
31946           /^X\(\/\/\)$/{
31947             s//\1/
31948             q
31949           }
31950           /^X\(\/\).*/{
31951             s//\1/
31952             q
31953           }
31954           s/.*/./; q'`
31955   else
31956     continue
31957   fi
31958   # Extract the definition of DEPDIR, am__include, and am__quote
31959   # from the Makefile without running `make'.
31960   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31961   test -z "$DEPDIR" && continue
31962   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31963   test -z "am__include" && continue
31964   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31965   # When using ansi2knr, U may be empty or an underscore; expand it
31966   U=`sed -n 's/^U = //p' < "$mf"`
31967   # Find all dependency output files, they are included files with
31968   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31969   # simplest approach to changing $(DEPDIR) to its actual value in the
31970   # expansion.
31971   for file in `sed -n "
31972     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31973        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31974     # Make sure the directory exists.
31975     test -f "$dirpart/$file" && continue
31976     fdir=`$as_dirname -- "$file" ||
31977 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31978          X"$file" : 'X\(//\)[^/]' \| \
31979          X"$file" : 'X\(//\)$' \| \
31980          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31981 echo X"$file" |
31982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31983             s//\1/
31984             q
31985           }
31986           /^X\(\/\/\)[^/].*/{
31987             s//\1/
31988             q
31989           }
31990           /^X\(\/\/\)$/{
31991             s//\1/
31992             q
31993           }
31994           /^X\(\/\).*/{
31995             s//\1/
31996             q
31997           }
31998           s/.*/./; q'`
31999     { as_dir=$dirpart/$fdir
32000   case $as_dir in #(
32001   -*) as_dir=./$as_dir;;
32002   esac
32003   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32004     as_dirs=
32005     while :; do
32006       case $as_dir in #(
32007       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
32008       *) as_qdir=$as_dir;;
32009       esac
32010       as_dirs="'$as_qdir' $as_dirs"
32011       as_dir=`$as_dirname -- "$as_dir" ||
32012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32013          X"$as_dir" : 'X\(//\)[^/]' \| \
32014          X"$as_dir" : 'X\(//\)$' \| \
32015          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32016 echo X"$as_dir" |
32017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32018             s//\1/
32019             q
32020           }
32021           /^X\(\/\/\)[^/].*/{
32022             s//\1/
32023             q
32024           }
32025           /^X\(\/\/\)$/{
32026             s//\1/
32027             q
32028           }
32029           /^X\(\/\).*/{
32030             s//\1/
32031             q
32032           }
32033           s/.*/./; q'`
32034       test -d "$as_dir" && break
32035     done
32036     test -z "$as_dirs" || eval "mkdir $as_dirs"
32037   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32038 echo "$as_me: error: cannot create directory $as_dir" >&2;}
32039    { (exit 1); exit 1; }; }; }
32040     # echo "creating $dirpart/$file"
32041     echo '# dummy' > "$dirpart/$file"
32042   done
32043 done
32044  ;;
32045
32046   esac
32047 done # for ac_tag
32048
32049
32050 { (exit 0); exit 0; }
32051 _ACEOF
32052 chmod +x $CONFIG_STATUS
32053 ac_clean_files=$ac_clean_files_save
32054
32055
32056 # configure is writing to config.log, and then calls config.status.
32057 # config.status does its own redirection, appending to config.log.
32058 # Unfortunately, on DOS this fails, as config.log is still kept open
32059 # by configure, so config.status won't be able to write to it; its
32060 # output is simply discarded.  So we exec the FD to /dev/null,
32061 # effectively closing config.log, so it can be properly (re)opened and
32062 # appended to by config.status.  When coming back to configure, we
32063 # need to make the FD available again.
32064 if test "$no_create" != yes; then
32065   ac_cs_success=:
32066   ac_config_status_args=
32067   test "$silent" = yes &&
32068     ac_config_status_args="$ac_config_status_args --quiet"
32069   exec 5>/dev/null
32070   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32071   exec 5>>config.log
32072   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32073   # would make configure fail if this is the last instruction.
32074   $ac_cs_success || { (exit 1); exit 1; }
32075 fi
32076
32077