]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.0.11~git-20060105
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.10.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 RELEASE
841 statedir
842 statduser
843 enable_nfsv3
844 IDMAPD
845 enable_nfsv4
846 CONFIG_NFSV4_TRUE
847 CONFIG_NFSV4_FALSE
848 GSSD
849 SVCGSSD
850 enable_gss
851 CONFIG_GSS_TRUE
852 CONFIG_GSS_FALSE
853 kprefix
854 secure_statd
855 CONFIG_RQUOTAD_TRUE
856 CONFIG_RQUOTAD_FALSE
857 CONFIG_MOUNT_TRUE
858 CONFIG_MOUNT_FALSE
859 CC
860 CFLAGS
861 LDFLAGS
862 CPPFLAGS
863 ac_ct_CC
864 EXEEXT
865 OBJEXT
866 DEPDIR
867 am__include
868 am__quote
869 AMDEP_TRUE
870 AMDEP_FALSE
871 AMDEPBACKSLASH
872 CCDEPMODE
873 am__fastdepCC_TRUE
874 am__fastdepCC_FALSE
875 LIBWRAP
876 HAVE_LIBWRAP
877 HAVE_TCP_WRAPPER
878 CXX
879 CXXFLAGS
880 ac_ct_CXX
881 CXXDEPMODE
882 am__fastdepCXX_TRUE
883 am__fastdepCXX_FALSE
884 CPP
885 LN_S
886 GREP
887 EGREP
888 ECHO
889 AR
890 RANLIB
891 CXXCPP
892 F77
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 CC_FOR_BUILD
897 LD
898 LIBNSL
899 PKG_CONFIG
900 RPCSECGSS_CFLAGS
901 RPCSECGSS_LIBS
902 GSSAPI_CFLAGS
903 GSSAPI_LIBS
904 LIBSOCKET
905 LIBCRYPT
906 LIBBSD
907 KRBDIR
908 KRBLIBS
909 KRBCFLAGS
910 KRBLDFLAGS
911 K5VERS
912 ALLOCA
913 LIBOBJS
914 CFLAGS_FOR_BUILD
915 CXXFLAGS_FOR_BUILD
916 CPPFLAGS_FOR_BUILD
917 LDFLAGS_FOR_BUILD
918 AM_CPPFLAGS
919 AM_CFLAGS
920 ACLOCAL_AMFLAGS
921 LTLIBOBJS'
922 ac_subst_files=''
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 F77
937 FFLAGS
938 PKG_CONFIG
939 RPCSECGSS_CFLAGS
940 RPCSECGSS_LIBS
941 GSSAPI_CFLAGS
942 GSSAPI_LIBS'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050    { (exit 1); exit 1; }; }
1051     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052     eval enable_$ac_feature=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071     eval enable_$ac_feature=\$ac_optarg ;;
1072
1073   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075   | --exec | --exe | --ex)
1076     ac_prev=exec_prefix ;;
1077   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079   | --exec=* | --exe=* | --ex=*)
1080     exec_prefix=$ac_optarg ;;
1081
1082   -gas | --gas | --ga | --g)
1083     # Obsolete; use --with-gas.
1084     with_gas=yes ;;
1085
1086   -help | --help | --hel | --he | -h)
1087     ac_init_help=long ;;
1088   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089     ac_init_help=recursive ;;
1090   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091     ac_init_help=short ;;
1092
1093   -host | --host | --hos | --ho)
1094     ac_prev=host_alias ;;
1095   -host=* | --host=* | --hos=* | --ho=*)
1096     host_alias=$ac_optarg ;;
1097
1098   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099     ac_prev=htmldir ;;
1100   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101   | --ht=*)
1102     htmldir=$ac_optarg ;;
1103
1104   -includedir | --includedir | --includedi | --included | --include \
1105   | --includ | --inclu | --incl | --inc)
1106     ac_prev=includedir ;;
1107   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108   | --includ=* | --inclu=* | --incl=* | --inc=*)
1109     includedir=$ac_optarg ;;
1110
1111   -infodir | --infodir | --infodi | --infod | --info | --inf)
1112     ac_prev=infodir ;;
1113   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114     infodir=$ac_optarg ;;
1115
1116   -libdir | --libdir | --libdi | --libd)
1117     ac_prev=libdir ;;
1118   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119     libdir=$ac_optarg ;;
1120
1121   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122   | --libexe | --libex | --libe)
1123     ac_prev=libexecdir ;;
1124   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125   | --libexe=* | --libex=* | --libe=*)
1126     libexecdir=$ac_optarg ;;
1127
1128   -localedir | --localedir | --localedi | --localed | --locale)
1129     ac_prev=localedir ;;
1130   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131     localedir=$ac_optarg ;;
1132
1133   -localstatedir | --localstatedir | --localstatedi | --localstated \
1134   | --localstate | --localstat | --localsta | --localst | --locals)
1135     ac_prev=localstatedir ;;
1136   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138     localstatedir=$ac_optarg ;;
1139
1140   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141     ac_prev=mandir ;;
1142   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143     mandir=$ac_optarg ;;
1144
1145   -nfp | --nfp | --nf)
1146     # Obsolete; use --without-fp.
1147     with_fp=no ;;
1148
1149   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150   | --no-cr | --no-c | -n)
1151     no_create=yes ;;
1152
1153   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155     no_recursion=yes ;;
1156
1157   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159   | --oldin | --oldi | --old | --ol | --o)
1160     ac_prev=oldincludedir ;;
1161   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164     oldincludedir=$ac_optarg ;;
1165
1166   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167     ac_prev=prefix ;;
1168   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169     prefix=$ac_optarg ;;
1170
1171   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172   | --program-pre | --program-pr | --program-p)
1173     ac_prev=program_prefix ;;
1174   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176     program_prefix=$ac_optarg ;;
1177
1178   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179   | --program-suf | --program-su | --program-s)
1180     ac_prev=program_suffix ;;
1181   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183     program_suffix=$ac_optarg ;;
1184
1185   -program-transform-name | --program-transform-name \
1186   | --program-transform-nam | --program-transform-na \
1187   | --program-transform-n | --program-transform- \
1188   | --program-transform | --program-transfor \
1189   | --program-transfo | --program-transf \
1190   | --program-trans | --program-tran \
1191   | --progr-tra | --program-tr | --program-t)
1192     ac_prev=program_transform_name ;;
1193   -program-transform-name=* | --program-transform-name=* \
1194   | --program-transform-nam=* | --program-transform-na=* \
1195   | --program-transform-n=* | --program-transform-=* \
1196   | --program-transform=* | --program-transfor=* \
1197   | --program-transfo=* | --program-transf=* \
1198   | --program-trans=* | --program-tran=* \
1199   | --progr-tra=* | --program-tr=* | --program-t=*)
1200     program_transform_name=$ac_optarg ;;
1201
1202   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203     ac_prev=pdfdir ;;
1204   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205     pdfdir=$ac_optarg ;;
1206
1207   -psdir | --psdir | --psdi | --psd | --ps)
1208     ac_prev=psdir ;;
1209   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210     psdir=$ac_optarg ;;
1211
1212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213   | -silent | --silent | --silen | --sile | --sil)
1214     silent=yes ;;
1215
1216   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217     ac_prev=sbindir ;;
1218   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219   | --sbi=* | --sb=*)
1220     sbindir=$ac_optarg ;;
1221
1222   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224   | --sharedst | --shareds | --shared | --share | --shar \
1225   | --sha | --sh)
1226     ac_prev=sharedstatedir ;;
1227   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230   | --sha=* | --sh=*)
1231     sharedstatedir=$ac_optarg ;;
1232
1233   -site | --site | --sit)
1234     ac_prev=site ;;
1235   -site=* | --site=* | --sit=*)
1236     site=$ac_optarg ;;
1237
1238   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239     ac_prev=srcdir ;;
1240   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241     srcdir=$ac_optarg ;;
1242
1243   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244   | --syscon | --sysco | --sysc | --sys | --sy)
1245     ac_prev=sysconfdir ;;
1246   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248     sysconfdir=$ac_optarg ;;
1249
1250   -target | --target | --targe | --targ | --tar | --ta | --t)
1251     ac_prev=target_alias ;;
1252   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253     target_alias=$ac_optarg ;;
1254
1255   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256     verbose=yes ;;
1257
1258   -version | --version | --versio | --versi | --vers | -V)
1259     ac_init_version=: ;;
1260
1261   -with-* | --with-*)
1262     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid package name: $ac_package" >&2
1266    { (exit 1); exit 1; }; }
1267     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268     eval with_$ac_package=\$ac_optarg ;;
1269
1270   -without-* | --without-*)
1271     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid package name: $ac_package" >&2
1275    { (exit 1); exit 1; }; }
1276     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277     eval with_$ac_package=no ;;
1278
1279   --x)
1280     # Obsolete; use --with-x.
1281     with_x=yes ;;
1282
1283   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284   | --x-incl | --x-inc | --x-in | --x-i)
1285     ac_prev=x_includes ;;
1286   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288     x_includes=$ac_optarg ;;
1289
1290   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292     ac_prev=x_libraries ;;
1293   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295     x_libraries=$ac_optarg ;;
1296
1297   -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299    { (exit 1); exit 1; }; }
1300     ;;
1301
1302   *=*)
1303     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307    { (exit 1); exit 1; }; }
1308     eval $ac_envvar=\$ac_optarg
1309     export $ac_envvar ;;
1310
1311   *)
1312     # FIXME: should be removed in autoconf 3.0.
1313     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317     ;;
1318
1319   esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324   { echo "$as_me: error: missing argument to $ac_option" >&2
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 # Be sure to have absolute directory names.
1329 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330                 datadir sysconfdir sharedstatedir localstatedir includedir \
1331                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332                 libdir localedir mandir
1333 do
1334   eval ac_val=\$$ac_var
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340    { (exit 1); exit 1; }; }
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355     If a cross compiler is detected then cross compile mode will be used." >&2
1356   elif test "x$build_alias" != "x$host_alias"; then
1357     cross_compiling=yes
1358   fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370   { echo "$as_me: error: Working directory cannot be determined" >&2
1371    { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373   { echo "$as_me: error: pwd does not report name of working directory" >&2
1374    { (exit 1); exit 1; }; }
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379   ac_srcdir_defaulted=yes
1380   # Try the directory containing this script, then the parent directory.
1381   ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383          X"$0" : 'X\(//\)[^/]' \| \
1384          X"$0" : 'X\(//\)$' \| \
1385          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386 echo X"$0" |
1387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)[^/].*/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\).*/{
1400             s//\1/
1401             q
1402           }
1403           s/.*/./; q'`
1404   srcdir=$ac_confdir
1405   if test ! -r "$srcdir/$ac_unique_file"; then
1406     srcdir=..
1407   fi
1408 else
1409   ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414    { (exit 1); exit 1; }; }
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419    { (exit 1); exit 1; }; }
1420         pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423   srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_env_${ac_var}_value=\$${ac_var}
1434   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442   # Omit some internal or obsolete options to make the list less imposing.
1443   # This message is too long to be a string in the A/UX 3.1 sh.
1444   cat <<_ACEOF
1445 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455   -h, --help              display this help and exit
1456       --help=short        display options specific to this package
1457       --help=recursive    display the short help of all the included packages
1458   -V, --version           display version information and exit
1459   -q, --quiet, --silent   do not print \`checking...' messages
1460       --cache-file=FILE   cache test results in FILE [disabled]
1461   -C, --config-cache      alias for \`--cache-file=config.cache'
1462   -n, --no-create         do not create output files
1463       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466   --prefix=PREFIX         install architecture-independent files in PREFIX
1467                           [$ac_default_prefix]
1468   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469                           [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479   --bindir=DIR           user executables [EPREFIX/bin]
1480   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1481   --libexecdir=DIR       program executables [EPREFIX/libexec]
1482   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1483   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1484   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1485   --libdir=DIR           object code libraries [EPREFIX/lib]
1486   --includedir=DIR       C header files [PREFIX/include]
1487   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1488   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1489   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1490   --infodir=DIR          info documentation [DATAROOTDIR/info]
1491   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1492   --mandir=DIR           man documentation [DATAROOTDIR/man]
1493   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1494   --htmldir=DIR          html documentation [DOCDIR]
1495   --dvidir=DIR           dvi documentation [DOCDIR]
1496   --pdfdir=DIR           pdf documentation [DOCDIR]
1497   --psdir=DIR            ps documentation [DOCDIR]
1498 _ACEOF
1499
1500   cat <<\_ACEOF
1501
1502 Program names:
1503   --program-prefix=PREFIX            prepend PREFIX to installed program names
1504   --program-suffix=SUFFIX            append SUFFIX to installed program names
1505   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507 System types:
1508   --build=BUILD     configure for building on BUILD [guessed]
1509   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522   --enable-nfsv3          enable support for NFSv3 [default=yes]
1523   --enable-nfsv4          enable support for NFSv4 [default=yes]
1524   --enable-gss            enable support for rpcsec_gss [default=yes]
1525   --enable-kprefix        install progs as rpc.knfsd etc
1526   --enable-secure-statd   Only lockd can use statd (security)
1527   --enable-rquotad        enable rquotad [default=yes]
1528   --enable-mount          Create mount.nfs and don't use the util-linux
1529                           mount(8) functionality. [default=no]
1530   --disable-dependency-tracking  speeds up one-time build
1531   --enable-dependency-tracking   do not reject slow dependency extractors
1532   --enable-shared[=PKGS]  build shared libraries [default=yes]
1533   --enable-static[=PKGS]  build static libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537
1538 Optional Packages:
1539   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541   --with-release=XXX      set release to XXX [1]
1542   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1543   --with-statduser=rpcuser
1544                           statd to run under [rpcuser or nobody]
1545   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1546                  (optionally in PATH)
1547   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1548   --with-pic              try to use only PIC/non-PIC objects [default=use
1549                           both]
1550   --with-tags[=TAGS]      include additional configurations [automatic]
1551   --with-krb5=DIR         use Kerberos v5 installation in DIR
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   LIBS        libraries to pass to the linker, e.g. -l<library>
1559   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   CPP         C preprocessor
1564   CXXCPP      C++ preprocessor
1565   F77         Fortran 77 compiler command
1566   FFLAGS      Fortran 77 compiler flags
1567   PKG_CONFIG  path to pkg-config utility
1568   RPCSECGSS_CFLAGS
1569               C compiler flags for RPCSECGSS, overriding pkg-config
1570   RPCSECGSS_LIBS
1571               linker flags for RPCSECGSS, overriding pkg-config
1572   GSSAPI_CFLAGS
1573               C compiler flags for GSSAPI, overriding pkg-config
1574   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 Report bugs to <nfs@lists.sf.net>.
1580 _ACEOF
1581 ac_status=$?
1582 fi
1583
1584 if test "$ac_init_help" = "recursive"; then
1585   # If there are subdirs, report their specific --help.
1586   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587     test -d "$ac_dir" || continue
1588     ac_builddir=.
1589
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *)
1593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594   # A ".." for each directory in $ac_dir_suffix.
1595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596   case $ac_top_builddir_sub in
1597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599   esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1605
1606 case $srcdir in
1607   .)  # We are building in place.
1608     ac_srcdir=.
1609     ac_top_srcdir=$ac_top_builddir_sub
1610     ac_abs_top_srcdir=$ac_pwd ;;
1611   [\\/]* | ?:[\\/]* )  # Absolute name.
1612     ac_srcdir=$srcdir$ac_dir_suffix;
1613     ac_top_srcdir=$srcdir
1614     ac_abs_top_srcdir=$srcdir ;;
1615   *) # Relative name.
1616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617     ac_top_srcdir=$ac_top_build_prefix$srcdir
1618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622     cd "$ac_dir" || { ac_status=$?; continue; }
1623     # Check for guested configure.
1624     if test -f "$ac_srcdir/configure.gnu"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627     elif test -f "$ac_srcdir/configure"; then
1628       echo &&
1629       $SHELL "$ac_srcdir/configure" --help=recursive
1630     else
1631       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632     fi || ac_status=$?
1633     cd "$ac_pwd" || { ac_status=$?; break; }
1634   done
1635 fi
1636
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639   cat <<\_ACEOF
1640 linux nfs-utils configure 1.0.10
1641 generated by GNU Autoconf 2.61
1642
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648   exit
1649 fi
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1653
1654 It was created by linux nfs-utils $as_me 1.0.10, which was
1655 generated by GNU Autoconf 2.61.  Invocation command line was
1656
1657   $ $0 $@
1658
1659 _ACEOF
1660 exec 5>>config.log
1661 {
1662 cat <<_ASUNAME
1663 ## --------- ##
1664 ## Platform. ##
1665 ## --------- ##
1666
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1675
1676 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1677 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1680 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1681 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1682 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1683
1684 _ASUNAME
1685
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   echo "PATH: $as_dir"
1692 done
1693 IFS=$as_save_IFS
1694
1695 } >&5
1696
1697 cat >&5 <<_ACEOF
1698
1699
1700 ## ----------- ##
1701 ## Core tests. ##
1702 ## ----------- ##
1703
1704 _ACEOF
1705
1706
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_configure_args=
1713 ac_configure_args0=
1714 ac_configure_args1=
1715 ac_must_keep_next=false
1716 for ac_pass in 1 2
1717 do
1718   for ac_arg
1719   do
1720     case $ac_arg in
1721     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723     | -silent | --silent | --silen | --sile | --sil)
1724       continue ;;
1725     *\'*)
1726       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727     esac
1728     case $ac_pass in
1729     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730     2)
1731       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732       if test $ac_must_keep_next = true; then
1733         ac_must_keep_next=false # Got value, back to normal.
1734       else
1735         case $ac_arg in
1736           *=* | --config-cache | -C | -disable-* | --disable-* \
1737           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739           | -with-* | --with-* | -without-* | --without-* | --x)
1740             case "$ac_configure_args0 " in
1741               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742             esac
1743             ;;
1744           -* ) ac_must_keep_next=true ;;
1745         esac
1746       fi
1747       ac_configure_args="$ac_configure_args '$ac_arg'"
1748       ;;
1749     esac
1750   done
1751 done
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log.  We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761   # Save into config.log some information that might help in debugging.
1762   {
1763     echo
1764
1765     cat <<\_ASBOX
1766 ## ---------------- ##
1767 ## Cache variables. ##
1768 ## ---------------- ##
1769 _ASBOX
1770     echo
1771     # The following way of writing the cache mishandles newlines in values,
1772 (
1773   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774     eval ac_val=\$$ac_var
1775     case $ac_val in #(
1776     *${as_nl}*)
1777       case $ac_var in #(
1778       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780       esac
1781       case $ac_var in #(
1782       _ | IFS | as_nl) ;; #(
1783       *) $as_unset $ac_var ;;
1784       esac ;;
1785     esac
1786   done
1787   (set) 2>&1 |
1788     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789     *${as_nl}ac_space=\ *)
1790       sed -n \
1791         "s/'\''/'\''\\\\'\'''\''/g;
1792           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793       ;; #(
1794     *)
1795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796       ;;
1797     esac |
1798     sort
1799 )
1800     echo
1801
1802     cat <<\_ASBOX
1803 ## ----------------- ##
1804 ## Output variables. ##
1805 ## ----------------- ##
1806 _ASBOX
1807     echo
1808     for ac_var in $ac_subst_vars
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
1818     if test -n "$ac_subst_files"; then
1819       cat <<\_ASBOX
1820 ## ------------------- ##
1821 ## File substitutions. ##
1822 ## ------------------- ##
1823 _ASBOX
1824       echo
1825       for ac_var in $ac_subst_files
1826       do
1827         eval ac_val=\$$ac_var
1828         case $ac_val in
1829         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830         esac
1831         echo "$ac_var='\''$ac_val'\''"
1832       done | sort
1833       echo
1834     fi
1835
1836     if test -s confdefs.h; then
1837       cat <<\_ASBOX
1838 ## ----------- ##
1839 ## confdefs.h. ##
1840 ## ----------- ##
1841 _ASBOX
1842       echo
1843       cat confdefs.h
1844       echo
1845     fi
1846     test "$ac_signal" != 0 &&
1847       echo "$as_me: caught signal $ac_signal"
1848     echo "$as_me: exit $exit_status"
1849   } >&5
1850   rm -f core *.core core.conftest.* &&
1851     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852     exit $exit_status
1853 ' 0
1854 for ac_signal in 1 2 13 15; do
1855   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 done
1857 ac_signal=0
1858
1859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1860 rm -f -r conftest* confdefs.h
1861
1862 # Predefined preprocessor variables.
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_NAME "$PACKAGE_NAME"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 _ACEOF
1877
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_STRING "$PACKAGE_STRING"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 _ACEOF
1887
1888
1889 # Let the site file select an alternate cache file if it wants to.
1890 # Prefer explicitly selected file to automatically selected ones.
1891 if test -n "$CONFIG_SITE"; then
1892   set x "$CONFIG_SITE"
1893 elif test "x$prefix" != xNONE; then
1894   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 else
1896   set x "$ac_default_prefix/share/config.site" \
1897         "$ac_default_prefix/etc/config.site"
1898 fi
1899 shift
1900 for ac_site_file
1901 do
1902   if test -r "$ac_site_file"; then
1903     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 echo "$as_me: loading site script $ac_site_file" >&6;}
1905     sed 's/^/| /' "$ac_site_file" >&5
1906     . "$ac_site_file"
1907   fi
1908 done
1909
1910 if test -r "$cache_file"; then
1911   # Some versions of bash will fail to source /dev/null (special
1912   # files actually), so we avoid doing that.
1913   if test -f "$cache_file"; then
1914     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 echo "$as_me: loading cache $cache_file" >&6;}
1916     case $cache_file in
1917       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918       *)                      . "./$cache_file";;
1919     esac
1920   fi
1921 else
1922   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 echo "$as_me: creating cache $cache_file" >&6;}
1924   >$cache_file
1925 fi
1926
1927 # Check that the precious variables saved in the cache have kept the same
1928 # value.
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932   eval ac_new_set=\$ac_env_${ac_var}_set
1933   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934   eval ac_new_val=\$ac_env_${ac_var}_value
1935   case $ac_old_set,$ac_new_set in
1936     set,)
1937       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,set)
1941       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943       ac_cache_corrupted=: ;;
1944     ,);;
1945     *)
1946       if test "x$ac_old_val" != "x$ac_new_val"; then
1947         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1950 echo "$as_me:   former value:  $ac_old_val" >&2;}
1951         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1952 echo "$as_me:   current value: $ac_new_val" >&2;}
1953         ac_cache_corrupted=:
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007 ac_aux_dir=
2008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009   if test -f "$ac_dir/install-sh"; then
2010     ac_aux_dir=$ac_dir
2011     ac_install_sh="$ac_aux_dir/install-sh -c"
2012     break
2013   elif test -f "$ac_dir/install.sh"; then
2014     ac_aux_dir=$ac_dir
2015     ac_install_sh="$ac_aux_dir/install.sh -c"
2016     break
2017   elif test -f "$ac_dir/shtool"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/shtool install -c"
2020     break
2021   fi
2022 done
2023 if test -z "$ac_aux_dir"; then
2024   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026    { (exit 1); exit 1; }; }
2027 fi
2028
2029 # These three variables are undocumented and unsupported,
2030 # and are intended to be withdrawn in a future Autoconf release.
2031 # They can cause serious problems if a builder's source tree is in a directory
2032 # whose full name contains unusual characters.
2033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
2037
2038 # Make sure we can run config.sub.
2039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2040   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2041 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 { echo "$as_me:$LINENO: checking build system type" >&5
2045 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_build+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   ac_build_alias=$build_alias
2050 test "x$ac_build_alias" = x &&
2051   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2052 test "x$ac_build_alias" = x &&
2053   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055    { (exit 1); exit 1; }; }
2056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2057   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 fi
2062 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063 echo "${ECHO_T}$ac_cv_build" >&6; }
2064 case $ac_cv_build in
2065 *-*-*) ;;
2066 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2067 echo "$as_me: error: invalid value of canonical build" >&2;}
2068    { (exit 1); exit 1; }; };;
2069 esac
2070 build=$ac_cv_build
2071 ac_save_IFS=$IFS; IFS='-'
2072 set x $ac_cv_build
2073 shift
2074 build_cpu=$1
2075 build_vendor=$2
2076 shift; shift
2077 # Remember, the first character of IFS is used to create $*,
2078 # except with old shells:
2079 build_os=$*
2080 IFS=$ac_save_IFS
2081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2082
2083
2084 { echo "$as_me:$LINENO: checking host system type" >&5
2085 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_host+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test "x$host_alias" = x; then
2090   ac_cv_host=$ac_cv_build
2091 else
2092   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2093     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2095    { (exit 1); exit 1; }; }
2096 fi
2097
2098 fi
2099 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2100 echo "${ECHO_T}$ac_cv_host" >&6; }
2101 case $ac_cv_host in
2102 *-*-*) ;;
2103 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2104 echo "$as_me: error: invalid value of canonical host" >&2;}
2105    { (exit 1); exit 1; }; };;
2106 esac
2107 host=$ac_cv_host
2108 ac_save_IFS=$IFS; IFS='-'
2109 set x $ac_cv_host
2110 shift
2111 host_cpu=$1
2112 host_vendor=$2
2113 shift; shift
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2116 host_os=$*
2117 IFS=$ac_save_IFS
2118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119
2120
2121
2122
2123 am__api_version="1.9"
2124 # Find a good install program.  We prefer a C program (faster),
2125 # so one script is as good as another.  But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   # Account for people who put trailing slashes in PATH elements.
2149 case $as_dir/ in
2150   ./ | .// | /cC/* | \
2151   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153   /usr/ucb/* ) ;;
2154   *)
2155     # OSF1 and SCO ODT 3.0 have their own names for install.
2156     # Don't use installbsd from OSF since it installs stuff as root
2157     # by default.
2158     for ac_prog in ginstall scoinst install; do
2159       for ac_exec_ext in '' $ac_executable_extensions; do
2160         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161           if test $ac_prog = install &&
2162             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163             # AIX install.  It has an incompatible calling convention.
2164             :
2165           elif test $ac_prog = install &&
2166             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167             # program-specific install script used by HP pwplus--don't use.
2168             :
2169           else
2170             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2171             break 3
2172           fi
2173         fi
2174       done
2175     done
2176     ;;
2177 esac
2178 done
2179 IFS=$as_save_IFS
2180
2181
2182 fi
2183   if test "${ac_cv_path_install+set}" = set; then
2184     INSTALL=$ac_cv_path_install
2185   else
2186     # As a last resort, use the slow shell script.  Don't cache a
2187     # value for INSTALL within a source directory, because that will
2188     # break other packages using the cache if that directory is
2189     # removed, or if the value is a relative name.
2190     INSTALL=$ac_install_sh
2191   fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2194 echo "${ECHO_T}$INSTALL" >&6; }
2195
2196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2197 # It thinks the first close brace ends the variable substitution.
2198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199
2200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201
2202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203
2204 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 # Just in case
2207 sleep 1
2208 echo timestamp > conftest.file
2209 # Do `set' in a subshell so we don't clobber the current shell's
2210 # arguments.  Must try -L first in case configure is actually a
2211 # symlink; some systems play weird games with the mod time of symlinks
2212 # (eg FreeBSD returns the mod time of the symlink's containing
2213 # directory).
2214 if (
2215    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2216    if test "$*" = "X"; then
2217       # -L didn't work.
2218       set X `ls -t $srcdir/configure conftest.file`
2219    fi
2220    rm -f conftest.file
2221    if test "$*" != "X $srcdir/configure conftest.file" \
2222       && test "$*" != "X conftest.file $srcdir/configure"; then
2223
2224       # If neither matched, then we have a broken ls.  This can happen
2225       # if, for instance, CONFIG_SHELL is bash and it inherits a
2226       # broken ls alias from the environment.  This has actually
2227       # happened.  Such a system could not be considered "sane".
2228       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&5
2230 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2231 alias in your environment" >&2;}
2232    { (exit 1); exit 1; }; }
2233    fi
2234
2235    test "$2" = conftest.file
2236    )
2237 then
2238    # Ok.
2239    :
2240 else
2241    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2242 Check your system clock" >&5
2243 echo "$as_me: error: newly created file is older than distributed files!
2244 Check your system clock" >&2;}
2245    { (exit 1); exit 1; }; }
2246 fi
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 test "$program_prefix" != NONE &&
2250   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2251 # Use a double $ so make ignores it.
2252 test "$program_suffix" != NONE &&
2253   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254 # Double any \ or $.  echo might interpret backslashes.
2255 # By default was `s,x,x', remove it if useless.
2256 cat <<\_ACEOF >conftest.sed
2257 s/[\\$]/&&/g;s/;s,x,x,$//
2258 _ACEOF
2259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 rm -f conftest.sed
2261
2262 # expand $ac_aux_dir to an absolute path
2263 am_aux_dir=`cd $ac_aux_dir && pwd`
2264
2265 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2266 # Use eval to expand $SHELL
2267 if eval "$MISSING --run true"; then
2268   am_missing_run="$MISSING --run "
2269 else
2270   am_missing_run=
2271   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2272 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 fi
2274
2275 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2276   # We used to keeping the `.' as first argument, in order to
2277   # allow $(mkdir_p) to be used without argument.  As in
2278   #   $(mkdir_p) $(somedir)
2279   # where $(somedir) is conditionally defined.  However this is wrong
2280   # for two reasons:
2281   #  1. if the package is installed by a user who cannot write `.'
2282   #     make install will fail,
2283   #  2. the above comment should most certainly read
2284   #     $(mkdir_p) $(DESTDIR)$(somedir)
2285   #     so it does not work when $(somedir) is undefined and
2286   #     $(DESTDIR) is not.
2287   #  To support the latter case, we have to write
2288   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2289   #  so the `.' trick is pointless.
2290   mkdir_p='mkdir -p --'
2291 else
2292   # On NextStep and OpenStep, the `mkdir' command does not
2293   # recognize any option.  It will interpret all options as
2294   # directories to create, and then abort because `.' already
2295   # exists.
2296   for d in ./-p ./--version;
2297   do
2298     test -d $d && rmdir $d
2299   done
2300   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2301   if test -f "$ac_aux_dir/mkinstalldirs"; then
2302     mkdir_p='$(mkinstalldirs)'
2303   else
2304     mkdir_p='$(install_sh) -d'
2305   fi
2306 fi
2307
2308 for ac_prog in gawk mawk nawk awk
2309 do
2310   # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_AWK+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$AWK"; then
2318   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327     ac_cv_prog_AWK="$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 AWK=$ac_cv_prog_AWK
2338 if test -n "$AWK"; then
2339   { echo "$as_me:$LINENO: result: $AWK" >&5
2340 echo "${ECHO_T}$AWK" >&6; }
2341 else
2342   { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 fi
2345
2346
2347   test -n "$AWK" && break
2348 done
2349
2350 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2352 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2353 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.make <<\_ACEOF
2357 SHELL = /bin/sh
2358 all:
2359         @echo '@@@%%%=$(MAKE)=@@@%%%'
2360 _ACEOF
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2363   *@@@%%%=?*=@@@%%%*)
2364     eval ac_cv_prog_make_${ac_make}_set=yes;;
2365   *)
2366     eval ac_cv_prog_make_${ac_make}_set=no;;
2367 esac
2368 rm -f conftest.make
2369 fi
2370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2371   { echo "$as_me:$LINENO: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6; }
2373   SET_MAKE=
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377   SET_MAKE="MAKE=${MAKE-make}"
2378 fi
2379
2380 rm -rf .tst 2>/dev/null
2381 mkdir .tst 2>/dev/null
2382 if test -d .tst; then
2383   am__leading_dot=.
2384 else
2385   am__leading_dot=_
2386 fi
2387 rmdir .tst 2>/dev/null
2388
2389 # test to see if srcdir already configured
2390 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2391    test -f $srcdir/config.status; then
2392   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2396
2397 # test whether we have cygpath
2398 if test -z "$CYGPATH_W"; then
2399   if (cygpath --version) >/dev/null 2>/dev/null; then
2400     CYGPATH_W='cygpath -w'
2401   else
2402     CYGPATH_W=echo
2403   fi
2404 fi
2405
2406
2407 # Define the identity of the package.
2408  PACKAGE='nfs-utils'
2409  VERSION='1.0.10'
2410
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE "$PACKAGE"
2414 _ACEOF
2415
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define VERSION "$VERSION"
2419 _ACEOF
2420
2421 # Some tools Automake needs.
2422
2423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2424
2425
2426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2427
2428
2429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2430
2431
2432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2433
2434
2435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2436
2437 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2438
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'.  However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$STRIP"; then
2453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474   { echo "$as_me:$LINENO: result: $STRIP" >&5
2475 echo "${ECHO_T}$STRIP" >&6; }
2476 else
2477   { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484   ac_ct_STRIP=$STRIP
2485   # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$ac_ct_STRIP"; then
2493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_ac_ct_STRIP="strip"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521   if test "x$ac_ct_STRIP" = x; then
2522     STRIP=":"
2523   else
2524     case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet.  If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet.  If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534     STRIP=$ac_ct_STRIP
2535   fi
2536 else
2537   STRIP="$ac_cv_prog_STRIP"
2538 fi
2539
2540 fi
2541 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2542
2543 # We need awk for the "check" target.  The system "awk" is bad on
2544 # some platforms.
2545 # Always define AMTAR for backward compatibility.
2546
2547 AMTAR=${AMTAR-"${am_missing_run}tar"}
2548
2549 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559 # Check whether --with-release was given.
2560 if test "${with_release+set}" = set; then
2561   withval=$with_release; RELEASE=$withval
2562 else
2563   RELEASE=1
2564 fi
2565
2566
2567
2568 # Check whether --with-statedir was given.
2569 if test "${with_statedir+set}" = set; then
2570   withval=$with_statedir; statedir=$withval
2571 else
2572   statedir=/var/lib/nfs
2573 fi
2574
2575
2576
2577 # Check whether --with-statduser was given.
2578 if test "${with_statduser+set}" = set; then
2579   withval=$with_statduser; statduser=$withval
2580 else
2581   if test "x$cross_compiling" = "xno"; then
2582                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2583                         statduser=rpcuser
2584                 else
2585                         statduser=nobody
2586                 fi
2587         else
2588                 statduser=nobody
2589         fi
2590 fi
2591
2592
2593 # Check whether --enable-nfsv3 was given.
2594 if test "${enable_nfsv3+set}" = set; then
2595   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2596 else
2597   enable_nfsv3=yes
2598 fi
2599
2600         if test "$enable_nfsv3" = yes; then
2601
2602 cat >>confdefs.h <<\_ACEOF
2603 #define NFS3_SUPPORTED 1
2604 _ACEOF
2605
2606         else
2607                 enable_nfsv3=
2608         fi
2609
2610 # Check whether --enable-nfsv4 was given.
2611 if test "${enable_nfsv4+set}" = set; then
2612   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2613 else
2614   enable_nfsv4=yes
2615 fi
2616
2617         if test "$enable_nfsv4" = yes; then
2618
2619 cat >>confdefs.h <<\_ACEOF
2620 #define NFS4_SUPPORTED 1
2621 _ACEOF
2622
2623                 IDMAPD=idmapd
2624         else
2625                 enable_nfsv4=
2626                 IDMAPD=
2627         fi
2628
2629
2630
2631
2632 if test "$enable_nfsv4" = "yes"; then
2633   CONFIG_NFSV4_TRUE=
2634   CONFIG_NFSV4_FALSE='#'
2635 else
2636   CONFIG_NFSV4_TRUE='#'
2637   CONFIG_NFSV4_FALSE=
2638 fi
2639
2640 # Check whether --enable-gss was given.
2641 if test "${enable_gss+set}" = set; then
2642   enableval=$enable_gss; enable_gss=$enableval
2643 else
2644   enable_gss=yes
2645 fi
2646
2647         if test "$enable_gss" = yes; then
2648
2649 cat >>confdefs.h <<\_ACEOF
2650 #define GSS_SUPPORTED 1
2651 _ACEOF
2652
2653                 GSSD=gssd
2654                 SVCGSSD=svcgssd
2655         else
2656                 enable_gss=
2657                 GSSD=
2658                 SVCGSSD=
2659         fi
2660
2661
2662
2663
2664
2665 if test "$enable_gss" = "yes"; then
2666   CONFIG_GSS_TRUE=
2667   CONFIG_GSS_FALSE='#'
2668 else
2669   CONFIG_GSS_TRUE='#'
2670   CONFIG_GSS_FALSE=
2671 fi
2672
2673 # Check whether --enable-kprefix was given.
2674 if test "${enable_kprefix+set}" = set; then
2675   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2676 else
2677   kprefix=
2678 fi
2679
2680
2681 # Check whether --enable-secure-statd was given.
2682 if test "${enable_secure_statd+set}" = set; then
2683   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2684 else
2685   secure_statd=no
2686 fi
2687
2688         if test "$secure_statd" = yes; then
2689
2690 cat >>confdefs.h <<\_ACEOF
2691 #define RESTRICTED_STATD 1
2692 _ACEOF
2693
2694         fi
2695
2696 # Check whether --enable-rquotad was given.
2697 if test "${enable_rquotad+set}" = set; then
2698   enableval=$enable_rquotad; enable_rquotad=$enableval
2699 else
2700   enable_rquotad=yes
2701 fi
2702
2703         if test "$enable_rquotad" = yes; then
2704                 RQUOTAD=rquotad
2705         else
2706                 RQUOTAD=
2707         fi
2708
2709
2710 if test "$enable_rquotad" = "yes"; then
2711   CONFIG_RQUOTAD_TRUE=
2712   CONFIG_RQUOTAD_FALSE='#'
2713 else
2714   CONFIG_RQUOTAD_TRUE='#'
2715   CONFIG_RQUOTAD_FALSE=
2716 fi
2717
2718
2719 # Check whether --enable-mount was given.
2720 if test "${enable_mount+set}" = set; then
2721   enableval=$enable_mount; enable_mount=$enableval
2722 else
2723   enable_mount=no
2724 fi
2725
2726
2727
2728 if test "$enable_mount" = "yes"; then
2729   CONFIG_MOUNT_TRUE=
2730   CONFIG_MOUNT_FALSE='#'
2731 else
2732   CONFIG_MOUNT_TRUE='#'
2733   CONFIG_MOUNT_FALSE=
2734 fi
2735
2736
2737 # Check whether user wants TCP wrappers support
2738 DEPDIR="${am__leading_dot}deps"
2739
2740 ac_config_commands="$ac_config_commands depfiles"
2741
2742
2743 am_make=${MAKE-make}
2744 cat > confinc << 'END'
2745 am__doit:
2746         @echo done
2747 .PHONY: am__doit
2748 END
2749 # If we don't find an include directive, just comment out the code.
2750 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2751 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2752 am__include="#"
2753 am__quote=
2754 _am_result=none
2755 # First try GNU make style include.
2756 echo "include confinc" > confmf
2757 # We grep out `Entering directory' and `Leaving directory'
2758 # messages which can occur if `w' ends up in MAKEFLAGS.
2759 # In particular we don't look at `^make:' because GNU make might
2760 # be invoked under some other name (usually "gmake"), in which
2761 # case it prints its new name instead of `make'.
2762 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2763    am__include=include
2764    am__quote=
2765    _am_result=GNU
2766 fi
2767 # Now try BSD make style include.
2768 if test "$am__include" = "#"; then
2769    echo '.include "confinc"' > confmf
2770    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2771       am__include=.include
2772       am__quote="\""
2773       _am_result=BSD
2774    fi
2775 fi
2776
2777
2778 { echo "$as_me:$LINENO: result: $_am_result" >&5
2779 echo "${ECHO_T}$_am_result" >&6; }
2780 rm -f confinc confmf
2781
2782 # Check whether --enable-dependency-tracking was given.
2783 if test "${enable_dependency_tracking+set}" = set; then
2784   enableval=$enable_dependency_tracking;
2785 fi
2786
2787 if test "x$enable_dependency_tracking" != xno; then
2788   am_depcomp="$ac_aux_dir/depcomp"
2789   AMDEPBACKSLASH='\'
2790 fi
2791
2792
2793 if test "x$enable_dependency_tracking" != xno; then
2794   AMDEP_TRUE=
2795   AMDEP_FALSE='#'
2796 else
2797   AMDEP_TRUE='#'
2798   AMDEP_FALSE=
2799 fi
2800
2801
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846 fi
2847 if test -z "$ac_cv_prog_CC"; then
2848   ac_ct_CC=$CC
2849   # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="gcc"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885   if test "x$ac_ct_CC" = x; then
2886     CC=""
2887   else
2888     case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet.  If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet.  If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898     CC=$ac_ct_CC
2899   fi
2900 else
2901   CC="$ac_cv_prog_CC"
2902 fi
2903
2904 if test -z "$CC"; then
2905           if test -n "$ac_tool_prefix"; then
2906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   for ac_exec_ext in '' $ac_executable_extensions; do
2922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     ac_cv_prog_CC="${ac_tool_prefix}cc"
2924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938   { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942
2943   fi
2944 fi
2945 if test -z "$CC"; then
2946   # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956   ac_prog_rejected=no
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962   for ac_exec_ext in '' $ac_executable_extensions; do
2963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965        ac_prog_rejected=yes
2966        continue
2967      fi
2968     ac_cv_prog_CC="cc"
2969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 if test $ac_prog_rejected = yes; then
2977   # We found a bogon in the path, so make sure we never use it.
2978   set dummy $ac_cv_prog_CC
2979   shift
2980   if test $# != 0; then
2981     # We chose a different compiler from the bogus one.
2982     # However, it has the same basename, so the bogon will be chosen
2983     # first if we set CC to just the basename; use the full file name.
2984     shift
2985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2986   fi
2987 fi
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2994 else
2995   { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$CC"; then
3002   if test -n "$ac_tool_prefix"; then
3003   for ac_prog in cl.exe
3004   do
3005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020   for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3036 else
3037   { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3039 fi
3040
3041
3042     test -n "$CC" && break
3043   done
3044 fi
3045 if test -z "$CC"; then
3046   ac_ct_CC=$CC
3047   for ac_prog in cl.exe
3048 do
3049   # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064   for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="$ac_prog"
3067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3080 else
3081   { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3083 fi
3084
3085
3086   test -n "$ac_ct_CC" && break
3087 done
3088
3089   if test "x$ac_ct_CC" = x; then
3090     CC=""
3091   else
3092     case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet.  If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet.  If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102     CC=$ac_ct_CC
3103   fi
3104 fi
3105
3106 fi
3107
3108
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113    { (exit 1); exit 1; }; }
3114
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compiler --version >&5") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compiler -v >&5") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compiler -V >&5") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }
3148
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172 #
3173 # List of possible output files, starting from the most likely.
3174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3175 # only as a last resort.  b.out is created by i960 compilers.
3176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3177 #
3178 # The IRIX 6 linker writes into existing files which may not be
3179 # executable, retaining their permissions.  Remove them first so a
3180 # subsequent execution test works.
3181 ac_rmfiles=
3182 for ac_file in $ac_files
3183 do
3184   case $ac_file in
3185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3186     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187   esac
3188 done
3189 rm -f $ac_rmfiles
3190
3191 if { (ac_try="$ac_link_default"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_link_default") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; then
3201   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3205 # Autoconf.
3206 for ac_file in $ac_files ''
3207 do
3208   test -f "$ac_file" || continue
3209   case $ac_file in
3210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3211         ;;
3212     [ab].out )
3213         # We found the default executable, but exeext='' is most
3214         # certainly right.
3215         break;;
3216     *.* )
3217         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218         then :; else
3219            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220         fi
3221         # We set ac_cv_exeext here because the later test for it is not
3222         # safe: cross compilers may not add the suffix if given an `-o'
3223         # argument, so we may need to know it at that point already.
3224         # Even if this section looks crufty: it has the advantage of
3225         # actually working.
3226         break;;
3227     * )
3228         break;;
3229   esac
3230 done
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
3233 else
3234   ac_file=''
3235 fi
3236
3237 { echo "$as_me:$LINENO: result: $ac_file" >&5
3238 echo "${ECHO_T}$ac_file" >&6; }
3239 if test -z "$ac_file"; then
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: C compiler cannot create executables
3246 See \`config.log' for more details." >&2;}
3247    { (exit 77); exit 77; }; }
3248 fi
3249
3250 ac_exeext=$ac_cv_exeext
3251
3252 # Check that the compiler produces executables we can run.  If not, either
3253 # the compiler is broken, or we cross compile.
3254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259   if { ac_try='./$ac_file'
3260   { (case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_try") 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269     cross_compiling=no
3270   else
3271     if test "$cross_compiling" = maybe; then
3272         cross_compiling=yes
3273     else
3274         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." >&5
3277 echo "$as_me: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&2;}
3280    { (exit 1); exit 1; }; }
3281     fi
3282   fi
3283 fi
3284 { echo "$as_me:$LINENO: result: yes" >&5
3285 echo "${ECHO_T}yes" >&6; }
3286
3287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run.  If not, either
3290 # the compiler is broken, or we cross compile.
3291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3294 echo "${ECHO_T}$cross_compiling" >&6; }
3295
3296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3298 if { (ac_try="$ac_link"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_link") 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; then
3308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 # `rm'.
3312 for ac_file in conftest.exe conftest conftest.*; do
3313   test -f "$ac_file" || continue
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317           break;;
3318     * ) break;;
3319   esac
3320 done
3321 else
3322   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." >&2;}
3326    { (exit 1); exit 1; }; }
3327 fi
3328
3329 rm -f conftest$ac_cv_exeext
3330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3332
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3335 ac_exeext=$EXEEXT
3336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3338 if test "${ac_cv_objext+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347
3348 int
3349 main ()
3350 {
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 rm -f conftest.o conftest.obj
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_compile") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; then
3367   for ac_file in conftest.o conftest.obj conftest.*; do
3368   test -f "$ac_file" || continue;
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3371     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372        break;;
3373   esac
3374 done
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details." >&2;}
3383    { (exit 1); exit 1; }; }
3384 fi
3385
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387 fi
3388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3389 echo "${ECHO_T}$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3391 ac_objext=$OBJEXT
3392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407 #ifndef __GNUC__
3408        choke me
3409 #endif
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } && {
3429          test -z "$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        } && test -s conftest.$ac_objext; then
3432   ac_compiler_gnu=yes
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437         ac_compiler_gnu=no
3438 fi
3439
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442
3443 fi
3444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3446 GCC=`test $ac_compiler_gnu = yes && echo yes`
3447 ac_test_CFLAGS=${CFLAGS+set}
3448 ac_save_CFLAGS=$CFLAGS
3449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_cc_g+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   ac_save_c_werror_flag=$ac_c_werror_flag
3455    ac_c_werror_flag=yes
3456    ac_cv_prog_cc_g=no
3457    CFLAGS="-g"
3458    cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_c_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   ac_cv_prog_cc_g=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         CFLAGS=""
3496       cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h.  */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518   (eval "$ac_compile") 2>conftest.er1
3519   ac_status=$?
3520   grep -v '^ *+' conftest.er1 >conftest.err
3521   rm -f conftest.er1
3522   cat conftest.err >&5
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); } && {
3525          test -z "$ac_c_werror_flag" ||
3526          test ! -s conftest.err
3527        } && test -s conftest.$ac_objext; then
3528   :
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533         ac_c_werror_flag=$ac_save_c_werror_flag
3534          CFLAGS="-g"
3535          cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_compile") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } && {
3564          test -z "$ac_c_werror_flag" ||
3565          test ! -s conftest.err
3566        } && test -s conftest.$ac_objext; then
3567   ac_cv_prog_cc_g=yes
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582    ac_c_werror_flag=$ac_save_c_werror_flag
3583 fi
3584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3586 if test "$ac_test_CFLAGS" = set; then
3587   CFLAGS=$ac_save_CFLAGS
3588 elif test $ac_cv_prog_cc_g = yes; then
3589   if test "$GCC" = yes; then
3590     CFLAGS="-g -O2"
3591   else
3592     CFLAGS="-g"
3593   fi
3594 else
3595   if test "$GCC" = yes; then
3596     CFLAGS="-O2"
3597   else
3598     CFLAGS=
3599   fi
3600 fi
3601 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3602 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_cc_c89+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   ac_cv_prog_cc_c89=no
3607 ac_save_CC=$CC
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 #include <stdarg.h>
3615 #include <stdio.h>
3616 #include <sys/types.h>
3617 #include <sys/stat.h>
3618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3619 struct buf { int x; };
3620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621 static char *e (p, i)
3622      char **p;
3623      int i;
3624 {
3625   return p[i];
3626 }
3627 static char *f (char * (*g) (char **, int), char **p, ...)
3628 {
3629   char *s;
3630   va_list v;
3631   va_start (v,p);
3632   s = g (p, va_arg (v,int));
3633   va_end (v);
3634   return s;
3635 }
3636
3637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3638    function prototypes and stuff, but not '\xHH' hex character constants.
3639    These don't provoke an error unfortunately, instead are silently treated
3640    as 'x'.  The following induces an error, until -std is added to get
3641    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3642    array size at least.  It's necessary to write '\x00'==0 to get something
3643    that's true only with -std.  */
3644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
3646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647    inside strings and character constants.  */
3648 #define FOO(x) 'x'
3649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
3651 int test (int i, double x);
3652 struct s1 {int (*f) (int a);};
3653 struct s2 {int (*f) (double a);};
3654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655 int argc;
3656 char **argv;
3657 int
3658 main ()
3659 {
3660 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667 do
3668   CC="$ac_save_CC $ac_arg"
3669   rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_compile") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } && {
3683          test -z "$ac_c_werror_flag" ||
3684          test ! -s conftest.err
3685        } && test -s conftest.$ac_objext; then
3686   ac_cv_prog_cc_c89=$ac_arg
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691
3692 fi
3693
3694 rm -f core conftest.err conftest.$ac_objext
3695   test "x$ac_cv_prog_cc_c89" != "xno" && break
3696 done
3697 rm -f conftest.$ac_ext
3698 CC=$ac_save_CC
3699
3700 fi
3701 # AC_CACHE_VAL
3702 case "x$ac_cv_prog_cc_c89" in
3703   x)
3704     { echo "$as_me:$LINENO: result: none needed" >&5
3705 echo "${ECHO_T}none needed" >&6; } ;;
3706   xno)
3707     { echo "$as_me:$LINENO: result: unsupported" >&5
3708 echo "${ECHO_T}unsupported" >&6; } ;;
3709   *)
3710     CC="$CC $ac_cv_prog_cc_c89"
3711     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713 esac
3714
3715
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722 depcc="$CC"   am_compiler_list=
3723
3724 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730   # We make a subdir and do the tests there.  Otherwise we can end up
3731   # making bogus files that we don't know about and never remove.  For
3732   # instance it was reported that on HP-UX the gcc test will end up
3733   # making a dummy file named `D' -- because `-MD' means `put the output
3734   # in D'.
3735   mkdir conftest.dir
3736   # Copy depcomp to subdir because otherwise we won't find it if we're
3737   # using a relative directory.
3738   cp "$am_depcomp" conftest.dir
3739   cd conftest.dir
3740   # We will build objects and dependencies in a subdirectory because
3741   # it helps to detect inapplicable dependency modes.  For instance
3742   # both Tru64's cc and ICC support -MD to output dependencies as a
3743   # side effect of compilation, but ICC will put the dependencies in
3744   # the current directory while Tru64 will put them in the object
3745   # directory.
3746   mkdir sub
3747
3748   am_cv_CC_dependencies_compiler_type=none
3749   if test "$am_compiler_list" = ""; then
3750      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751   fi
3752   for depmode in $am_compiler_list; do
3753     # Setup a source with many dependencies, because some compilers
3754     # like to wrap large dependency lists on column 80 (with \), and
3755     # we should not choose a depcomp mode which is confused by this.
3756     #
3757     # We need to recreate these files for each test, as the compiler may
3758     # overwrite some of them when testing with obscure command lines.
3759     # This happens at least with the AIX C compiler.
3760     : > sub/conftest.c
3761     for i in 1 2 3 4 5 6; do
3762       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764       # Solaris 8's {/usr,}/bin/sh.
3765       touch sub/conftst$i.h
3766     done
3767     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768
3769     case $depmode in
3770     nosideeffect)
3771       # after this tag, mechanisms are not by side-effect, so they'll
3772       # only be used when explicitly requested
3773       if test "x$enable_dependency_tracking" = xyes; then
3774         continue
3775       else
3776         break
3777       fi
3778       ;;
3779     none) break ;;
3780     esac
3781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782     # mode.  It turns out that the SunPro C++ compiler does not properly
3783     # handle `-M -o', and we need to detect this.
3784     if depmode=$depmode \
3785        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3786        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3788          >/dev/null 2>conftest.err &&
3789        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3791        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792       # icc doesn't choke on unknown options, it will just issue warnings
3793       # or remarks (even with -Werror).  So we grep stderr for any message
3794       # that says an option was ignored or not supported.
3795       # When given -MP, icc 7.0 and 7.1 complain thusly:
3796       #   icc: Command line warning: ignoring option '-M'; no argument required
3797       # The diagnosis changed in icc 8.0:
3798       #   icc: Command line remark: option '-MP' not supported
3799       if (grep 'ignoring option' conftest.err ||
3800           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801         am_cv_CC_dependencies_compiler_type=$depmode
3802         break
3803       fi
3804     fi
3805   done
3806
3807   cd ..
3808   rm -rf conftest.dir
3809 else
3810   am_cv_CC_dependencies_compiler_type=none
3811 fi
3812
3813 fi
3814 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817
3818
3819
3820 if
3821   test "x$enable_dependency_tracking" != xno \
3822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3823   am__fastdepCC_TRUE=
3824   am__fastdepCC_FALSE='#'
3825 else
3826   am__fastdepCC_TRUE='#'
3827   am__fastdepCC_FALSE=
3828 fi
3829
3830
3831
3832
3833   TCPW_MSG="no"
3834
3835 # Check whether --with-tcp-wrappers was given.
3836 if test "${with_tcp_wrappers+set}" = set; then
3837   withval=$with_tcp_wrappers;
3838         if test "x$withval" != "xno" ; then
3839             saved_LIBS="$LIBS"
3840             saved_LDFLAGS="$LDFLAGS"
3841             saved_CPPFLAGS="$CPPFLAGS"
3842             if test -n "${withval}" -a "${withval}" != "yes"; then
3843                 if test -d "${withval}/lib"; then
3844                     if test -n "${need_dash_r}"; then
3845                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3846                     else
3847                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3848                     fi
3849                 else
3850                     if test -n "${need_dash_r}"; then
3851                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3852                     else
3853                         LDFLAGS="-L${withval} ${LDFLAGS}"
3854                     fi
3855                 fi
3856                 if test -d "${withval}/include"; then
3857                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3858                 else
3859                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3860                 fi
3861             fi
3862             LIBWRAP="-lwrap"
3863             LIBS="$LIBWRAP $LIBS"
3864             { echo "$as_me:$LINENO: checking for libwrap" >&5
3865 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3866             cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h.  */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h.  */
3872
3873                 #include <tcpd.h>
3874                 int deny_severity = 0, allow_severity = 0;
3875
3876 int
3877 main ()
3878 {
3879 hosts_access(0);
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext conftest$ac_exeext
3885 if { (ac_try="$ac_link"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_link") 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } && {
3898          test -z "$ac_c_werror_flag" ||
3899          test ! -s conftest.err
3900        } && test -s conftest$ac_exeext &&
3901        $as_test_x conftest$ac_exeext; then
3902
3903                 { echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6; }
3905
3906
3907 cat >>confdefs.h <<\_ACEOF
3908 #define LIBWRAP 1
3909 _ACEOF
3910
3911
3912 cat >>confdefs.h <<\_ACEOF
3913 #define HAVE_LIBWRAP 1
3914 _ACEOF
3915
3916
3917 cat >>confdefs.h <<\_ACEOF
3918 #define HAVE_TCP_WRAPPER 1
3919 _ACEOF
3920
3921                 TCPW_MSG="yes"
3922
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927
3928                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3929 echo "$as_me: error: *** libwrap missing" >&2;}
3930    { (exit 1); exit 1; }; }
3931
3932
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3936       conftest$ac_exeext conftest.$ac_ext
3937             LIBS="$saved_LIBS"
3938         fi
3939
3940
3941 fi
3942
3943
3944
3945
3946
3947
3948
3949 ac_config_headers="$ac_config_headers support/include/config.h"
3950
3951
3952 # Checks for programs.
3953 ac_ext=cpp
3954 ac_cpp='$CXXCPP $CPPFLAGS'
3955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3958 if test -z "$CXX"; then
3959   if test -n "$CCC"; then
3960     CXX=$CCC
3961   else
3962     if test -n "$ac_tool_prefix"; then
3963   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3964   do
3965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_CXX+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$CXX"; then
3973   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 CXX=$ac_cv_prog_CXX
3993 if test -n "$CXX"; then
3994   { echo "$as_me:$LINENO: result: $CXX" >&5
3995 echo "${ECHO_T}$CXX" >&6; }
3996 else
3997   { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
3999 fi
4000
4001
4002     test -n "$CXX" && break
4003   done
4004 fi
4005 if test -z "$CXX"; then
4006   ac_ct_CXX=$CXX
4007   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4008 do
4009   # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   if test -n "$ac_ct_CXX"; then
4017   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022   IFS=$as_save_IFS
4023   test -z "$as_dir" && as_dir=.
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026     ac_cv_prog_ac_ct_CXX="$ac_prog"
4027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028     break 2
4029   fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi
4035 fi
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4040 else
4041   { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4043 fi
4044
4045
4046   test -n "$ac_ct_CXX" && break
4047 done
4048
4049   if test "x$ac_ct_CXX" = x; then
4050     CXX="g++"
4051   else
4052     case $cross_compiling:$ac_tool_warned in
4053 yes:)
4054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4055 whose name does not start with the host triplet.  If you think this
4056 configuration is useful to you, please write to autoconf@gnu.org." >&5
4057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet.  If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062     CXX=$ac_ct_CXX
4063   fi
4064 fi
4065
4066   fi
4067 fi
4068 # Provide some information about the compiler.
4069 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4070 ac_compiler=`set X $ac_compile; echo $2`
4071 { (ac_try="$ac_compiler --version >&5"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_compiler --version >&5") 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }
4081 { (ac_try="$ac_compiler -v >&5"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compiler -v >&5") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }
4091 { (ac_try="$ac_compiler -V >&5"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_compiler -V >&5") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }
4101
4102 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117 #ifndef __GNUC__
4118        choke me
4119 #endif
4120
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_compile") 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } && {
4139          test -z "$ac_cxx_werror_flag" ||
4140          test ! -s conftest.err
4141        } && test -s conftest.$ac_objext; then
4142   ac_compiler_gnu=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147         ac_compiler_gnu=no
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4152
4153 fi
4154 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4156 GXX=`test $ac_compiler_gnu = yes && echo yes`
4157 ac_test_CXXFLAGS=${CXXFLAGS+set}
4158 ac_save_CXXFLAGS=$CXXFLAGS
4159 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_cxx_g+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4165    ac_cxx_werror_flag=yes
4166    ac_cv_prog_cxx_g=no
4167    CXXFLAGS="-g"
4168    cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4185 case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_compile") 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && {
4197          test -z "$ac_cxx_werror_flag" ||
4198          test ! -s conftest.err
4199        } && test -s conftest.$ac_objext; then
4200   ac_cv_prog_cxx_g=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         CXXFLAGS=""
4206       cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_cxx_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest.$ac_objext; then
4238   :
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4244          CXXFLAGS="-g"
4245          cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && {
4274          test -z "$ac_cxx_werror_flag" ||
4275          test ! -s conftest.err
4276        } && test -s conftest.$ac_objext; then
4277   ac_cv_prog_cxx_g=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293 fi
4294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4296 if test "$ac_test_CXXFLAGS" = set; then
4297   CXXFLAGS=$ac_save_CXXFLAGS
4298 elif test $ac_cv_prog_cxx_g = yes; then
4299   if test "$GXX" = yes; then
4300     CXXFLAGS="-g -O2"
4301   else
4302     CXXFLAGS="-g"
4303   fi
4304 else
4305   if test "$GXX" = yes; then
4306     CXXFLAGS="-O2"
4307   else
4308     CXXFLAGS=
4309   fi
4310 fi
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316
4317 depcc="$CXX"  am_compiler_list=
4318
4319 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4321 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325   # We make a subdir and do the tests there.  Otherwise we can end up
4326   # making bogus files that we don't know about and never remove.  For
4327   # instance it was reported that on HP-UX the gcc test will end up
4328   # making a dummy file named `D' -- because `-MD' means `put the output
4329   # in D'.
4330   mkdir conftest.dir
4331   # Copy depcomp to subdir because otherwise we won't find it if we're
4332   # using a relative directory.
4333   cp "$am_depcomp" conftest.dir
4334   cd conftest.dir
4335   # We will build objects and dependencies in a subdirectory because
4336   # it helps to detect inapplicable dependency modes.  For instance
4337   # both Tru64's cc and ICC support -MD to output dependencies as a
4338   # side effect of compilation, but ICC will put the dependencies in
4339   # the current directory while Tru64 will put them in the object
4340   # directory.
4341   mkdir sub
4342
4343   am_cv_CXX_dependencies_compiler_type=none
4344   if test "$am_compiler_list" = ""; then
4345      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346   fi
4347   for depmode in $am_compiler_list; do
4348     # Setup a source with many dependencies, because some compilers
4349     # like to wrap large dependency lists on column 80 (with \), and
4350     # we should not choose a depcomp mode which is confused by this.
4351     #
4352     # We need to recreate these files for each test, as the compiler may
4353     # overwrite some of them when testing with obscure command lines.
4354     # This happens at least with the AIX C compiler.
4355     : > sub/conftest.c
4356     for i in 1 2 3 4 5 6; do
4357       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4359       # Solaris 8's {/usr,}/bin/sh.
4360       touch sub/conftst$i.h
4361     done
4362     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363
4364     case $depmode in
4365     nosideeffect)
4366       # after this tag, mechanisms are not by side-effect, so they'll
4367       # only be used when explicitly requested
4368       if test "x$enable_dependency_tracking" = xyes; then
4369         continue
4370       else
4371         break
4372       fi
4373       ;;
4374     none) break ;;
4375     esac
4376     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377     # mode.  It turns out that the SunPro C++ compiler does not properly
4378     # handle `-M -o', and we need to detect this.
4379     if depmode=$depmode \
4380        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4383          >/dev/null 2>conftest.err &&
4384        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4386        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387       # icc doesn't choke on unknown options, it will just issue warnings
4388       # or remarks (even with -Werror).  So we grep stderr for any message
4389       # that says an option was ignored or not supported.
4390       # When given -MP, icc 7.0 and 7.1 complain thusly:
4391       #   icc: Command line warning: ignoring option '-M'; no argument required
4392       # The diagnosis changed in icc 8.0:
4393       #   icc: Command line remark: option '-MP' not supported
4394       if (grep 'ignoring option' conftest.err ||
4395           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396         am_cv_CXX_dependencies_compiler_type=$depmode
4397         break
4398       fi
4399     fi
4400   done
4401
4402   cd ..
4403   rm -rf conftest.dir
4404 else
4405   am_cv_CXX_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4410 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4411 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4412
4413
4414
4415 if
4416   test "x$enable_dependency_tracking" != xno \
4417   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4418   am__fastdepCXX_TRUE=
4419   am__fastdepCXX_FALSE='#'
4420 else
4421   am__fastdepCXX_TRUE='#'
4422   am__fastdepCXX_FALSE=
4423 fi
4424
4425
4426 ac_ext=c
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 if test -n "$ac_tool_prefix"; then
4432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$CC"; then
4440   ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 CC=$ac_cv_prog_CC
4460 if test -n "$CC"; then
4461   { echo "$as_me:$LINENO: result: $CC" >&5
4462 echo "${ECHO_T}$CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 fi
4470 if test -z "$ac_cv_prog_CC"; then
4471   ac_ct_CC=$CC
4472   # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$ac_ct_CC"; then
4480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_prog_ac_ct_CC="gcc"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4502 echo "${ECHO_T}$ac_ct_CC" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508   if test "x$ac_ct_CC" = x; then
4509     CC=""
4510   else
4511     case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4514 whose name does not start with the host triplet.  If you think this
4515 configuration is useful to you, please write to autoconf@gnu.org." >&5
4516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4517 whose name does not start with the host triplet.  If you think this
4518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4519 ac_tool_warned=yes ;;
4520 esac
4521     CC=$ac_ct_CC
4522   fi
4523 else
4524   CC="$ac_cv_prog_CC"
4525 fi
4526
4527 if test -z "$CC"; then
4528           if test -n "$ac_tool_prefix"; then
4529     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}cc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   if test -n "$CC"; then
4537   ac_cv_prog_CC="$CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_prog_CC="${ac_tool_prefix}cc"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558   { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566   fi
4567 fi
4568 if test -z "$CC"; then
4569   # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$CC"; then
4577   ac_cv_prog_CC="$CC" # Let the user override the test.
4578 else
4579   ac_prog_rejected=no
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588        ac_prog_rejected=yes
4589        continue
4590      fi
4591     ac_cv_prog_CC="cc"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 if test $ac_prog_rejected = yes; then
4600   # We found a bogon in the path, so make sure we never use it.
4601   set dummy $ac_cv_prog_CC
4602   shift
4603   if test $# != 0; then
4604     # We chose a different compiler from the bogus one.
4605     # However, it has the same basename, so the bogon will be chosen
4606     # first if we set CC to just the basename; use the full file name.
4607     shift
4608     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4609   fi
4610 fi
4611 fi
4612 fi
4613 CC=$ac_cv_prog_CC
4614 if test -n "$CC"; then
4615   { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4617 else
4618   { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4620 fi
4621
4622
4623 fi
4624 if test -z "$CC"; then
4625   if test -n "$ac_tool_prefix"; then
4626   for ac_prog in cl.exe
4627   do
4628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$CC"; then
4636   ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657   { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660   { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663
4664
4665     test -n "$CC" && break
4666   done
4667 fi
4668 if test -z "$CC"; then
4669   ac_ct_CC=$CC
4670   for ac_prog in cl.exe
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   if test -n "$ac_ct_CC"; then
4680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_prog_ac_ct_CC="$ac_prog"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702 echo "${ECHO_T}$ac_ct_CC" >&6; }
4703 else
4704   { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 fi
4707
4708
4709   test -n "$ac_ct_CC" && break
4710 done
4711
4712   if test "x$ac_ct_CC" = x; then
4713     CC=""
4714   else
4715     case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4718 whose name does not start with the host triplet.  If you think this
4719 configuration is useful to you, please write to autoconf@gnu.org." >&5
4720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4721 whose name does not start with the host triplet.  If you think this
4722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725     CC=$ac_ct_CC
4726   fi
4727 fi
4728
4729 fi
4730
4731
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736    { (exit 1); exit 1; }; }
4737
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 ac_compiler=`set X $ac_compile; echo $2`
4741 { (ac_try="$ac_compiler --version >&5"
4742 case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747   (eval "$ac_compiler --version >&5") 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4752 case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_compiler -v >&5") 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }
4761 { (ac_try="$ac_compiler -V >&5"
4762 case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_compiler -V >&5") 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }
4771
4772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783
4784 int
4785 main ()
4786 {
4787 #ifndef __GNUC__
4788        choke me
4789 #endif
4790
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_compile") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest.$ac_objext; then
4812   ac_compiler_gnu=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817         ac_compiler_gnu=no
4818 fi
4819
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4822
4823 fi
4824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4826 GCC=`test $ac_compiler_gnu = yes && echo yes`
4827 ac_test_CFLAGS=${CFLAGS+set}
4828 ac_save_CFLAGS=$CFLAGS
4829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_cc_g+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   ac_save_c_werror_flag=$ac_c_werror_flag
4835    ac_c_werror_flag=yes
4836    ac_cv_prog_cc_g=no
4837    CFLAGS="-g"
4838    cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844
4845 int
4846 main ()
4847 {
4848
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_compile") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && {
4867          test -z "$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        } && test -s conftest.$ac_objext; then
4870   ac_cv_prog_cc_g=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875         CFLAGS=""
4876       cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882
4883 int
4884 main ()
4885 {
4886
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4899   ac_status=$?
4900   grep -v '^ *+' conftest.er1 >conftest.err
4901   rm -f conftest.er1
4902   cat conftest.err >&5
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } && {
4905          test -z "$ac_c_werror_flag" ||
4906          test ! -s conftest.err
4907        } && test -s conftest.$ac_objext; then
4908   :
4909 else
4910   echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4912
4913         ac_c_werror_flag=$ac_save_c_werror_flag
4914          CFLAGS="-g"
4915          cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921
4922 int
4923 main ()
4924 {
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4932 case "(($ac_try" in
4933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934   *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937   (eval "$ac_compile") 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } && {
4944          test -z "$ac_c_werror_flag" ||
4945          test ! -s conftest.err
4946        } && test -s conftest.$ac_objext; then
4947   ac_cv_prog_cc_g=yes
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962    ac_c_werror_flag=$ac_save_c_werror_flag
4963 fi
4964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967   CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969   if test "$GCC" = yes; then
4970     CFLAGS="-g -O2"
4971   else
4972     CFLAGS="-g"
4973   fi
4974 else
4975   if test "$GCC" = yes; then
4976     CFLAGS="-O2"
4977   else
4978     CFLAGS=
4979   fi
4980 fi
4981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_cc_c89+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   ac_cv_prog_cc_c89=no
4987 ac_save_CC=$CC
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h.  */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h.  */
4994 #include <stdarg.h>
4995 #include <stdio.h>
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5002      char **p;
5003      int i;
5004 {
5005   return p[i];
5006 }
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5008 {
5009   char *s;
5010   va_list v;
5011   va_start (v,p);
5012   s = g (p, va_arg (v,int));
5013   va_end (v);
5014   return s;
5015 }
5016
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5018    function prototypes and stuff, but not '\xHH' hex character constants.
5019    These don't provoke an error unfortunately, instead are silently treated
5020    as 'x'.  The following induces an error, until -std is added to get
5021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5022    array size at least.  It's necessary to write '\x00'==0 to get something
5023    that's true only with -std.  */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027    inside strings and character constants.  */
5028 #define FOO(x) 'x'
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 int argc;
5036 char **argv;
5037 int
5038 main ()
5039 {
5040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047 do
5048   CC="$ac_save_CC $ac_arg"
5049   rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053   *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056   (eval "$ac_compile") 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } && {
5063          test -z "$ac_c_werror_flag" ||
5064          test ! -s conftest.err
5065        } && test -s conftest.$ac_objext; then
5066   ac_cv_prog_cc_c89=$ac_arg
5067 else
5068   echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071
5072 fi
5073
5074 rm -f core conftest.err conftest.$ac_objext
5075   test "x$ac_cv_prog_cc_c89" != "xno" && break
5076 done
5077 rm -f conftest.$ac_ext
5078 CC=$ac_save_CC
5079
5080 fi
5081 # AC_CACHE_VAL
5082 case "x$ac_cv_prog_cc_c89" in
5083   x)
5084     { echo "$as_me:$LINENO: result: none needed" >&5
5085 echo "${ECHO_T}none needed" >&6; } ;;
5086   xno)
5087     { echo "$as_me:$LINENO: result: unsupported" >&5
5088 echo "${ECHO_T}unsupported" >&6; } ;;
5089   *)
5090     CC="$CC $ac_cv_prog_cc_c89"
5091     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5093 esac
5094
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102 depcc="$CC"   am_compiler_list=
5103
5104 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110   # We make a subdir and do the tests there.  Otherwise we can end up
5111   # making bogus files that we don't know about and never remove.  For
5112   # instance it was reported that on HP-UX the gcc test will end up
5113   # making a dummy file named `D' -- because `-MD' means `put the output
5114   # in D'.
5115   mkdir conftest.dir
5116   # Copy depcomp to subdir because otherwise we won't find it if we're
5117   # using a relative directory.
5118   cp "$am_depcomp" conftest.dir
5119   cd conftest.dir
5120   # We will build objects and dependencies in a subdirectory because
5121   # it helps to detect inapplicable dependency modes.  For instance
5122   # both Tru64's cc and ICC support -MD to output dependencies as a
5123   # side effect of compilation, but ICC will put the dependencies in
5124   # the current directory while Tru64 will put them in the object
5125   # directory.
5126   mkdir sub
5127
5128   am_cv_CC_dependencies_compiler_type=none
5129   if test "$am_compiler_list" = ""; then
5130      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5131   fi
5132   for depmode in $am_compiler_list; do
5133     # Setup a source with many dependencies, because some compilers
5134     # like to wrap large dependency lists on column 80 (with \), and
5135     # we should not choose a depcomp mode which is confused by this.
5136     #
5137     # We need to recreate these files for each test, as the compiler may
5138     # overwrite some of them when testing with obscure command lines.
5139     # This happens at least with the AIX C compiler.
5140     : > sub/conftest.c
5141     for i in 1 2 3 4 5 6; do
5142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144       # Solaris 8's {/usr,}/bin/sh.
5145       touch sub/conftst$i.h
5146     done
5147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148
5149     case $depmode in
5150     nosideeffect)
5151       # after this tag, mechanisms are not by side-effect, so they'll
5152       # only be used when explicitly requested
5153       if test "x$enable_dependency_tracking" = xyes; then
5154         continue
5155       else
5156         break
5157       fi
5158       ;;
5159     none) break ;;
5160     esac
5161     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162     # mode.  It turns out that the SunPro C++ compiler does not properly
5163     # handle `-M -o', and we need to detect this.
5164     if depmode=$depmode \
5165        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168          >/dev/null 2>conftest.err &&
5169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172       # icc doesn't choke on unknown options, it will just issue warnings
5173       # or remarks (even with -Werror).  So we grep stderr for any message
5174       # that says an option was ignored or not supported.
5175       # When given -MP, icc 7.0 and 7.1 complain thusly:
5176       #   icc: Command line warning: ignoring option '-M'; no argument required
5177       # The diagnosis changed in icc 8.0:
5178       #   icc: Command line remark: option '-MP' not supported
5179       if (grep 'ignoring option' conftest.err ||
5180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181         am_cv_CC_dependencies_compiler_type=$depmode
5182         break
5183       fi
5184     fi
5185   done
5186
5187   cd ..
5188   rm -rf conftest.dir
5189 else
5190   am_cv_CC_dependencies_compiler_type=none
5191 fi
5192
5193 fi
5194 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198
5199
5200 if
5201   test "x$enable_dependency_tracking" != xno \
5202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5203   am__fastdepCC_TRUE=
5204   am__fastdepCC_FALSE='#'
5205 else
5206   am__fastdepCC_TRUE='#'
5207   am__fastdepCC_FALSE=
5208 fi
5209
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5220   CPP=
5221 fi
5222 if test -z "$CPP"; then
5223   if test "${ac_cv_prog_CPP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226       # Double quotes because CPP needs to be expanded
5227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5228     do
5229       ac_preproc_ok=false
5230 for ac_c_preproc_warn_flag in '' yes
5231 do
5232   # Use a header file that comes with gcc, so configuring glibc
5233   # with a fresh cross-compiler works.
5234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235   # <limits.h> exists even on freestanding compilers.
5236   # On the NeXT, cc -E runs the code through the compiler's parser,
5237   # not just through cpp. "Syntax error" is here to catch this case.
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249                      Syntax error
5250 _ACEOF
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } >/dev/null && {
5264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265          test ! -s conftest.err
5266        }; then
5267   :
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272   # Broken: fails on valid input.
5273 continue
5274 fi
5275
5276 rm -f conftest.err conftest.$ac_ext
5277
5278   # OK, works on sane cases.  Now check whether nonexistent headers
5279   # can be detected and how.
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #include <ac_nonexistent.h>
5287 _ACEOF
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } >/dev/null && {
5301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5302          test ! -s conftest.err
5303        }; then
5304   # Broken: success on invalid input.
5305 continue
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310   # Passes both tests.
5311 ac_preproc_ok=:
5312 break
5313 fi
5314
5315 rm -f conftest.err conftest.$ac_ext
5316
5317 done
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5321   break
5322 fi
5323
5324     done
5325     ac_cv_prog_CPP=$CPP
5326
5327 fi
5328   CPP=$ac_cv_prog_CPP
5329 else
5330   ac_cv_prog_CPP=$CPP
5331 fi
5332 { echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6; }
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5336 do
5337   # Use a header file that comes with gcc, so configuring glibc
5338   # with a fresh cross-compiler works.
5339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340   # <limits.h> exists even on freestanding compilers.
5341   # On the NeXT, cc -E runs the code through the compiler's parser,
5342   # not just through cpp. "Syntax error" is here to catch this case.
5343   cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354                      Syntax error
5355 _ACEOF
5356 if { (ac_try="$ac_cpp conftest.$ac_ext"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } >/dev/null && {
5369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370          test ! -s conftest.err
5371        }; then
5372   :
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377   # Broken: fails on valid input.
5378 continue
5379 fi
5380
5381 rm -f conftest.err conftest.$ac_ext
5382
5383   # OK, works on sane cases.  Now check whether nonexistent headers
5384   # can be detected and how.
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 #include <ac_nonexistent.h>
5392 _ACEOF
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } >/dev/null && {
5406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5407          test ! -s conftest.err
5408        }; then
5409   # Broken: success on invalid input.
5410 continue
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415   # Passes both tests.
5416 ac_preproc_ok=:
5417 break
5418 fi
5419
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5426   :
5427 else
5428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 # Find a good install program.  We prefer a C program (faster),
5442 # so one script is as good as another.  But avoid the broken or
5443 # incompatible versions:
5444 # SysV /etc/install, /usr/sbin/install
5445 # SunOS /usr/etc/install
5446 # IRIX /sbin/install
5447 # AIX /bin/install
5448 # AmigaOS /C/install, which installs bootblocks on floppy discs
5449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5452 # OS/2's system install, which has a completely different semantic
5453 # ./install, which can be erroneously created by make from ./install.sh.
5454 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5455 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5456 if test -z "$INSTALL"; then
5457 if test "${ac_cv_path_install+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465   # Account for people who put trailing slashes in PATH elements.
5466 case $as_dir/ in
5467   ./ | .// | /cC/* | \
5468   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5469   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5470   /usr/ucb/* ) ;;
5471   *)
5472     # OSF1 and SCO ODT 3.0 have their own names for install.
5473     # Don't use installbsd from OSF since it installs stuff as root
5474     # by default.
5475     for ac_prog in ginstall scoinst install; do
5476       for ac_exec_ext in '' $ac_executable_extensions; do
5477         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5478           if test $ac_prog = install &&
5479             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5480             # AIX install.  It has an incompatible calling convention.
5481             :
5482           elif test $ac_prog = install &&
5483             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5484             # program-specific install script used by HP pwplus--don't use.
5485             :
5486           else
5487             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5488             break 3
5489           fi
5490         fi
5491       done
5492     done
5493     ;;
5494 esac
5495 done
5496 IFS=$as_save_IFS
5497
5498
5499 fi
5500   if test "${ac_cv_path_install+set}" = set; then
5501     INSTALL=$ac_cv_path_install
5502   else
5503     # As a last resort, use the slow shell script.  Don't cache a
5504     # value for INSTALL within a source directory, because that will
5505     # break other packages using the cache if that directory is
5506     # removed, or if the value is a relative name.
5507     INSTALL=$ac_install_sh
5508   fi
5509 fi
5510 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5511 echo "${ECHO_T}$INSTALL" >&6; }
5512
5513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5514 # It thinks the first close brace ends the variable substitution.
5515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5516
5517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5518
5519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5520
5521 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5522 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5523 LN_S=$as_ln_s
5524 if test "$LN_S" = "ln -s"; then
5525   { echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6; }
5527 else
5528   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5529 echo "${ECHO_T}no, using $LN_S" >&6; }
5530 fi
5531
5532 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5534 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5535 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   cat >conftest.make <<\_ACEOF
5539 SHELL = /bin/sh
5540 all:
5541         @echo '@@@%%%=$(MAKE)=@@@%%%'
5542 _ACEOF
5543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5544 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5545   *@@@%%%=?*=@@@%%%*)
5546     eval ac_cv_prog_make_${ac_make}_set=yes;;
5547   *)
5548     eval ac_cv_prog_make_${ac_make}_set=no;;
5549 esac
5550 rm -f conftest.make
5551 fi
5552 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553   { echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6; }
5555   SET_MAKE=
5556 else
5557   { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559   SET_MAKE="MAKE=${MAKE-make}"
5560 fi
5561
5562 # Check whether --enable-shared was given.
5563 if test "${enable_shared+set}" = set; then
5564   enableval=$enable_shared; p=${PACKAGE-default}
5565     case $enableval in
5566     yes) enable_shared=yes ;;
5567     no) enable_shared=no ;;
5568     *)
5569       enable_shared=no
5570       # Look at the argument we got.  We use all the common list separators.
5571       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5572       for pkg in $enableval; do
5573         IFS="$lt_save_ifs"
5574         if test "X$pkg" = "X$p"; then
5575           enable_shared=yes
5576         fi
5577       done
5578       IFS="$lt_save_ifs"
5579       ;;
5580     esac
5581 else
5582   enable_shared=yes
5583 fi
5584
5585
5586 # Check whether --enable-static was given.
5587 if test "${enable_static+set}" = set; then
5588   enableval=$enable_static; p=${PACKAGE-default}
5589     case $enableval in
5590     yes) enable_static=yes ;;
5591     no) enable_static=no ;;
5592     *)
5593      enable_static=no
5594       # Look at the argument we got.  We use all the common list separators.
5595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5596       for pkg in $enableval; do
5597         IFS="$lt_save_ifs"
5598         if test "X$pkg" = "X$p"; then
5599           enable_static=yes
5600         fi
5601       done
5602       IFS="$lt_save_ifs"
5603       ;;
5604     esac
5605 else
5606   enable_static=yes
5607 fi
5608
5609
5610 # Check whether --enable-fast-install was given.
5611 if test "${enable_fast_install+set}" = set; then
5612   enableval=$enable_fast_install; p=${PACKAGE-default}
5613     case $enableval in
5614     yes) enable_fast_install=yes ;;
5615     no) enable_fast_install=no ;;
5616     *)
5617       enable_fast_install=no
5618       # Look at the argument we got.  We use all the common list separators.
5619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5620       for pkg in $enableval; do
5621         IFS="$lt_save_ifs"
5622         if test "X$pkg" = "X$p"; then
5623           enable_fast_install=yes
5624         fi
5625       done
5626       IFS="$lt_save_ifs"
5627       ;;
5628     esac
5629 else
5630   enable_fast_install=yes
5631 fi
5632
5633
5634 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5635 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5636 if test "${lt_cv_path_SED+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   # Loop through the user's path and test for sed and gsed.
5640 # Then use that list of sed's as ones to test for truncation.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646   for lt_ac_prog in sed gsed; do
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5649         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5650       fi
5651     done
5652   done
5653 done
5654 lt_ac_max=0
5655 lt_ac_count=0
5656 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5657 # along with /bin/sed that truncates output.
5658 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5659   test ! -f $lt_ac_sed && continue
5660   cat /dev/null > conftest.in
5661   lt_ac_count=0
5662   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5663   # Check for GNU sed and select it if it is found.
5664   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5665     lt_cv_path_SED=$lt_ac_sed
5666     break
5667   fi
5668   while true; do
5669     cat conftest.in conftest.in >conftest.tmp
5670     mv conftest.tmp conftest.in
5671     cp conftest.in conftest.nl
5672     echo >>conftest.nl
5673     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5674     cmp -s conftest.out conftest.nl || break
5675     # 10000 chars as input seems more than enough
5676     test $lt_ac_count -gt 10 && break
5677     lt_ac_count=`expr $lt_ac_count + 1`
5678     if test $lt_ac_count -gt $lt_ac_max; then
5679       lt_ac_max=$lt_ac_count
5680       lt_cv_path_SED=$lt_ac_sed
5681     fi
5682   done
5683 done
5684
5685 fi
5686
5687 SED=$lt_cv_path_SED
5688 { echo "$as_me:$LINENO: result: $SED" >&5
5689 echo "${ECHO_T}$SED" >&6; }
5690
5691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5693 if test "${ac_cv_path_GREP+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   # Extract the first word of "grep ggrep" to use in msg output
5697 if test -z "$GREP"; then
5698 set dummy grep ggrep; ac_prog_name=$2
5699 if test "${ac_cv_path_GREP+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_path_GREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709   for ac_prog in grep ggrep; do
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5712     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5713     # Check for GNU ac_path_GREP and select it if it is found.
5714   # Check for GNU $ac_path_GREP
5715 case `"$ac_path_GREP" --version 2>&1` in
5716 *GNU*)
5717   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5718 *)
5719   ac_count=0
5720   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5721   while :
5722   do
5723     cat "conftest.in" "conftest.in" >"conftest.tmp"
5724     mv "conftest.tmp" "conftest.in"
5725     cp "conftest.in" "conftest.nl"
5726     echo 'GREP' >> "conftest.nl"
5727     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729     ac_count=`expr $ac_count + 1`
5730     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5731       # Best one so far, save it but keep looking for a better one
5732       ac_cv_path_GREP="$ac_path_GREP"
5733       ac_path_GREP_max=$ac_count
5734     fi
5735     # 10*(2^10) chars as input seems more than enough
5736     test $ac_count -gt 10 && break
5737   done
5738   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5740
5741
5742     $ac_path_GREP_found && break 3
5743   done
5744 done
5745
5746 done
5747 IFS=$as_save_IFS
5748
5749
5750 fi
5751
5752 GREP="$ac_cv_path_GREP"
5753 if test -z "$GREP"; then
5754   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5756    { (exit 1); exit 1; }; }
5757 fi
5758
5759 else
5760   ac_cv_path_GREP=$GREP
5761 fi
5762
5763
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5767  GREP="$ac_cv_path_GREP"
5768
5769
5770 { echo "$as_me:$LINENO: checking for egrep" >&5
5771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_EGREP+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5776    then ac_cv_path_EGREP="$GREP -E"
5777    else
5778      # Extract the first word of "egrep" to use in msg output
5779 if test -z "$EGREP"; then
5780 set dummy egrep; ac_prog_name=$2
5781 if test "${ac_cv_path_EGREP+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   ac_path_EGREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791   for ac_prog in egrep; do
5792   for ac_exec_ext in '' $ac_executable_extensions; do
5793     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5794     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5795     # Check for GNU ac_path_EGREP and select it if it is found.
5796   # Check for GNU $ac_path_EGREP
5797 case `"$ac_path_EGREP" --version 2>&1` in
5798 *GNU*)
5799   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5800 *)
5801   ac_count=0
5802   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5803   while :
5804   do
5805     cat "conftest.in" "conftest.in" >"conftest.tmp"
5806     mv "conftest.tmp" "conftest.in"
5807     cp "conftest.in" "conftest.nl"
5808     echo 'EGREP' >> "conftest.nl"
5809     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811     ac_count=`expr $ac_count + 1`
5812     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5813       # Best one so far, save it but keep looking for a better one
5814       ac_cv_path_EGREP="$ac_path_EGREP"
5815       ac_path_EGREP_max=$ac_count
5816     fi
5817     # 10*(2^10) chars as input seems more than enough
5818     test $ac_count -gt 10 && break
5819   done
5820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5821 esac
5822
5823
5824     $ac_path_EGREP_found && break 3
5825   done
5826 done
5827
5828 done
5829 IFS=$as_save_IFS
5830
5831
5832 fi
5833
5834 EGREP="$ac_cv_path_EGREP"
5835 if test -z "$EGREP"; then
5836   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5838    { (exit 1); exit 1; }; }
5839 fi
5840
5841 else
5842   ac_cv_path_EGREP=$EGREP
5843 fi
5844
5845
5846    fi
5847 fi
5848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5850  EGREP="$ac_cv_path_EGREP"
5851
5852
5853
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5857 else
5858   with_gnu_ld=no
5859 fi
5860
5861 ac_prog=ld
5862 if test "$GCC" = yes; then
5863   # Check if gcc -print-prog-name=ld gives a path.
5864   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5866   case $host in
5867   *-*-mingw*)
5868     # gcc leaves a trailing carriage return which upsets mingw
5869     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5870   *)
5871     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5872   esac
5873   case $ac_prog in
5874     # Accept absolute paths.
5875     [\\/]* | ?:[\\/]*)
5876       re_direlt='/[^/][^/]*/\.\./'
5877       # Canonicalize the pathname of ld
5878       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5879       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5880         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5881       done
5882       test -z "$LD" && LD="$ac_prog"
5883       ;;
5884   "")
5885     # If it fails, then pretend we aren't using GCC.
5886     ac_prog=ld
5887     ;;
5888   *)
5889     # If it is relative, then search for the first ld in PATH.
5890     with_gnu_ld=unknown
5891     ;;
5892   esac
5893 elif test "$with_gnu_ld" = yes; then
5894   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5899 fi
5900 if test "${lt_cv_path_LD+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   if test -z "$LD"; then
5904   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905   for ac_dir in $PATH; do
5906     IFS="$lt_save_ifs"
5907     test -z "$ac_dir" && ac_dir=.
5908     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909       lt_cv_path_LD="$ac_dir/$ac_prog"
5910       # Check to see if the program is GNU ld.  I'd rather use --version,
5911       # but apparently some variants of GNU ld only accept -v.
5912       # Break only if it was the GNU/non-GNU ld that we prefer.
5913       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914       *GNU* | *'with BFD'*)
5915         test "$with_gnu_ld" != no && break
5916         ;;
5917       *)
5918         test "$with_gnu_ld" != yes && break
5919         ;;
5920       esac
5921     fi
5922   done
5923   IFS="$lt_save_ifs"
5924 else
5925   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5926 fi
5927 fi
5928
5929 LD="$lt_cv_path_LD"
5930 if test -n "$LD"; then
5931   { echo "$as_me:$LINENO: result: $LD" >&5
5932 echo "${ECHO_T}$LD" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939    { (exit 1); exit 1; }; }
5940 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948   lt_cv_prog_gnu_ld=yes
5949   ;;
5950 *)
5951   lt_cv_prog_gnu_ld=no
5952   ;;
5953 esac
5954 fi
5955 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5961 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5962 if test "${lt_cv_ld_reload_flag+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   lt_cv_ld_reload_flag='-r'
5966 fi
5967 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5968 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5969 reload_flag=$lt_cv_ld_reload_flag
5970 case $reload_flag in
5971 "" | " "*) ;;
5972 *) reload_flag=" $reload_flag" ;;
5973 esac
5974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975 case $host_os in
5976   darwin*)
5977     if test "$GCC" = yes; then
5978       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5979     else
5980       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981     fi
5982     ;;
5983 esac
5984
5985 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5986 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5987 if test "${lt_cv_path_NM+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   if test -n "$NM"; then
5991   # Let the user override the test.
5992   lt_cv_path_NM="$NM"
5993 else
5994   lt_nm_to_check="${ac_tool_prefix}nm"
5995   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996     lt_nm_to_check="$lt_nm_to_check nm"
5997   fi
5998   for lt_tmp_nm in $lt_nm_to_check; do
5999     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6001       IFS="$lt_save_ifs"
6002       test -z "$ac_dir" && ac_dir=.
6003       tmp_nm="$ac_dir/$lt_tmp_nm"
6004       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6005         # Check to see if the nm accepts a BSD-compat flag.
6006         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6007         #   nm: unknown option "B" ignored
6008         # Tru64's nm complains that /dev/null is an invalid object file
6009         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6010         */dev/null* | *'Invalid file or object type'*)
6011           lt_cv_path_NM="$tmp_nm -B"
6012           break
6013           ;;
6014         *)
6015           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6016           */dev/null*)
6017             lt_cv_path_NM="$tmp_nm -p"
6018             break
6019             ;;
6020           *)
6021             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6022             continue # so that we can try to find one that supports BSD flags
6023             ;;
6024           esac
6025           ;;
6026         esac
6027       fi
6028     done
6029     IFS="$lt_save_ifs"
6030   done
6031   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6032 fi
6033 fi
6034 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6035 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6036 NM="$lt_cv_path_NM"
6037
6038 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6039 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6040 if test "${lt_cv_deplibs_check_method+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   lt_cv_file_magic_cmd='$MAGIC_CMD'
6044 lt_cv_file_magic_test_file=
6045 lt_cv_deplibs_check_method='unknown'
6046 # Need to set the preceding variable on all platforms that support
6047 # interlibrary dependencies.
6048 # 'none' -- dependencies not supported.
6049 # `unknown' -- same as none, but documents that we really don't know.
6050 # 'pass_all' -- all dependencies passed with no checks.
6051 # 'test_compile' -- check by making test program.
6052 # 'file_magic [[regex]]' -- check by looking for files in library path
6053 # which responds to the $file_magic_cmd with a given extended regex.
6054 # If you have `file' or equivalent on your system and you're not sure
6055 # whether `pass_all' will *always* work, you probably want this one.
6056
6057 case $host_os in
6058 aix4* | aix5*)
6059   lt_cv_deplibs_check_method=pass_all
6060   ;;
6061
6062 beos*)
6063   lt_cv_deplibs_check_method=pass_all
6064   ;;
6065
6066 bsdi[45]*)
6067   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6068   lt_cv_file_magic_cmd='/usr/bin/file -L'
6069   lt_cv_file_magic_test_file=/shlib/libc.so
6070   ;;
6071
6072 cygwin*)
6073   # func_win32_libid is a shell function defined in ltmain.sh
6074   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6075   lt_cv_file_magic_cmd='func_win32_libid'
6076   ;;
6077
6078 mingw* | pw32*)
6079   # Base MSYS/MinGW do not provide the 'file' command needed by
6080   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6081   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6082   lt_cv_file_magic_cmd='$OBJDUMP -f'
6083   ;;
6084
6085 darwin* | rhapsody*)
6086   lt_cv_deplibs_check_method=pass_all
6087   ;;
6088
6089 freebsd* | dragonfly*)
6090   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6091     case $host_cpu in
6092     i*86 )
6093       # Not sure whether the presence of OpenBSD here was a mistake.
6094       # Let's accept both of them until this is cleared up.
6095       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096       lt_cv_file_magic_cmd=/usr/bin/file
6097       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6098       ;;
6099     esac
6100   else
6101     lt_cv_deplibs_check_method=pass_all
6102   fi
6103   ;;
6104
6105 gnu*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 hpux10.20* | hpux11*)
6110   lt_cv_file_magic_cmd=/usr/bin/file
6111   case $host_cpu in
6112   ia64*)
6113     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115     ;;
6116   hppa*64*)
6117     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]'
6118     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119     ;;
6120   *)
6121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6122     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6123     ;;
6124   esac
6125   ;;
6126
6127 interix3*)
6128   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130   ;;
6131
6132 irix5* | irix6* | nonstopux*)
6133   case $LD in
6134   *-32|*"-32 ") libmagic=32-bit;;
6135   *-n32|*"-n32 ") libmagic=N32;;
6136   *-64|*"-64 ") libmagic=64-bit;;
6137   *) libmagic=never-match;;
6138   esac
6139   lt_cv_deplibs_check_method=pass_all
6140   ;;
6141
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu)
6144   lt_cv_deplibs_check_method=pass_all
6145   ;;
6146
6147 netbsd* | netbsdelf*-gnu)
6148   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150   else
6151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6152   fi
6153   ;;
6154
6155 newos6*)
6156   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157   lt_cv_file_magic_cmd=/usr/bin/file
6158   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6159   ;;
6160
6161 nto-qnx*)
6162   lt_cv_deplibs_check_method=unknown
6163   ;;
6164
6165 openbsd*)
6166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6168   else
6169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170   fi
6171   ;;
6172
6173 osf3* | osf4* | osf5*)
6174   lt_cv_deplibs_check_method=pass_all
6175   ;;
6176
6177 solaris*)
6178   lt_cv_deplibs_check_method=pass_all
6179   ;;
6180
6181 sysv4 | sysv4.3*)
6182   case $host_vendor in
6183   motorola)
6184     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]'
6185     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6186     ;;
6187   ncr)
6188     lt_cv_deplibs_check_method=pass_all
6189     ;;
6190   sequent)
6191     lt_cv_file_magic_cmd='/bin/file'
6192     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6193     ;;
6194   sni)
6195     lt_cv_file_magic_cmd='/bin/file'
6196     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197     lt_cv_file_magic_test_file=/lib/libc.so
6198     ;;
6199   siemens)
6200     lt_cv_deplibs_check_method=pass_all
6201     ;;
6202   pc)
6203     lt_cv_deplibs_check_method=pass_all
6204     ;;
6205   esac
6206   ;;
6207
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211 esac
6212
6213 fi
6214 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6215 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6216 file_magic_cmd=$lt_cv_file_magic_cmd
6217 deplibs_check_method=$lt_cv_deplibs_check_method
6218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6219
6220
6221
6222
6223 # If no C compiler was specified, use CC.
6224 LTCC=${LTCC-"$CC"}
6225
6226 # If no C compiler flags were specified, use CFLAGS.
6227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6228
6229 # Allow CC to be a program name with arguments.
6230 compiler=$CC
6231
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234   enableval=$enable_libtool_lock;
6235 fi
6236
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238
6239 # Some flags need to be propagated to the compiler or linker for good
6240 # libtool support.
6241 case $host in
6242 ia64-*-hpux*)
6243   # Find out which ABI we are using.
6244   echo 'int i;' > conftest.$ac_ext
6245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; then
6250     case `/usr/bin/file conftest.$ac_objext` in
6251     *ELF-32*)
6252       HPUX_IA64_MODE="32"
6253       ;;
6254     *ELF-64*)
6255       HPUX_IA64_MODE="64"
6256       ;;
6257     esac
6258   fi
6259   rm -rf conftest*
6260   ;;
6261 *-*-irix6*)
6262   # Find out which ABI we are using.
6263   echo '#line 6263 "configure"' > conftest.$ac_ext
6264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265   (eval $ac_compile) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; then
6269    if test "$lt_cv_prog_gnu_ld" = yes; then
6270     case `/usr/bin/file conftest.$ac_objext` in
6271     *32-bit*)
6272       LD="${LD-ld} -melf32bsmip"
6273       ;;
6274     *N32*)
6275       LD="${LD-ld} -melf32bmipn32"
6276       ;;
6277     *64-bit*)
6278       LD="${LD-ld} -melf64bmip"
6279       ;;
6280     esac
6281    else
6282     case `/usr/bin/file conftest.$ac_objext` in
6283     *32-bit*)
6284       LD="${LD-ld} -32"
6285       ;;
6286     *N32*)
6287       LD="${LD-ld} -n32"
6288       ;;
6289     *64-bit*)
6290       LD="${LD-ld} -64"
6291       ;;
6292     esac
6293    fi
6294   fi
6295   rm -rf conftest*
6296   ;;
6297
6298 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6299   # Find out which ABI we are using.
6300   echo 'int i;' > conftest.$ac_ext
6301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; then
6306     case `/usr/bin/file conftest.o` in
6307     *32-bit*)
6308       case $host in
6309         x86_64-*linux*)
6310           LD="${LD-ld} -m elf_i386"
6311           ;;
6312         ppc64-*linux*|powerpc64-*linux*)
6313           LD="${LD-ld} -m elf32ppclinux"
6314           ;;
6315         s390x-*linux*)
6316           LD="${LD-ld} -m elf_s390"
6317           ;;
6318         sparc64-*linux*)
6319           LD="${LD-ld} -m elf32_sparc"
6320           ;;
6321       esac
6322       ;;
6323     *64-bit*)
6324       case $host in
6325         x86_64-*linux*)
6326           LD="${LD-ld} -m elf_x86_64"
6327           ;;
6328         ppc*-*linux*|powerpc*-*linux*)
6329           LD="${LD-ld} -m elf64ppc"
6330           ;;
6331         s390*-*linux*)
6332           LD="${LD-ld} -m elf64_s390"
6333           ;;
6334         sparc*-*linux*)
6335           LD="${LD-ld} -m elf64_sparc"
6336           ;;
6337       esac
6338       ;;
6339     esac
6340   fi
6341   rm -rf conftest*
6342   ;;
6343
6344 *-*-sco3.2v5*)
6345   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6346   SAVE_CFLAGS="$CFLAGS"
6347   CFLAGS="$CFLAGS -belf"
6348   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6349 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6350 if test "${lt_cv_cc_needs_belf+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359      cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (ac_try="$ac_link"
6376 case "(($ac_try" in
6377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378   *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381   (eval "$ac_link") 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } && {
6388          test -z "$ac_c_werror_flag" ||
6389          test ! -s conftest.err
6390        } && test -s conftest$ac_exeext &&
6391        $as_test_x conftest$ac_exeext; then
6392   lt_cv_cc_needs_belf=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397         lt_cv_cc_needs_belf=no
6398 fi
6399
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401       conftest$ac_exeext conftest.$ac_ext
6402      ac_ext=c
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408 fi
6409 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6410 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6411   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413     CFLAGS="$SAVE_CFLAGS"
6414   fi
6415   ;;
6416 sparc*-*solaris*)
6417   # Find out which ABI we are using.
6418   echo 'int i;' > conftest.$ac_ext
6419   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420   (eval $ac_compile) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; then
6424     case `/usr/bin/file conftest.o` in
6425     *64-bit*)
6426       case $lt_cv_prog_gnu_ld in
6427       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428       *)    LD="${LD-ld} -64" ;;
6429       esac
6430       ;;
6431     esac
6432   fi
6433   rm -rf conftest*
6434   ;;
6435
6436
6437 esac
6438
6439 need_locks="$enable_libtool_lock"
6440
6441
6442
6443 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6445 if test "${ac_cv_header_stdc+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 #include <stdlib.h>
6455 #include <stdarg.h>
6456 #include <string.h>
6457 #include <float.h>
6458
6459 int
6460 main ()
6461 {
6462
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471   *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474   (eval "$ac_compile") 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } && {
6481          test -z "$ac_c_werror_flag" ||
6482          test ! -s conftest.err
6483        } && test -s conftest.$ac_objext; then
6484   ac_cv_header_stdc=yes
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489         ac_cv_header_stdc=no
6490 fi
6491
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493
6494 if test $ac_cv_header_stdc = yes; then
6495   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6496   cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502 #include <string.h>
6503
6504 _ACEOF
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506   $EGREP "memchr" >/dev/null 2>&1; then
6507   :
6508 else
6509   ac_cv_header_stdc=no
6510 fi
6511 rm -f conftest*
6512
6513 fi
6514
6515 if test $ac_cv_header_stdc = yes; then
6516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6517   cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h.  */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h.  */
6523 #include <stdlib.h>
6524
6525 _ACEOF
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527   $EGREP "free" >/dev/null 2>&1; then
6528   :
6529 else
6530   ac_cv_header_stdc=no
6531 fi
6532 rm -f conftest*
6533
6534 fi
6535
6536 if test $ac_cv_header_stdc = yes; then
6537   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6538   if test "$cross_compiling" = yes; then
6539   :
6540 else
6541   cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <ctype.h>
6548 #include <stdlib.h>
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6552 #else
6553 # define ISLOWER(c) \
6554                    (('a' <= (c) && (c) <= 'i') \
6555                      || ('j' <= (c) && (c) <= 'r') \
6556                      || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558 #endif
6559
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561 int
6562 main ()
6563 {
6564   int i;
6565   for (i = 0; i < 256; i++)
6566     if (XOR (islower (i), ISLOWER (i))
6567         || toupper (i) != TOUPPER (i))
6568       return 2;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6574 case "(($ac_try" in
6575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576   *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579   (eval "$ac_link") 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583   { (case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588   (eval "$ac_try") 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   :
6593 else
6594   echo "$as_me: program exited with status $ac_status" >&5
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ( exit $ac_status )
6599 ac_cv_header_stdc=no
6600 fi
6601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6602 fi
6603
6604
6605 fi
6606 fi
6607 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6608 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6609 if test $ac_cv_header_stdc = yes; then
6610
6611 cat >>confdefs.h <<\_ACEOF
6612 #define STDC_HEADERS 1
6613 _ACEOF
6614
6615 fi
6616
6617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628                   inttypes.h stdint.h unistd.h
6629 do
6630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 $ac_includes_default
6643
6644 #include <$ac_header>
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } && {
6660          test -z "$ac_c_werror_flag" ||
6661          test ! -s conftest.err
6662        } && test -s conftest.$ac_objext; then
6663   eval "$as_ac_Header=yes"
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668         eval "$as_ac_Header=no"
6669 fi
6670
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674                { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677   cat >>confdefs.h <<_ACEOF
6678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679 _ACEOF
6680
6681 fi
6682
6683 done
6684
6685
6686
6687 for ac_header in dlfcn.h
6688 do
6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 fi
6696 ac_res=`eval echo '${'$as_ac_Header'}'`
6697                { echo "$as_me:$LINENO: result: $ac_res" >&5
6698 echo "${ECHO_T}$ac_res" >&6; }
6699 else
6700   # Is the header compilable?
6701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 $ac_includes_default
6710 #include <$ac_header>
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6714 case "(($ac_try" in
6715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716   *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719   (eval "$ac_compile") 2>conftest.er1
6720   ac_status=$?
6721   grep -v '^ *+' conftest.er1 >conftest.err
6722   rm -f conftest.er1
6723   cat conftest.err >&5
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && {
6726          test -z "$ac_c_werror_flag" ||
6727          test ! -s conftest.err
6728        } && test -s conftest.$ac_objext; then
6729   ac_header_compiler=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734         ac_header_compiler=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6739 echo "${ECHO_T}$ac_header_compiler" >&6; }
6740
6741 # Is the header present?
6742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h.  */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h.  */
6750 #include <$ac_header>
6751 _ACEOF
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 case "(($ac_try" in
6754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755   *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } >/dev/null && {
6765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766          test ! -s conftest.err
6767        }; then
6768   ac_header_preproc=yes
6769 else
6770   echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773   ac_header_preproc=no
6774 fi
6775
6776 rm -f conftest.err conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6778 echo "${ECHO_T}$ac_header_preproc" >&6; }
6779
6780 # So?  What about this header?
6781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6782   yes:no: )
6783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6787     ac_header_preproc=yes
6788     ;;
6789   no:yes:* )
6790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6802     ( cat <<\_ASBOX
6803 ## ------------------------------- ##
6804 ## Report this to nfs@lists.sf.net ##
6805 ## ------------------------------- ##
6806 _ASBOX
6807      ) | sed "s/^/$as_me: WARNING:     /" >&2
6808     ;;
6809 esac
6810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   eval "$as_ac_Header=\$ac_header_preproc"
6816 fi
6817 ac_res=`eval echo '${'$as_ac_Header'}'`
6818                { echo "$as_me:$LINENO: result: $ac_res" >&5
6819 echo "${ECHO_T}$ac_res" >&6; }
6820
6821 fi
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823   cat >>confdefs.h <<_ACEOF
6824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 _ACEOF
6826
6827 fi
6828
6829 done
6830
6831
6832
6833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6834     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6835     (test "X$CXX" != "Xg++"))) ; then
6836   ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6842 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6843 if test -z "$CXXCPP"; then
6844   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847       # Double quotes because CXXCPP needs to be expanded
6848     for CXXCPP in "$CXX -E" "/lib/cpp"
6849     do
6850       ac_preproc_ok=false
6851 for ac_cxx_preproc_warn_flag in '' yes
6852 do
6853   # Use a header file that comes with gcc, so configuring glibc
6854   # with a fresh cross-compiler works.
6855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856   # <limits.h> exists even on freestanding compilers.
6857   # On the NeXT, cc -E runs the code through the compiler's parser,
6858   # not just through cpp. "Syntax error" is here to catch this case.
6859   cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865 #ifdef __STDC__
6866 # include <limits.h>
6867 #else
6868 # include <assert.h>
6869 #endif
6870                      Syntax error
6871 _ACEOF
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6879   ac_status=$?
6880   grep -v '^ *+' conftest.er1 >conftest.err
6881   rm -f conftest.er1
6882   cat conftest.err >&5
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } >/dev/null && {
6885          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6886          test ! -s conftest.err
6887        }; then
6888   :
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893   # Broken: fails on valid input.
6894 continue
6895 fi
6896
6897 rm -f conftest.err conftest.$ac_ext
6898
6899   # OK, works on sane cases.  Now check whether nonexistent headers
6900   # can be detected and how.
6901   cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <ac_nonexistent.h>
6908 _ACEOF
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 case "(($ac_try" in
6911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912   *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } >/dev/null && {
6922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923          test ! -s conftest.err
6924        }; then
6925   # Broken: success on invalid input.
6926 continue
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931   # Passes both tests.
6932 ac_preproc_ok=:
6933 break
6934 fi
6935
6936 rm -f conftest.err conftest.$ac_ext
6937
6938 done
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then
6942   break
6943 fi
6944
6945     done
6946     ac_cv_prog_CXXCPP=$CXXCPP
6947
6948 fi
6949   CXXCPP=$ac_cv_prog_CXXCPP
6950 else
6951   ac_cv_prog_CXXCPP=$CXXCPP
6952 fi
6953 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6954 echo "${ECHO_T}$CXXCPP" >&6; }
6955 ac_preproc_ok=false
6956 for ac_cxx_preproc_warn_flag in '' yes
6957 do
6958   # Use a header file that comes with gcc, so configuring glibc
6959   # with a fresh cross-compiler works.
6960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961   # <limits.h> exists even on freestanding compilers.
6962   # On the NeXT, cc -E runs the code through the compiler's parser,
6963   # not just through cpp. "Syntax error" is here to catch this case.
6964   cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 #ifdef __STDC__
6971 # include <limits.h>
6972 #else
6973 # include <assert.h>
6974 #endif
6975                      Syntax error
6976 _ACEOF
6977 if { (ac_try="$ac_cpp conftest.$ac_ext"
6978 case "(($ac_try" in
6979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980   *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } >/dev/null && {
6990          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6991          test ! -s conftest.err
6992        }; then
6993   :
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998   # Broken: fails on valid input.
6999 continue
7000 fi
7001
7002 rm -f conftest.err conftest.$ac_ext
7003
7004   # OK, works on sane cases.  Now check whether nonexistent headers
7005   # can be detected and how.
7006   cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h.  */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h.  */
7012 #include <ac_nonexistent.h>
7013 _ACEOF
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7015 case "(($ac_try" in
7016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017   *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } >/dev/null && {
7027          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7028          test ! -s conftest.err
7029        }; then
7030   # Broken: success on invalid input.
7031 continue
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036   # Passes both tests.
7037 ac_preproc_ok=:
7038 break
7039 fi
7040
7041 rm -f conftest.err conftest.$ac_ext
7042
7043 done
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then
7047   :
7048 else
7049   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7050 See \`config.log' for more details." >&5
7051 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7052 See \`config.log' for more details." >&2;}
7053    { (exit 1); exit 1; }; }
7054 fi
7055
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7061
7062 fi
7063
7064
7065 ac_ext=f
7066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7069 if test -n "$ac_tool_prefix"; then
7070   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7071   do
7072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_F77+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   if test -n "$F77"; then
7080   ac_cv_prog_F77="$F77" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   test -z "$as_dir" && as_dir=.
7087   for ac_exec_ext in '' $ac_executable_extensions; do
7088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091     break 2
7092   fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 F77=$ac_cv_prog_F77
7100 if test -n "$F77"; then
7101   { echo "$as_me:$LINENO: result: $F77" >&5
7102 echo "${ECHO_T}$F77" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109     test -n "$F77" && break
7110   done
7111 fi
7112 if test -z "$F77"; then
7113   ac_ct_F77=$F77
7114   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7115 do
7116   # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   if test -n "$ac_ct_F77"; then
7124   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_prog_ac_ct_F77="$ac_prog"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7144 if test -n "$ac_ct_F77"; then
7145   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7146 echo "${ECHO_T}$ac_ct_F77" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152
7153   test -n "$ac_ct_F77" && break
7154 done
7155
7156   if test "x$ac_ct_F77" = x; then
7157     F77=""
7158   else
7159     case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet.  If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&5
7164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet.  If you think this
7166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169     F77=$ac_ct_F77
7170   fi
7171 fi
7172
7173
7174 # Provide some information about the compiler.
7175 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7176 ac_compiler=`set X $ac_compile; echo $2`
7177 { (ac_try="$ac_compiler --version >&5"
7178 case "(($ac_try" in
7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180   *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183   (eval "$ac_compiler --version >&5") 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }
7187 { (ac_try="$ac_compiler -v >&5"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193   (eval "$ac_compiler -v >&5") 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }
7197 { (ac_try="$ac_compiler -V >&5"
7198 case "(($ac_try" in
7199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200   *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203   (eval "$ac_compiler -V >&5") 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }
7207 rm -f a.out
7208
7209 # If we don't use `.F' as extension, the preprocessor is not run on the
7210 # input file.  (Note that this only needs to work for GNU compilers.)
7211 ac_save_ext=$ac_ext
7212 ac_ext=F
7213 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7214 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7215 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   cat >conftest.$ac_ext <<_ACEOF
7219       program main
7220 #ifndef __GNUC__
7221        choke me
7222 #endif
7223
7224       end
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7228 case "(($ac_try" in
7229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230   *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233   (eval "$ac_compile") 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } && {
7240          test -z "$ac_f77_werror_flag" ||
7241          test ! -s conftest.err
7242        } && test -s conftest.$ac_objext; then
7243   ac_compiler_gnu=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248         ac_compiler_gnu=no
7249 fi
7250
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7253
7254 fi
7255 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7256 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7257 ac_ext=$ac_save_ext
7258 ac_test_FFLAGS=${FFLAGS+set}
7259 ac_save_FFLAGS=$FFLAGS
7260 FFLAGS=
7261 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7262 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_f77_g+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   FFLAGS=-g
7267 cat >conftest.$ac_ext <<_ACEOF
7268       program main
7269
7270       end
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276   *) ac_try_echo=$ac_try;;
7277 esac
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279   (eval "$ac_compile") 2>conftest.er1
7280   ac_status=$?
7281   grep -v '^ *+' conftest.er1 >conftest.err
7282   rm -f conftest.er1
7283   cat conftest.err >&5
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } && {
7286          test -z "$ac_f77_werror_flag" ||
7287          test ! -s conftest.err
7288        } && test -s conftest.$ac_objext; then
7289   ac_cv_prog_f77_g=yes
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294         ac_cv_prog_f77_g=no
7295 fi
7296
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298
7299 fi
7300 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7301 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7302 if test "$ac_test_FFLAGS" = set; then
7303   FFLAGS=$ac_save_FFLAGS
7304 elif test $ac_cv_prog_f77_g = yes; then
7305   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7306     FFLAGS="-g -O2"
7307   else
7308     FFLAGS="-g"
7309   fi
7310 else
7311   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7312     FFLAGS="-O2"
7313   else
7314     FFLAGS=
7315   fi
7316 fi
7317
7318 G77=`test $ac_compiler_gnu = yes && echo yes`
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326
7327 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7328
7329 # find the maximum length of command line arguments
7330 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7331 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7332 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335     i=0
7336   teststring="ABCD"
7337
7338   case $build_os in
7339   msdosdjgpp*)
7340     # On DJGPP, this test can blow up pretty badly due to problems in libc
7341     # (any single argument exceeding 2000 bytes causes a buffer overrun
7342     # during glob expansion).  Even if it were fixed, the result of this
7343     # check would be larger than it should be.
7344     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7345     ;;
7346
7347   gnu*)
7348     # Under GNU Hurd, this test is not required because there is
7349     # no limit to the length of command line arguments.
7350     # Libtool will interpret -1 as no limit whatsoever
7351     lt_cv_sys_max_cmd_len=-1;
7352     ;;
7353
7354   cygwin* | mingw*)
7355     # On Win9x/ME, this test blows up -- it succeeds, but takes
7356     # about 5 minutes as the teststring grows exponentially.
7357     # Worse, since 9x/ME are not pre-emptively multitasking,
7358     # you end up with a "frozen" computer, even though with patience
7359     # the test eventually succeeds (with a max line length of 256k).
7360     # Instead, let's just punt: use the minimum linelength reported by
7361     # all of the supported platforms: 8192 (on NT/2K/XP).
7362     lt_cv_sys_max_cmd_len=8192;
7363     ;;
7364
7365   amigaos*)
7366     # On AmigaOS with pdksh, this test takes hours, literally.
7367     # So we just punt and use a minimum line length of 8192.
7368     lt_cv_sys_max_cmd_len=8192;
7369     ;;
7370
7371   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7372     # This has been around since 386BSD, at least.  Likely further.
7373     if test -x /sbin/sysctl; then
7374       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7375     elif test -x /usr/sbin/sysctl; then
7376       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7377     else
7378       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7379     fi
7380     # And add a safety zone
7381     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7382     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7383     ;;
7384
7385   interix*)
7386     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7387     lt_cv_sys_max_cmd_len=196608
7388     ;;
7389
7390   osf*)
7391     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7392     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7393     # nice to cause kernel panics so lets avoid the loop below.
7394     # First set a reasonable default.
7395     lt_cv_sys_max_cmd_len=16384
7396     #
7397     if test -x /sbin/sysconfig; then
7398       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7399         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7400       esac
7401     fi
7402     ;;
7403   sco3.2v5*)
7404     lt_cv_sys_max_cmd_len=102400
7405     ;;
7406   sysv5* | sco5v6* | sysv4.2uw2*)
7407     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7408     if test -n "$kargmax"; then
7409       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7410     else
7411       lt_cv_sys_max_cmd_len=32768
7412     fi
7413     ;;
7414   *)
7415     # If test is not a shell built-in, we'll probably end up computing a
7416     # maximum length that is only half of the actual maximum length, but
7417     # we can't tell.
7418     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7419     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7420                = "XX$teststring") >/dev/null 2>&1 &&
7421             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7422             lt_cv_sys_max_cmd_len=$new_result &&
7423             test $i != 17 # 1/2 MB should be enough
7424     do
7425       i=`expr $i + 1`
7426       teststring=$teststring$teststring
7427     done
7428     teststring=
7429     # Add a significant safety factor because C++ compilers can tack on massive
7430     # amounts of additional arguments before passing them to the linker.
7431     # It appears as though 1/2 is a usable value.
7432     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7433     ;;
7434   esac
7435
7436 fi
7437
7438 if test -n $lt_cv_sys_max_cmd_len ; then
7439   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7440 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7441 else
7442   { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7444 fi
7445
7446
7447
7448
7449 # Check for command to grab the raw symbol name followed by C symbol from nm.
7450 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7451 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455
7456 # These are sane defaults that work on at least a few old systems.
7457 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7458
7459 # Character class describing NM global symbol codes.
7460 symcode='[BCDEGRST]'
7461
7462 # Regexp to match symbols that can be accessed directly from C.
7463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7464
7465 # Transform an extracted symbol line into a proper C declaration
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7467
7468 # Transform an extracted symbol line into symbol name and symbol address
7469 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'"
7470
7471 # Define system-specific variables.
7472 case $host_os in
7473 aix*)
7474   symcode='[BCDT]'
7475   ;;
7476 cygwin* | mingw* | pw32*)
7477   symcode='[ABCDGISTW]'
7478   ;;
7479 hpux*) # Its linker distinguishes data from code symbols
7480   if test "$host_cpu" = ia64; then
7481     symcode='[ABCDEGRST]'
7482   fi
7483   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7484   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'"
7485   ;;
7486 linux* | k*bsd*-gnu)
7487   if test "$host_cpu" = ia64; then
7488     symcode='[ABCDGIRSTW]'
7489     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7490     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'"
7491   fi
7492   ;;
7493 irix* | nonstopux*)
7494   symcode='[BCDEGRST]'
7495   ;;
7496 osf*)
7497   symcode='[BCDEGQRST]'
7498   ;;
7499 solaris*)
7500   symcode='[BDRT]'
7501   ;;
7502 sco3.2v5*)
7503   symcode='[DT]'
7504   ;;
7505 sysv4.2uw2*)
7506   symcode='[DT]'
7507   ;;
7508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7509   symcode='[ABDT]'
7510   ;;
7511 sysv4)
7512   symcode='[DFNSTU]'
7513   ;;
7514 esac
7515
7516 # Handle CRLF in mingw tool chain
7517 opt_cr=
7518 case $build_os in
7519 mingw*)
7520   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7521   ;;
7522 esac
7523
7524 # If we're using GNU nm, then use its standard symbol codes.
7525 case `$NM -V 2>&1` in
7526 *GNU* | *'with BFD'*)
7527   symcode='[ABCDGIRSTW]' ;;
7528 esac
7529
7530 # Try without a prefix undercore, then with it.
7531 for ac_symprfx in "" "_"; do
7532
7533   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7534   symxfrm="\\1 $ac_symprfx\\2 \\2"
7535
7536   # Write the raw and C identifiers.
7537   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7538
7539   # Check to see that the pipe works correctly.
7540   pipe_works=no
7541
7542   rm -f conftest*
7543   cat > conftest.$ac_ext <<EOF
7544 #ifdef __cplusplus
7545 extern "C" {
7546 #endif
7547 char nm_test_var;
7548 void nm_test_func(){}
7549 #ifdef __cplusplus
7550 }
7551 #endif
7552 int main(){nm_test_var='a';nm_test_func();return(0);}
7553 EOF
7554
7555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556   (eval $ac_compile) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }; then
7560     # Now try to grab the symbols.
7561     nlist=conftest.nm
7562     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7563   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } && test -s "$nlist"; then
7567       # Try sorting and uniquifying the output.
7568       if sort "$nlist" | uniq > "$nlist"T; then
7569         mv -f "$nlist"T "$nlist"
7570       else
7571         rm -f "$nlist"T
7572       fi
7573
7574       # Make sure that we snagged all the symbols we need.
7575       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7576         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7577           cat <<EOF > conftest.$ac_ext
7578 #ifdef __cplusplus
7579 extern "C" {
7580 #endif
7581
7582 EOF
7583           # Now generate the symbol file.
7584           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7585
7586           cat <<EOF >> conftest.$ac_ext
7587 #if defined (__STDC__) && __STDC__
7588 # define lt_ptr_t void *
7589 #else
7590 # define lt_ptr_t char *
7591 # define const
7592 #endif
7593
7594 /* The mapping between symbol names and symbols. */
7595 const struct {
7596   const char *name;
7597   lt_ptr_t address;
7598 }
7599 lt_preloaded_symbols[] =
7600 {
7601 EOF
7602           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7603           cat <<\EOF >> conftest.$ac_ext
7604   {0, (lt_ptr_t) 0}
7605 };
7606
7607 #ifdef __cplusplus
7608 }
7609 #endif
7610 EOF
7611           # Now try linking the two files.
7612           mv conftest.$ac_objext conftstm.$ac_objext
7613           lt_save_LIBS="$LIBS"
7614           lt_save_CFLAGS="$CFLAGS"
7615           LIBS="conftstm.$ac_objext"
7616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7622             pipe_works=yes
7623           fi
7624           LIBS="$lt_save_LIBS"
7625           CFLAGS="$lt_save_CFLAGS"
7626         else
7627           echo "cannot find nm_test_func in $nlist" >&5
7628         fi
7629       else
7630         echo "cannot find nm_test_var in $nlist" >&5
7631       fi
7632     else
7633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7634     fi
7635   else
7636     echo "$progname: failed program was:" >&5
7637     cat conftest.$ac_ext >&5
7638   fi
7639   rm -f conftest* conftst*
7640
7641   # Do not use the global_symbol_pipe unless it works.
7642   if test "$pipe_works" = yes; then
7643     break
7644   else
7645     lt_cv_sys_global_symbol_pipe=
7646   fi
7647 done
7648
7649 fi
7650
7651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7652   lt_cv_sys_global_symbol_to_cdecl=
7653 fi
7654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7655   { echo "$as_me:$LINENO: result: failed" >&5
7656 echo "${ECHO_T}failed" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: ok" >&5
7659 echo "${ECHO_T}ok" >&6; }
7660 fi
7661
7662 { echo "$as_me:$LINENO: checking for objdir" >&5
7663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7664 if test "${lt_cv_objdir+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   rm -f .libs 2>/dev/null
7668 mkdir .libs 2>/dev/null
7669 if test -d .libs; then
7670   lt_cv_objdir=.libs
7671 else
7672   # MS-DOS does not allow filenames that begin with a dot.
7673   lt_cv_objdir=_libs
7674 fi
7675 rmdir .libs 2>/dev/null
7676 fi
7677 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7678 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7679 objdir=$lt_cv_objdir
7680
7681
7682
7683
7684
7685 case $host_os in
7686 aix3*)
7687   # AIX sometimes has problems with the GCC collect2 program.  For some
7688   # reason, if we set the COLLECT_NAMES environment variable, the problems
7689   # vanish in a puff of smoke.
7690   if test "X${COLLECT_NAMES+set}" != Xset; then
7691     COLLECT_NAMES=
7692     export COLLECT_NAMES
7693   fi
7694   ;;
7695 esac
7696
7697 # Sed substitution that helps us do robust quoting.  It backslashifies
7698 # metacharacters that are still active within double-quoted strings.
7699 Xsed='sed -e 1s/^X//'
7700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7701
7702 # Same as above, but do not quote variable references.
7703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7704
7705 # Sed substitution to delay expansion of an escaped shell variable in a
7706 # double_quote_subst'ed string.
7707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7708
7709 # Sed substitution to avoid accidental globbing in evaled expressions
7710 no_glob_subst='s/\*/\\\*/g'
7711
7712 # Constants:
7713 rm="rm -f"
7714
7715 # Global variables:
7716 default_ofile=libtool
7717 can_build_shared=yes
7718
7719 # All known linkers require a `.a' archive for static linking (except MSVC,
7720 # which needs '.lib').
7721 libext=a
7722 ltmain="$ac_aux_dir/ltmain.sh"
7723 ofile="$default_ofile"
7724 with_gnu_ld="$lt_cv_prog_gnu_ld"
7725
7726 if test -n "$ac_tool_prefix"; then
7727   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}ar; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_AR+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   if test -n "$AR"; then
7735   ac_cv_prog_AR="$AR" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_AR="${ac_tool_prefix}ar"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 AR=$ac_cv_prog_AR
7755 if test -n "$AR"; then
7756   { echo "$as_me:$LINENO: result: $AR" >&5
7757 echo "${ECHO_T}$AR" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764 fi
7765 if test -z "$ac_cv_prog_AR"; then
7766   ac_ct_AR=$AR
7767   # Extract the first word of "ar", so it can be a program name with args.
7768 set dummy ar; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -n "$ac_ct_AR"; then
7775   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_prog_ac_ct_AR="ar"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7795 if test -n "$ac_ct_AR"; then
7796   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7797 echo "${ECHO_T}$ac_ct_AR" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803   if test "x$ac_ct_AR" = x; then
7804     AR="false"
7805   else
7806     case $cross_compiling:$ac_tool_warned in
7807 yes:)
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet.  If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet.  If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816     AR=$ac_ct_AR
7817   fi
7818 else
7819   AR="$ac_cv_prog_AR"
7820 fi
7821
7822 if test -n "$ac_tool_prefix"; then
7823   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   if test -n "$RANLIB"; then
7831   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838   for ac_exec_ext in '' $ac_executable_extensions; do
7839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7853 echo "${ECHO_T}$RANLIB" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862   ac_ct_RANLIB=$RANLIB
7863   # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   if test -n "$ac_ct_RANLIB"; then
7871   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876   IFS=$as_save_IFS
7877   test -z "$as_dir" && as_dir=.
7878   for ac_exec_ext in '' $ac_executable_extensions; do
7879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880     ac_cv_prog_ac_ct_RANLIB="ranlib"
7881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882     break 2
7883   fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7893 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7894 else
7895   { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7897 fi
7898
7899   if test "x$ac_ct_RANLIB" = x; then
7900     RANLIB=":"
7901   else
7902     case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet.  If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&5
7907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet.  If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912     RANLIB=$ac_ct_RANLIB
7913   fi
7914 else
7915   RANLIB="$ac_cv_prog_RANLIB"
7916 fi
7917
7918 if test -n "$ac_tool_prefix"; then
7919   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}strip; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_prog_STRIP+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   if test -n "$STRIP"; then
7927   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934   for ac_exec_ext in '' $ac_executable_extensions; do
7935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 STRIP=$ac_cv_prog_STRIP
7947 if test -n "$STRIP"; then
7948   { echo "$as_me:$LINENO: result: $STRIP" >&5
7949 echo "${ECHO_T}$STRIP" >&6; }
7950 else
7951   { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7953 fi
7954
7955
7956 fi
7957 if test -z "$ac_cv_prog_STRIP"; then
7958   ac_ct_STRIP=$STRIP
7959   # Extract the first word of "strip", so it can be a program name with args.
7960 set dummy strip; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   if test -n "$ac_ct_STRIP"; then
7967   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972   IFS=$as_save_IFS
7973   test -z "$as_dir" && as_dir=.
7974   for ac_exec_ext in '' $ac_executable_extensions; do
7975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976     ac_cv_prog_ac_ct_STRIP="strip"
7977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978     break 2
7979   fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7987 if test -n "$ac_ct_STRIP"; then
7988   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7989 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7990 else
7991   { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7993 fi
7994
7995   if test "x$ac_ct_STRIP" = x; then
7996     STRIP=":"
7997   else
7998     case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8001 whose name does not start with the host triplet.  If you think this
8002 configuration is useful to you, please write to autoconf@gnu.org." >&5
8003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8004 whose name does not start with the host triplet.  If you think this
8005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008     STRIP=$ac_ct_STRIP
8009   fi
8010 else
8011   STRIP="$ac_cv_prog_STRIP"
8012 fi
8013
8014
8015 old_CC="$CC"
8016 old_CFLAGS="$CFLAGS"
8017
8018 # Set sane defaults for various variables
8019 test -z "$AR" && AR=ar
8020 test -z "$AR_FLAGS" && AR_FLAGS=cru
8021 test -z "$AS" && AS=as
8022 test -z "$CC" && CC=cc
8023 test -z "$LTCC" && LTCC=$CC
8024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8026 test -z "$LD" && LD=ld
8027 test -z "$LN_S" && LN_S="ln -s"
8028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8029 test -z "$NM" && NM=nm
8030 test -z "$SED" && SED=sed
8031 test -z "$OBJDUMP" && OBJDUMP=objdump
8032 test -z "$RANLIB" && RANLIB=:
8033 test -z "$STRIP" && STRIP=:
8034 test -z "$ac_objext" && ac_objext=o
8035
8036 # Determine commands to create old-style static archives.
8037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8038 old_postinstall_cmds='chmod 644 $oldlib'
8039 old_postuninstall_cmds=
8040
8041 if test -n "$RANLIB"; then
8042   case $host_os in
8043   openbsd*)
8044     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8045     ;;
8046   *)
8047     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8048     ;;
8049   esac
8050   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8051 fi
8052
8053 for cc_temp in $compiler""; do
8054   case $cc_temp in
8055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057     \-*) ;;
8058     *) break;;
8059   esac
8060 done
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8062
8063
8064 # Only perform the check for file, if the check method requires it
8065 case $deplibs_check_method in
8066 file_magic*)
8067   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8068     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   case $MAGIC_CMD in
8074 [\\/*] |  ?:[\\/]*)
8075   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8076   ;;
8077 *)
8078   lt_save_MAGIC_CMD="$MAGIC_CMD"
8079   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8080   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8081   for ac_dir in $ac_dummy; do
8082     IFS="$lt_save_ifs"
8083     test -z "$ac_dir" && ac_dir=.
8084     if test -f $ac_dir/${ac_tool_prefix}file; then
8085       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8086       if test -n "$file_magic_test_file"; then
8087         case $deplibs_check_method in
8088         "file_magic "*)
8089           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8090           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8092             $EGREP "$file_magic_regex" > /dev/null; then
8093             :
8094           else
8095             cat <<EOF 1>&2
8096
8097 *** Warning: the command libtool uses to detect shared libraries,
8098 *** $file_magic_cmd, produces output that libtool cannot recognize.
8099 *** The result is that libtool may fail to recognize shared libraries
8100 *** as such.  This will affect the creation of libtool libraries that
8101 *** depend on shared libraries, but programs linked with such libtool
8102 *** libraries will work regardless of this problem.  Nevertheless, you
8103 *** may want to report the problem to your system manager and/or to
8104 *** bug-libtool@gnu.org
8105
8106 EOF
8107           fi ;;
8108         esac
8109       fi
8110       break
8111     fi
8112   done
8113   IFS="$lt_save_ifs"
8114   MAGIC_CMD="$lt_save_MAGIC_CMD"
8115   ;;
8116 esac
8117 fi
8118
8119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if test -n "$MAGIC_CMD"; then
8121   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8122 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8123 else
8124   { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8126 fi
8127
8128 if test -z "$lt_cv_path_MAGIC_CMD"; then
8129   if test -n "$ac_tool_prefix"; then
8130     { echo "$as_me:$LINENO: checking for file" >&5
8131 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $MAGIC_CMD in
8136 [\\/*] |  ?:[\\/]*)
8137   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8138   ;;
8139 *)
8140   lt_save_MAGIC_CMD="$MAGIC_CMD"
8141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143   for ac_dir in $ac_dummy; do
8144     IFS="$lt_save_ifs"
8145     test -z "$ac_dir" && ac_dir=.
8146     if test -f $ac_dir/file; then
8147       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8148       if test -n "$file_magic_test_file"; then
8149         case $deplibs_check_method in
8150         "file_magic "*)
8151           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154             $EGREP "$file_magic_regex" > /dev/null; then
8155             :
8156           else
8157             cat <<EOF 1>&2
8158
8159 *** Warning: the command libtool uses to detect shared libraries,
8160 *** $file_magic_cmd, produces output that libtool cannot recognize.
8161 *** The result is that libtool may fail to recognize shared libraries
8162 *** as such.  This will affect the creation of libtool libraries that
8163 *** depend on shared libraries, but programs linked with such libtool
8164 *** libraries will work regardless of this problem.  Nevertheless, you
8165 *** may want to report the problem to your system manager and/or to
8166 *** bug-libtool@gnu.org
8167
8168 EOF
8169           fi ;;
8170         esac
8171       fi
8172       break
8173     fi
8174   done
8175   IFS="$lt_save_ifs"
8176   MAGIC_CMD="$lt_save_MAGIC_CMD"
8177   ;;
8178 esac
8179 fi
8180
8181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182 if test -n "$MAGIC_CMD"; then
8183   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8184 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8185 else
8186   { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8188 fi
8189
8190   else
8191     MAGIC_CMD=:
8192   fi
8193 fi
8194
8195   fi
8196   ;;
8197 esac
8198
8199 enable_dlopen=no
8200 enable_win32_dll=no
8201
8202 # Check whether --enable-libtool-lock was given.
8203 if test "${enable_libtool_lock+set}" = set; then
8204   enableval=$enable_libtool_lock;
8205 fi
8206
8207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8208
8209
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then
8212   withval=$with_pic; pic_mode="$withval"
8213 else
8214   pic_mode=default
8215 fi
8216
8217 test -z "$pic_mode" && pic_mode=default
8218
8219 # Use C for the default configuration in the libtool script
8220 tagname=
8221 lt_save_CC="$CC"
8222 ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228
8229 # Source file extension for C test sources.
8230 ac_ext=c
8231
8232 # Object file extension for compiled C test sources.
8233 objext=o
8234 objext=$objext
8235
8236 # Code to be used in simple compile tests
8237 lt_simple_compile_test_code="int some_variable = 0;\n"
8238
8239 # Code to be used in simple link tests
8240 lt_simple_link_test_code='int main(){return(0);}\n'
8241
8242
8243 # If no C compiler was specified, use CC.
8244 LTCC=${LTCC-"$CC"}
8245
8246 # If no C compiler flags were specified, use CFLAGS.
8247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8248
8249 # Allow CC to be a program name with arguments.
8250 compiler=$CC
8251
8252
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8258 $rm conftest*
8259
8260 ac_outfile=conftest.$ac_objext
8261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8264 $rm conftest*
8265
8266
8267
8268 lt_prog_compiler_no_builtin_flag=
8269
8270 if test "$GCC" = yes; then
8271   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8272
8273
8274 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   lt_cv_prog_compiler_rtti_exceptions=no
8280   ac_outfile=conftest.$ac_objext
8281    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8282    lt_compiler_flag="-fno-rtti -fno-exceptions"
8283    # Insert the option either (1) after the last *FLAGS variable, or
8284    # (2) before a word containing "conftest.", or (3) at the end.
8285    # Note that $ac_compile itself does not contain backslashes and begins
8286    # with a dollar sign (not a hyphen), so the echo should work correctly.
8287    # The option is referenced via a variable to avoid confusing sed.
8288    lt_compile=`echo "$ac_compile" | $SED \
8289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291    -e 's:$: $lt_compiler_flag:'`
8292    (eval echo "\"\$as_me:8292: $lt_compile\"" >&5)
8293    (eval "$lt_compile" 2>conftest.err)
8294    ac_status=$?
8295    cat conftest.err >&5
8296    echo "$as_me:8296: \$? = $ac_status" >&5
8297    if (exit $ac_status) && test -s "$ac_outfile"; then
8298      # The compiler can only warn and ignore the option if not recognized
8299      # So say no if there are warnings other than the usual output.
8300      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8301      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8302      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8303        lt_cv_prog_compiler_rtti_exceptions=yes
8304      fi
8305    fi
8306    $rm conftest*
8307
8308 fi
8309 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8310 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8311
8312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8313     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8314 else
8315     :
8316 fi
8317
8318 fi
8319
8320 lt_prog_compiler_wl=
8321 lt_prog_compiler_pic=
8322 lt_prog_compiler_static=
8323
8324 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8325 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8326
8327   if test "$GCC" = yes; then
8328     lt_prog_compiler_wl='-Wl,'
8329     lt_prog_compiler_static='-static'
8330
8331     case $host_os in
8332       aix*)
8333       # All AIX code is PIC.
8334       if test "$host_cpu" = ia64; then
8335         # AIX 5 now supports IA64 processor
8336         lt_prog_compiler_static='-Bstatic'
8337       fi
8338       ;;
8339
8340     amigaos*)
8341       # FIXME: we need at least 68020 code to build shared libraries, but
8342       # adding the `-m68020' flag to GCC prevents building anything better,
8343       # like `-m68040'.
8344       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8345       ;;
8346
8347     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8348       # PIC is the default for these OSes.
8349       ;;
8350
8351     mingw* | pw32* | os2*)
8352       # This hack is so that the source file can tell whether it is being
8353       # built for inclusion in a dll (and should export symbols for example).
8354       lt_prog_compiler_pic='-DDLL_EXPORT'
8355       ;;
8356
8357     darwin* | rhapsody*)
8358       # PIC is the default on this platform
8359       # Common symbols not allowed in MH_DYLIB files
8360       lt_prog_compiler_pic='-fno-common'
8361       ;;
8362
8363     interix3*)
8364       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8365       # Instead, we relocate shared libraries at runtime.
8366       ;;
8367
8368     msdosdjgpp*)
8369       # Just because we use GCC doesn't mean we suddenly get shared libraries
8370       # on systems that don't support them.
8371       lt_prog_compiler_can_build_shared=no
8372       enable_shared=no
8373       ;;
8374
8375     sysv4*MP*)
8376       if test -d /usr/nec; then
8377         lt_prog_compiler_pic=-Kconform_pic
8378       fi
8379       ;;
8380
8381     hpux*)
8382       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8383       # not for PA HP-UX.
8384       case $host_cpu in
8385       hppa*64*|ia64*)
8386         # +Z the default
8387         ;;
8388       *)
8389         lt_prog_compiler_pic='-fPIC'
8390         ;;
8391       esac
8392       ;;
8393
8394     *)
8395       lt_prog_compiler_pic='-fPIC'
8396       ;;
8397     esac
8398   else
8399     # PORTME Check for flag to pass linker flags through the system compiler.
8400     case $host_os in
8401     aix*)
8402       lt_prog_compiler_wl='-Wl,'
8403       if test "$host_cpu" = ia64; then
8404         # AIX 5 now supports IA64 processor
8405         lt_prog_compiler_static='-Bstatic'
8406       else
8407         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8408       fi
8409       ;;
8410       darwin*)
8411         # PIC is the default on this platform
8412         # Common symbols not allowed in MH_DYLIB files
8413        case $cc_basename in
8414          xlc*)
8415          lt_prog_compiler_pic='-qnocommon'
8416          lt_prog_compiler_wl='-Wl,'
8417          ;;
8418        esac
8419        ;;
8420
8421     mingw* | pw32* | os2*)
8422       # This hack is so that the source file can tell whether it is being
8423       # built for inclusion in a dll (and should export symbols for example).
8424       lt_prog_compiler_pic='-DDLL_EXPORT'
8425       ;;
8426
8427     hpux9* | hpux10* | hpux11*)
8428       lt_prog_compiler_wl='-Wl,'
8429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8430       # not for PA HP-UX.
8431       case $host_cpu in
8432       hppa*64*|ia64*)
8433         # +Z the default
8434         ;;
8435       *)
8436         lt_prog_compiler_pic='+Z'
8437         ;;
8438       esac
8439       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8440       lt_prog_compiler_static='${wl}-a ${wl}archive'
8441       ;;
8442
8443     irix5* | irix6* | nonstopux*)
8444       lt_prog_compiler_wl='-Wl,'
8445       # PIC (with -KPIC) is the default.
8446       lt_prog_compiler_static='-non_shared'
8447       ;;
8448
8449     newsos6)
8450       lt_prog_compiler_pic='-KPIC'
8451       lt_prog_compiler_static='-Bstatic'
8452       ;;
8453
8454     linux* | k*bsd*-gnu)
8455       case $cc_basename in
8456       icc* | ecc*)
8457         lt_prog_compiler_wl='-Wl,'
8458         lt_prog_compiler_pic='-KPIC'
8459         lt_prog_compiler_static='-static'
8460         ;;
8461       pgcc* | pgf77* | pgf90* | pgf95*)
8462         # Portland Group compilers (*not* the Pentium gcc compiler,
8463         # which looks to be a dead project)
8464         lt_prog_compiler_wl='-Wl,'
8465         lt_prog_compiler_pic='-fpic'
8466         lt_prog_compiler_static='-Bstatic'
8467         ;;
8468       ccc*)
8469         lt_prog_compiler_wl='-Wl,'
8470         # All Alpha code is PIC.
8471         lt_prog_compiler_static='-non_shared'
8472         ;;
8473       esac
8474       ;;
8475
8476     osf3* | osf4* | osf5*)
8477       lt_prog_compiler_wl='-Wl,'
8478       # All OSF/1 code is PIC.
8479       lt_prog_compiler_static='-non_shared'
8480       ;;
8481
8482     solaris*)
8483       lt_prog_compiler_pic='-KPIC'
8484       lt_prog_compiler_static='-Bstatic'
8485       case $cc_basename in
8486       f77* | f90* | f95*)
8487         lt_prog_compiler_wl='-Qoption ld ';;
8488       *)
8489         lt_prog_compiler_wl='-Wl,';;
8490       esac
8491       ;;
8492
8493     sunos4*)
8494       lt_prog_compiler_wl='-Qoption ld '
8495       lt_prog_compiler_pic='-PIC'
8496       lt_prog_compiler_static='-Bstatic'
8497       ;;
8498
8499     sysv4 | sysv4.2uw2* | sysv4.3*)
8500       lt_prog_compiler_wl='-Wl,'
8501       lt_prog_compiler_pic='-KPIC'
8502       lt_prog_compiler_static='-Bstatic'
8503       ;;
8504
8505     sysv4*MP*)
8506       if test -d /usr/nec ;then
8507         lt_prog_compiler_pic='-Kconform_pic'
8508         lt_prog_compiler_static='-Bstatic'
8509       fi
8510       ;;
8511
8512     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8513       lt_prog_compiler_wl='-Wl,'
8514       lt_prog_compiler_pic='-KPIC'
8515       lt_prog_compiler_static='-Bstatic'
8516       ;;
8517
8518     unicos*)
8519       lt_prog_compiler_wl='-Wl,'
8520       lt_prog_compiler_can_build_shared=no
8521       ;;
8522
8523     uts4*)
8524       lt_prog_compiler_pic='-pic'
8525       lt_prog_compiler_static='-Bstatic'
8526       ;;
8527
8528     *)
8529       lt_prog_compiler_can_build_shared=no
8530       ;;
8531     esac
8532   fi
8533
8534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8535 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8536
8537 #
8538 # Check to make sure the PIC flag actually works.
8539 #
8540 if test -n "$lt_prog_compiler_pic"; then
8541
8542 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8543 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8544 if test "${lt_prog_compiler_pic_works+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   lt_prog_compiler_pic_works=no
8548   ac_outfile=conftest.$ac_objext
8549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8550    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8551    # Insert the option either (1) after the last *FLAGS variable, or
8552    # (2) before a word containing "conftest.", or (3) at the end.
8553    # Note that $ac_compile itself does not contain backslashes and begins
8554    # with a dollar sign (not a hyphen), so the echo should work correctly.
8555    # The option is referenced via a variable to avoid confusing sed.
8556    lt_compile=`echo "$ac_compile" | $SED \
8557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559    -e 's:$: $lt_compiler_flag:'`
8560    (eval echo "\"\$as_me:8560: $lt_compile\"" >&5)
8561    (eval "$lt_compile" 2>conftest.err)
8562    ac_status=$?
8563    cat conftest.err >&5
8564    echo "$as_me:8564: \$? = $ac_status" >&5
8565    if (exit $ac_status) && test -s "$ac_outfile"; then
8566      # The compiler can only warn and ignore the option if not recognized
8567      # So say no if there are warnings other than the usual output.
8568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8571        lt_prog_compiler_pic_works=yes
8572      fi
8573    fi
8574    $rm conftest*
8575
8576 fi
8577 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8578 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8579
8580 if test x"$lt_prog_compiler_pic_works" = xyes; then
8581     case $lt_prog_compiler_pic in
8582      "" | " "*) ;;
8583      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8584      esac
8585 else
8586     lt_prog_compiler_pic=
8587      lt_prog_compiler_can_build_shared=no
8588 fi
8589
8590 fi
8591 case $host_os in
8592   # For platforms which do not support PIC, -DPIC is meaningless:
8593   *djgpp*)
8594     lt_prog_compiler_pic=
8595     ;;
8596   *)
8597     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8598     ;;
8599 esac
8600
8601 #
8602 # Check to make sure the static flag actually works.
8603 #
8604 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8605 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8606 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8607 if test "${lt_prog_compiler_static_works+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   lt_prog_compiler_static_works=no
8611    save_LDFLAGS="$LDFLAGS"
8612    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8613    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8615      # The linker can only warn and ignore the option if not recognized
8616      # So say no if there are warnings
8617      if test -s conftest.err; then
8618        # Append any errors to the config.log.
8619        cat conftest.err 1>&5
8620        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8621        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8622        if diff conftest.exp conftest.er2 >/dev/null; then
8623          lt_prog_compiler_static_works=yes
8624        fi
8625      else
8626        lt_prog_compiler_static_works=yes
8627      fi
8628    fi
8629    $rm conftest*
8630    LDFLAGS="$save_LDFLAGS"
8631
8632 fi
8633 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8635
8636 if test x"$lt_prog_compiler_static_works" = xyes; then
8637     :
8638 else
8639     lt_prog_compiler_static=
8640 fi
8641
8642
8643 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8644 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8645 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   lt_cv_prog_compiler_c_o=no
8649    $rm -r conftest 2>/dev/null
8650    mkdir conftest
8651    cd conftest
8652    mkdir out
8653    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655    lt_compiler_flag="-o out/conftest2.$ac_objext"
8656    # Insert the option either (1) after the last *FLAGS variable, or
8657    # (2) before a word containing "conftest.", or (3) at the end.
8658    # Note that $ac_compile itself does not contain backslashes and begins
8659    # with a dollar sign (not a hyphen), so the echo should work correctly.
8660    lt_compile=`echo "$ac_compile" | $SED \
8661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8663    -e 's:$: $lt_compiler_flag:'`
8664    (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
8665    (eval "$lt_compile" 2>out/conftest.err)
8666    ac_status=$?
8667    cat out/conftest.err >&5
8668    echo "$as_me:8668: \$? = $ac_status" >&5
8669    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8670    then
8671      # The compiler can only warn and ignore the option if not recognized
8672      # So say no if there are warnings
8673      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8674      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8675      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8676        lt_cv_prog_compiler_c_o=yes
8677      fi
8678    fi
8679    chmod u+w . 2>&5
8680    $rm conftest*
8681    # SGI C++ compiler will create directory out/ii_files/ for
8682    # template instantiation
8683    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8684    $rm out/* && rmdir out
8685    cd ..
8686    rmdir conftest
8687    $rm conftest*
8688
8689 fi
8690 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8691 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8692
8693
8694 hard_links="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696   # do not overwrite the value of need_locks provided by the user
8697   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8698 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8699   hard_links=yes
8700   $rm conftest*
8701   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702   touch conftest.a
8703   ln conftest.a conftest.b 2>&5 || hard_links=no
8704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705   { echo "$as_me:$LINENO: result: $hard_links" >&5
8706 echo "${ECHO_T}$hard_links" >&6; }
8707   if test "$hard_links" = no; then
8708     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8710     need_locks=warn
8711   fi
8712 else
8713   need_locks=no
8714 fi
8715
8716 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8718
8719   runpath_var=
8720   allow_undefined_flag=
8721   enable_shared_with_static_runtimes=no
8722   archive_cmds=
8723   archive_expsym_cmds=
8724   old_archive_From_new_cmds=
8725   old_archive_from_expsyms_cmds=
8726   export_dynamic_flag_spec=
8727   whole_archive_flag_spec=
8728   thread_safe_flag_spec=
8729   hardcode_libdir_flag_spec=
8730   hardcode_libdir_flag_spec_ld=
8731   hardcode_libdir_separator=
8732   hardcode_direct=no
8733   hardcode_minus_L=no
8734   hardcode_shlibpath_var=unsupported
8735   link_all_deplibs=unknown
8736   hardcode_automatic=no
8737   module_cmds=
8738   module_expsym_cmds=
8739   always_export_symbols=no
8740   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8741   # include_expsyms should be a list of space-separated symbols to be *always*
8742   # included in the symbol list
8743   include_expsyms=
8744   # exclude_expsyms can be an extended regexp of symbols to exclude
8745   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747   # as well as any symbol that contains `d'.
8748   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8749   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750   # platforms (ab)use it in PIC code, but their linkers get confused if
8751   # the symbol is explicitly referenced.  Since portable code cannot
8752   # rely on this symbol name, it's probably fine to never include it in
8753   # preloaded symbol tables.
8754   extract_expsyms_cmds=
8755   # Just being paranoid about ensuring that cc_basename is set.
8756   for cc_temp in $compiler""; do
8757   case $cc_temp in
8758     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8759     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8760     \-*) ;;
8761     *) break;;
8762   esac
8763 done
8764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8765
8766   case $host_os in
8767   cygwin* | mingw* | pw32*)
8768     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769     # When not using gcc, we currently assume that we are using
8770     # Microsoft Visual C++.
8771     if test "$GCC" != yes; then
8772       with_gnu_ld=no
8773     fi
8774     ;;
8775   interix*)
8776     # we just hope/assume this is gcc and not c89 (= MSVC++)
8777     with_gnu_ld=yes
8778     ;;
8779   openbsd*)
8780     with_gnu_ld=no
8781     ;;
8782   esac
8783
8784   ld_shlibs=yes
8785   if test "$with_gnu_ld" = yes; then
8786     # If archive_cmds runs LD, not CC, wlarc should be empty
8787     wlarc='${wl}'
8788
8789     # Set some defaults for GNU ld with shared library support. These
8790     # are reset later if shared libraries are not supported. Putting them
8791     # here allows them to be overridden if necessary.
8792     runpath_var=LD_RUN_PATH
8793     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8794     export_dynamic_flag_spec='${wl}--export-dynamic'
8795     # ancient GNU ld didn't support --whole-archive et. al.
8796     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8797         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8798       else
8799         whole_archive_flag_spec=
8800     fi
8801     supports_anon_versioning=no
8802     case `$LD -v 2>/dev/null` in
8803       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806       *\ 2.11.*) ;; # other 2.11 versions
8807       *) supports_anon_versioning=yes ;;
8808     esac
8809
8810     # See if GNU ld supports shared libraries.
8811     case $host_os in
8812     aix3* | aix4* | aix5*)
8813       # On AIX/PPC, the GNU linker is very broken
8814       if test "$host_cpu" != ia64; then
8815         ld_shlibs=no
8816         cat <<EOF 1>&2
8817
8818 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support.  If you
8821 *** really care for shared libraries, you may want to modify your PATH
8822 *** so that a non-GNU linker is found, and then restart.
8823
8824 EOF
8825       fi
8826       ;;
8827
8828     amigaos*)
8829       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)'
8830       hardcode_libdir_flag_spec='-L$libdir'
8831       hardcode_minus_L=yes
8832
8833       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8834       # that the semantics of dynamic libraries on AmigaOS, at least up
8835       # to version 4, is to share data among multiple programs linked
8836       # with the same dynamic library.  Since this doesn't match the
8837       # behavior of shared libraries on other platforms, we can't use
8838       # them.
8839       ld_shlibs=no
8840       ;;
8841
8842     beos*)
8843       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8844         allow_undefined_flag=unsupported
8845         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8846         # support --undefined.  This deserves some investigation.  FIXME
8847         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848       else
8849         ld_shlibs=no
8850       fi
8851       ;;
8852
8853     cygwin* | mingw* | pw32*)
8854       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8855       # as there is no search path for DLLs.
8856       hardcode_libdir_flag_spec='-L$libdir'
8857       allow_undefined_flag=unsupported
8858       always_export_symbols=no
8859       enable_shared_with_static_runtimes=yes
8860       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8861
8862       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8863         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864         # If the export-symbols file already is a .def file (1st line
8865         # is EXPORTS), use it as is; otherwise, prepend...
8866         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8867           cp $export_symbols $output_objdir/$soname.def;
8868         else
8869           echo EXPORTS > $output_objdir/$soname.def;
8870           cat $export_symbols >> $output_objdir/$soname.def;
8871         fi~
8872         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8873       else
8874         ld_shlibs=no
8875       fi
8876       ;;
8877
8878     interix3*)
8879       hardcode_direct=no
8880       hardcode_shlibpath_var=no
8881       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8882       export_dynamic_flag_spec='${wl}-E'
8883       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8884       # Instead, shared libraries are loaded at an image base (0x10000000 by
8885       # default) and relocated if they conflict, which is a slow very memory
8886       # consuming and fragmenting process.  To avoid this, we pick a random,
8887       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8888       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8889       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8890       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'
8891       ;;
8892
8893     linux* | k*bsd*-gnu)
8894       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8895         tmp_addflag=
8896         case $cc_basename,$host_cpu in
8897         pgcc*)                          # Portland Group C compiler
8898           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'
8899           tmp_addflag=' $pic_flag'
8900           ;;
8901         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8902           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'
8903           tmp_addflag=' $pic_flag -Mnomain' ;;
8904         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8905           tmp_addflag=' -i_dynamic' ;;
8906         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8907           tmp_addflag=' -i_dynamic -nofor_main' ;;
8908         ifc* | ifort*)                  # Intel Fortran compiler
8909           tmp_addflag=' -nofor_main' ;;
8910         esac
8911         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912
8913         if test $supports_anon_versioning = yes; then
8914           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8915   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8916   $echo "local: *; };" >> $output_objdir/$libname.ver~
8917           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8918         fi
8919         link_all_deplibs=no
8920       else
8921         ld_shlibs=no
8922       fi
8923       ;;
8924
8925     netbsd* | netbsdelf*-gnu)
8926       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8927         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8928         wlarc=
8929       else
8930         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8932       fi
8933       ;;
8934
8935     solaris*)
8936       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8937         ld_shlibs=no
8938         cat <<EOF 1>&2
8939
8940 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8941 *** create shared libraries on Solaris systems.  Therefore, libtool
8942 *** is disabling shared libraries support.  We urge you to upgrade GNU
8943 *** binutils to release 2.9.1 or newer.  Another option is to modify
8944 *** your PATH or compiler configuration so that the native linker is
8945 *** used, and then restart.
8946
8947 EOF
8948       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8949         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8951       else
8952         ld_shlibs=no
8953       fi
8954       ;;
8955
8956     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8957       case `$LD -v 2>&1` in
8958         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8959         ld_shlibs=no
8960         cat <<_LT_EOF 1>&2
8961
8962 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8963 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8964 *** is disabling shared libraries support.  We urge you to upgrade GNU
8965 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8968
8969 _LT_EOF
8970         ;;
8971         *)
8972           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8973             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8974             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8975             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8976           else
8977             ld_shlibs=no
8978           fi
8979         ;;
8980       esac
8981       ;;
8982
8983     sunos4*)
8984       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8985       wlarc=
8986       hardcode_direct=yes
8987       hardcode_shlibpath_var=no
8988       ;;
8989
8990     *)
8991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994       else
8995         ld_shlibs=no
8996       fi
8997       ;;
8998     esac
8999
9000     if test "$ld_shlibs" = no; then
9001       runpath_var=
9002       hardcode_libdir_flag_spec=
9003       export_dynamic_flag_spec=
9004       whole_archive_flag_spec=
9005     fi
9006   else
9007     # PORTME fill in a description of your system's linker (not GNU ld)
9008     case $host_os in
9009     aix3*)
9010       allow_undefined_flag=unsupported
9011       always_export_symbols=yes
9012       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'
9013       # Note: this linker hardcodes the directories in LIBPATH if there
9014       # are no directories specified by -L.
9015       hardcode_minus_L=yes
9016       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9017         # Neither direct hardcoding nor static linking is supported with a
9018         # broken collect2.
9019         hardcode_direct=unsupported
9020       fi
9021       ;;
9022
9023     aix4* | aix5*)
9024       if test "$host_cpu" = ia64; then
9025         # On IA64, the linker does run time linking by default, so we don't
9026         # have to do anything special.
9027         aix_use_runtimelinking=no
9028         exp_sym_flag='-Bexport'
9029         no_entry_flag=""
9030       else
9031         # If we're using GNU nm, then we don't want the "-C" option.
9032         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9033         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9034           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'
9035         else
9036           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'
9037         fi
9038         aix_use_runtimelinking=no
9039
9040         # Test if we are trying to use run time linking or normal
9041         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9042         # need to do runtime linking.
9043         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9044           for ld_flag in $LDFLAGS; do
9045           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9046             aix_use_runtimelinking=yes
9047             break
9048           fi
9049           done
9050           ;;
9051         esac
9052
9053         exp_sym_flag='-bexport'
9054         no_entry_flag='-bnoentry'
9055       fi
9056
9057       # When large executables or shared objects are built, AIX ld can
9058       # have problems creating the table of contents.  If linking a library
9059       # or program results in "error TOC overflow" add -mminimal-toc to
9060       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9061       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9062
9063       archive_cmds=''
9064       hardcode_direct=yes
9065       hardcode_libdir_separator=':'
9066       link_all_deplibs=yes
9067
9068       if test "$GCC" = yes; then
9069         case $host_os in aix4.[012]|aix4.[012].*)
9070         # We only want to do this on AIX 4.2 and lower, the check
9071         # below for broken collect2 doesn't work under 4.3+
9072           collect2name=`${CC} -print-prog-name=collect2`
9073           if test -f "$collect2name" && \
9074            strings "$collect2name" | grep resolve_lib_name >/dev/null
9075           then
9076           # We have reworked collect2
9077           hardcode_direct=yes
9078           else
9079           # We have old collect2
9080           hardcode_direct=unsupported
9081           # It fails to find uninstalled libraries when the uninstalled
9082           # path is not listed in the libpath.  Setting hardcode_minus_L
9083           # to unsupported forces relinking
9084           hardcode_minus_L=yes
9085           hardcode_libdir_flag_spec='-L$libdir'
9086           hardcode_libdir_separator=
9087           fi
9088           ;;
9089         esac
9090         shared_flag='-shared'
9091         if test "$aix_use_runtimelinking" = yes; then
9092           shared_flag="$shared_flag "'${wl}-G'
9093         fi
9094       else
9095         # not using gcc
9096         if test "$host_cpu" = ia64; then
9097         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9098         # chokes on -Wl,-G. The following line is correct:
9099           shared_flag='-G'
9100         else
9101           if test "$aix_use_runtimelinking" = yes; then
9102             shared_flag='${wl}-G'
9103           else
9104             shared_flag='${wl}-bM:SRE'
9105           fi
9106         fi
9107       fi
9108
9109       # It seems that -bexpall does not export symbols beginning with
9110       # underscore (_), so it is better to generate a list of symbols to export.
9111       always_export_symbols=yes
9112       if test "$aix_use_runtimelinking" = yes; then
9113         # Warning - without using the other runtime loading flags (-brtl),
9114         # -berok will link without error, but may produce a broken library.
9115         allow_undefined_flag='-berok'
9116        # Determine the default libpath from the value encoded in an empty executable.
9117        cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h.  */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h.  */
9123
9124 int
9125 main ()
9126 {
9127
9128   ;
9129   return 0;
9130 }
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (ac_try="$ac_link"
9134 case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_link") 2>conftest.er1
9140   ac_status=$?
9141   grep -v '^ *+' conftest.er1 >conftest.err
9142   rm -f conftest.er1
9143   cat conftest.err >&5
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); } && {
9146          test -z "$ac_c_werror_flag" ||
9147          test ! -s conftest.err
9148        } && test -s conftest$ac_exeext &&
9149        $as_test_x conftest$ac_exeext; then
9150
9151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9152 }'`
9153 # Check for a 64-bit object if we didn't find anything.
9154 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; }
9155 }'`; fi
9156 else
9157   echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160
9161 fi
9162
9163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9164       conftest$ac_exeext conftest.$ac_ext
9165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9166
9167        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9168         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"
9169        else
9170         if test "$host_cpu" = ia64; then
9171           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9172           allow_undefined_flag="-z nodefs"
9173           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"
9174         else
9175          # Determine the default libpath from the value encoded in an empty executable.
9176          cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182
9183 int
9184 main ()
9185 {
9186
9187   ;
9188   return 0;
9189 }
9190 _ACEOF
9191 rm -f conftest.$ac_objext conftest$ac_exeext
9192 if { (ac_try="$ac_link"
9193 case "(($ac_try" in
9194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195   *) ac_try_echo=$ac_try;;
9196 esac
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198   (eval "$ac_link") 2>conftest.er1
9199   ac_status=$?
9200   grep -v '^ *+' conftest.er1 >conftest.err
9201   rm -f conftest.er1
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } && {
9205          test -z "$ac_c_werror_flag" ||
9206          test ! -s conftest.err
9207        } && test -s conftest$ac_exeext &&
9208        $as_test_x conftest$ac_exeext; then
9209
9210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9211 }'`
9212 # Check for a 64-bit object if we didn't find anything.
9213 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; }
9214 }'`; fi
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219
9220 fi
9221
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223       conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9225
9226          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227           # Warning - without using the other run time loading flags,
9228           # -berok will link without error, but may produce a broken library.
9229           no_undefined_flag=' ${wl}-bernotok'
9230           allow_undefined_flag=' ${wl}-berok'
9231           # Exported symbols can be pulled into shared objects from archives
9232           whole_archive_flag_spec='$convenience'
9233           archive_cmds_need_lc=yes
9234           # This is similar to how AIX traditionally builds its shared libraries.
9235           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'
9236         fi
9237       fi
9238       ;;
9239
9240     amigaos*)
9241       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)'
9242       hardcode_libdir_flag_spec='-L$libdir'
9243       hardcode_minus_L=yes
9244       # see comment about different semantics on the GNU ld section
9245       ld_shlibs=no
9246       ;;
9247
9248     bsdi[45]*)
9249       export_dynamic_flag_spec=-rdynamic
9250       ;;
9251
9252     cygwin* | mingw* | pw32*)
9253       # When not using gcc, we currently assume that we are using
9254       # Microsoft Visual C++.
9255       # hardcode_libdir_flag_spec is actually meaningless, as there is
9256       # no search path for DLLs.
9257       hardcode_libdir_flag_spec=' '
9258       allow_undefined_flag=unsupported
9259       # Tell ltmain to make .lib files, not .a files.
9260       libext=lib
9261       # Tell ltmain to make .dll files, not .so files.
9262       shrext_cmds=".dll"
9263       # FIXME: Setting linknames here is a bad hack.
9264       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9265       # The linker will automatically build a .lib file if we build a DLL.
9266       old_archive_From_new_cmds='true'
9267       # FIXME: Should let the user specify the lib program.
9268       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9269       fix_srcfile_path='`cygpath -w "$srcfile"`'
9270       enable_shared_with_static_runtimes=yes
9271       ;;
9272
9273     darwin* | rhapsody*)
9274       case $host_os in
9275         rhapsody* | darwin1.[012])
9276          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9277          ;;
9278        *) # Darwin 1.3 on
9279          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9280            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9281          else
9282            case ${MACOSX_DEPLOYMENT_TARGET} in
9283              10.[012])
9284                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9285                ;;
9286              10.*)
9287                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9288                ;;
9289            esac
9290          fi
9291          ;;
9292       esac
9293       archive_cmds_need_lc=no
9294       hardcode_direct=no
9295       hardcode_automatic=yes
9296       hardcode_shlibpath_var=unsupported
9297       whole_archive_flag_spec=''
9298       link_all_deplibs=yes
9299     if test "$GCC" = yes ; then
9300         output_verbose_link_cmd='echo'
9301         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9302       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9303       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9304       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}'
9305       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}'
9306     else
9307       case $cc_basename in
9308         xlc*)
9309          output_verbose_link_cmd='echo'
9310          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9311          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9312           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9313          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}'
9314           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}'
9315           ;;
9316        *)
9317          ld_shlibs=no
9318           ;;
9319       esac
9320     fi
9321       ;;
9322
9323     dgux*)
9324       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325       hardcode_libdir_flag_spec='-L$libdir'
9326       hardcode_shlibpath_var=no
9327       ;;
9328
9329     freebsd1*)
9330       ld_shlibs=no
9331       ;;
9332
9333     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9334     # support.  Future versions do this automatically, but an explicit c++rt0.o
9335     # does not break anything, and helps significantly (at the cost of a little
9336     # extra space).
9337     freebsd2.2*)
9338       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9339       hardcode_libdir_flag_spec='-R$libdir'
9340       hardcode_direct=yes
9341       hardcode_shlibpath_var=no
9342       ;;
9343
9344     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9345     freebsd2*)
9346       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347       hardcode_direct=yes
9348       hardcode_minus_L=yes
9349       hardcode_shlibpath_var=no
9350       ;;
9351
9352     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9353     freebsd* | dragonfly*)
9354       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9355       hardcode_libdir_flag_spec='-R$libdir'
9356       hardcode_direct=yes
9357       hardcode_shlibpath_var=no
9358       ;;
9359
9360     hpux9*)
9361       if test "$GCC" = yes; then
9362         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'
9363       else
9364         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'
9365       fi
9366       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367       hardcode_libdir_separator=:
9368       hardcode_direct=yes
9369
9370       # hardcode_minus_L: Not really in the search PATH,
9371       # but as the default location of the library.
9372       hardcode_minus_L=yes
9373       export_dynamic_flag_spec='${wl}-E'
9374       ;;
9375
9376     hpux10*)
9377       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9378         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379       else
9380         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9381       fi
9382       if test "$with_gnu_ld" = no; then
9383         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384         hardcode_libdir_separator=:
9385
9386         hardcode_direct=yes
9387         export_dynamic_flag_spec='${wl}-E'
9388
9389         # hardcode_minus_L: Not really in the search PATH,
9390         # but as the default location of the library.
9391         hardcode_minus_L=yes
9392       fi
9393       ;;
9394
9395     hpux11*)
9396       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9397         case $host_cpu in
9398         hppa*64*)
9399           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400           ;;
9401         ia64*)
9402           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9403           ;;
9404         *)
9405           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406           ;;
9407         esac
9408       else
9409         case $host_cpu in
9410         hppa*64*)
9411           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412           ;;
9413         ia64*)
9414           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9415           ;;
9416         *)
9417           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418           ;;
9419         esac
9420       fi
9421       if test "$with_gnu_ld" = no; then
9422         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9423         hardcode_libdir_separator=:
9424
9425         case $host_cpu in
9426         hppa*64*|ia64*)
9427           hardcode_libdir_flag_spec_ld='+b $libdir'
9428           hardcode_direct=no
9429           hardcode_shlibpath_var=no
9430           ;;
9431         *)
9432           hardcode_direct=yes
9433           export_dynamic_flag_spec='${wl}-E'
9434
9435           # hardcode_minus_L: Not really in the search PATH,
9436           # but as the default location of the library.
9437           hardcode_minus_L=yes
9438           ;;
9439         esac
9440       fi
9441       ;;
9442
9443     irix5* | irix6* | nonstopux*)
9444       if test "$GCC" = yes; then
9445         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'
9446       else
9447         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'
9448         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9449       fi
9450       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451       hardcode_libdir_separator=:
9452       link_all_deplibs=yes
9453       ;;
9454
9455     netbsd* | netbsdelf*-gnu)
9456       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9457         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9458       else
9459         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9460       fi
9461       hardcode_libdir_flag_spec='-R$libdir'
9462       hardcode_direct=yes
9463       hardcode_shlibpath_var=no
9464       ;;
9465
9466     newsos6)
9467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_direct=yes
9469       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470       hardcode_libdir_separator=:
9471       hardcode_shlibpath_var=no
9472       ;;
9473
9474     openbsd*)
9475       hardcode_direct=yes
9476       hardcode_shlibpath_var=no
9477       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9479         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9480         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481         export_dynamic_flag_spec='${wl}-E'
9482       else
9483        case $host_os in
9484          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9485            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9486            hardcode_libdir_flag_spec='-R$libdir'
9487            ;;
9488          *)
9489            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9490            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9491            ;;
9492        esac
9493       fi
9494       ;;
9495
9496     os2*)
9497       hardcode_libdir_flag_spec='-L$libdir'
9498       hardcode_minus_L=yes
9499       allow_undefined_flag=unsupported
9500       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'
9501       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9502       ;;
9503
9504     osf3*)
9505       if test "$GCC" = yes; then
9506         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9507         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'
9508       else
9509         allow_undefined_flag=' -expect_unresolved \*'
9510         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'
9511       fi
9512       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513       hardcode_libdir_separator=:
9514       ;;
9515
9516     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9517       if test "$GCC" = yes; then
9518         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9519         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'
9520         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521       else
9522         allow_undefined_flag=' -expect_unresolved \*'
9523         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'
9524         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9525         $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'
9526
9527         # Both c and cxx compiler support -rpath directly
9528         hardcode_libdir_flag_spec='-rpath $libdir'
9529       fi
9530       hardcode_libdir_separator=:
9531       ;;
9532
9533     solaris*)
9534       no_undefined_flag=' -z text'
9535       if test "$GCC" = yes; then
9536         wlarc='${wl}'
9537         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9538         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9539           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9540       else
9541         wlarc=''
9542         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9544         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9545       fi
9546       hardcode_libdir_flag_spec='-R$libdir'
9547       hardcode_shlibpath_var=no
9548       case $host_os in
9549       solaris2.[0-5] | solaris2.[0-5].*) ;;
9550       *)
9551         # The compiler driver will combine linker options so we
9552         # cannot just pass the convience library names through
9553         # without $wl, iff we do not link with $LD.
9554         # Luckily, gcc supports the same syntax we need for Sun Studio.
9555         # Supported since Solaris 2.6 (maybe 2.5.1?)
9556         case $wlarc in
9557         '')
9558           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9559         *)
9560           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' ;;
9561         esac ;;
9562       esac
9563       link_all_deplibs=yes
9564       ;;
9565
9566     sunos4*)
9567       if test "x$host_vendor" = xsequent; then
9568         # Use $CC to link under sequent, because it throws in some extra .o
9569         # files that make .init and .fini sections work.
9570         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9571       else
9572         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9573       fi
9574       hardcode_libdir_flag_spec='-L$libdir'
9575       hardcode_direct=yes
9576       hardcode_minus_L=yes
9577       hardcode_shlibpath_var=no
9578       ;;
9579
9580     sysv4)
9581       case $host_vendor in
9582         sni)
9583           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9584           hardcode_direct=yes # is this really true???
9585         ;;
9586         siemens)
9587           ## LD is ld it makes a PLAMLIB
9588           ## CC just makes a GrossModule.
9589           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9590           reload_cmds='$CC -r -o $output$reload_objs'
9591           hardcode_direct=no
9592         ;;
9593         motorola)
9594           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9596         ;;
9597       esac
9598       runpath_var='LD_RUN_PATH'
9599       hardcode_shlibpath_var=no
9600       ;;
9601
9602     sysv4.3*)
9603       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604       hardcode_shlibpath_var=no
9605       export_dynamic_flag_spec='-Bexport'
9606       ;;
9607
9608     sysv4*MP*)
9609       if test -d /usr/nec; then
9610         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611         hardcode_shlibpath_var=no
9612         runpath_var=LD_RUN_PATH
9613         hardcode_runpath_var=yes
9614         ld_shlibs=yes
9615       fi
9616       ;;
9617
9618     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9619       no_undefined_flag='${wl}-z,text'
9620       archive_cmds_need_lc=no
9621       hardcode_shlibpath_var=no
9622       runpath_var='LD_RUN_PATH'
9623
9624       if test "$GCC" = yes; then
9625         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627       else
9628         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630       fi
9631       ;;
9632
9633     sysv5* | sco3.2v5* | sco5v6*)
9634       # Note: We can NOT use -z defs as we might desire, because we do not
9635       # link with -lc, and that would cause any symbols used from libc to
9636       # always be unresolved, which means just about no library would
9637       # ever link correctly.  If we're not using GNU ld we use -z text
9638       # though, which does catch some bad symbols but isn't as heavy-handed
9639       # as -z defs.
9640       no_undefined_flag='${wl}-z,text'
9641       allow_undefined_flag='${wl}-z,nodefs'
9642       archive_cmds_need_lc=no
9643       hardcode_shlibpath_var=no
9644       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9645       hardcode_libdir_separator=':'
9646       link_all_deplibs=yes
9647       export_dynamic_flag_spec='${wl}-Bexport'
9648       runpath_var='LD_RUN_PATH'
9649
9650       if test "$GCC" = yes; then
9651         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653       else
9654         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656       fi
9657       ;;
9658
9659     uts4*)
9660       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661       hardcode_libdir_flag_spec='-L$libdir'
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     *)
9666       ld_shlibs=no
9667       ;;
9668     esac
9669   fi
9670
9671 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9672 echo "${ECHO_T}$ld_shlibs" >&6; }
9673 test "$ld_shlibs" = no && can_build_shared=no
9674
9675 #
9676 # Do we need to explicitly link libc?
9677 #
9678 case "x$archive_cmds_need_lc" in
9679 x|xyes)
9680   # Assume -lc should be added
9681   archive_cmds_need_lc=yes
9682
9683   if test "$enable_shared" = yes && test "$GCC" = yes; then
9684     case $archive_cmds in
9685     *'~'*)
9686       # FIXME: we may have to deal with multi-command sequences.
9687       ;;
9688     '$CC '*)
9689       # Test whether the compiler implicitly links with -lc since on some
9690       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691       # to ld, don't add -lc before -lgcc.
9692       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9693 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9694       $rm conftest*
9695       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9696
9697       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698   (eval $ac_compile) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } 2>conftest.err; then
9702         soname=conftest
9703         lib=conftest
9704         libobjs=conftest.$ac_objext
9705         deplibs=
9706         wl=$lt_prog_compiler_wl
9707         pic_flag=$lt_prog_compiler_pic
9708         compiler_flags=-v
9709         linker_flags=-v
9710         verstring=
9711         output_objdir=.
9712         libname=conftest
9713         lt_save_allow_undefined_flag=$allow_undefined_flag
9714         allow_undefined_flag=
9715         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9716   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }
9720         then
9721           archive_cmds_need_lc=no
9722         else
9723           archive_cmds_need_lc=yes
9724         fi
9725         allow_undefined_flag=$lt_save_allow_undefined_flag
9726       else
9727         cat conftest.err 1>&5
9728       fi
9729       $rm conftest*
9730       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9731 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9732       ;;
9733     esac
9734   fi
9735   ;;
9736 esac
9737
9738 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9740 library_names_spec=
9741 libname_spec='lib$name'
9742 soname_spec=
9743 shrext_cmds=".so"
9744 postinstall_cmds=
9745 postuninstall_cmds=
9746 finish_cmds=
9747 finish_eval=
9748 shlibpath_var=
9749 shlibpath_overrides_runpath=unknown
9750 version_type=none
9751 dynamic_linker="$host_os ld.so"
9752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9753 if test "$GCC" = yes; then
9754   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9755   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9756     # if the path contains ";" then we assume it to be the separator
9757     # otherwise default to the standard path separator (i.e. ":") - it is
9758     # assumed that no part of a normal pathname contains ";" but that should
9759     # okay in the real world where ";" in dirpaths is itself problematic.
9760     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9761   else
9762     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9763   fi
9764 else
9765   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9766 fi
9767 need_lib_prefix=unknown
9768 hardcode_into_libs=no
9769
9770 # when you set need_version to no, make sure it does not cause -set_version
9771 # flags to be left without arguments
9772 need_version=unknown
9773
9774 case $host_os in
9775 aix3*)
9776   version_type=linux
9777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9778   shlibpath_var=LIBPATH
9779
9780   # AIX 3 has no versioning support, so we append a major version to the name.
9781   soname_spec='${libname}${release}${shared_ext}$major'
9782   ;;
9783
9784 aix4* | aix5*)
9785   version_type=linux
9786   need_lib_prefix=no
9787   need_version=no
9788   hardcode_into_libs=yes
9789   if test "$host_cpu" = ia64; then
9790     # AIX 5 supports IA64
9791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9792     shlibpath_var=LD_LIBRARY_PATH
9793   else
9794     # With GCC up to 2.95.x, collect2 would create an import file
9795     # for dependence libraries.  The import file would start with
9796     # the line `#! .'.  This would cause the generated library to
9797     # depend on `.', always an invalid library.  This was fixed in
9798     # development snapshots of GCC prior to 3.0.
9799     case $host_os in
9800       aix4 | aix4.[01] | aix4.[01].*)
9801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9802            echo ' yes '
9803            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9804         :
9805       else
9806         can_build_shared=no
9807       fi
9808       ;;
9809     esac
9810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9811     # soname into executable. Probably we can add versioning support to
9812     # collect2, so additional links can be useful in future.
9813     if test "$aix_use_runtimelinking" = yes; then
9814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9815       # instead of lib<name>.a to let people know that these are not
9816       # typical AIX shared libraries.
9817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818     else
9819       # We preserve .a as extension for shared libraries through AIX4.2
9820       # and later when we are not doing run time linking.
9821       library_names_spec='${libname}${release}.a $libname.a'
9822       soname_spec='${libname}${release}${shared_ext}$major'
9823     fi
9824     shlibpath_var=LIBPATH
9825   fi
9826   ;;
9827
9828 amigaos*)
9829   library_names_spec='$libname.ixlibrary $libname.a'
9830   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9831   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'
9832   ;;
9833
9834 beos*)
9835   library_names_spec='${libname}${shared_ext}'
9836   dynamic_linker="$host_os ld.so"
9837   shlibpath_var=LIBRARY_PATH
9838   ;;
9839
9840 bsdi[45]*)
9841   version_type=linux
9842   need_version=no
9843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844   soname_spec='${libname}${release}${shared_ext}$major'
9845   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9846   shlibpath_var=LD_LIBRARY_PATH
9847   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9848   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9849   # the default ld.so.conf also contains /usr/contrib/lib and
9850   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9851   # libtool to hard-code these into programs
9852   ;;
9853
9854 cygwin* | mingw* | pw32*)
9855   version_type=windows
9856   shrext_cmds=".dll"
9857   need_version=no
9858   need_lib_prefix=no
9859
9860   case $GCC,$host_os in
9861   yes,cygwin* | yes,mingw* | yes,pw32*)
9862     library_names_spec='$libname.dll.a'
9863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9864     postinstall_cmds='base_file=`basename \${file}`~
9865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9866       dldir=$destdir/`dirname \$dlpath`~
9867       test -d \$dldir || mkdir -p \$dldir~
9868       $install_prog $dir/$dlname \$dldir/$dlname~
9869       chmod a+x \$dldir/$dlname'
9870     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9871       dlpath=$dir/\$dldll~
9872        $rm \$dlpath'
9873     shlibpath_overrides_runpath=yes
9874
9875     case $host_os in
9876     cygwin*)
9877       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9878       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9879       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9880       ;;
9881     mingw*)
9882       # MinGW DLLs use traditional 'lib' prefix
9883       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9885       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9886         # It is most probably a Windows format PATH printed by
9887         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9888         # path with ; separators, and with drive letters. We can handle the
9889         # drive letters (cygwin fileutils understands them), so leave them,
9890         # especially as we might pass files found there to a mingw objdump,
9891         # which wouldn't understand a cygwinified path. Ahh.
9892         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9893       else
9894         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9895       fi
9896       ;;
9897     pw32*)
9898       # pw32 DLLs use 'pw' prefix rather than 'lib'
9899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9900       ;;
9901     esac
9902     ;;
9903
9904   *)
9905     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9906     ;;
9907   esac
9908   dynamic_linker='Win32 ld.exe'
9909   # FIXME: first we should search . and the directory the executable is in
9910   shlibpath_var=PATH
9911   ;;
9912
9913 darwin* | rhapsody*)
9914   dynamic_linker="$host_os dyld"
9915   version_type=darwin
9916   need_lib_prefix=no
9917   need_version=no
9918   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9919   soname_spec='${libname}${release}${major}$shared_ext'
9920   shlibpath_overrides_runpath=yes
9921   shlibpath_var=DYLD_LIBRARY_PATH
9922   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9923   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9924   if test "$GCC" = yes; then
9925     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"`
9926   else
9927     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9928   fi
9929   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9930   ;;
9931
9932 dgux*)
9933   version_type=linux
9934   need_lib_prefix=no
9935   need_version=no
9936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9937   soname_spec='${libname}${release}${shared_ext}$major'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   ;;
9940
9941 freebsd1*)
9942   dynamic_linker=no
9943   ;;
9944
9945 freebsd* | dragonfly*)
9946   # DragonFly does not have aout.  When/if they implement a new
9947   # versioning mechanism, adjust this.
9948   if test -x /usr/bin/objformat; then
9949     objformat=`/usr/bin/objformat`
9950   else
9951     case $host_os in
9952     freebsd[123]*) objformat=aout ;;
9953     *) objformat=elf ;;
9954     esac
9955   fi
9956   version_type=freebsd-$objformat
9957   case $version_type in
9958     freebsd-elf*)
9959       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960       need_version=no
9961       need_lib_prefix=no
9962       ;;
9963     freebsd-*)
9964       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9965       need_version=yes
9966       ;;
9967   esac
9968   shlibpath_var=LD_LIBRARY_PATH
9969   case $host_os in
9970   freebsd2*)
9971     shlibpath_overrides_runpath=yes
9972     ;;
9973   freebsd3.[01]* | freebsdelf3.[01]*)
9974     shlibpath_overrides_runpath=yes
9975     hardcode_into_libs=yes
9976     ;;
9977   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9978   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9979     shlibpath_overrides_runpath=no
9980     hardcode_into_libs=yes
9981     ;;
9982   freebsd*) # from 4.6 on
9983     shlibpath_overrides_runpath=yes
9984     hardcode_into_libs=yes
9985     ;;
9986   esac
9987   ;;
9988
9989 gnu*)
9990   version_type=linux
9991   need_lib_prefix=no
9992   need_version=no
9993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9994   soname_spec='${libname}${release}${shared_ext}$major'
9995   shlibpath_var=LD_LIBRARY_PATH
9996   hardcode_into_libs=yes
9997   ;;
9998
9999 hpux9* | hpux10* | hpux11*)
10000   # Give a soname corresponding to the major version so that dld.sl refuses to
10001   # link against other versions.
10002   version_type=sunos
10003   need_lib_prefix=no
10004   need_version=no
10005   case $host_cpu in
10006   ia64*)
10007     shrext_cmds='.so'
10008     hardcode_into_libs=yes
10009     dynamic_linker="$host_os dld.so"
10010     shlibpath_var=LD_LIBRARY_PATH
10011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013     soname_spec='${libname}${release}${shared_ext}$major'
10014     if test "X$HPUX_IA64_MODE" = X32; then
10015       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016     else
10017       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10018     fi
10019     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10020     ;;
10021    hppa*64*)
10022      shrext_cmds='.sl'
10023      hardcode_into_libs=yes
10024      dynamic_linker="$host_os dld.sl"
10025      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028      soname_spec='${libname}${release}${shared_ext}$major'
10029      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10031      ;;
10032    *)
10033     shrext_cmds='.sl'
10034     dynamic_linker="$host_os dld.sl"
10035     shlibpath_var=SHLIB_PATH
10036     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038     soname_spec='${libname}${release}${shared_ext}$major'
10039     ;;
10040   esac
10041   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10042   postinstall_cmds='chmod 555 $lib'
10043   ;;
10044
10045 interix3*)
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10050   soname_spec='${libname}${release}${shared_ext}$major'
10051   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10052   shlibpath_var=LD_LIBRARY_PATH
10053   shlibpath_overrides_runpath=no
10054   hardcode_into_libs=yes
10055   ;;
10056
10057 irix5* | irix6* | nonstopux*)
10058   case $host_os in
10059     nonstopux*) version_type=nonstopux ;;
10060     *)
10061         if test "$lt_cv_prog_gnu_ld" = yes; then
10062                 version_type=linux
10063         else
10064                 version_type=irix
10065         fi ;;
10066   esac
10067   need_lib_prefix=no
10068   need_version=no
10069   soname_spec='${libname}${release}${shared_ext}$major'
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10071   case $host_os in
10072   irix5* | nonstopux*)
10073     libsuff= shlibsuff=
10074     ;;
10075   *)
10076     case $LD in # libtool.m4 will add one of these switches to LD
10077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10078       libsuff= shlibsuff= libmagic=32-bit;;
10079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10080       libsuff=32 shlibsuff=N32 libmagic=N32;;
10081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10083     *) libsuff= shlibsuff= libmagic=never-match;;
10084     esac
10085     ;;
10086   esac
10087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10088   shlibpath_overrides_runpath=no
10089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 # No shared lib support for Linux oldld, aout, or coff.
10095 linux*oldld* | linux*aout* | linux*coff*)
10096   dynamic_linker=no
10097   ;;
10098
10099 # This must be Linux ELF.
10100 linux* | k*bsd*-gnu)
10101   version_type=linux
10102   need_lib_prefix=no
10103   need_version=no
10104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105   soname_spec='${libname}${release}${shared_ext}$major'
10106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10107   shlibpath_var=LD_LIBRARY_PATH
10108   shlibpath_overrides_runpath=no
10109   # This implies no fast_install, which is unacceptable.
10110   # Some rework will be needed to allow for fast_install
10111   # before this can be enabled.
10112   hardcode_into_libs=yes
10113
10114   # Append ld.so.conf contents to the search path
10115   if test -f /etc/ld.so.conf; then
10116     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' ' '`
10117     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10118   fi
10119
10120   # We used to test for /lib/ld.so.1 and disable shared libraries on
10121   # powerpc, because MkLinux only supported shared libraries with the
10122   # GNU dynamic linker.  Since this was broken with cross compilers,
10123   # most powerpc-linux boxes support dynamic linking these days and
10124   # people can always --disable-shared, the test was removed, and we
10125   # assume the GNU/Linux dynamic linker is in use.
10126   dynamic_linker='GNU/Linux ld.so'
10127   ;;
10128
10129 netbsdelf*-gnu)
10130   version_type=linux
10131   need_lib_prefix=no
10132   need_version=no
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   shlibpath_overrides_runpath=no
10137   hardcode_into_libs=yes
10138   dynamic_linker='NetBSD ld.elf_so'
10139   ;;
10140
10141 netbsd*)
10142   version_type=sunos
10143   need_lib_prefix=no
10144   need_version=no
10145   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10146     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10147     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10148     dynamic_linker='NetBSD (a.out) ld.so'
10149   else
10150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151     soname_spec='${libname}${release}${shared_ext}$major'
10152     dynamic_linker='NetBSD ld.elf_so'
10153   fi
10154   shlibpath_var=LD_LIBRARY_PATH
10155   shlibpath_overrides_runpath=yes
10156   hardcode_into_libs=yes
10157   ;;
10158
10159 newsos6)
10160   version_type=linux
10161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   shlibpath_overrides_runpath=yes
10164   ;;
10165
10166 nto-qnx*)
10167   version_type=linux
10168   need_lib_prefix=no
10169   need_version=no
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171   soname_spec='${libname}${release}${shared_ext}$major'
10172   shlibpath_var=LD_LIBRARY_PATH
10173   shlibpath_overrides_runpath=yes
10174   ;;
10175
10176 openbsd*)
10177   version_type=sunos
10178   sys_lib_dlsearch_path_spec="/usr/lib"
10179   need_lib_prefix=no
10180   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10181   case $host_os in
10182     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10183     *)                         need_version=no  ;;
10184   esac
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10186   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10189     case $host_os in
10190       openbsd2.[89] | openbsd2.[89].*)
10191         shlibpath_overrides_runpath=no
10192         ;;
10193       *)
10194         shlibpath_overrides_runpath=yes
10195         ;;
10196       esac
10197   else
10198     shlibpath_overrides_runpath=yes
10199   fi
10200   ;;
10201
10202 os2*)
10203   libname_spec='$name'
10204   shrext_cmds=".dll"
10205   need_lib_prefix=no
10206   library_names_spec='$libname${shared_ext} $libname.a'
10207   dynamic_linker='OS/2 ld.exe'
10208   shlibpath_var=LIBPATH
10209   ;;
10210
10211 osf3* | osf4* | osf5*)
10212   version_type=osf
10213   need_lib_prefix=no
10214   need_version=no
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10219   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10220   ;;
10221
10222 solaris*)
10223   version_type=linux
10224   need_lib_prefix=no
10225   need_version=no
10226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227   soname_spec='${libname}${release}${shared_ext}$major'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   shlibpath_overrides_runpath=yes
10230   hardcode_into_libs=yes
10231   # ldd complains unless libraries are executable
10232   postinstall_cmds='chmod +x $lib'
10233   ;;
10234
10235 sunos4*)
10236   version_type=sunos
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   if test "$with_gnu_ld" = yes; then
10242     need_lib_prefix=no
10243   fi
10244   need_version=yes
10245   ;;
10246
10247 sysv4 | sysv4.3*)
10248   version_type=linux
10249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250   soname_spec='${libname}${release}${shared_ext}$major'
10251   shlibpath_var=LD_LIBRARY_PATH
10252   case $host_vendor in
10253     sni)
10254       shlibpath_overrides_runpath=no
10255       need_lib_prefix=no
10256       export_dynamic_flag_spec='${wl}-Blargedynsym'
10257       runpath_var=LD_RUN_PATH
10258       ;;
10259     siemens)
10260       need_lib_prefix=no
10261       ;;
10262     motorola)
10263       need_lib_prefix=no
10264       need_version=no
10265       shlibpath_overrides_runpath=no
10266       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10267       ;;
10268   esac
10269   ;;
10270
10271 sysv4*MP*)
10272   if test -d /usr/nec ;then
10273     version_type=linux
10274     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10275     soname_spec='$libname${shared_ext}.$major'
10276     shlibpath_var=LD_LIBRARY_PATH
10277   fi
10278   ;;
10279
10280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10281   version_type=freebsd-elf
10282   need_lib_prefix=no
10283   need_version=no
10284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10285   soname_spec='${libname}${release}${shared_ext}$major'
10286   shlibpath_var=LD_LIBRARY_PATH
10287   hardcode_into_libs=yes
10288   if test "$with_gnu_ld" = yes; then
10289     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10290     shlibpath_overrides_runpath=no
10291   else
10292     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10293     shlibpath_overrides_runpath=yes
10294     case $host_os in
10295       sco3.2v5*)
10296         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10297         ;;
10298     esac
10299   fi
10300   sys_lib_dlsearch_path_spec='/usr/lib'
10301   ;;
10302
10303 uts4*)
10304   version_type=linux
10305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306   soname_spec='${libname}${release}${shared_ext}$major'
10307   shlibpath_var=LD_LIBRARY_PATH
10308   ;;
10309
10310 *)
10311   dynamic_linker=no
10312   ;;
10313 esac
10314 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10315 echo "${ECHO_T}$dynamic_linker" >&6; }
10316 test "$dynamic_linker" = no && can_build_shared=no
10317
10318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10319 if test "$GCC" = yes; then
10320   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10321 fi
10322
10323 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10325 hardcode_action=
10326 if test -n "$hardcode_libdir_flag_spec" || \
10327    test -n "$runpath_var" || \
10328    test "X$hardcode_automatic" = "Xyes" ; then
10329
10330   # We can hardcode non-existant directories.
10331   if test "$hardcode_direct" != no &&
10332      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10333      # have to relink, otherwise we might link with an installed library
10334      # when we should be linking with a yet-to-be-installed one
10335      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10336      test "$hardcode_minus_L" != no; then
10337     # Linking always hardcodes the temporary library directory.
10338     hardcode_action=relink
10339   else
10340     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10341     hardcode_action=immediate
10342   fi
10343 else
10344   # We cannot hardcode anything, or else we can only hardcode existing
10345   # directories.
10346   hardcode_action=unsupported
10347 fi
10348 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10349 echo "${ECHO_T}$hardcode_action" >&6; }
10350
10351 if test "$hardcode_action" = relink; then
10352   # Fast installation is not supported
10353   enable_fast_install=no
10354 elif test "$shlibpath_overrides_runpath" = yes ||
10355      test "$enable_shared" = no; then
10356   # Fast installation is not necessary
10357   enable_fast_install=needless
10358 fi
10359
10360 striplib=
10361 old_striplib=
10362 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10363 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10364 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10365   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10366   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10367   { echo "$as_me:$LINENO: result: yes" >&5
10368 echo "${ECHO_T}yes" >&6; }
10369 else
10370 # FIXME - insert some real tests, host_os isn't really good enough
10371   case $host_os in
10372    darwin*)
10373        if test -n "$STRIP" ; then
10374          striplib="$STRIP -x"
10375          { echo "$as_me:$LINENO: result: yes" >&5
10376 echo "${ECHO_T}yes" >&6; }
10377        else
10378   { echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6; }
10380 fi
10381        ;;
10382    *)
10383   { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10385     ;;
10386   esac
10387 fi
10388
10389 if test "x$enable_dlopen" != xyes; then
10390   enable_dlopen=unknown
10391   enable_dlopen_self=unknown
10392   enable_dlopen_self_static=unknown
10393 else
10394   lt_cv_dlopen=no
10395   lt_cv_dlopen_libs=
10396
10397   case $host_os in
10398   beos*)
10399     lt_cv_dlopen="load_add_on"
10400     lt_cv_dlopen_libs=
10401     lt_cv_dlopen_self=yes
10402     ;;
10403
10404   mingw* | pw32*)
10405     lt_cv_dlopen="LoadLibrary"
10406     lt_cv_dlopen_libs=
10407    ;;
10408
10409   cygwin*)
10410     lt_cv_dlopen="dlopen"
10411     lt_cv_dlopen_libs=
10412    ;;
10413
10414   darwin*)
10415   # if libdl is installed we need to link against it
10416     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10417 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10418 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-ldl  $LIBS"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431    Use char because int might match the return type of a GCC
10432    builtin and then its argument prototype would still apply.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char dlopen ();
10437 int
10438 main ()
10439 {
10440 return dlopen ();
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452   (eval "$ac_link") 2>conftest.er1
10453   ac_status=$?
10454   grep -v '^ *+' conftest.er1 >conftest.err
10455   rm -f conftest.er1
10456   cat conftest.err >&5
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && {
10459          test -z "$ac_c_werror_flag" ||
10460          test ! -s conftest.err
10461        } && test -s conftest$ac_exeext &&
10462        $as_test_x conftest$ac_exeext; then
10463   ac_cv_lib_dl_dlopen=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468         ac_cv_lib_dl_dlopen=no
10469 fi
10470
10471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472       conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10474 fi
10475 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10476 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10477 if test $ac_cv_lib_dl_dlopen = yes; then
10478   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10479 else
10480
10481     lt_cv_dlopen="dyld"
10482     lt_cv_dlopen_libs=
10483     lt_cv_dlopen_self=yes
10484
10485 fi
10486
10487    ;;
10488
10489   *)
10490     { echo "$as_me:$LINENO: checking for shl_load" >&5
10491 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10492 if test "${ac_cv_func_shl_load+set}" = set; then
10493   echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495   cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h.  */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h.  */
10501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10503 #define shl_load innocuous_shl_load
10504
10505 /* System header to define __stub macros and hopefully few prototypes,
10506     which can conflict with char shl_load (); below.
10507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10508     <limits.h> exists even on freestanding compilers.  */
10509
10510 #ifdef __STDC__
10511 # include <limits.h>
10512 #else
10513 # include <assert.h>
10514 #endif
10515
10516 #undef shl_load
10517
10518 /* Override any GCC internal prototype to avoid an error.
10519    Use char because int might match the return type of a GCC
10520    builtin and then its argument prototype would still apply.  */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char shl_load ();
10525 /* The GNU C library defines this for functions which it implements
10526     to always fail with ENOSYS.  Some functions are actually named
10527     something starting with __ and the normal name is an alias.  */
10528 #if defined __stub_shl_load || defined __stub___shl_load
10529 choke me
10530 #endif
10531
10532 int
10533 main ()
10534 {
10535 return shl_load ();
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (ac_try="$ac_link"
10542 case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_link") 2>conftest.er1
10548   ac_status=$?
10549   grep -v '^ *+' conftest.er1 >conftest.err
10550   rm -f conftest.er1
10551   cat conftest.err >&5
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } && {
10554          test -z "$ac_c_werror_flag" ||
10555          test ! -s conftest.err
10556        } && test -s conftest$ac_exeext &&
10557        $as_test_x conftest$ac_exeext; then
10558   ac_cv_func_shl_load=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563         ac_cv_func_shl_load=no
10564 fi
10565
10566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10567       conftest$ac_exeext conftest.$ac_ext
10568 fi
10569 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10570 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10571 if test $ac_cv_func_shl_load = yes; then
10572   lt_cv_dlopen="shl_load"
10573 else
10574   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10575 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10576 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-ldld  $LIBS"
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587
10588 /* Override any GCC internal prototype to avoid an error.
10589    Use char because int might match the return type of a GCC
10590    builtin and then its argument prototype would still apply.  */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char shl_load ();
10595 int
10596 main ()
10597 {
10598 return shl_load ();
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607   *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610   (eval "$ac_link") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } && {
10617          test -z "$ac_c_werror_flag" ||
10618          test ! -s conftest.err
10619        } && test -s conftest$ac_exeext &&
10620        $as_test_x conftest$ac_exeext; then
10621   ac_cv_lib_dld_shl_load=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626         ac_cv_lib_dld_shl_load=no
10627 fi
10628
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630       conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10635 if test $ac_cv_lib_dld_shl_load = yes; then
10636   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10637 else
10638   { echo "$as_me:$LINENO: checking for dlopen" >&5
10639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10640 if test "${ac_cv_func_dlopen+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10651 #define dlopen innocuous_dlopen
10652
10653 /* System header to define __stub macros and hopefully few prototypes,
10654     which can conflict with char dlopen (); below.
10655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656     <limits.h> exists even on freestanding compilers.  */
10657
10658 #ifdef __STDC__
10659 # include <limits.h>
10660 #else
10661 # include <assert.h>
10662 #endif
10663
10664 #undef dlopen
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667    Use char because int might match the return type of a GCC
10668    builtin and then its argument prototype would still apply.  */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char dlopen ();
10673 /* The GNU C library defines this for functions which it implements
10674     to always fail with ENOSYS.  Some functions are actually named
10675     something starting with __ and the normal name is an alias.  */
10676 #if defined __stub_dlopen || defined __stub___dlopen
10677 choke me
10678 #endif
10679
10680 int
10681 main ()
10682 {
10683 return dlopen ();
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_link") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } && {
10702          test -z "$ac_c_werror_flag" ||
10703          test ! -s conftest.err
10704        } && test -s conftest$ac_exeext &&
10705        $as_test_x conftest$ac_exeext; then
10706   ac_cv_func_dlopen=yes
10707 else
10708   echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711         ac_cv_func_dlopen=no
10712 fi
10713
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715       conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10718 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10719 if test $ac_cv_func_dlopen = yes; then
10720   lt_cv_dlopen="dlopen"
10721 else
10722   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727   ac_check_lib_save_LIBS=$LIBS
10728 LIBS="-ldl  $LIBS"
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735
10736 /* Override any GCC internal prototype to avoid an error.
10737    Use char because int might match the return type of a GCC
10738    builtin and then its argument prototype would still apply.  */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char dlopen ();
10743 int
10744 main ()
10745 {
10746 return dlopen ();
10747   ;
10748   return 0;
10749 }
10750 _ACEOF
10751 rm -f conftest.$ac_objext conftest$ac_exeext
10752 if { (ac_try="$ac_link"
10753 case "(($ac_try" in
10754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755   *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758   (eval "$ac_link") 2>conftest.er1
10759   ac_status=$?
10760   grep -v '^ *+' conftest.er1 >conftest.err
10761   rm -f conftest.er1
10762   cat conftest.err >&5
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } && {
10765          test -z "$ac_c_werror_flag" ||
10766          test ! -s conftest.err
10767        } && test -s conftest$ac_exeext &&
10768        $as_test_x conftest$ac_exeext; then
10769   ac_cv_lib_dl_dlopen=yes
10770 else
10771   echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10773
10774         ac_cv_lib_dl_dlopen=no
10775 fi
10776
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778       conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10780 fi
10781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10782 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10783 if test $ac_cv_lib_dl_dlopen = yes; then
10784   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10785 else
10786   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10787 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10788 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   ac_check_lib_save_LIBS=$LIBS
10792 LIBS="-lsvld  $LIBS"
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799
10800 /* Override any GCC internal prototype to avoid an error.
10801    Use char because int might match the return type of a GCC
10802    builtin and then its argument prototype would still apply.  */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char dlopen ();
10807 int
10808 main ()
10809 {
10810 return dlopen ();
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (ac_try="$ac_link"
10817 case "(($ac_try" in
10818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819   *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822   (eval "$ac_link") 2>conftest.er1
10823   ac_status=$?
10824   grep -v '^ *+' conftest.er1 >conftest.err
10825   rm -f conftest.er1
10826   cat conftest.err >&5
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); } && {
10829          test -z "$ac_c_werror_flag" ||
10830          test ! -s conftest.err
10831        } && test -s conftest$ac_exeext &&
10832        $as_test_x conftest$ac_exeext; then
10833   ac_cv_lib_svld_dlopen=yes
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838         ac_cv_lib_svld_dlopen=no
10839 fi
10840
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842       conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10844 fi
10845 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10846 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10847 if test $ac_cv_lib_svld_dlopen = yes; then
10848   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10849 else
10850   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10851 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10852 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10853   echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855   ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-ldld  $LIBS"
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863
10864 /* Override any GCC internal prototype to avoid an error.
10865    Use char because int might match the return type of a GCC
10866    builtin and then its argument prototype would still apply.  */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char dld_link ();
10871 int
10872 main ()
10873 {
10874 return dld_link ();
10875   ;
10876   return 0;
10877 }
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
10881 case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_link") 2>conftest.er1
10887   ac_status=$?
10888   grep -v '^ *+' conftest.er1 >conftest.err
10889   rm -f conftest.er1
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } && {
10893          test -z "$ac_c_werror_flag" ||
10894          test ! -s conftest.err
10895        } && test -s conftest$ac_exeext &&
10896        $as_test_x conftest$ac_exeext; then
10897   ac_cv_lib_dld_dld_link=yes
10898 else
10899   echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10901
10902         ac_cv_lib_dld_dld_link=no
10903 fi
10904
10905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10906       conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10910 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10911 if test $ac_cv_lib_dld_dld_link = yes; then
10912   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10913 fi
10914
10915
10916 fi
10917
10918
10919 fi
10920
10921
10922 fi
10923
10924
10925 fi
10926
10927
10928 fi
10929
10930     ;;
10931   esac
10932
10933   if test "x$lt_cv_dlopen" != xno; then
10934     enable_dlopen=yes
10935   else
10936     enable_dlopen=no
10937   fi
10938
10939   case $lt_cv_dlopen in
10940   dlopen)
10941     save_CPPFLAGS="$CPPFLAGS"
10942     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10943
10944     save_LDFLAGS="$LDFLAGS"
10945     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10946
10947     save_LIBS="$LIBS"
10948     LIBS="$lt_cv_dlopen_libs $LIBS"
10949
10950     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10951 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10952 if test "${lt_cv_dlopen_self+set}" = set; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955           if test "$cross_compiling" = yes; then :
10956   lt_cv_dlopen_self=cross
10957 else
10958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10959   lt_status=$lt_dlunknown
10960   cat > conftest.$ac_ext <<EOF
10961 #line 10961 "configure"
10962 #include "confdefs.h"
10963
10964 #if HAVE_DLFCN_H
10965 #include <dlfcn.h>
10966 #endif
10967
10968 #include <stdio.h>
10969
10970 #ifdef RTLD_GLOBAL
10971 #  define LT_DLGLOBAL           RTLD_GLOBAL
10972 #else
10973 #  ifdef DL_GLOBAL
10974 #    define LT_DLGLOBAL         DL_GLOBAL
10975 #  else
10976 #    define LT_DLGLOBAL         0
10977 #  endif
10978 #endif
10979
10980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10981    find out it does not work in some platform. */
10982 #ifndef LT_DLLAZY_OR_NOW
10983 #  ifdef RTLD_LAZY
10984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10985 #  else
10986 #    ifdef DL_LAZY
10987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10988 #    else
10989 #      ifdef RTLD_NOW
10990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10991 #      else
10992 #        ifdef DL_NOW
10993 #          define LT_DLLAZY_OR_NOW      DL_NOW
10994 #        else
10995 #          define LT_DLLAZY_OR_NOW      0
10996 #        endif
10997 #      endif
10998 #    endif
10999 #  endif
11000 #endif
11001
11002 #ifdef __cplusplus
11003 extern "C" void exit (int);
11004 #endif
11005
11006 void fnord() { int i=42;}
11007 int main ()
11008 {
11009   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11010   int status = $lt_dlunknown;
11011
11012   if (self)
11013     {
11014       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11015       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016       /* dlclose (self); */
11017     }
11018   else
11019     puts (dlerror ());
11020
11021     exit (status);
11022 }
11023 EOF
11024   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025   (eval $ac_link) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11029     (./conftest; exit; ) >&5 2>/dev/null
11030     lt_status=$?
11031     case x$lt_status in
11032       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11033       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11034       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11035     esac
11036   else :
11037     # compilation failed
11038     lt_cv_dlopen_self=no
11039   fi
11040 fi
11041 rm -fr conftest*
11042
11043
11044 fi
11045 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11046 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11047
11048     if test "x$lt_cv_dlopen_self" = xyes; then
11049       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11050       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11051 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11052 if test "${lt_cv_dlopen_self_static+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055           if test "$cross_compiling" = yes; then :
11056   lt_cv_dlopen_self_static=cross
11057 else
11058   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11059   lt_status=$lt_dlunknown
11060   cat > conftest.$ac_ext <<EOF
11061 #line 11061 "configure"
11062 #include "confdefs.h"
11063
11064 #if HAVE_DLFCN_H
11065 #include <dlfcn.h>
11066 #endif
11067
11068 #include <stdio.h>
11069
11070 #ifdef RTLD_GLOBAL
11071 #  define LT_DLGLOBAL           RTLD_GLOBAL
11072 #else
11073 #  ifdef DL_GLOBAL
11074 #    define LT_DLGLOBAL         DL_GLOBAL
11075 #  else
11076 #    define LT_DLGLOBAL         0
11077 #  endif
11078 #endif
11079
11080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11081    find out it does not work in some platform. */
11082 #ifndef LT_DLLAZY_OR_NOW
11083 #  ifdef RTLD_LAZY
11084 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11085 #  else
11086 #    ifdef DL_LAZY
11087 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11088 #    else
11089 #      ifdef RTLD_NOW
11090 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11091 #      else
11092 #        ifdef DL_NOW
11093 #          define LT_DLLAZY_OR_NOW      DL_NOW
11094 #        else
11095 #          define LT_DLLAZY_OR_NOW      0
11096 #        endif
11097 #      endif
11098 #    endif
11099 #  endif
11100 #endif
11101
11102 #ifdef __cplusplus
11103 extern "C" void exit (int);
11104 #endif
11105
11106 void fnord() { int i=42;}
11107 int main ()
11108 {
11109   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11110   int status = $lt_dlunknown;
11111
11112   if (self)
11113     {
11114       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11115       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11116       /* dlclose (self); */
11117     }
11118   else
11119     puts (dlerror ());
11120
11121     exit (status);
11122 }
11123 EOF
11124   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11125   (eval $ac_link) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11129     (./conftest; exit; ) >&5 2>/dev/null
11130     lt_status=$?
11131     case x$lt_status in
11132       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11133       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11134       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11135     esac
11136   else :
11137     # compilation failed
11138     lt_cv_dlopen_self_static=no
11139   fi
11140 fi
11141 rm -fr conftest*
11142
11143
11144 fi
11145 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11147     fi
11148
11149     CPPFLAGS="$save_CPPFLAGS"
11150     LDFLAGS="$save_LDFLAGS"
11151     LIBS="$save_LIBS"
11152     ;;
11153   esac
11154
11155   case $lt_cv_dlopen_self in
11156   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11157   *) enable_dlopen_self=unknown ;;
11158   esac
11159
11160   case $lt_cv_dlopen_self_static in
11161   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11162   *) enable_dlopen_self_static=unknown ;;
11163   esac
11164 fi
11165
11166
11167 # Report which library types will actually be built
11168 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11169 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11170 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11171 echo "${ECHO_T}$can_build_shared" >&6; }
11172
11173 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11174 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11175 test "$can_build_shared" = "no" && enable_shared=no
11176
11177 # On AIX, shared libraries and static libraries use the same namespace, and
11178 # are all built from PIC.
11179 case $host_os in
11180 aix3*)
11181   test "$enable_shared" = yes && enable_static=no
11182   if test -n "$RANLIB"; then
11183     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184     postinstall_cmds='$RANLIB $lib'
11185   fi
11186   ;;
11187
11188 aix4* | aix5*)
11189   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190     test "$enable_shared" = yes && enable_static=no
11191   fi
11192     ;;
11193 esac
11194 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11195 echo "${ECHO_T}$enable_shared" >&6; }
11196
11197 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11198 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11199 # Make sure either enable_shared or enable_static is yes.
11200 test "$enable_shared" = yes || enable_static=yes
11201 { echo "$as_me:$LINENO: result: $enable_static" >&5
11202 echo "${ECHO_T}$enable_static" >&6; }
11203
11204 # The else clause should only fire when bootstrapping the
11205 # libtool distribution, otherwise you forgot to ship ltmain.sh
11206 # with your package, and you will get complaints that there are
11207 # no rules to generate ltmain.sh.
11208 if test -f "$ltmain"; then
11209   # See if we are running on zsh, and set the options which allow our commands through
11210   # without removal of \ escapes.
11211   if test -n "${ZSH_VERSION+set}" ; then
11212     setopt NO_GLOB_SUBST
11213   fi
11214   # Now quote all the things that may contain metacharacters while being
11215   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11216   # variables and quote the copies for generation of the libtool script.
11217   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11218     SED SHELL STRIP \
11219     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11220     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11221     deplibs_check_method reload_flag reload_cmds need_locks \
11222     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11223     lt_cv_sys_global_symbol_to_c_name_address \
11224     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11225     old_postinstall_cmds old_postuninstall_cmds \
11226     compiler \
11227     CC \
11228     LD \
11229     lt_prog_compiler_wl \
11230     lt_prog_compiler_pic \
11231     lt_prog_compiler_static \
11232     lt_prog_compiler_no_builtin_flag \
11233     export_dynamic_flag_spec \
11234     thread_safe_flag_spec \
11235     whole_archive_flag_spec \
11236     enable_shared_with_static_runtimes \
11237     old_archive_cmds \
11238     old_archive_from_new_cmds \
11239     predep_objects \
11240     postdep_objects \
11241     predeps \
11242     postdeps \
11243     compiler_lib_search_path \
11244     archive_cmds \
11245     archive_expsym_cmds \
11246     postinstall_cmds \
11247     postuninstall_cmds \
11248     old_archive_from_expsyms_cmds \
11249     allow_undefined_flag \
11250     no_undefined_flag \
11251     export_symbols_cmds \
11252     hardcode_libdir_flag_spec \
11253     hardcode_libdir_flag_spec_ld \
11254     hardcode_libdir_separator \
11255     hardcode_automatic \
11256     module_cmds \
11257     module_expsym_cmds \
11258     lt_cv_prog_compiler_c_o \
11259     exclude_expsyms \
11260     include_expsyms; do
11261
11262     case $var in
11263     old_archive_cmds | \
11264     old_archive_from_new_cmds | \
11265     archive_cmds | \
11266     archive_expsym_cmds | \
11267     module_cmds | \
11268     module_expsym_cmds | \
11269     old_archive_from_expsyms_cmds | \
11270     export_symbols_cmds | \
11271     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11272     postinstall_cmds | postuninstall_cmds | \
11273     old_postinstall_cmds | old_postuninstall_cmds | \
11274     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11275       # Double-quote double-evaled strings.
11276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11277       ;;
11278     *)
11279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11280       ;;
11281     esac
11282   done
11283
11284   case $lt_echo in
11285   *'\$0 --fallback-echo"')
11286     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11287     ;;
11288   esac
11289
11290 cfgfile="${ofile}T"
11291   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11292   $rm -f "$cfgfile"
11293   { echo "$as_me:$LINENO: creating $ofile" >&5
11294 echo "$as_me: creating $ofile" >&6;}
11295
11296   cat <<__EOF__ >> "$cfgfile"
11297 #! $SHELL
11298
11299 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11300 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11301 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11302 #
11303 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11304 # Free Software Foundation, Inc.
11305 #
11306 # This file is part of GNU Libtool:
11307 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11308 #
11309 # This program is free software; you can redistribute it and/or modify
11310 # it under the terms of the GNU General Public License as published by
11311 # the Free Software Foundation; either version 2 of the License, or
11312 # (at your option) any later version.
11313 #
11314 # This program is distributed in the hope that it will be useful, but
11315 # WITHOUT ANY WARRANTY; without even the implied warranty of
11316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11317 # General Public License for more details.
11318 #
11319 # You should have received a copy of the GNU General Public License
11320 # along with this program; if not, write to the Free Software
11321 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11322 #
11323 # As a special exception to the GNU General Public License, if you
11324 # distribute this file as part of a program that contains a
11325 # configuration script generated by Autoconf, you may include it under
11326 # the same distribution terms that you use for the rest of that program.
11327
11328 # A sed program that does not truncate output.
11329 SED=$lt_SED
11330
11331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11332 Xsed="$SED -e 1s/^X//"
11333
11334 # The HP-UX ksh and POSIX shell print the target directory to stdout
11335 # if CDPATH is set.
11336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11337
11338 # The names of the tagged configurations supported by this script.
11339 available_tags=
11340
11341 # ### BEGIN LIBTOOL CONFIG
11342
11343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11344
11345 # Shell to use when invoking shell scripts.
11346 SHELL=$lt_SHELL
11347
11348 # Whether or not to build shared libraries.
11349 build_libtool_libs=$enable_shared
11350
11351 # Whether or not to build static libraries.
11352 build_old_libs=$enable_static
11353
11354 # Whether or not to add -lc for building shared libraries.
11355 build_libtool_need_lc=$archive_cmds_need_lc
11356
11357 # Whether or not to disallow shared libs when runtime libs are static
11358 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11359
11360 # Whether or not to optimize for fast installation.
11361 fast_install=$enable_fast_install
11362
11363 # The host system.
11364 host_alias=$host_alias
11365 host=$host
11366 host_os=$host_os
11367
11368 # The build system.
11369 build_alias=$build_alias
11370 build=$build
11371 build_os=$build_os
11372
11373 # An echo program that does not interpret backslashes.
11374 echo=$lt_echo
11375
11376 # The archiver.
11377 AR=$lt_AR
11378 AR_FLAGS=$lt_AR_FLAGS
11379
11380 # A C compiler.
11381 LTCC=$lt_LTCC
11382
11383 # LTCC compiler flags.
11384 LTCFLAGS=$lt_LTCFLAGS
11385
11386 # A language-specific compiler.
11387 CC=$lt_compiler
11388
11389 # Is the compiler the GNU C compiler?
11390 with_gcc=$GCC
11391
11392 # An ERE matcher.
11393 EGREP=$lt_EGREP
11394
11395 # The linker used to build libraries.
11396 LD=$lt_LD
11397
11398 # Whether we need hard or soft links.
11399 LN_S=$lt_LN_S
11400
11401 # A BSD-compatible nm program.
11402 NM=$lt_NM
11403
11404 # A symbol stripping program
11405 STRIP=$lt_STRIP
11406
11407 # Used to examine libraries when file_magic_cmd begins "file"
11408 MAGIC_CMD=$MAGIC_CMD
11409
11410 # Used on cygwin: DLL creation program.
11411 DLLTOOL="$DLLTOOL"
11412
11413 # Used on cygwin: object dumper.
11414 OBJDUMP="$OBJDUMP"
11415
11416 # Used on cygwin: assembler.
11417 AS="$AS"
11418
11419 # The name of the directory that contains temporary libtool files.
11420 objdir=$objdir
11421
11422 # How to create reloadable object files.
11423 reload_flag=$lt_reload_flag
11424 reload_cmds=$lt_reload_cmds
11425
11426 # How to pass a linker flag through the compiler.
11427 wl=$lt_lt_prog_compiler_wl
11428
11429 # Object file suffix (normally "o").
11430 objext="$ac_objext"
11431
11432 # Old archive suffix (normally "a").
11433 libext="$libext"
11434
11435 # Shared library suffix (normally ".so").
11436 shrext_cmds='$shrext_cmds'
11437
11438 # Executable file suffix (normally "").
11439 exeext="$exeext"
11440
11441 # Additional compiler flags for building library objects.
11442 pic_flag=$lt_lt_prog_compiler_pic
11443 pic_mode=$pic_mode
11444
11445 # What is the maximum length of a command?
11446 max_cmd_len=$lt_cv_sys_max_cmd_len
11447
11448 # Does compiler simultaneously support -c and -o options?
11449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11450
11451 # Must we lock files when doing compilation?
11452 need_locks=$lt_need_locks
11453
11454 # Do we need the lib prefix for modules?
11455 need_lib_prefix=$need_lib_prefix
11456
11457 # Do we need a version for libraries?
11458 need_version=$need_version
11459
11460 # Whether dlopen is supported.
11461 dlopen_support=$enable_dlopen
11462
11463 # Whether dlopen of programs is supported.
11464 dlopen_self=$enable_dlopen_self
11465
11466 # Whether dlopen of statically linked programs is supported.
11467 dlopen_self_static=$enable_dlopen_self_static
11468
11469 # Compiler flag to prevent dynamic linking.
11470 link_static_flag=$lt_lt_prog_compiler_static
11471
11472 # Compiler flag to turn off builtin functions.
11473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11474
11475 # Compiler flag to allow reflexive dlopens.
11476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11477
11478 # Compiler flag to generate shared objects directly from archives.
11479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11480
11481 # Compiler flag to generate thread-safe objects.
11482 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11483
11484 # Library versioning type.
11485 version_type=$version_type
11486
11487 # Format of library name prefix.
11488 libname_spec=$lt_libname_spec
11489
11490 # List of archive names.  First name is the real one, the rest are links.
11491 # The last name is the one that the linker finds with -lNAME.
11492 library_names_spec=$lt_library_names_spec
11493
11494 # The coded name of the library, if different from the real name.
11495 soname_spec=$lt_soname_spec
11496
11497 # Commands used to build and install an old-style archive.
11498 RANLIB=$lt_RANLIB
11499 old_archive_cmds=$lt_old_archive_cmds
11500 old_postinstall_cmds=$lt_old_postinstall_cmds
11501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11502
11503 # Create an old-style archive from a shared archive.
11504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11505
11506 # Create a temporary old-style archive to link instead of a shared archive.
11507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11508
11509 # Commands used to build and install a shared archive.
11510 archive_cmds=$lt_archive_cmds
11511 archive_expsym_cmds=$lt_archive_expsym_cmds
11512 postinstall_cmds=$lt_postinstall_cmds
11513 postuninstall_cmds=$lt_postuninstall_cmds
11514
11515 # Commands used to build a loadable module (assumed same as above if empty)
11516 module_cmds=$lt_module_cmds
11517 module_expsym_cmds=$lt_module_expsym_cmds
11518
11519 # Commands to strip libraries.
11520 old_striplib=$lt_old_striplib
11521 striplib=$lt_striplib
11522
11523 # Dependencies to place before the objects being linked to create a
11524 # shared library.
11525 predep_objects=$lt_predep_objects
11526
11527 # Dependencies to place after the objects being linked to create a
11528 # shared library.
11529 postdep_objects=$lt_postdep_objects
11530
11531 # Dependencies to place before the objects being linked to create a
11532 # shared library.
11533 predeps=$lt_predeps
11534
11535 # Dependencies to place after the objects being linked to create a
11536 # shared library.
11537 postdeps=$lt_postdeps
11538
11539 # The library search path used internally by the compiler when linking
11540 # a shared library.
11541 compiler_lib_search_path=$lt_compiler_lib_search_path
11542
11543 # Method to check whether dependent libraries are shared objects.
11544 deplibs_check_method=$lt_deplibs_check_method
11545
11546 # Command to use when deplibs_check_method == file_magic.
11547 file_magic_cmd=$lt_file_magic_cmd
11548
11549 # Flag that allows shared libraries with undefined symbols to be built.
11550 allow_undefined_flag=$lt_allow_undefined_flag
11551
11552 # Flag that forces no undefined symbols.
11553 no_undefined_flag=$lt_no_undefined_flag
11554
11555 # Commands used to finish a libtool library installation in a directory.
11556 finish_cmds=$lt_finish_cmds
11557
11558 # Same as above, but a single script fragment to be evaled but not shown.
11559 finish_eval=$lt_finish_eval
11560
11561 # Take the output of nm and produce a listing of raw symbols and C names.
11562 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11563
11564 # Transform the output of nm in a proper C declaration
11565 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11566
11567 # Transform the output of nm in a C name address pair
11568 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11569
11570 # This is the shared library runtime path variable.
11571 runpath_var=$runpath_var
11572
11573 # This is the shared library path variable.
11574 shlibpath_var=$shlibpath_var
11575
11576 # Is shlibpath searched before the hard-coded library search path?
11577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11578
11579 # How to hardcode a shared library path into an executable.
11580 hardcode_action=$hardcode_action
11581
11582 # Whether we should hardcode library paths into libraries.
11583 hardcode_into_libs=$hardcode_into_libs
11584
11585 # Flag to hardcode \$libdir into a binary during linking.
11586 # This must work even if \$libdir does not exist.
11587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11588
11589 # If ld is used when linking, flag to hardcode \$libdir into
11590 # a binary during linking. This must work even if \$libdir does
11591 # not exist.
11592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11593
11594 # Whether we need a single -rpath flag with a separated argument.
11595 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11596
11597 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11598 # resulting binary.
11599 hardcode_direct=$hardcode_direct
11600
11601 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11602 # resulting binary.
11603 hardcode_minus_L=$hardcode_minus_L
11604
11605 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11606 # the resulting binary.
11607 hardcode_shlibpath_var=$hardcode_shlibpath_var
11608
11609 # Set to yes if building a shared library automatically hardcodes DIR into the library
11610 # and all subsequent libraries and executables linked against it.
11611 hardcode_automatic=$hardcode_automatic
11612
11613 # Variables whose values should be saved in libtool wrapper scripts and
11614 # restored at relink time.
11615 variables_saved_for_relink="$variables_saved_for_relink"
11616
11617 # Whether libtool must link a program against all its dependency libraries.
11618 link_all_deplibs=$link_all_deplibs
11619
11620 # Compile-time system search path for libraries
11621 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11622
11623 # Run-time system search path for libraries
11624 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11625
11626 # Fix the shell variable \$srcfile for the compiler.
11627 fix_srcfile_path="$fix_srcfile_path"
11628
11629 # Set to yes if exported symbols are required.
11630 always_export_symbols=$always_export_symbols
11631
11632 # The commands to list exported symbols.
11633 export_symbols_cmds=$lt_export_symbols_cmds
11634
11635 # The commands to extract the exported symbol list from a shared archive.
11636 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11637
11638 # Symbols that should not be listed in the preloaded symbols.
11639 exclude_expsyms=$lt_exclude_expsyms
11640
11641 # Symbols that must always be exported.
11642 include_expsyms=$lt_include_expsyms
11643
11644 # ### END LIBTOOL CONFIG
11645
11646 __EOF__
11647
11648
11649   case $host_os in
11650   aix3*)
11651     cat <<\EOF >> "$cfgfile"
11652
11653 # AIX sometimes has problems with the GCC collect2 program.  For some
11654 # reason, if we set the COLLECT_NAMES environment variable, the problems
11655 # vanish in a puff of smoke.
11656 if test "X${COLLECT_NAMES+set}" != Xset; then
11657   COLLECT_NAMES=
11658   export COLLECT_NAMES
11659 fi
11660 EOF
11661     ;;
11662   esac
11663
11664   # We use sed instead of cat because bash on DJGPP gets confused if
11665   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11666   # text mode, it properly converts lines to CR/LF.  This bash problem
11667   # is reportedly fixed, but why not run on old versions too?
11668   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11669
11670   mv -f "$cfgfile" "$ofile" || \
11671     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11672   chmod +x "$ofile"
11673
11674 else
11675   # If there is no Makefile yet, we rely on a make rule to execute
11676   # `config.status --recheck' to rerun these tests and create the
11677   # libtool script then.
11678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11679   if test -f "$ltmain_in"; then
11680     test -f Makefile && make "$ltmain"
11681   fi
11682 fi
11683
11684
11685 ac_ext=c
11686 ac_cpp='$CPP $CPPFLAGS'
11687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11690
11691 CC="$lt_save_CC"
11692
11693
11694 # Check whether --with-tags was given.
11695 if test "${with_tags+set}" = set; then
11696   withval=$with_tags; tagnames="$withval"
11697 fi
11698
11699
11700 if test -f "$ltmain" && test -n "$tagnames"; then
11701   if test ! -f "${ofile}"; then
11702     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11703 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11704   fi
11705
11706   if test -z "$LTCC"; then
11707     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11708     if test -z "$LTCC"; then
11709       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11710 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11711     else
11712       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11713 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11714     fi
11715   fi
11716   if test -z "$LTCFLAGS"; then
11717     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11718   fi
11719
11720   # Extract list of available tagged configurations in $ofile.
11721   # Note that this assumes the entire list is on one line.
11722   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11723
11724   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11725   for tagname in $tagnames; do
11726     IFS="$lt_save_ifs"
11727     # Check whether tagname contains only valid characters
11728     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11729     "") ;;
11730     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11731 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11732    { (exit 1); exit 1; }; }
11733         ;;
11734     esac
11735
11736     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11737     then
11738       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11739 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11740    { (exit 1); exit 1; }; }
11741     fi
11742
11743     # Update the list of available tags.
11744     if test -n "$tagname"; then
11745       echo appending configuration tag \"$tagname\" to $ofile
11746
11747       case $tagname in
11748       CXX)
11749         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11750             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11751             (test "X$CXX" != "Xg++"))) ; then
11752           ac_ext=cpp
11753 ac_cpp='$CXXCPP $CPPFLAGS'
11754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11757
11758
11759
11760
11761 archive_cmds_need_lc_CXX=no
11762 allow_undefined_flag_CXX=
11763 always_export_symbols_CXX=no
11764 archive_expsym_cmds_CXX=
11765 export_dynamic_flag_spec_CXX=
11766 hardcode_direct_CXX=no
11767 hardcode_libdir_flag_spec_CXX=
11768 hardcode_libdir_flag_spec_ld_CXX=
11769 hardcode_libdir_separator_CXX=
11770 hardcode_minus_L_CXX=no
11771 hardcode_shlibpath_var_CXX=unsupported
11772 hardcode_automatic_CXX=no
11773 module_cmds_CXX=
11774 module_expsym_cmds_CXX=
11775 link_all_deplibs_CXX=unknown
11776 old_archive_cmds_CXX=$old_archive_cmds
11777 no_undefined_flag_CXX=
11778 whole_archive_flag_spec_CXX=
11779 enable_shared_with_static_runtimes_CXX=no
11780
11781 # Dependencies to place before and after the object being linked:
11782 predep_objects_CXX=
11783 postdep_objects_CXX=
11784 predeps_CXX=
11785 postdeps_CXX=
11786 compiler_lib_search_path_CXX=
11787
11788 # Source file extension for C++ test sources.
11789 ac_ext=cpp
11790
11791 # Object file extension for compiled C++ test sources.
11792 objext=o
11793 objext_CXX=$objext
11794
11795 # Code to be used in simple compile tests
11796 lt_simple_compile_test_code="int some_variable = 0;\n"
11797
11798 # Code to be used in simple link tests
11799 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11800
11801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11802
11803 # If no C compiler was specified, use CC.
11804 LTCC=${LTCC-"$CC"}
11805
11806 # If no C compiler flags were specified, use CFLAGS.
11807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11808
11809 # Allow CC to be a program name with arguments.
11810 compiler=$CC
11811
11812
11813 # save warnings/boilerplate of simple test code
11814 ac_outfile=conftest.$ac_objext
11815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11817 _lt_compiler_boilerplate=`cat conftest.err`
11818 $rm conftest*
11819
11820 ac_outfile=conftest.$ac_objext
11821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11823 _lt_linker_boilerplate=`cat conftest.err`
11824 $rm conftest*
11825
11826
11827 # Allow CC to be a program name with arguments.
11828 lt_save_CC=$CC
11829 lt_save_LD=$LD
11830 lt_save_GCC=$GCC
11831 GCC=$GXX
11832 lt_save_with_gnu_ld=$with_gnu_ld
11833 lt_save_path_LD=$lt_cv_path_LD
11834 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11835   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11836 else
11837   $as_unset lt_cv_prog_gnu_ld
11838 fi
11839 if test -n "${lt_cv_path_LDCXX+set}"; then
11840   lt_cv_path_LD=$lt_cv_path_LDCXX
11841 else
11842   $as_unset lt_cv_path_LD
11843 fi
11844 test -z "${LDCXX+set}" || LD=$LDCXX
11845 CC=${CXX-"c++"}
11846 compiler=$CC
11847 compiler_CXX=$CC
11848 for cc_temp in $compiler""; do
11849   case $cc_temp in
11850     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11851     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11852     \-*) ;;
11853     *) break;;
11854   esac
11855 done
11856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11857
11858
11859 # We don't want -fno-exception wen compiling C++ code, so set the
11860 # no_builtin_flag separately
11861 if test "$GXX" = yes; then
11862   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11863 else
11864   lt_prog_compiler_no_builtin_flag_CXX=
11865 fi
11866
11867 if test "$GXX" = yes; then
11868   # Set up default GNU C++ configuration
11869
11870
11871 # Check whether --with-gnu-ld was given.
11872 if test "${with_gnu_ld+set}" = set; then
11873   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11874 else
11875   with_gnu_ld=no
11876 fi
11877
11878 ac_prog=ld
11879 if test "$GCC" = yes; then
11880   # Check if gcc -print-prog-name=ld gives a path.
11881   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11882 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11883   case $host in
11884   *-*-mingw*)
11885     # gcc leaves a trailing carriage return which upsets mingw
11886     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11887   *)
11888     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11889   esac
11890   case $ac_prog in
11891     # Accept absolute paths.
11892     [\\/]* | ?:[\\/]*)
11893       re_direlt='/[^/][^/]*/\.\./'
11894       # Canonicalize the pathname of ld
11895       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11896       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11897         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11898       done
11899       test -z "$LD" && LD="$ac_prog"
11900       ;;
11901   "")
11902     # If it fails, then pretend we aren't using GCC.
11903     ac_prog=ld
11904     ;;
11905   *)
11906     # If it is relative, then search for the first ld in PATH.
11907     with_gnu_ld=unknown
11908     ;;
11909   esac
11910 elif test "$with_gnu_ld" = yes; then
11911   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11912 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11913 else
11914   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11915 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11916 fi
11917 if test "${lt_cv_path_LD+set}" = set; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   if test -z "$LD"; then
11921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11922   for ac_dir in $PATH; do
11923     IFS="$lt_save_ifs"
11924     test -z "$ac_dir" && ac_dir=.
11925     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11926       lt_cv_path_LD="$ac_dir/$ac_prog"
11927       # Check to see if the program is GNU ld.  I'd rather use --version,
11928       # but apparently some variants of GNU ld only accept -v.
11929       # Break only if it was the GNU/non-GNU ld that we prefer.
11930       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11931       *GNU* | *'with BFD'*)
11932         test "$with_gnu_ld" != no && break
11933         ;;
11934       *)
11935         test "$with_gnu_ld" != yes && break
11936         ;;
11937       esac
11938     fi
11939   done
11940   IFS="$lt_save_ifs"
11941 else
11942   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11943 fi
11944 fi
11945
11946 LD="$lt_cv_path_LD"
11947 if test -n "$LD"; then
11948   { echo "$as_me:$LINENO: result: $LD" >&5
11949 echo "${ECHO_T}$LD" >&6; }
11950 else
11951   { echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6; }
11953 fi
11954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11956    { (exit 1); exit 1; }; }
11957 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11963 case `$LD -v 2>&1 </dev/null` in
11964 *GNU* | *'with BFD'*)
11965   lt_cv_prog_gnu_ld=yes
11966   ;;
11967 *)
11968   lt_cv_prog_gnu_ld=no
11969   ;;
11970 esac
11971 fi
11972 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11973 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11974 with_gnu_ld=$lt_cv_prog_gnu_ld
11975
11976
11977
11978   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11979   # archiving commands below assume that GNU ld is being used.
11980   if test "$with_gnu_ld" = yes; then
11981     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11982     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'
11983
11984     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11985     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11986
11987     # If archive_cmds runs LD, not CC, wlarc should be empty
11988     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11989     #     investigate it a little bit more. (MM)
11990     wlarc='${wl}'
11991
11992     # ancient GNU ld didn't support --whole-archive et. al.
11993     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11994         grep 'no-whole-archive' > /dev/null; then
11995       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11996     else
11997       whole_archive_flag_spec_CXX=
11998     fi
11999   else
12000     with_gnu_ld=no
12001     wlarc=
12002
12003     # A generic and very simple default shared library creation
12004     # command for GNU C++ for the case where it uses the native
12005     # linker, instead of GNU ld.  If possible, this setting should
12006     # overridden to take advantage of the native linker features on
12007     # the platform it is being used on.
12008     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12009   fi
12010
12011   # Commands to make compiler produce verbose output that lists
12012   # what "hidden" libraries, object files and flags are used when
12013   # linking a shared library.
12014   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12015
12016 else
12017   GXX=no
12018   with_gnu_ld=no
12019   wlarc=
12020 fi
12021
12022 # PORTME: fill in a description of your system's C++ link characteristics
12023 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12025 ld_shlibs_CXX=yes
12026 case $host_os in
12027   aix3*)
12028     # FIXME: insert proper C++ library support
12029     ld_shlibs_CXX=no
12030     ;;
12031   aix4* | aix5*)
12032     if test "$host_cpu" = ia64; then
12033       # On IA64, the linker does run time linking by default, so we don't
12034       # have to do anything special.
12035       aix_use_runtimelinking=no
12036       exp_sym_flag='-Bexport'
12037       no_entry_flag=""
12038     else
12039       aix_use_runtimelinking=no
12040
12041       # Test if we are trying to use run time linking or normal
12042       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12043       # need to do runtime linking.
12044       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12045         for ld_flag in $LDFLAGS; do
12046           case $ld_flag in
12047           *-brtl*)
12048             aix_use_runtimelinking=yes
12049             break
12050             ;;
12051           esac
12052         done
12053         ;;
12054       esac
12055
12056       exp_sym_flag='-bexport'
12057       no_entry_flag='-bnoentry'
12058     fi
12059
12060     # When large executables or shared objects are built, AIX ld can
12061     # have problems creating the table of contents.  If linking a library
12062     # or program results in "error TOC overflow" add -mminimal-toc to
12063     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12064     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12065
12066     archive_cmds_CXX=''
12067     hardcode_direct_CXX=yes
12068     hardcode_libdir_separator_CXX=':'
12069     link_all_deplibs_CXX=yes
12070
12071     if test "$GXX" = yes; then
12072       case $host_os in aix4.[012]|aix4.[012].*)
12073       # We only want to do this on AIX 4.2 and lower, the check
12074       # below for broken collect2 doesn't work under 4.3+
12075         collect2name=`${CC} -print-prog-name=collect2`
12076         if test -f "$collect2name" && \
12077            strings "$collect2name" | grep resolve_lib_name >/dev/null
12078         then
12079           # We have reworked collect2
12080           hardcode_direct_CXX=yes
12081         else
12082           # We have old collect2
12083           hardcode_direct_CXX=unsupported
12084           # It fails to find uninstalled libraries when the uninstalled
12085           # path is not listed in the libpath.  Setting hardcode_minus_L
12086           # to unsupported forces relinking
12087           hardcode_minus_L_CXX=yes
12088           hardcode_libdir_flag_spec_CXX='-L$libdir'
12089           hardcode_libdir_separator_CXX=
12090         fi
12091         ;;
12092       esac
12093       shared_flag='-shared'
12094       if test "$aix_use_runtimelinking" = yes; then
12095         shared_flag="$shared_flag "'${wl}-G'
12096       fi
12097     else
12098       # not using gcc
12099       if test "$host_cpu" = ia64; then
12100         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12101         # chokes on -Wl,-G. The following line is correct:
12102         shared_flag='-G'
12103       else
12104         if test "$aix_use_runtimelinking" = yes; then
12105           shared_flag='${wl}-G'
12106         else
12107           shared_flag='${wl}-bM:SRE'
12108         fi
12109       fi
12110     fi
12111
12112     # It seems that -bexpall does not export symbols beginning with
12113     # underscore (_), so it is better to generate a list of symbols to export.
12114     always_export_symbols_CXX=yes
12115     if test "$aix_use_runtimelinking" = yes; then
12116       # Warning - without using the other runtime loading flags (-brtl),
12117       # -berok will link without error, but may produce a broken library.
12118       allow_undefined_flag_CXX='-berok'
12119       # Determine the default libpath from the value encoded in an empty executable.
12120       cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126
12127 int
12128 main ()
12129 {
12130
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142   (eval "$ac_link") 2>conftest.er1
12143   ac_status=$?
12144   grep -v '^ *+' conftest.er1 >conftest.err
12145   rm -f conftest.er1
12146   cat conftest.err >&5
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } && {
12149          test -z "$ac_cxx_werror_flag" ||
12150          test ! -s conftest.err
12151        } && test -s conftest$ac_exeext &&
12152        $as_test_x conftest$ac_exeext; then
12153
12154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12155 }'`
12156 # Check for a 64-bit object if we didn't find anything.
12157 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; }
12158 }'`; fi
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163
12164 fi
12165
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167       conftest$ac_exeext conftest.$ac_ext
12168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12169
12170       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12171
12172       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"
12173      else
12174       if test "$host_cpu" = ia64; then
12175         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12176         allow_undefined_flag_CXX="-z nodefs"
12177         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"
12178       else
12179         # Determine the default libpath from the value encoded in an empty executable.
12180         cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h.  */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h.  */
12186
12187 int
12188 main ()
12189 {
12190
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } && {
12209          test -z "$ac_cxx_werror_flag" ||
12210          test ! -s conftest.err
12211        } && test -s conftest$ac_exeext &&
12212        $as_test_x conftest$ac_exeext; then
12213
12214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12215 }'`
12216 # Check for a 64-bit object if we didn't find anything.
12217 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; }
12218 }'`; fi
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227       conftest$ac_exeext conftest.$ac_ext
12228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12229
12230         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12231         # Warning - without using the other run time loading flags,
12232         # -berok will link without error, but may produce a broken library.
12233         no_undefined_flag_CXX=' ${wl}-bernotok'
12234         allow_undefined_flag_CXX=' ${wl}-berok'
12235         # Exported symbols can be pulled into shared objects from archives
12236         whole_archive_flag_spec_CXX='$convenience'
12237         archive_cmds_need_lc_CXX=yes
12238         # This is similar to how AIX traditionally builds its shared libraries.
12239         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'
12240       fi
12241     fi
12242     ;;
12243
12244   beos*)
12245     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12246       allow_undefined_flag_CXX=unsupported
12247       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12248       # support --undefined.  This deserves some investigation.  FIXME
12249       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250     else
12251       ld_shlibs_CXX=no
12252     fi
12253     ;;
12254
12255   chorus*)
12256     case $cc_basename in
12257       *)
12258         # FIXME: insert proper C++ library support
12259         ld_shlibs_CXX=no
12260         ;;
12261     esac
12262     ;;
12263
12264   cygwin* | mingw* | pw32*)
12265     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12266     # as there is no search path for DLLs.
12267     hardcode_libdir_flag_spec_CXX='-L$libdir'
12268     allow_undefined_flag_CXX=unsupported
12269     always_export_symbols_CXX=no
12270     enable_shared_with_static_runtimes_CXX=yes
12271
12272     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12273       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'
12274       # If the export-symbols file already is a .def file (1st line
12275       # is EXPORTS), use it as is; otherwise, prepend...
12276       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12277         cp $export_symbols $output_objdir/$soname.def;
12278       else
12279         echo EXPORTS > $output_objdir/$soname.def;
12280         cat $export_symbols >> $output_objdir/$soname.def;
12281       fi~
12282       $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'
12283     else
12284       ld_shlibs_CXX=no
12285     fi
12286   ;;
12287       darwin* | rhapsody*)
12288         case $host_os in
12289         rhapsody* | darwin1.[012])
12290          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12291          ;;
12292        *) # Darwin 1.3 on
12293          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12294            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12295          else
12296            case ${MACOSX_DEPLOYMENT_TARGET} in
12297              10.[012])
12298                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12299                ;;
12300              10.*)
12301                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12302                ;;
12303            esac
12304          fi
12305          ;;
12306         esac
12307       archive_cmds_need_lc_CXX=no
12308       hardcode_direct_CXX=no
12309       hardcode_automatic_CXX=yes
12310       hardcode_shlibpath_var_CXX=unsupported
12311       whole_archive_flag_spec_CXX=''
12312       link_all_deplibs_CXX=yes
12313
12314     if test "$GXX" = yes ; then
12315       lt_int_apple_cc_single_mod=no
12316       output_verbose_link_cmd='echo'
12317       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12318        lt_int_apple_cc_single_mod=yes
12319       fi
12320       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12321        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12322       else
12323           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'
12324         fi
12325         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12326         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12327           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12328             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}'
12329           else
12330             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}'
12331           fi
12332             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}'
12333       else
12334       case $cc_basename in
12335         xlc*)
12336          output_verbose_link_cmd='echo'
12337           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'
12338           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12339           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12340           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}'
12341           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}'
12342           ;;
12343        *)
12344          ld_shlibs_CXX=no
12345           ;;
12346       esac
12347       fi
12348         ;;
12349
12350   dgux*)
12351     case $cc_basename in
12352       ec++*)
12353         # FIXME: insert proper C++ library support
12354         ld_shlibs_CXX=no
12355         ;;
12356       ghcx*)
12357         # Green Hills C++ Compiler
12358         # FIXME: insert proper C++ library support
12359         ld_shlibs_CXX=no
12360         ;;
12361       *)
12362         # FIXME: insert proper C++ library support
12363         ld_shlibs_CXX=no
12364         ;;
12365     esac
12366     ;;
12367   freebsd[12]*)
12368     # C++ shared libraries reported to be fairly broken before switch to ELF
12369     ld_shlibs_CXX=no
12370     ;;
12371   freebsd-elf*)
12372     archive_cmds_need_lc_CXX=no
12373     ;;
12374   freebsd* | dragonfly*)
12375     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12376     # conventions
12377     ld_shlibs_CXX=yes
12378     ;;
12379   gnu*)
12380     ;;
12381   hpux9*)
12382     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12383     hardcode_libdir_separator_CXX=:
12384     export_dynamic_flag_spec_CXX='${wl}-E'
12385     hardcode_direct_CXX=yes
12386     hardcode_minus_L_CXX=yes # Not in the search PATH,
12387                                 # but as the default
12388                                 # location of the library.
12389
12390     case $cc_basename in
12391     CC*)
12392       # FIXME: insert proper C++ library support
12393       ld_shlibs_CXX=no
12394       ;;
12395     aCC*)
12396       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'
12397       # Commands to make compiler produce verbose output that lists
12398       # what "hidden" libraries, object files and flags are used when
12399       # linking a shared library.
12400       #
12401       # There doesn't appear to be a way to prevent this compiler from
12402       # explicitly linking system object files so we need to strip them
12403       # from the output so that they don't get included in the library
12404       # dependencies.
12405       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'
12406       ;;
12407     *)
12408       if test "$GXX" = yes; then
12409         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'
12410       else
12411         # FIXME: insert proper C++ library support
12412         ld_shlibs_CXX=no
12413       fi
12414       ;;
12415     esac
12416     ;;
12417   hpux10*|hpux11*)
12418     if test $with_gnu_ld = no; then
12419       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12420       hardcode_libdir_separator_CXX=:
12421
12422       case $host_cpu in
12423       hppa*64*|ia64*)
12424         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12425         ;;
12426       *)
12427         export_dynamic_flag_spec_CXX='${wl}-E'
12428         ;;
12429       esac
12430     fi
12431     case $host_cpu in
12432     hppa*64*|ia64*)
12433       hardcode_direct_CXX=no
12434       hardcode_shlibpath_var_CXX=no
12435       ;;
12436     *)
12437       hardcode_direct_CXX=yes
12438       hardcode_minus_L_CXX=yes # Not in the search PATH,
12439                                               # but as the default
12440                                               # location of the library.
12441       ;;
12442     esac
12443
12444     case $cc_basename in
12445       CC*)
12446         # FIXME: insert proper C++ library support
12447         ld_shlibs_CXX=no
12448         ;;
12449       aCC*)
12450         case $host_cpu in
12451         hppa*64*)
12452           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12453           ;;
12454         ia64*)
12455           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12456           ;;
12457         *)
12458           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12459           ;;
12460         esac
12461         # Commands to make compiler produce verbose output that lists
12462         # what "hidden" libraries, object files and flags are used when
12463         # linking a shared library.
12464         #
12465         # There doesn't appear to be a way to prevent this compiler from
12466         # explicitly linking system object files so we need to strip them
12467         # from the output so that they don't get included in the library
12468         # dependencies.
12469         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'
12470         ;;
12471       *)
12472         if test "$GXX" = yes; then
12473           if test $with_gnu_ld = no; then
12474             case $host_cpu in
12475             hppa*64*)
12476               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12477               ;;
12478             ia64*)
12479               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12480               ;;
12481             *)
12482               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'
12483               ;;
12484             esac
12485           fi
12486         else
12487           # FIXME: insert proper C++ library support
12488           ld_shlibs_CXX=no
12489         fi
12490         ;;
12491     esac
12492     ;;
12493   interix3*)
12494     hardcode_direct_CXX=no
12495     hardcode_shlibpath_var_CXX=no
12496     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12497     export_dynamic_flag_spec_CXX='${wl}-E'
12498     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12499     # Instead, shared libraries are loaded at an image base (0x10000000 by
12500     # default) and relocated if they conflict, which is a slow very memory
12501     # consuming and fragmenting process.  To avoid this, we pick a random,
12502     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12503     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12504     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'
12505     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'
12506     ;;
12507   irix5* | irix6*)
12508     case $cc_basename in
12509       CC*)
12510         # SGI C++
12511         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'
12512
12513         # Archives containing C++ object files must be created using
12514         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12515         # necessary to make sure instantiated templates are included
12516         # in the archive.
12517         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12518         ;;
12519       *)
12520         if test "$GXX" = yes; then
12521           if test "$with_gnu_ld" = no; then
12522             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'
12523           else
12524             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'
12525           fi
12526         fi
12527         link_all_deplibs_CXX=yes
12528         ;;
12529     esac
12530     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12531     hardcode_libdir_separator_CXX=:
12532     ;;
12533   linux* | k*bsd*-gnu)
12534     case $cc_basename in
12535       KCC*)
12536         # Kuck and Associates, Inc. (KAI) C++ Compiler
12537
12538         # KCC will only create a shared library if the output file
12539         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12540         # to its proper name (with version) after linking.
12541         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'
12542         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'
12543         # Commands to make compiler produce verbose output that lists
12544         # what "hidden" libraries, object files and flags are used when
12545         # linking a shared library.
12546         #
12547         # There doesn't appear to be a way to prevent this compiler from
12548         # explicitly linking system object files so we need to strip them
12549         # from the output so that they don't get included in the library
12550         # dependencies.
12551         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'
12552
12553         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12554         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12555
12556         # Archives containing C++ object files must be created using
12557         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12558         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12559         ;;
12560       icpc*)
12561         # Intel C++
12562         with_gnu_ld=yes
12563         # version 8.0 and above of icpc choke on multiply defined symbols
12564         # if we add $predep_objects and $postdep_objects, however 7.1 and
12565         # earlier do not add the objects themselves.
12566         case `$CC -V 2>&1` in
12567         *"Version 7."*)
12568           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12569           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'
12570           ;;
12571         *)  # Version 8.0 or newer
12572           tmp_idyn=
12573           case $host_cpu in
12574             ia64*) tmp_idyn=' -i_dynamic';;
12575           esac
12576           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577           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'
12578           ;;
12579         esac
12580         archive_cmds_need_lc_CXX=no
12581         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12582         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12583         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12584         ;;
12585       pgCC*)
12586         # Portland Group C++ compiler
12587         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12588         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'
12589
12590         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12591         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12592         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'
12593         ;;
12594       cxx*)
12595         # Compaq C++
12596         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12597         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'
12598
12599         runpath_var=LD_RUN_PATH
12600         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12601         hardcode_libdir_separator_CXX=:
12602
12603         # Commands to make compiler produce verbose output that lists
12604         # what "hidden" libraries, object files and flags are used when
12605         # linking a shared library.
12606         #
12607         # There doesn't appear to be a way to prevent this compiler from
12608         # explicitly linking system object files so we need to strip them
12609         # from the output so that they don't get included in the library
12610         # dependencies.
12611         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'
12612         ;;
12613     esac
12614     ;;
12615   lynxos*)
12616     # FIXME: insert proper C++ library support
12617     ld_shlibs_CXX=no
12618     ;;
12619   m88k*)
12620     # FIXME: insert proper C++ library support
12621     ld_shlibs_CXX=no
12622     ;;
12623   mvs*)
12624     case $cc_basename in
12625       cxx*)
12626         # FIXME: insert proper C++ library support
12627         ld_shlibs_CXX=no
12628         ;;
12629       *)
12630         # FIXME: insert proper C++ library support
12631         ld_shlibs_CXX=no
12632         ;;
12633     esac
12634     ;;
12635   netbsd* | netbsdelf*-gnu)
12636     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12637       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12638       wlarc=
12639       hardcode_libdir_flag_spec_CXX='-R$libdir'
12640       hardcode_direct_CXX=yes
12641       hardcode_shlibpath_var_CXX=no
12642     fi
12643     # Workaround some broken pre-1.5 toolchains
12644     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12645     ;;
12646   openbsd2*)
12647     # C++ shared libraries are fairly broken
12648     ld_shlibs_CXX=no
12649     ;;
12650   openbsd*)
12651     hardcode_direct_CXX=yes
12652     hardcode_shlibpath_var_CXX=no
12653     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12654     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12655     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12656       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12657       export_dynamic_flag_spec_CXX='${wl}-E'
12658       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12659     fi
12660     output_verbose_link_cmd='echo'
12661     ;;
12662   osf3*)
12663     case $cc_basename in
12664       KCC*)
12665         # Kuck and Associates, Inc. (KAI) C++ Compiler
12666
12667         # KCC will only create a shared library if the output file
12668         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12669         # to its proper name (with version) after linking.
12670         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'
12671
12672         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12673         hardcode_libdir_separator_CXX=:
12674
12675         # Archives containing C++ object files must be created using
12676         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12677         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12678
12679         ;;
12680       RCC*)
12681         # Rational C++ 2.4.1
12682         # FIXME: insert proper C++ library support
12683         ld_shlibs_CXX=no
12684         ;;
12685       cxx*)
12686         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12687         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'
12688
12689         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12690         hardcode_libdir_separator_CXX=:
12691
12692         # Commands to make compiler produce verbose output that lists
12693         # what "hidden" libraries, object files and flags are used when
12694         # linking a shared library.
12695         #
12696         # There doesn't appear to be a way to prevent this compiler from
12697         # explicitly linking system object files so we need to strip them
12698         # from the output so that they don't get included in the library
12699         # dependencies.
12700         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'
12701         ;;
12702       *)
12703         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12704           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12705           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'
12706
12707           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12708           hardcode_libdir_separator_CXX=:
12709
12710           # Commands to make compiler produce verbose output that lists
12711           # what "hidden" libraries, object files and flags are used when
12712           # linking a shared library.
12713           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12714
12715         else
12716           # FIXME: insert proper C++ library support
12717           ld_shlibs_CXX=no
12718         fi
12719         ;;
12720     esac
12721     ;;
12722   osf4* | osf5*)
12723     case $cc_basename in
12724       KCC*)
12725         # Kuck and Associates, Inc. (KAI) C++ Compiler
12726
12727         # KCC will only create a shared library if the output file
12728         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12729         # to its proper name (with version) after linking.
12730         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'
12731
12732         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12733         hardcode_libdir_separator_CXX=:
12734
12735         # Archives containing C++ object files must be created using
12736         # the KAI C++ compiler.
12737         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12738         ;;
12739       RCC*)
12740         # Rational C++ 2.4.1
12741         # FIXME: insert proper C++ library support
12742         ld_shlibs_CXX=no
12743         ;;
12744       cxx*)
12745         allow_undefined_flag_CXX=' -expect_unresolved \*'
12746         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'
12747         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12748           echo "-hidden">> $lib.exp~
12749           $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~
12750           $rm $lib.exp'
12751
12752         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12753         hardcode_libdir_separator_CXX=:
12754
12755         # Commands to make compiler produce verbose output that lists
12756         # what "hidden" libraries, object files and flags are used when
12757         # linking a shared library.
12758         #
12759         # There doesn't appear to be a way to prevent this compiler from
12760         # explicitly linking system object files so we need to strip them
12761         # from the output so that they don't get included in the library
12762         # dependencies.
12763         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'
12764         ;;
12765       *)
12766         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12767           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12768          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'
12769
12770           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12771           hardcode_libdir_separator_CXX=:
12772
12773           # Commands to make compiler produce verbose output that lists
12774           # what "hidden" libraries, object files and flags are used when
12775           # linking a shared library.
12776           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12777
12778         else
12779           # FIXME: insert proper C++ library support
12780           ld_shlibs_CXX=no
12781         fi
12782         ;;
12783     esac
12784     ;;
12785   psos*)
12786     # FIXME: insert proper C++ library support
12787     ld_shlibs_CXX=no
12788     ;;
12789   sunos4*)
12790     case $cc_basename in
12791       CC*)
12792         # Sun C++ 4.x
12793         # FIXME: insert proper C++ library support
12794         ld_shlibs_CXX=no
12795         ;;
12796       lcc*)
12797         # Lucid
12798         # FIXME: insert proper C++ library support
12799         ld_shlibs_CXX=no
12800         ;;
12801       *)
12802         # FIXME: insert proper C++ library support
12803         ld_shlibs_CXX=no
12804         ;;
12805     esac
12806     ;;
12807   solaris*)
12808     case $cc_basename in
12809       CC*)
12810         # Sun C++ 4.2, 5.x and Centerline C++
12811         archive_cmds_need_lc_CXX=yes
12812         no_undefined_flag_CXX=' -zdefs'
12813         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12814         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12815         $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'
12816
12817         hardcode_libdir_flag_spec_CXX='-R$libdir'
12818         hardcode_shlibpath_var_CXX=no
12819         case $host_os in
12820           solaris2.[0-5] | solaris2.[0-5].*) ;;
12821           *)
12822             # The C++ compiler is used as linker so we must use $wl
12823             # flag to pass the commands to the underlying system
12824             # linker. We must also pass each convience library through
12825             # to the system linker between allextract/defaultextract.
12826             # The C++ compiler will combine linker options so we
12827             # cannot just pass the convience library names through
12828             # without $wl.
12829             # Supported since Solaris 2.6 (maybe 2.5.1?)
12830             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'
12831             ;;
12832         esac
12833         link_all_deplibs_CXX=yes
12834
12835         output_verbose_link_cmd='echo'
12836
12837         # Archives containing C++ object files must be created using
12838         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12839         # necessary to make sure instantiated templates are included
12840         # in the archive.
12841         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12842         ;;
12843       gcx*)
12844         # Green Hills C++ Compiler
12845         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12846
12847         # The C++ compiler must be used to create the archive.
12848         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12849         ;;
12850       *)
12851         # GNU C++ compiler with Solaris linker
12852         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12853           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12854           if $CC --version | grep -v '^2\.7' > /dev/null; then
12855             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12856             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12857                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12858
12859             # Commands to make compiler produce verbose output that lists
12860             # what "hidden" libraries, object files and flags are used when
12861             # linking a shared library.
12862             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12863           else
12864             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12865             # platform.
12866             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12867             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12868                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12869
12870             # Commands to make compiler produce verbose output that lists
12871             # what "hidden" libraries, object files and flags are used when
12872             # linking a shared library.
12873             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12874           fi
12875
12876           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12877         fi
12878         ;;
12879     esac
12880     ;;
12881   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12882     no_undefined_flag_CXX='${wl}-z,text'
12883     archive_cmds_need_lc_CXX=no
12884     hardcode_shlibpath_var_CXX=no
12885     runpath_var='LD_RUN_PATH'
12886
12887     case $cc_basename in
12888       CC*)
12889         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12890         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891         ;;
12892       *)
12893         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895         ;;
12896     esac
12897     ;;
12898   sysv5* | sco3.2v5* | sco5v6*)
12899     # Note: We can NOT use -z defs as we might desire, because we do not
12900     # link with -lc, and that would cause any symbols used from libc to
12901     # always be unresolved, which means just about no library would
12902     # ever link correctly.  If we're not using GNU ld we use -z text
12903     # though, which does catch some bad symbols but isn't as heavy-handed
12904     # as -z defs.
12905     # For security reasons, it is highly recommended that you always
12906     # use absolute paths for naming shared libraries, and exclude the
12907     # DT_RUNPATH tag from executables and libraries.  But doing so
12908     # requires that you compile everything twice, which is a pain.
12909     # So that behaviour is only enabled if SCOABSPATH is set to a
12910     # non-empty value in the environment.  Most likely only useful for
12911     # creating official distributions of packages.
12912     # This is a hack until libtool officially supports absolute path
12913     # names for shared libraries.
12914     no_undefined_flag_CXX='${wl}-z,text'
12915     allow_undefined_flag_CXX='${wl}-z,nodefs'
12916     archive_cmds_need_lc_CXX=no
12917     hardcode_shlibpath_var_CXX=no
12918     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12919     hardcode_libdir_separator_CXX=':'
12920     link_all_deplibs_CXX=yes
12921     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12922     runpath_var='LD_RUN_PATH'
12923
12924     case $cc_basename in
12925       CC*)
12926         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12927         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928         ;;
12929       *)
12930         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932         ;;
12933     esac
12934     ;;
12935   tandem*)
12936     case $cc_basename in
12937       NCC*)
12938         # NonStop-UX NCC 3.20
12939         # FIXME: insert proper C++ library support
12940         ld_shlibs_CXX=no
12941         ;;
12942       *)
12943         # FIXME: insert proper C++ library support
12944         ld_shlibs_CXX=no
12945         ;;
12946     esac
12947     ;;
12948   vxworks*)
12949     # FIXME: insert proper C++ library support
12950     ld_shlibs_CXX=no
12951     ;;
12952   *)
12953     # FIXME: insert proper C++ library support
12954     ld_shlibs_CXX=no
12955     ;;
12956 esac
12957 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12958 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12959 test "$ld_shlibs_CXX" = no && can_build_shared=no
12960
12961 GCC_CXX="$GXX"
12962 LD_CXX="$LD"
12963
12964
12965 cat > conftest.$ac_ext <<EOF
12966 class Foo
12967 {
12968 public:
12969   Foo (void) { a = 0; }
12970 private:
12971   int a;
12972 };
12973 EOF
12974
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976   (eval $ac_compile) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; then
12980   # Parse the compiler output and extract the necessary
12981   # objects, libraries and library flags.
12982
12983   # Sentinel used to keep track of whether or not we are before
12984   # the conftest object file.
12985   pre_test_object_deps_done=no
12986
12987   # The `*' in the case matches for architectures that use `case' in
12988   # $output_verbose_cmd can trigger glob expansion during the loop
12989   # eval without this substitution.
12990   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12991
12992   for p in `eval $output_verbose_link_cmd`; do
12993     case $p in
12994
12995     -L* | -R* | -l*)
12996        # Some compilers place space between "-{L,R}" and the path.
12997        # Remove the space.
12998        if test $p = "-L" \
12999           || test $p = "-R"; then
13000          prev=$p
13001          continue
13002        else
13003          prev=
13004        fi
13005
13006        if test "$pre_test_object_deps_done" = no; then
13007          case $p in
13008          -L* | -R*)
13009            # Internal compiler library paths should come after those
13010            # provided the user.  The postdeps already come after the
13011            # user supplied libs so there is no need to process them.
13012            if test -z "$compiler_lib_search_path_CXX"; then
13013              compiler_lib_search_path_CXX="${prev}${p}"
13014            else
13015              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13016            fi
13017            ;;
13018          # The "-l" case would never come before the object being
13019          # linked, so don't bother handling this case.
13020          esac
13021        else
13022          if test -z "$postdeps_CXX"; then
13023            postdeps_CXX="${prev}${p}"
13024          else
13025            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13026          fi
13027        fi
13028        ;;
13029
13030     *.$objext)
13031        # This assumes that the test object file only shows up
13032        # once in the compiler output.
13033        if test "$p" = "conftest.$objext"; then
13034          pre_test_object_deps_done=yes
13035          continue
13036        fi
13037
13038        if test "$pre_test_object_deps_done" = no; then
13039          if test -z "$predep_objects_CXX"; then
13040            predep_objects_CXX="$p"
13041          else
13042            predep_objects_CXX="$predep_objects_CXX $p"
13043          fi
13044        else
13045          if test -z "$postdep_objects_CXX"; then
13046            postdep_objects_CXX="$p"
13047          else
13048            postdep_objects_CXX="$postdep_objects_CXX $p"
13049          fi
13050        fi
13051        ;;
13052
13053     *) ;; # Ignore the rest.
13054
13055     esac
13056   done
13057
13058   # Clean up.
13059   rm -f a.out a.exe
13060 else
13061   echo "libtool.m4: error: problem compiling CXX test program"
13062 fi
13063
13064 $rm -f confest.$objext
13065
13066 # PORTME: override above test on systems where it is broken
13067 case $host_os in
13068 interix3*)
13069   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13070   # hack all around it, let's just trust "g++" to DTRT.
13071   predep_objects_CXX=
13072   postdep_objects_CXX=
13073   postdeps_CXX=
13074   ;;
13075
13076 solaris*)
13077   case $cc_basename in
13078   CC*)
13079     # Adding this requires a known-good setup of shared libraries for
13080     # Sun compiler versions before 5.6, else PIC objects from an old
13081     # archive will be linked into the output, leading to subtle bugs.
13082     postdeps_CXX='-lCstd -lCrun'
13083     ;;
13084   esac
13085   ;;
13086 esac
13087
13088
13089 case " $postdeps_CXX " in
13090 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13091 esac
13092
13093 lt_prog_compiler_wl_CXX=
13094 lt_prog_compiler_pic_CXX=
13095 lt_prog_compiler_static_CXX=
13096
13097 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13098 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13099
13100   # C++ specific cases for pic, static, wl, etc.
13101   if test "$GXX" = yes; then
13102     lt_prog_compiler_wl_CXX='-Wl,'
13103     lt_prog_compiler_static_CXX='-static'
13104
13105     case $host_os in
13106     aix*)
13107       # All AIX code is PIC.
13108       if test "$host_cpu" = ia64; then
13109         # AIX 5 now supports IA64 processor
13110         lt_prog_compiler_static_CXX='-Bstatic'
13111       fi
13112       ;;
13113     amigaos*)
13114       # FIXME: we need at least 68020 code to build shared libraries, but
13115       # adding the `-m68020' flag to GCC prevents building anything better,
13116       # like `-m68040'.
13117       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13118       ;;
13119     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13120       # PIC is the default for these OSes.
13121       ;;
13122     mingw* | os2* | pw32*)
13123       # This hack is so that the source file can tell whether it is being
13124       # built for inclusion in a dll (and should export symbols for example).
13125       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13126       ;;
13127     darwin* | rhapsody*)
13128       # PIC is the default on this platform
13129       # Common symbols not allowed in MH_DYLIB files
13130       lt_prog_compiler_pic_CXX='-fno-common'
13131       ;;
13132     *djgpp*)
13133       # DJGPP does not support shared libraries at all
13134       lt_prog_compiler_pic_CXX=
13135       ;;
13136     interix3*)
13137       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13138       # Instead, we relocate shared libraries at runtime.
13139       ;;
13140     sysv4*MP*)
13141       if test -d /usr/nec; then
13142         lt_prog_compiler_pic_CXX=-Kconform_pic
13143       fi
13144       ;;
13145     hpux*)
13146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147       # not for PA HP-UX.
13148       case $host_cpu in
13149       hppa*64*|ia64*)
13150         ;;
13151       *)
13152         lt_prog_compiler_pic_CXX='-fPIC'
13153         ;;
13154       esac
13155       ;;
13156     *)
13157       lt_prog_compiler_pic_CXX='-fPIC'
13158       ;;
13159     esac
13160   else
13161     case $host_os in
13162       aix4* | aix5*)
13163         # All AIX code is PIC.
13164         if test "$host_cpu" = ia64; then
13165           # AIX 5 now supports IA64 processor
13166           lt_prog_compiler_static_CXX='-Bstatic'
13167         else
13168           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13169         fi
13170         ;;
13171       chorus*)
13172         case $cc_basename in
13173         cxch68*)
13174           # Green Hills C++ Compiler
13175           # _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"
13176           ;;
13177         esac
13178         ;;
13179        darwin*)
13180          # PIC is the default on this platform
13181          # Common symbols not allowed in MH_DYLIB files
13182          case $cc_basename in
13183            xlc*)
13184            lt_prog_compiler_pic_CXX='-qnocommon'
13185            lt_prog_compiler_wl_CXX='-Wl,'
13186            ;;
13187          esac
13188        ;;
13189       dgux*)
13190         case $cc_basename in
13191           ec++*)
13192             lt_prog_compiler_pic_CXX='-KPIC'
13193             ;;
13194           ghcx*)
13195             # Green Hills C++ Compiler
13196             lt_prog_compiler_pic_CXX='-pic'
13197             ;;
13198           *)
13199             ;;
13200         esac
13201         ;;
13202       freebsd* | dragonfly*)
13203         # FreeBSD uses GNU C++
13204         ;;
13205       hpux9* | hpux10* | hpux11*)
13206         case $cc_basename in
13207           CC*)
13208             lt_prog_compiler_wl_CXX='-Wl,'
13209             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13210             if test "$host_cpu" != ia64; then
13211               lt_prog_compiler_pic_CXX='+Z'
13212             fi
13213             ;;
13214           aCC*)
13215             lt_prog_compiler_wl_CXX='-Wl,'
13216             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13217             case $host_cpu in
13218             hppa*64*|ia64*)
13219               # +Z the default
13220               ;;
13221             *)
13222               lt_prog_compiler_pic_CXX='+Z'
13223               ;;
13224             esac
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       interix*)
13231         # This is c89, which is MS Visual C++ (no shared libs)
13232         # Anyone wants to do a port?
13233         ;;
13234       irix5* | irix6* | nonstopux*)
13235         case $cc_basename in
13236           CC*)
13237             lt_prog_compiler_wl_CXX='-Wl,'
13238             lt_prog_compiler_static_CXX='-non_shared'
13239             # CC pic flag -KPIC is the default.
13240             ;;
13241           *)
13242             ;;
13243         esac
13244         ;;
13245       linux* | k*bsd*-gnu)
13246         case $cc_basename in
13247           KCC*)
13248             # KAI C++ Compiler
13249             lt_prog_compiler_wl_CXX='--backend -Wl,'
13250             lt_prog_compiler_pic_CXX='-fPIC'
13251             ;;
13252           icpc* | ecpc*)
13253             # Intel C++
13254             lt_prog_compiler_wl_CXX='-Wl,'
13255             lt_prog_compiler_pic_CXX='-KPIC'
13256             lt_prog_compiler_static_CXX='-static'
13257             ;;
13258           pgCC*)
13259             # Portland Group C++ compiler.
13260             lt_prog_compiler_wl_CXX='-Wl,'
13261             lt_prog_compiler_pic_CXX='-fpic'
13262             lt_prog_compiler_static_CXX='-Bstatic'
13263             ;;
13264           cxx*)
13265             # Compaq C++
13266             # Make sure the PIC flag is empty.  It appears that all Alpha
13267             # Linux and Compaq Tru64 Unix objects are PIC.
13268             lt_prog_compiler_pic_CXX=
13269             lt_prog_compiler_static_CXX='-non_shared'
13270             ;;
13271           *)
13272             ;;
13273         esac
13274         ;;
13275       lynxos*)
13276         ;;
13277       m88k*)
13278         ;;
13279       mvs*)
13280         case $cc_basename in
13281           cxx*)
13282             lt_prog_compiler_pic_CXX='-W c,exportall'
13283             ;;
13284           *)
13285             ;;
13286         esac
13287         ;;
13288       netbsd* | netbsdelf*-gnu)
13289         ;;
13290       osf3* | osf4* | osf5*)
13291         case $cc_basename in
13292           KCC*)
13293             lt_prog_compiler_wl_CXX='--backend -Wl,'
13294             ;;
13295           RCC*)
13296             # Rational C++ 2.4.1
13297             lt_prog_compiler_pic_CXX='-pic'
13298             ;;
13299           cxx*)
13300             # Digital/Compaq C++
13301             lt_prog_compiler_wl_CXX='-Wl,'
13302             # Make sure the PIC flag is empty.  It appears that all Alpha
13303             # Linux and Compaq Tru64 Unix objects are PIC.
13304             lt_prog_compiler_pic_CXX=
13305             lt_prog_compiler_static_CXX='-non_shared'
13306             ;;
13307           *)
13308             ;;
13309         esac
13310         ;;
13311       psos*)
13312         ;;
13313       solaris*)
13314         case $cc_basename in
13315           CC*)
13316             # Sun C++ 4.2, 5.x and Centerline C++
13317             lt_prog_compiler_pic_CXX='-KPIC'
13318             lt_prog_compiler_static_CXX='-Bstatic'
13319             lt_prog_compiler_wl_CXX='-Qoption ld '
13320             ;;
13321           gcx*)
13322             # Green Hills C++ Compiler
13323             lt_prog_compiler_pic_CXX='-PIC'
13324             ;;
13325           *)
13326             ;;
13327         esac
13328         ;;
13329       sunos4*)
13330         case $cc_basename in
13331           CC*)
13332             # Sun C++ 4.x
13333             lt_prog_compiler_pic_CXX='-pic'
13334             lt_prog_compiler_static_CXX='-Bstatic'
13335             ;;
13336           lcc*)
13337             # Lucid
13338             lt_prog_compiler_pic_CXX='-pic'
13339             ;;
13340           *)
13341             ;;
13342         esac
13343         ;;
13344       tandem*)
13345         case $cc_basename in
13346           NCC*)
13347             # NonStop-UX NCC 3.20
13348             lt_prog_compiler_pic_CXX='-KPIC'
13349             ;;
13350           *)
13351             ;;
13352         esac
13353         ;;
13354       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13355         case $cc_basename in
13356           CC*)
13357             lt_prog_compiler_wl_CXX='-Wl,'
13358             lt_prog_compiler_pic_CXX='-KPIC'
13359             lt_prog_compiler_static_CXX='-Bstatic'
13360             ;;
13361         esac
13362         ;;
13363       vxworks*)
13364         ;;
13365       *)
13366         lt_prog_compiler_can_build_shared_CXX=no
13367         ;;
13368     esac
13369   fi
13370
13371 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13372 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13373
13374 #
13375 # Check to make sure the PIC flag actually works.
13376 #
13377 if test -n "$lt_prog_compiler_pic_CXX"; then
13378
13379 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13381 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   lt_prog_compiler_pic_works_CXX=no
13385   ac_outfile=conftest.$ac_objext
13386    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13387    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13388    # Insert the option either (1) after the last *FLAGS variable, or
13389    # (2) before a word containing "conftest.", or (3) at the end.
13390    # Note that $ac_compile itself does not contain backslashes and begins
13391    # with a dollar sign (not a hyphen), so the echo should work correctly.
13392    # The option is referenced via a variable to avoid confusing sed.
13393    lt_compile=`echo "$ac_compile" | $SED \
13394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13396    -e 's:$: $lt_compiler_flag:'`
13397    (eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
13398    (eval "$lt_compile" 2>conftest.err)
13399    ac_status=$?
13400    cat conftest.err >&5
13401    echo "$as_me:13401: \$? = $ac_status" >&5
13402    if (exit $ac_status) && test -s "$ac_outfile"; then
13403      # The compiler can only warn and ignore the option if not recognized
13404      # So say no if there are warnings other than the usual output.
13405      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13406      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13407      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13408        lt_prog_compiler_pic_works_CXX=yes
13409      fi
13410    fi
13411    $rm conftest*
13412
13413 fi
13414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13415 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13416
13417 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13418     case $lt_prog_compiler_pic_CXX in
13419      "" | " "*) ;;
13420      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13421      esac
13422 else
13423     lt_prog_compiler_pic_CXX=
13424      lt_prog_compiler_can_build_shared_CXX=no
13425 fi
13426
13427 fi
13428 case $host_os in
13429   # For platforms which do not support PIC, -DPIC is meaningless:
13430   *djgpp*)
13431     lt_prog_compiler_pic_CXX=
13432     ;;
13433   *)
13434     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13435     ;;
13436 esac
13437
13438 #
13439 # Check to make sure the static flag actually works.
13440 #
13441 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13442 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13443 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13444 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   lt_prog_compiler_static_works_CXX=no
13448    save_LDFLAGS="$LDFLAGS"
13449    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13450    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13451    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13452      # The linker can only warn and ignore the option if not recognized
13453      # So say no if there are warnings
13454      if test -s conftest.err; then
13455        # Append any errors to the config.log.
13456        cat conftest.err 1>&5
13457        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13458        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459        if diff conftest.exp conftest.er2 >/dev/null; then
13460          lt_prog_compiler_static_works_CXX=yes
13461        fi
13462      else
13463        lt_prog_compiler_static_works_CXX=yes
13464      fi
13465    fi
13466    $rm conftest*
13467    LDFLAGS="$save_LDFLAGS"
13468
13469 fi
13470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13471 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13472
13473 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13474     :
13475 else
13476     lt_prog_compiler_static_CXX=
13477 fi
13478
13479
13480 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13481 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13482 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   lt_cv_prog_compiler_c_o_CXX=no
13486    $rm -r conftest 2>/dev/null
13487    mkdir conftest
13488    cd conftest
13489    mkdir out
13490    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13491
13492    lt_compiler_flag="-o out/conftest2.$ac_objext"
13493    # Insert the option either (1) after the last *FLAGS variable, or
13494    # (2) before a word containing "conftest.", or (3) at the end.
13495    # Note that $ac_compile itself does not contain backslashes and begins
13496    # with a dollar sign (not a hyphen), so the echo should work correctly.
13497    lt_compile=`echo "$ac_compile" | $SED \
13498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13500    -e 's:$: $lt_compiler_flag:'`
13501    (eval echo "\"\$as_me:13501: $lt_compile\"" >&5)
13502    (eval "$lt_compile" 2>out/conftest.err)
13503    ac_status=$?
13504    cat out/conftest.err >&5
13505    echo "$as_me:13505: \$? = $ac_status" >&5
13506    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13507    then
13508      # The compiler can only warn and ignore the option if not recognized
13509      # So say no if there are warnings
13510      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13511      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13512      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13513        lt_cv_prog_compiler_c_o_CXX=yes
13514      fi
13515    fi
13516    chmod u+w . 2>&5
13517    $rm conftest*
13518    # SGI C++ compiler will create directory out/ii_files/ for
13519    # template instantiation
13520    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13521    $rm out/* && rmdir out
13522    cd ..
13523    rmdir conftest
13524    $rm conftest*
13525
13526 fi
13527 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13528 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13529
13530
13531 hard_links="nottested"
13532 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13533   # do not overwrite the value of need_locks provided by the user
13534   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13535 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13536   hard_links=yes
13537   $rm conftest*
13538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539   touch conftest.a
13540   ln conftest.a conftest.b 2>&5 || hard_links=no
13541   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13542   { echo "$as_me:$LINENO: result: $hard_links" >&5
13543 echo "${ECHO_T}$hard_links" >&6; }
13544   if test "$hard_links" = no; then
13545     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13546 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13547     need_locks=warn
13548   fi
13549 else
13550   need_locks=no
13551 fi
13552
13553 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13555
13556   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13557   case $host_os in
13558   aix4* | aix5*)
13559     # If we're using GNU nm, then we don't want the "-C" option.
13560     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13561     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13562       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'
13563     else
13564       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'
13565     fi
13566     ;;
13567   pw32*)
13568     export_symbols_cmds_CXX="$ltdll_cmds"
13569   ;;
13570   cygwin* | mingw*)
13571     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'
13572   ;;
13573   linux* | k*bsd*-gnu)
13574     link_all_deplibs_CXX=no
13575   ;;
13576   *)
13577     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13578   ;;
13579   esac
13580
13581 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13582 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13583 test "$ld_shlibs_CXX" = no && can_build_shared=no
13584
13585 #
13586 # Do we need to explicitly link libc?
13587 #
13588 case "x$archive_cmds_need_lc_CXX" in
13589 x|xyes)
13590   # Assume -lc should be added
13591   archive_cmds_need_lc_CXX=yes
13592
13593   if test "$enable_shared" = yes && test "$GCC" = yes; then
13594     case $archive_cmds_CXX in
13595     *'~'*)
13596       # FIXME: we may have to deal with multi-command sequences.
13597       ;;
13598     '$CC '*)
13599       # Test whether the compiler implicitly links with -lc since on some
13600       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13601       # to ld, don't add -lc before -lgcc.
13602       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13604       $rm conftest*
13605       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13606
13607       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608   (eval $ac_compile) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } 2>conftest.err; then
13612         soname=conftest
13613         lib=conftest
13614         libobjs=conftest.$ac_objext
13615         deplibs=
13616         wl=$lt_prog_compiler_wl_CXX
13617         pic_flag=$lt_prog_compiler_pic_CXX
13618         compiler_flags=-v
13619         linker_flags=-v
13620         verstring=
13621         output_objdir=.
13622         libname=conftest
13623         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13624         allow_undefined_flag_CXX=
13625         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13626   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }
13630         then
13631           archive_cmds_need_lc_CXX=no
13632         else
13633           archive_cmds_need_lc_CXX=yes
13634         fi
13635         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13636       else
13637         cat conftest.err 1>&5
13638       fi
13639       $rm conftest*
13640       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13641 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13642       ;;
13643     esac
13644   fi
13645   ;;
13646 esac
13647
13648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13650 library_names_spec=
13651 libname_spec='lib$name'
13652 soname_spec=
13653 shrext_cmds=".so"
13654 postinstall_cmds=
13655 postuninstall_cmds=
13656 finish_cmds=
13657 finish_eval=
13658 shlibpath_var=
13659 shlibpath_overrides_runpath=unknown
13660 version_type=none
13661 dynamic_linker="$host_os ld.so"
13662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13663 if test "$GCC" = yes; then
13664   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13665   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13666     # if the path contains ";" then we assume it to be the separator
13667     # otherwise default to the standard path separator (i.e. ":") - it is
13668     # assumed that no part of a normal pathname contains ";" but that should
13669     # okay in the real world where ";" in dirpaths is itself problematic.
13670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13671   else
13672     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13673   fi
13674 else
13675   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13676 fi
13677 need_lib_prefix=unknown
13678 hardcode_into_libs=no
13679
13680 # when you set need_version to no, make sure it does not cause -set_version
13681 # flags to be left without arguments
13682 need_version=unknown
13683
13684 case $host_os in
13685 aix3*)
13686   version_type=linux
13687   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13688   shlibpath_var=LIBPATH
13689
13690   # AIX 3 has no versioning support, so we append a major version to the name.
13691   soname_spec='${libname}${release}${shared_ext}$major'
13692   ;;
13693
13694 aix4* | aix5*)
13695   version_type=linux
13696   need_lib_prefix=no
13697   need_version=no
13698   hardcode_into_libs=yes
13699   if test "$host_cpu" = ia64; then
13700     # AIX 5 supports IA64
13701     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13702     shlibpath_var=LD_LIBRARY_PATH
13703   else
13704     # With GCC up to 2.95.x, collect2 would create an import file
13705     # for dependence libraries.  The import file would start with
13706     # the line `#! .'.  This would cause the generated library to
13707     # depend on `.', always an invalid library.  This was fixed in
13708     # development snapshots of GCC prior to 3.0.
13709     case $host_os in
13710       aix4 | aix4.[01] | aix4.[01].*)
13711       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13712            echo ' yes '
13713            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13714         :
13715       else
13716         can_build_shared=no
13717       fi
13718       ;;
13719     esac
13720     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13721     # soname into executable. Probably we can add versioning support to
13722     # collect2, so additional links can be useful in future.
13723     if test "$aix_use_runtimelinking" = yes; then
13724       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13725       # instead of lib<name>.a to let people know that these are not
13726       # typical AIX shared libraries.
13727       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13728     else
13729       # We preserve .a as extension for shared libraries through AIX4.2
13730       # and later when we are not doing run time linking.
13731       library_names_spec='${libname}${release}.a $libname.a'
13732       soname_spec='${libname}${release}${shared_ext}$major'
13733     fi
13734     shlibpath_var=LIBPATH
13735   fi
13736   ;;
13737
13738 amigaos*)
13739   library_names_spec='$libname.ixlibrary $libname.a'
13740   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13741   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'
13742   ;;
13743
13744 beos*)
13745   library_names_spec='${libname}${shared_ext}'
13746   dynamic_linker="$host_os ld.so"
13747   shlibpath_var=LIBRARY_PATH
13748   ;;
13749
13750 bsdi[45]*)
13751   version_type=linux
13752   need_version=no
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754   soname_spec='${libname}${release}${shared_ext}$major'
13755   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13756   shlibpath_var=LD_LIBRARY_PATH
13757   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13758   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13759   # the default ld.so.conf also contains /usr/contrib/lib and
13760   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13761   # libtool to hard-code these into programs
13762   ;;
13763
13764 cygwin* | mingw* | pw32*)
13765   version_type=windows
13766   shrext_cmds=".dll"
13767   need_version=no
13768   need_lib_prefix=no
13769
13770   case $GCC,$host_os in
13771   yes,cygwin* | yes,mingw* | yes,pw32*)
13772     library_names_spec='$libname.dll.a'
13773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13774     postinstall_cmds='base_file=`basename \${file}`~
13775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13776       dldir=$destdir/`dirname \$dlpath`~
13777       test -d \$dldir || mkdir -p \$dldir~
13778       $install_prog $dir/$dlname \$dldir/$dlname~
13779       chmod a+x \$dldir/$dlname'
13780     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13781       dlpath=$dir/\$dldll~
13782        $rm \$dlpath'
13783     shlibpath_overrides_runpath=yes
13784
13785     case $host_os in
13786     cygwin*)
13787       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13788       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13789       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13790       ;;
13791     mingw*)
13792       # MinGW DLLs use traditional 'lib' prefix
13793       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13794       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13795       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13796         # It is most probably a Windows format PATH printed by
13797         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13798         # path with ; separators, and with drive letters. We can handle the
13799         # drive letters (cygwin fileutils understands them), so leave them,
13800         # especially as we might pass files found there to a mingw objdump,
13801         # which wouldn't understand a cygwinified path. Ahh.
13802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13803       else
13804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13805       fi
13806       ;;
13807     pw32*)
13808       # pw32 DLLs use 'pw' prefix rather than 'lib'
13809       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13810       ;;
13811     esac
13812     ;;
13813
13814   *)
13815     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13816     ;;
13817   esac
13818   dynamic_linker='Win32 ld.exe'
13819   # FIXME: first we should search . and the directory the executable is in
13820   shlibpath_var=PATH
13821   ;;
13822
13823 darwin* | rhapsody*)
13824   dynamic_linker="$host_os dyld"
13825   version_type=darwin
13826   need_lib_prefix=no
13827   need_version=no
13828   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13829   soname_spec='${libname}${release}${major}$shared_ext'
13830   shlibpath_overrides_runpath=yes
13831   shlibpath_var=DYLD_LIBRARY_PATH
13832   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13833   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13834   if test "$GCC" = yes; then
13835     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"`
13836   else
13837     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13838   fi
13839   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13840   ;;
13841
13842 dgux*)
13843   version_type=linux
13844   need_lib_prefix=no
13845   need_version=no
13846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13847   soname_spec='${libname}${release}${shared_ext}$major'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   ;;
13850
13851 freebsd1*)
13852   dynamic_linker=no
13853   ;;
13854
13855 freebsd* | dragonfly*)
13856   # DragonFly does not have aout.  When/if they implement a new
13857   # versioning mechanism, adjust this.
13858   if test -x /usr/bin/objformat; then
13859     objformat=`/usr/bin/objformat`
13860   else
13861     case $host_os in
13862     freebsd[123]*) objformat=aout ;;
13863     *) objformat=elf ;;
13864     esac
13865   fi
13866   version_type=freebsd-$objformat
13867   case $version_type in
13868     freebsd-elf*)
13869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13870       need_version=no
13871       need_lib_prefix=no
13872       ;;
13873     freebsd-*)
13874       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13875       need_version=yes
13876       ;;
13877   esac
13878   shlibpath_var=LD_LIBRARY_PATH
13879   case $host_os in
13880   freebsd2*)
13881     shlibpath_overrides_runpath=yes
13882     ;;
13883   freebsd3.[01]* | freebsdelf3.[01]*)
13884     shlibpath_overrides_runpath=yes
13885     hardcode_into_libs=yes
13886     ;;
13887   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13888   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13889     shlibpath_overrides_runpath=no
13890     hardcode_into_libs=yes
13891     ;;
13892   freebsd*) # from 4.6 on
13893     shlibpath_overrides_runpath=yes
13894     hardcode_into_libs=yes
13895     ;;
13896   esac
13897   ;;
13898
13899 gnu*)
13900   version_type=linux
13901   need_lib_prefix=no
13902   need_version=no
13903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13904   soname_spec='${libname}${release}${shared_ext}$major'
13905   shlibpath_var=LD_LIBRARY_PATH
13906   hardcode_into_libs=yes
13907   ;;
13908
13909 hpux9* | hpux10* | hpux11*)
13910   # Give a soname corresponding to the major version so that dld.sl refuses to
13911   # link against other versions.
13912   version_type=sunos
13913   need_lib_prefix=no
13914   need_version=no
13915   case $host_cpu in
13916   ia64*)
13917     shrext_cmds='.so'
13918     hardcode_into_libs=yes
13919     dynamic_linker="$host_os dld.so"
13920     shlibpath_var=LD_LIBRARY_PATH
13921     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923     soname_spec='${libname}${release}${shared_ext}$major'
13924     if test "X$HPUX_IA64_MODE" = X32; then
13925       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13926     else
13927       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13928     fi
13929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13930     ;;
13931    hppa*64*)
13932      shrext_cmds='.sl'
13933      hardcode_into_libs=yes
13934      dynamic_linker="$host_os dld.sl"
13935      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13936      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13937      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13938      soname_spec='${libname}${release}${shared_ext}$major'
13939      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13940      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13941      ;;
13942    *)
13943     shrext_cmds='.sl'
13944     dynamic_linker="$host_os dld.sl"
13945     shlibpath_var=SHLIB_PATH
13946     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948     soname_spec='${libname}${release}${shared_ext}$major'
13949     ;;
13950   esac
13951   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13952   postinstall_cmds='chmod 555 $lib'
13953   ;;
13954
13955 interix3*)
13956   version_type=linux
13957   need_lib_prefix=no
13958   need_version=no
13959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13960   soname_spec='${libname}${release}${shared_ext}$major'
13961   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13962   shlibpath_var=LD_LIBRARY_PATH
13963   shlibpath_overrides_runpath=no
13964   hardcode_into_libs=yes
13965   ;;
13966
13967 irix5* | irix6* | nonstopux*)
13968   case $host_os in
13969     nonstopux*) version_type=nonstopux ;;
13970     *)
13971         if test "$lt_cv_prog_gnu_ld" = yes; then
13972                 version_type=linux
13973         else
13974                 version_type=irix
13975         fi ;;
13976   esac
13977   need_lib_prefix=no
13978   need_version=no
13979   soname_spec='${libname}${release}${shared_ext}$major'
13980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13981   case $host_os in
13982   irix5* | nonstopux*)
13983     libsuff= shlibsuff=
13984     ;;
13985   *)
13986     case $LD in # libtool.m4 will add one of these switches to LD
13987     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13988       libsuff= shlibsuff= libmagic=32-bit;;
13989     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13990       libsuff=32 shlibsuff=N32 libmagic=N32;;
13991     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13992       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13993     *) libsuff= shlibsuff= libmagic=never-match;;
13994     esac
13995     ;;
13996   esac
13997   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13998   shlibpath_overrides_runpath=no
13999   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14000   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14001   hardcode_into_libs=yes
14002   ;;
14003
14004 # No shared lib support for Linux oldld, aout, or coff.
14005 linux*oldld* | linux*aout* | linux*coff*)
14006   dynamic_linker=no
14007   ;;
14008
14009 # This must be Linux ELF.
14010 linux* | k*bsd*-gnu)
14011   version_type=linux
14012   need_lib_prefix=no
14013   need_version=no
14014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   shlibpath_overrides_runpath=no
14019   # This implies no fast_install, which is unacceptable.
14020   # Some rework will be needed to allow for fast_install
14021   # before this can be enabled.
14022   hardcode_into_libs=yes
14023
14024   # Append ld.so.conf contents to the search path
14025   if test -f /etc/ld.so.conf; then
14026     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' ' '`
14027     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14028   fi
14029
14030   # We used to test for /lib/ld.so.1 and disable shared libraries on
14031   # powerpc, because MkLinux only supported shared libraries with the
14032   # GNU dynamic linker.  Since this was broken with cross compilers,
14033   # most powerpc-linux boxes support dynamic linking these days and
14034   # people can always --disable-shared, the test was removed, and we
14035   # assume the GNU/Linux dynamic linker is in use.
14036   dynamic_linker='GNU/Linux ld.so'
14037   ;;
14038
14039 netbsdelf*-gnu)
14040   version_type=linux
14041   need_lib_prefix=no
14042   need_version=no
14043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14044   soname_spec='${libname}${release}${shared_ext}$major'
14045   shlibpath_var=LD_LIBRARY_PATH
14046   shlibpath_overrides_runpath=no
14047   hardcode_into_libs=yes
14048   dynamic_linker='NetBSD ld.elf_so'
14049   ;;
14050
14051 netbsd*)
14052   version_type=sunos
14053   need_lib_prefix=no
14054   need_version=no
14055   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14057     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14058     dynamic_linker='NetBSD (a.out) ld.so'
14059   else
14060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061     soname_spec='${libname}${release}${shared_ext}$major'
14062     dynamic_linker='NetBSD ld.elf_so'
14063   fi
14064   shlibpath_var=LD_LIBRARY_PATH
14065   shlibpath_overrides_runpath=yes
14066   hardcode_into_libs=yes
14067   ;;
14068
14069 newsos6)
14070   version_type=linux
14071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072   shlibpath_var=LD_LIBRARY_PATH
14073   shlibpath_overrides_runpath=yes
14074   ;;
14075
14076 nto-qnx*)
14077   version_type=linux
14078   need_lib_prefix=no
14079   need_version=no
14080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081   soname_spec='${libname}${release}${shared_ext}$major'
14082   shlibpath_var=LD_LIBRARY_PATH
14083   shlibpath_overrides_runpath=yes
14084   ;;
14085
14086 openbsd*)
14087   version_type=sunos
14088   sys_lib_dlsearch_path_spec="/usr/lib"
14089   need_lib_prefix=no
14090   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14091   case $host_os in
14092     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14093     *)                         need_version=no  ;;
14094   esac
14095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14097   shlibpath_var=LD_LIBRARY_PATH
14098   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14099     case $host_os in
14100       openbsd2.[89] | openbsd2.[89].*)
14101         shlibpath_overrides_runpath=no
14102         ;;
14103       *)
14104         shlibpath_overrides_runpath=yes
14105         ;;
14106       esac
14107   else
14108     shlibpath_overrides_runpath=yes
14109   fi
14110   ;;
14111
14112 os2*)
14113   libname_spec='$name'
14114   shrext_cmds=".dll"
14115   need_lib_prefix=no
14116   library_names_spec='$libname${shared_ext} $libname.a'
14117   dynamic_linker='OS/2 ld.exe'
14118   shlibpath_var=LIBPATH
14119   ;;
14120
14121 osf3* | osf4* | osf5*)
14122   version_type=osf
14123   need_lib_prefix=no
14124   need_version=no
14125   soname_spec='${libname}${release}${shared_ext}$major'
14126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127   shlibpath_var=LD_LIBRARY_PATH
14128   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14129   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14130   ;;
14131
14132 solaris*)
14133   version_type=linux
14134   need_lib_prefix=no
14135   need_version=no
14136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137   soname_spec='${libname}${release}${shared_ext}$major'
14138   shlibpath_var=LD_LIBRARY_PATH
14139   shlibpath_overrides_runpath=yes
14140   hardcode_into_libs=yes
14141   # ldd complains unless libraries are executable
14142   postinstall_cmds='chmod +x $lib'
14143   ;;
14144
14145 sunos4*)
14146   version_type=sunos
14147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14149   shlibpath_var=LD_LIBRARY_PATH
14150   shlibpath_overrides_runpath=yes
14151   if test "$with_gnu_ld" = yes; then
14152     need_lib_prefix=no
14153   fi
14154   need_version=yes
14155   ;;
14156
14157 sysv4 | sysv4.3*)
14158   version_type=linux
14159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160   soname_spec='${libname}${release}${shared_ext}$major'
14161   shlibpath_var=LD_LIBRARY_PATH
14162   case $host_vendor in
14163     sni)
14164       shlibpath_overrides_runpath=no
14165       need_lib_prefix=no
14166       export_dynamic_flag_spec='${wl}-Blargedynsym'
14167       runpath_var=LD_RUN_PATH
14168       ;;
14169     siemens)
14170       need_lib_prefix=no
14171       ;;
14172     motorola)
14173       need_lib_prefix=no
14174       need_version=no
14175       shlibpath_overrides_runpath=no
14176       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14177       ;;
14178   esac
14179   ;;
14180
14181 sysv4*MP*)
14182   if test -d /usr/nec ;then
14183     version_type=linux
14184     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14185     soname_spec='$libname${shared_ext}.$major'
14186     shlibpath_var=LD_LIBRARY_PATH
14187   fi
14188   ;;
14189
14190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14191   version_type=freebsd-elf
14192   need_lib_prefix=no
14193   need_version=no
14194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14195   soname_spec='${libname}${release}${shared_ext}$major'
14196   shlibpath_var=LD_LIBRARY_PATH
14197   hardcode_into_libs=yes
14198   if test "$with_gnu_ld" = yes; then
14199     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14200     shlibpath_overrides_runpath=no
14201   else
14202     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14203     shlibpath_overrides_runpath=yes
14204     case $host_os in
14205       sco3.2v5*)
14206         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14207         ;;
14208     esac
14209   fi
14210   sys_lib_dlsearch_path_spec='/usr/lib'
14211   ;;
14212
14213 uts4*)
14214   version_type=linux
14215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216   soname_spec='${libname}${release}${shared_ext}$major'
14217   shlibpath_var=LD_LIBRARY_PATH
14218   ;;
14219
14220 *)
14221   dynamic_linker=no
14222   ;;
14223 esac
14224 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14225 echo "${ECHO_T}$dynamic_linker" >&6; }
14226 test "$dynamic_linker" = no && can_build_shared=no
14227
14228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14229 if test "$GCC" = yes; then
14230   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14231 fi
14232
14233 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14234 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14235 hardcode_action_CXX=
14236 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14237    test -n "$runpath_var_CXX" || \
14238    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14239
14240   # We can hardcode non-existant directories.
14241   if test "$hardcode_direct_CXX" != no &&
14242      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14243      # have to relink, otherwise we might link with an installed library
14244      # when we should be linking with a yet-to-be-installed one
14245      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14246      test "$hardcode_minus_L_CXX" != no; then
14247     # Linking always hardcodes the temporary library directory.
14248     hardcode_action_CXX=relink
14249   else
14250     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14251     hardcode_action_CXX=immediate
14252   fi
14253 else
14254   # We cannot hardcode anything, or else we can only hardcode existing
14255   # directories.
14256   hardcode_action_CXX=unsupported
14257 fi
14258 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14259 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14260
14261 if test "$hardcode_action_CXX" = relink; then
14262   # Fast installation is not supported
14263   enable_fast_install=no
14264 elif test "$shlibpath_overrides_runpath" = yes ||
14265      test "$enable_shared" = no; then
14266   # Fast installation is not necessary
14267   enable_fast_install=needless
14268 fi
14269
14270
14271 # The else clause should only fire when bootstrapping the
14272 # libtool distribution, otherwise you forgot to ship ltmain.sh
14273 # with your package, and you will get complaints that there are
14274 # no rules to generate ltmain.sh.
14275 if test -f "$ltmain"; then
14276   # See if we are running on zsh, and set the options which allow our commands through
14277   # without removal of \ escapes.
14278   if test -n "${ZSH_VERSION+set}" ; then
14279     setopt NO_GLOB_SUBST
14280   fi
14281   # Now quote all the things that may contain metacharacters while being
14282   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14283   # variables and quote the copies for generation of the libtool script.
14284   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14285     SED SHELL STRIP \
14286     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14287     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14288     deplibs_check_method reload_flag reload_cmds need_locks \
14289     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14290     lt_cv_sys_global_symbol_to_c_name_address \
14291     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14292     old_postinstall_cmds old_postuninstall_cmds \
14293     compiler_CXX \
14294     CC_CXX \
14295     LD_CXX \
14296     lt_prog_compiler_wl_CXX \
14297     lt_prog_compiler_pic_CXX \
14298     lt_prog_compiler_static_CXX \
14299     lt_prog_compiler_no_builtin_flag_CXX \
14300     export_dynamic_flag_spec_CXX \
14301     thread_safe_flag_spec_CXX \
14302     whole_archive_flag_spec_CXX \
14303     enable_shared_with_static_runtimes_CXX \
14304     old_archive_cmds_CXX \
14305     old_archive_from_new_cmds_CXX \
14306     predep_objects_CXX \
14307     postdep_objects_CXX \
14308     predeps_CXX \
14309     postdeps_CXX \
14310     compiler_lib_search_path_CXX \
14311     archive_cmds_CXX \
14312     archive_expsym_cmds_CXX \
14313     postinstall_cmds_CXX \
14314     postuninstall_cmds_CXX \
14315     old_archive_from_expsyms_cmds_CXX \
14316     allow_undefined_flag_CXX \
14317     no_undefined_flag_CXX \
14318     export_symbols_cmds_CXX \
14319     hardcode_libdir_flag_spec_CXX \
14320     hardcode_libdir_flag_spec_ld_CXX \
14321     hardcode_libdir_separator_CXX \
14322     hardcode_automatic_CXX \
14323     module_cmds_CXX \
14324     module_expsym_cmds_CXX \
14325     lt_cv_prog_compiler_c_o_CXX \
14326     exclude_expsyms_CXX \
14327     include_expsyms_CXX; do
14328
14329     case $var in
14330     old_archive_cmds_CXX | \
14331     old_archive_from_new_cmds_CXX | \
14332     archive_cmds_CXX | \
14333     archive_expsym_cmds_CXX | \
14334     module_cmds_CXX | \
14335     module_expsym_cmds_CXX | \
14336     old_archive_from_expsyms_cmds_CXX | \
14337     export_symbols_cmds_CXX | \
14338     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14339     postinstall_cmds | postuninstall_cmds | \
14340     old_postinstall_cmds | old_postuninstall_cmds | \
14341     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14342       # Double-quote double-evaled strings.
14343       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14344       ;;
14345     *)
14346       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14347       ;;
14348     esac
14349   done
14350
14351   case $lt_echo in
14352   *'\$0 --fallback-echo"')
14353     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14354     ;;
14355   esac
14356
14357 cfgfile="$ofile"
14358
14359   cat <<__EOF__ >> "$cfgfile"
14360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14361
14362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14363
14364 # Shell to use when invoking shell scripts.
14365 SHELL=$lt_SHELL
14366
14367 # Whether or not to build shared libraries.
14368 build_libtool_libs=$enable_shared
14369
14370 # Whether or not to build static libraries.
14371 build_old_libs=$enable_static
14372
14373 # Whether or not to add -lc for building shared libraries.
14374 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14375
14376 # Whether or not to disallow shared libs when runtime libs are static
14377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14378
14379 # Whether or not to optimize for fast installation.
14380 fast_install=$enable_fast_install
14381
14382 # The host system.
14383 host_alias=$host_alias
14384 host=$host
14385 host_os=$host_os
14386
14387 # The build system.
14388 build_alias=$build_alias
14389 build=$build
14390 build_os=$build_os
14391
14392 # An echo program that does not interpret backslashes.
14393 echo=$lt_echo
14394
14395 # The archiver.
14396 AR=$lt_AR
14397 AR_FLAGS=$lt_AR_FLAGS
14398
14399 # A C compiler.
14400 LTCC=$lt_LTCC
14401
14402 # LTCC compiler flags.
14403 LTCFLAGS=$lt_LTCFLAGS
14404
14405 # A language-specific compiler.
14406 CC=$lt_compiler_CXX
14407
14408 # Is the compiler the GNU C compiler?
14409 with_gcc=$GCC_CXX
14410
14411 # An ERE matcher.
14412 EGREP=$lt_EGREP
14413
14414 # The linker used to build libraries.
14415 LD=$lt_LD_CXX
14416
14417 # Whether we need hard or soft links.
14418 LN_S=$lt_LN_S
14419
14420 # A BSD-compatible nm program.
14421 NM=$lt_NM
14422
14423 # A symbol stripping program
14424 STRIP=$lt_STRIP
14425
14426 # Used to examine libraries when file_magic_cmd begins "file"
14427 MAGIC_CMD=$MAGIC_CMD
14428
14429 # Used on cygwin: DLL creation program.
14430 DLLTOOL="$DLLTOOL"
14431
14432 # Used on cygwin: object dumper.
14433 OBJDUMP="$OBJDUMP"
14434
14435 # Used on cygwin: assembler.
14436 AS="$AS"
14437
14438 # The name of the directory that contains temporary libtool files.
14439 objdir=$objdir
14440
14441 # How to create reloadable object files.
14442 reload_flag=$lt_reload_flag
14443 reload_cmds=$lt_reload_cmds
14444
14445 # How to pass a linker flag through the compiler.
14446 wl=$lt_lt_prog_compiler_wl_CXX
14447
14448 # Object file suffix (normally "o").
14449 objext="$ac_objext"
14450
14451 # Old archive suffix (normally "a").
14452 libext="$libext"
14453
14454 # Shared library suffix (normally ".so").
14455 shrext_cmds='$shrext_cmds'
14456
14457 # Executable file suffix (normally "").
14458 exeext="$exeext"
14459
14460 # Additional compiler flags for building library objects.
14461 pic_flag=$lt_lt_prog_compiler_pic_CXX
14462 pic_mode=$pic_mode
14463
14464 # What is the maximum length of a command?
14465 max_cmd_len=$lt_cv_sys_max_cmd_len
14466
14467 # Does compiler simultaneously support -c and -o options?
14468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14469
14470 # Must we lock files when doing compilation?
14471 need_locks=$lt_need_locks
14472
14473 # Do we need the lib prefix for modules?
14474 need_lib_prefix=$need_lib_prefix
14475
14476 # Do we need a version for libraries?
14477 need_version=$need_version
14478
14479 # Whether dlopen is supported.
14480 dlopen_support=$enable_dlopen
14481
14482 # Whether dlopen of programs is supported.
14483 dlopen_self=$enable_dlopen_self
14484
14485 # Whether dlopen of statically linked programs is supported.
14486 dlopen_self_static=$enable_dlopen_self_static
14487
14488 # Compiler flag to prevent dynamic linking.
14489 link_static_flag=$lt_lt_prog_compiler_static_CXX
14490
14491 # Compiler flag to turn off builtin functions.
14492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14493
14494 # Compiler flag to allow reflexive dlopens.
14495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14496
14497 # Compiler flag to generate shared objects directly from archives.
14498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14499
14500 # Compiler flag to generate thread-safe objects.
14501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14502
14503 # Library versioning type.
14504 version_type=$version_type
14505
14506 # Format of library name prefix.
14507 libname_spec=$lt_libname_spec
14508
14509 # List of archive names.  First name is the real one, the rest are links.
14510 # The last name is the one that the linker finds with -lNAME.
14511 library_names_spec=$lt_library_names_spec
14512
14513 # The coded name of the library, if different from the real name.
14514 soname_spec=$lt_soname_spec
14515
14516 # Commands used to build and install an old-style archive.
14517 RANLIB=$lt_RANLIB
14518 old_archive_cmds=$lt_old_archive_cmds_CXX
14519 old_postinstall_cmds=$lt_old_postinstall_cmds
14520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14521
14522 # Create an old-style archive from a shared archive.
14523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14524
14525 # Create a temporary old-style archive to link instead of a shared archive.
14526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14527
14528 # Commands used to build and install a shared archive.
14529 archive_cmds=$lt_archive_cmds_CXX
14530 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14531 postinstall_cmds=$lt_postinstall_cmds
14532 postuninstall_cmds=$lt_postuninstall_cmds
14533
14534 # Commands used to build a loadable module (assumed same as above if empty)
14535 module_cmds=$lt_module_cmds_CXX
14536 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14537
14538 # Commands to strip libraries.
14539 old_striplib=$lt_old_striplib
14540 striplib=$lt_striplib
14541
14542 # Dependencies to place before the objects being linked to create a
14543 # shared library.
14544 predep_objects=$lt_predep_objects_CXX
14545
14546 # Dependencies to place after the objects being linked to create a
14547 # shared library.
14548 postdep_objects=$lt_postdep_objects_CXX
14549
14550 # Dependencies to place before the objects being linked to create a
14551 # shared library.
14552 predeps=$lt_predeps_CXX
14553
14554 # Dependencies to place after the objects being linked to create a
14555 # shared library.
14556 postdeps=$lt_postdeps_CXX
14557
14558 # The library search path used internally by the compiler when linking
14559 # a shared library.
14560 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14561
14562 # Method to check whether dependent libraries are shared objects.
14563 deplibs_check_method=$lt_deplibs_check_method
14564
14565 # Command to use when deplibs_check_method == file_magic.
14566 file_magic_cmd=$lt_file_magic_cmd
14567
14568 # Flag that allows shared libraries with undefined symbols to be built.
14569 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14570
14571 # Flag that forces no undefined symbols.
14572 no_undefined_flag=$lt_no_undefined_flag_CXX
14573
14574 # Commands used to finish a libtool library installation in a directory.
14575 finish_cmds=$lt_finish_cmds
14576
14577 # Same as above, but a single script fragment to be evaled but not shown.
14578 finish_eval=$lt_finish_eval
14579
14580 # Take the output of nm and produce a listing of raw symbols and C names.
14581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14582
14583 # Transform the output of nm in a proper C declaration
14584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14585
14586 # Transform the output of nm in a C name address pair
14587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14588
14589 # This is the shared library runtime path variable.
14590 runpath_var=$runpath_var
14591
14592 # This is the shared library path variable.
14593 shlibpath_var=$shlibpath_var
14594
14595 # Is shlibpath searched before the hard-coded library search path?
14596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14597
14598 # How to hardcode a shared library path into an executable.
14599 hardcode_action=$hardcode_action_CXX
14600
14601 # Whether we should hardcode library paths into libraries.
14602 hardcode_into_libs=$hardcode_into_libs
14603
14604 # Flag to hardcode \$libdir into a binary during linking.
14605 # This must work even if \$libdir does not exist.
14606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14607
14608 # If ld is used when linking, flag to hardcode \$libdir into
14609 # a binary during linking. This must work even if \$libdir does
14610 # not exist.
14611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14612
14613 # Whether we need a single -rpath flag with a separated argument.
14614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14615
14616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14617 # resulting binary.
14618 hardcode_direct=$hardcode_direct_CXX
14619
14620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14621 # resulting binary.
14622 hardcode_minus_L=$hardcode_minus_L_CXX
14623
14624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14625 # the resulting binary.
14626 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14627
14628 # Set to yes if building a shared library automatically hardcodes DIR into the library
14629 # and all subsequent libraries and executables linked against it.
14630 hardcode_automatic=$hardcode_automatic_CXX
14631
14632 # Variables whose values should be saved in libtool wrapper scripts and
14633 # restored at relink time.
14634 variables_saved_for_relink="$variables_saved_for_relink"
14635
14636 # Whether libtool must link a program against all its dependency libraries.
14637 link_all_deplibs=$link_all_deplibs_CXX
14638
14639 # Compile-time system search path for libraries
14640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14641
14642 # Run-time system search path for libraries
14643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14644
14645 # Fix the shell variable \$srcfile for the compiler.
14646 fix_srcfile_path="$fix_srcfile_path_CXX"
14647
14648 # Set to yes if exported symbols are required.
14649 always_export_symbols=$always_export_symbols_CXX
14650
14651 # The commands to list exported symbols.
14652 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14653
14654 # The commands to extract the exported symbol list from a shared archive.
14655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14656
14657 # Symbols that should not be listed in the preloaded symbols.
14658 exclude_expsyms=$lt_exclude_expsyms_CXX
14659
14660 # Symbols that must always be exported.
14661 include_expsyms=$lt_include_expsyms_CXX
14662
14663 # ### END LIBTOOL TAG CONFIG: $tagname
14664
14665 __EOF__
14666
14667
14668 else
14669   # If there is no Makefile yet, we rely on a make rule to execute
14670   # `config.status --recheck' to rerun these tests and create the
14671   # libtool script then.
14672   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14673   if test -f "$ltmain_in"; then
14674     test -f Makefile && make "$ltmain"
14675   fi
14676 fi
14677
14678
14679 ac_ext=c
14680 ac_cpp='$CPP $CPPFLAGS'
14681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14684
14685 CC=$lt_save_CC
14686 LDCXX=$LD
14687 LD=$lt_save_LD
14688 GCC=$lt_save_GCC
14689 with_gnu_ldcxx=$with_gnu_ld
14690 with_gnu_ld=$lt_save_with_gnu_ld
14691 lt_cv_path_LDCXX=$lt_cv_path_LD
14692 lt_cv_path_LD=$lt_save_path_LD
14693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14695
14696         else
14697           tagname=""
14698         fi
14699         ;;
14700
14701       F77)
14702         if test -n "$F77" && test "X$F77" != "Xno"; then
14703
14704 ac_ext=f
14705 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14706 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14707 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14708
14709
14710 archive_cmds_need_lc_F77=no
14711 allow_undefined_flag_F77=
14712 always_export_symbols_F77=no
14713 archive_expsym_cmds_F77=
14714 export_dynamic_flag_spec_F77=
14715 hardcode_direct_F77=no
14716 hardcode_libdir_flag_spec_F77=
14717 hardcode_libdir_flag_spec_ld_F77=
14718 hardcode_libdir_separator_F77=
14719 hardcode_minus_L_F77=no
14720 hardcode_automatic_F77=no
14721 module_cmds_F77=
14722 module_expsym_cmds_F77=
14723 link_all_deplibs_F77=unknown
14724 old_archive_cmds_F77=$old_archive_cmds
14725 no_undefined_flag_F77=
14726 whole_archive_flag_spec_F77=
14727 enable_shared_with_static_runtimes_F77=no
14728
14729 # Source file extension for f77 test sources.
14730 ac_ext=f
14731
14732 # Object file extension for compiled f77 test sources.
14733 objext=o
14734 objext_F77=$objext
14735
14736 # Code to be used in simple compile tests
14737 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14738
14739 # Code to be used in simple link tests
14740 lt_simple_link_test_code="      program t\n      end\n"
14741
14742 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14743
14744 # If no C compiler was specified, use CC.
14745 LTCC=${LTCC-"$CC"}
14746
14747 # If no C compiler flags were specified, use CFLAGS.
14748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14749
14750 # Allow CC to be a program name with arguments.
14751 compiler=$CC
14752
14753
14754 # save warnings/boilerplate of simple test code
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14758 _lt_compiler_boilerplate=`cat conftest.err`
14759 $rm conftest*
14760
14761 ac_outfile=conftest.$ac_objext
14762 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14764 _lt_linker_boilerplate=`cat conftest.err`
14765 $rm conftest*
14766
14767
14768 # Allow CC to be a program name with arguments.
14769 lt_save_CC="$CC"
14770 CC=${F77-"f77"}
14771 compiler=$CC
14772 compiler_F77=$CC
14773 for cc_temp in $compiler""; do
14774   case $cc_temp in
14775     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14776     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14777     \-*) ;;
14778     *) break;;
14779   esac
14780 done
14781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14782
14783
14784 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14785 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14786 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14787 echo "${ECHO_T}$can_build_shared" >&6; }
14788
14789 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14790 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14791 test "$can_build_shared" = "no" && enable_shared=no
14792
14793 # On AIX, shared libraries and static libraries use the same namespace, and
14794 # are all built from PIC.
14795 case $host_os in
14796 aix3*)
14797   test "$enable_shared" = yes && enable_static=no
14798   if test -n "$RANLIB"; then
14799     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14800     postinstall_cmds='$RANLIB $lib'
14801   fi
14802   ;;
14803 aix4* | aix5*)
14804   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14805     test "$enable_shared" = yes && enable_static=no
14806   fi
14807   ;;
14808 esac
14809 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14810 echo "${ECHO_T}$enable_shared" >&6; }
14811
14812 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14813 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14814 # Make sure either enable_shared or enable_static is yes.
14815 test "$enable_shared" = yes || enable_static=yes
14816 { echo "$as_me:$LINENO: result: $enable_static" >&5
14817 echo "${ECHO_T}$enable_static" >&6; }
14818
14819 GCC_F77="$G77"
14820 LD_F77="$LD"
14821
14822 lt_prog_compiler_wl_F77=
14823 lt_prog_compiler_pic_F77=
14824 lt_prog_compiler_static_F77=
14825
14826 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14828
14829   if test "$GCC" = yes; then
14830     lt_prog_compiler_wl_F77='-Wl,'
14831     lt_prog_compiler_static_F77='-static'
14832
14833     case $host_os in
14834       aix*)
14835       # All AIX code is PIC.
14836       if test "$host_cpu" = ia64; then
14837         # AIX 5 now supports IA64 processor
14838         lt_prog_compiler_static_F77='-Bstatic'
14839       fi
14840       ;;
14841
14842     amigaos*)
14843       # FIXME: we need at least 68020 code to build shared libraries, but
14844       # adding the `-m68020' flag to GCC prevents building anything better,
14845       # like `-m68040'.
14846       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14847       ;;
14848
14849     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14850       # PIC is the default for these OSes.
14851       ;;
14852
14853     mingw* | pw32* | os2*)
14854       # This hack is so that the source file can tell whether it is being
14855       # built for inclusion in a dll (and should export symbols for example).
14856       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14857       ;;
14858
14859     darwin* | rhapsody*)
14860       # PIC is the default on this platform
14861       # Common symbols not allowed in MH_DYLIB files
14862       lt_prog_compiler_pic_F77='-fno-common'
14863       ;;
14864
14865     interix3*)
14866       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14867       # Instead, we relocate shared libraries at runtime.
14868       ;;
14869
14870     msdosdjgpp*)
14871       # Just because we use GCC doesn't mean we suddenly get shared libraries
14872       # on systems that don't support them.
14873       lt_prog_compiler_can_build_shared_F77=no
14874       enable_shared=no
14875       ;;
14876
14877     sysv4*MP*)
14878       if test -d /usr/nec; then
14879         lt_prog_compiler_pic_F77=-Kconform_pic
14880       fi
14881       ;;
14882
14883     hpux*)
14884       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885       # not for PA HP-UX.
14886       case $host_cpu in
14887       hppa*64*|ia64*)
14888         # +Z the default
14889         ;;
14890       *)
14891         lt_prog_compiler_pic_F77='-fPIC'
14892         ;;
14893       esac
14894       ;;
14895
14896     *)
14897       lt_prog_compiler_pic_F77='-fPIC'
14898       ;;
14899     esac
14900   else
14901     # PORTME Check for flag to pass linker flags through the system compiler.
14902     case $host_os in
14903     aix*)
14904       lt_prog_compiler_wl_F77='-Wl,'
14905       if test "$host_cpu" = ia64; then
14906         # AIX 5 now supports IA64 processor
14907         lt_prog_compiler_static_F77='-Bstatic'
14908       else
14909         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14910       fi
14911       ;;
14912       darwin*)
14913         # PIC is the default on this platform
14914         # Common symbols not allowed in MH_DYLIB files
14915        case $cc_basename in
14916          xlc*)
14917          lt_prog_compiler_pic_F77='-qnocommon'
14918          lt_prog_compiler_wl_F77='-Wl,'
14919          ;;
14920        esac
14921        ;;
14922
14923     mingw* | pw32* | os2*)
14924       # This hack is so that the source file can tell whether it is being
14925       # built for inclusion in a dll (and should export symbols for example).
14926       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14927       ;;
14928
14929     hpux9* | hpux10* | hpux11*)
14930       lt_prog_compiler_wl_F77='-Wl,'
14931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14932       # not for PA HP-UX.
14933       case $host_cpu in
14934       hppa*64*|ia64*)
14935         # +Z the default
14936         ;;
14937       *)
14938         lt_prog_compiler_pic_F77='+Z'
14939         ;;
14940       esac
14941       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14942       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14943       ;;
14944
14945     irix5* | irix6* | nonstopux*)
14946       lt_prog_compiler_wl_F77='-Wl,'
14947       # PIC (with -KPIC) is the default.
14948       lt_prog_compiler_static_F77='-non_shared'
14949       ;;
14950
14951     newsos6)
14952       lt_prog_compiler_pic_F77='-KPIC'
14953       lt_prog_compiler_static_F77='-Bstatic'
14954       ;;
14955
14956     linux* | k*bsd*-gnu)
14957       case $cc_basename in
14958       icc* | ecc*)
14959         lt_prog_compiler_wl_F77='-Wl,'
14960         lt_prog_compiler_pic_F77='-KPIC'
14961         lt_prog_compiler_static_F77='-static'
14962         ;;
14963       pgcc* | pgf77* | pgf90* | pgf95*)
14964         # Portland Group compilers (*not* the Pentium gcc compiler,
14965         # which looks to be a dead project)
14966         lt_prog_compiler_wl_F77='-Wl,'
14967         lt_prog_compiler_pic_F77='-fpic'
14968         lt_prog_compiler_static_F77='-Bstatic'
14969         ;;
14970       ccc*)
14971         lt_prog_compiler_wl_F77='-Wl,'
14972         # All Alpha code is PIC.
14973         lt_prog_compiler_static_F77='-non_shared'
14974         ;;
14975       esac
14976       ;;
14977
14978     osf3* | osf4* | osf5*)
14979       lt_prog_compiler_wl_F77='-Wl,'
14980       # All OSF/1 code is PIC.
14981       lt_prog_compiler_static_F77='-non_shared'
14982       ;;
14983
14984     solaris*)
14985       lt_prog_compiler_pic_F77='-KPIC'
14986       lt_prog_compiler_static_F77='-Bstatic'
14987       case $cc_basename in
14988       f77* | f90* | f95*)
14989         lt_prog_compiler_wl_F77='-Qoption ld ';;
14990       *)
14991         lt_prog_compiler_wl_F77='-Wl,';;
14992       esac
14993       ;;
14994
14995     sunos4*)
14996       lt_prog_compiler_wl_F77='-Qoption ld '
14997       lt_prog_compiler_pic_F77='-PIC'
14998       lt_prog_compiler_static_F77='-Bstatic'
14999       ;;
15000
15001     sysv4 | sysv4.2uw2* | sysv4.3*)
15002       lt_prog_compiler_wl_F77='-Wl,'
15003       lt_prog_compiler_pic_F77='-KPIC'
15004       lt_prog_compiler_static_F77='-Bstatic'
15005       ;;
15006
15007     sysv4*MP*)
15008       if test -d /usr/nec ;then
15009         lt_prog_compiler_pic_F77='-Kconform_pic'
15010         lt_prog_compiler_static_F77='-Bstatic'
15011       fi
15012       ;;
15013
15014     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15015       lt_prog_compiler_wl_F77='-Wl,'
15016       lt_prog_compiler_pic_F77='-KPIC'
15017       lt_prog_compiler_static_F77='-Bstatic'
15018       ;;
15019
15020     unicos*)
15021       lt_prog_compiler_wl_F77='-Wl,'
15022       lt_prog_compiler_can_build_shared_F77=no
15023       ;;
15024
15025     uts4*)
15026       lt_prog_compiler_pic_F77='-pic'
15027       lt_prog_compiler_static_F77='-Bstatic'
15028       ;;
15029
15030     *)
15031       lt_prog_compiler_can_build_shared_F77=no
15032       ;;
15033     esac
15034   fi
15035
15036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15037 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15038
15039 #
15040 # Check to make sure the PIC flag actually works.
15041 #
15042 if test -n "$lt_prog_compiler_pic_F77"; then
15043
15044 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15046 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   lt_prog_compiler_pic_works_F77=no
15050   ac_outfile=conftest.$ac_objext
15051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15052    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15053    # Insert the option either (1) after the last *FLAGS variable, or
15054    # (2) before a word containing "conftest.", or (3) at the end.
15055    # Note that $ac_compile itself does not contain backslashes and begins
15056    # with a dollar sign (not a hyphen), so the echo should work correctly.
15057    # The option is referenced via a variable to avoid confusing sed.
15058    lt_compile=`echo "$ac_compile" | $SED \
15059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061    -e 's:$: $lt_compiler_flag:'`
15062    (eval echo "\"\$as_me:15062: $lt_compile\"" >&5)
15063    (eval "$lt_compile" 2>conftest.err)
15064    ac_status=$?
15065    cat conftest.err >&5
15066    echo "$as_me:15066: \$? = $ac_status" >&5
15067    if (exit $ac_status) && test -s "$ac_outfile"; then
15068      # The compiler can only warn and ignore the option if not recognized
15069      # So say no if there are warnings other than the usual output.
15070      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15071      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15072      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15073        lt_prog_compiler_pic_works_F77=yes
15074      fi
15075    fi
15076    $rm conftest*
15077
15078 fi
15079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15081
15082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15083     case $lt_prog_compiler_pic_F77 in
15084      "" | " "*) ;;
15085      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15086      esac
15087 else
15088     lt_prog_compiler_pic_F77=
15089      lt_prog_compiler_can_build_shared_F77=no
15090 fi
15091
15092 fi
15093 case $host_os in
15094   # For platforms which do not support PIC, -DPIC is meaningless:
15095   *djgpp*)
15096     lt_prog_compiler_pic_F77=
15097     ;;
15098   *)
15099     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15100     ;;
15101 esac
15102
15103 #
15104 # Check to make sure the static flag actually works.
15105 #
15106 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15107 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15108 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15109 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   lt_prog_compiler_static_works_F77=no
15113    save_LDFLAGS="$LDFLAGS"
15114    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15116    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117      # The linker can only warn and ignore the option if not recognized
15118      # So say no if there are warnings
15119      if test -s conftest.err; then
15120        # Append any errors to the config.log.
15121        cat conftest.err 1>&5
15122        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15123        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124        if diff conftest.exp conftest.er2 >/dev/null; then
15125          lt_prog_compiler_static_works_F77=yes
15126        fi
15127      else
15128        lt_prog_compiler_static_works_F77=yes
15129      fi
15130    fi
15131    $rm conftest*
15132    LDFLAGS="$save_LDFLAGS"
15133
15134 fi
15135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15136 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15137
15138 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15139     :
15140 else
15141     lt_prog_compiler_static_F77=
15142 fi
15143
15144
15145 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15147 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15148   echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150   lt_cv_prog_compiler_c_o_F77=no
15151    $rm -r conftest 2>/dev/null
15152    mkdir conftest
15153    cd conftest
15154    mkdir out
15155    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15156
15157    lt_compiler_flag="-o out/conftest2.$ac_objext"
15158    # Insert the option either (1) after the last *FLAGS variable, or
15159    # (2) before a word containing "conftest.", or (3) at the end.
15160    # Note that $ac_compile itself does not contain backslashes and begins
15161    # with a dollar sign (not a hyphen), so the echo should work correctly.
15162    lt_compile=`echo "$ac_compile" | $SED \
15163    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15165    -e 's:$: $lt_compiler_flag:'`
15166    (eval echo "\"\$as_me:15166: $lt_compile\"" >&5)
15167    (eval "$lt_compile" 2>out/conftest.err)
15168    ac_status=$?
15169    cat out/conftest.err >&5
15170    echo "$as_me:15170: \$? = $ac_status" >&5
15171    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15172    then
15173      # The compiler can only warn and ignore the option if not recognized
15174      # So say no if there are warnings
15175      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15176      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15177      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15178        lt_cv_prog_compiler_c_o_F77=yes
15179      fi
15180    fi
15181    chmod u+w . 2>&5
15182    $rm conftest*
15183    # SGI C++ compiler will create directory out/ii_files/ for
15184    # template instantiation
15185    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15186    $rm out/* && rmdir out
15187    cd ..
15188    rmdir conftest
15189    $rm conftest*
15190
15191 fi
15192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15194
15195
15196 hard_links="nottested"
15197 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15198   # do not overwrite the value of need_locks provided by the user
15199   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15200 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15201   hard_links=yes
15202   $rm conftest*
15203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15204   touch conftest.a
15205   ln conftest.a conftest.b 2>&5 || hard_links=no
15206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15207   { echo "$as_me:$LINENO: result: $hard_links" >&5
15208 echo "${ECHO_T}$hard_links" >&6; }
15209   if test "$hard_links" = no; then
15210     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15211 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15212     need_locks=warn
15213   fi
15214 else
15215   need_locks=no
15216 fi
15217
15218 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15219 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15220
15221   runpath_var=
15222   allow_undefined_flag_F77=
15223   enable_shared_with_static_runtimes_F77=no
15224   archive_cmds_F77=
15225   archive_expsym_cmds_F77=
15226   old_archive_From_new_cmds_F77=
15227   old_archive_from_expsyms_cmds_F77=
15228   export_dynamic_flag_spec_F77=
15229   whole_archive_flag_spec_F77=
15230   thread_safe_flag_spec_F77=
15231   hardcode_libdir_flag_spec_F77=
15232   hardcode_libdir_flag_spec_ld_F77=
15233   hardcode_libdir_separator_F77=
15234   hardcode_direct_F77=no
15235   hardcode_minus_L_F77=no
15236   hardcode_shlibpath_var_F77=unsupported
15237   link_all_deplibs_F77=unknown
15238   hardcode_automatic_F77=no
15239   module_cmds_F77=
15240   module_expsym_cmds_F77=
15241   always_export_symbols_F77=no
15242   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15243   # include_expsyms should be a list of space-separated symbols to be *always*
15244   # included in the symbol list
15245   include_expsyms_F77=
15246   # exclude_expsyms can be an extended regexp of symbols to exclude
15247   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15248   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15249   # as well as any symbol that contains `d'.
15250   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15251   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15252   # platforms (ab)use it in PIC code, but their linkers get confused if
15253   # the symbol is explicitly referenced.  Since portable code cannot
15254   # rely on this symbol name, it's probably fine to never include it in
15255   # preloaded symbol tables.
15256   extract_expsyms_cmds=
15257   # Just being paranoid about ensuring that cc_basename is set.
15258   for cc_temp in $compiler""; do
15259   case $cc_temp in
15260     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15261     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15262     \-*) ;;
15263     *) break;;
15264   esac
15265 done
15266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15267
15268   case $host_os in
15269   cygwin* | mingw* | pw32*)
15270     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15271     # When not using gcc, we currently assume that we are using
15272     # Microsoft Visual C++.
15273     if test "$GCC" != yes; then
15274       with_gnu_ld=no
15275     fi
15276     ;;
15277   interix*)
15278     # we just hope/assume this is gcc and not c89 (= MSVC++)
15279     with_gnu_ld=yes
15280     ;;
15281   openbsd*)
15282     with_gnu_ld=no
15283     ;;
15284   esac
15285
15286   ld_shlibs_F77=yes
15287   if test "$with_gnu_ld" = yes; then
15288     # If archive_cmds runs LD, not CC, wlarc should be empty
15289     wlarc='${wl}'
15290
15291     # Set some defaults for GNU ld with shared library support. These
15292     # are reset later if shared libraries are not supported. Putting them
15293     # here allows them to be overridden if necessary.
15294     runpath_var=LD_RUN_PATH
15295     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15296     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15297     # ancient GNU ld didn't support --whole-archive et. al.
15298     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15299         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15300       else
15301         whole_archive_flag_spec_F77=
15302     fi
15303     supports_anon_versioning=no
15304     case `$LD -v 2>/dev/null` in
15305       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15306       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15307       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15308       *\ 2.11.*) ;; # other 2.11 versions
15309       *) supports_anon_versioning=yes ;;
15310     esac
15311
15312     # See if GNU ld supports shared libraries.
15313     case $host_os in
15314     aix3* | aix4* | aix5*)
15315       # On AIX/PPC, the GNU linker is very broken
15316       if test "$host_cpu" != ia64; then
15317         ld_shlibs_F77=no
15318         cat <<EOF 1>&2
15319
15320 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15321 *** to be unable to reliably create shared libraries on AIX.
15322 *** Therefore, libtool is disabling shared libraries support.  If you
15323 *** really care for shared libraries, you may want to modify your PATH
15324 *** so that a non-GNU linker is found, and then restart.
15325
15326 EOF
15327       fi
15328       ;;
15329
15330     amigaos*)
15331       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)'
15332       hardcode_libdir_flag_spec_F77='-L$libdir'
15333       hardcode_minus_L_F77=yes
15334
15335       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15336       # that the semantics of dynamic libraries on AmigaOS, at least up
15337       # to version 4, is to share data among multiple programs linked
15338       # with the same dynamic library.  Since this doesn't match the
15339       # behavior of shared libraries on other platforms, we can't use
15340       # them.
15341       ld_shlibs_F77=no
15342       ;;
15343
15344     beos*)
15345       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15346         allow_undefined_flag_F77=unsupported
15347         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15348         # support --undefined.  This deserves some investigation.  FIXME
15349         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15350       else
15351         ld_shlibs_F77=no
15352       fi
15353       ;;
15354
15355     cygwin* | mingw* | pw32*)
15356       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15357       # as there is no search path for DLLs.
15358       hardcode_libdir_flag_spec_F77='-L$libdir'
15359       allow_undefined_flag_F77=unsupported
15360       always_export_symbols_F77=no
15361       enable_shared_with_static_runtimes_F77=yes
15362       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15363
15364       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15365         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15366         # If the export-symbols file already is a .def file (1st line
15367         # is EXPORTS), use it as is; otherwise, prepend...
15368         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15369           cp $export_symbols $output_objdir/$soname.def;
15370         else
15371           echo EXPORTS > $output_objdir/$soname.def;
15372           cat $export_symbols >> $output_objdir/$soname.def;
15373         fi~
15374         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15375       else
15376         ld_shlibs_F77=no
15377       fi
15378       ;;
15379
15380     interix3*)
15381       hardcode_direct_F77=no
15382       hardcode_shlibpath_var_F77=no
15383       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15384       export_dynamic_flag_spec_F77='${wl}-E'
15385       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15386       # Instead, shared libraries are loaded at an image base (0x10000000 by
15387       # default) and relocated if they conflict, which is a slow very memory
15388       # consuming and fragmenting process.  To avoid this, we pick a random,
15389       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15390       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15391       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'
15392       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'
15393       ;;
15394
15395     linux* | k*bsd*-gnu)
15396       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15397         tmp_addflag=
15398         case $cc_basename,$host_cpu in
15399         pgcc*)                          # Portland Group C compiler
15400           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'
15401           tmp_addflag=' $pic_flag'
15402           ;;
15403         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15404           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'
15405           tmp_addflag=' $pic_flag -Mnomain' ;;
15406         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15407           tmp_addflag=' -i_dynamic' ;;
15408         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15409           tmp_addflag=' -i_dynamic -nofor_main' ;;
15410         ifc* | ifort*)                  # Intel Fortran compiler
15411           tmp_addflag=' -nofor_main' ;;
15412         esac
15413         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15414
15415         if test $supports_anon_versioning = yes; then
15416           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15417   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418   $echo "local: *; };" >> $output_objdir/$libname.ver~
15419           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15420         fi
15421         link_all_deplibs_F77=no
15422       else
15423         ld_shlibs_F77=no
15424       fi
15425       ;;
15426
15427     netbsd* | netbsdelf*-gnu)
15428       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15429         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15430         wlarc=
15431       else
15432         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15433         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15434       fi
15435       ;;
15436
15437     solaris*)
15438       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15439         ld_shlibs_F77=no
15440         cat <<EOF 1>&2
15441
15442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15443 *** create shared libraries on Solaris systems.  Therefore, libtool
15444 *** is disabling shared libraries support.  We urge you to upgrade GNU
15445 *** binutils to release 2.9.1 or newer.  Another option is to modify
15446 *** your PATH or compiler configuration so that the native linker is
15447 *** used, and then restart.
15448
15449 EOF
15450       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15451         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15452         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15453       else
15454         ld_shlibs_F77=no
15455       fi
15456       ;;
15457
15458     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15459       case `$LD -v 2>&1` in
15460         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15461         ld_shlibs_F77=no
15462         cat <<_LT_EOF 1>&2
15463
15464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15465 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15466 *** is disabling shared libraries support.  We urge you to upgrade GNU
15467 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15468 *** your PATH or compiler configuration so that the native linker is
15469 *** used, and then restart.
15470
15471 _LT_EOF
15472         ;;
15473         *)
15474           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15475             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15476             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15477             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15478           else
15479             ld_shlibs_F77=no
15480           fi
15481         ;;
15482       esac
15483       ;;
15484
15485     sunos4*)
15486       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15487       wlarc=
15488       hardcode_direct_F77=yes
15489       hardcode_shlibpath_var_F77=no
15490       ;;
15491
15492     *)
15493       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496       else
15497         ld_shlibs_F77=no
15498       fi
15499       ;;
15500     esac
15501
15502     if test "$ld_shlibs_F77" = no; then
15503       runpath_var=
15504       hardcode_libdir_flag_spec_F77=
15505       export_dynamic_flag_spec_F77=
15506       whole_archive_flag_spec_F77=
15507     fi
15508   else
15509     # PORTME fill in a description of your system's linker (not GNU ld)
15510     case $host_os in
15511     aix3*)
15512       allow_undefined_flag_F77=unsupported
15513       always_export_symbols_F77=yes
15514       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'
15515       # Note: this linker hardcodes the directories in LIBPATH if there
15516       # are no directories specified by -L.
15517       hardcode_minus_L_F77=yes
15518       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15519         # Neither direct hardcoding nor static linking is supported with a
15520         # broken collect2.
15521         hardcode_direct_F77=unsupported
15522       fi
15523       ;;
15524
15525     aix4* | aix5*)
15526       if test "$host_cpu" = ia64; then
15527         # On IA64, the linker does run time linking by default, so we don't
15528         # have to do anything special.
15529         aix_use_runtimelinking=no
15530         exp_sym_flag='-Bexport'
15531         no_entry_flag=""
15532       else
15533         # If we're using GNU nm, then we don't want the "-C" option.
15534         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15535         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15536           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'
15537         else
15538           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'
15539         fi
15540         aix_use_runtimelinking=no
15541
15542         # Test if we are trying to use run time linking or normal
15543         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15544         # need to do runtime linking.
15545         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15546           for ld_flag in $LDFLAGS; do
15547           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15548             aix_use_runtimelinking=yes
15549             break
15550           fi
15551           done
15552           ;;
15553         esac
15554
15555         exp_sym_flag='-bexport'
15556         no_entry_flag='-bnoentry'
15557       fi
15558
15559       # When large executables or shared objects are built, AIX ld can
15560       # have problems creating the table of contents.  If linking a library
15561       # or program results in "error TOC overflow" add -mminimal-toc to
15562       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15563       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15564
15565       archive_cmds_F77=''
15566       hardcode_direct_F77=yes
15567       hardcode_libdir_separator_F77=':'
15568       link_all_deplibs_F77=yes
15569
15570       if test "$GCC" = yes; then
15571         case $host_os in aix4.[012]|aix4.[012].*)
15572         # We only want to do this on AIX 4.2 and lower, the check
15573         # below for broken collect2 doesn't work under 4.3+
15574           collect2name=`${CC} -print-prog-name=collect2`
15575           if test -f "$collect2name" && \
15576            strings "$collect2name" | grep resolve_lib_name >/dev/null
15577           then
15578           # We have reworked collect2
15579           hardcode_direct_F77=yes
15580           else
15581           # We have old collect2
15582           hardcode_direct_F77=unsupported
15583           # It fails to find uninstalled libraries when the uninstalled
15584           # path is not listed in the libpath.  Setting hardcode_minus_L
15585           # to unsupported forces relinking
15586           hardcode_minus_L_F77=yes
15587           hardcode_libdir_flag_spec_F77='-L$libdir'
15588           hardcode_libdir_separator_F77=
15589           fi
15590           ;;
15591         esac
15592         shared_flag='-shared'
15593         if test "$aix_use_runtimelinking" = yes; then
15594           shared_flag="$shared_flag "'${wl}-G'
15595         fi
15596       else
15597         # not using gcc
15598         if test "$host_cpu" = ia64; then
15599         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15600         # chokes on -Wl,-G. The following line is correct:
15601           shared_flag='-G'
15602         else
15603           if test "$aix_use_runtimelinking" = yes; then
15604             shared_flag='${wl}-G'
15605           else
15606             shared_flag='${wl}-bM:SRE'
15607           fi
15608         fi
15609       fi
15610
15611       # It seems that -bexpall does not export symbols beginning with
15612       # underscore (_), so it is better to generate a list of symbols to export.
15613       always_export_symbols_F77=yes
15614       if test "$aix_use_runtimelinking" = yes; then
15615         # Warning - without using the other runtime loading flags (-brtl),
15616         # -berok will link without error, but may produce a broken library.
15617         allow_undefined_flag_F77='-berok'
15618        # Determine the default libpath from the value encoded in an empty executable.
15619        cat >conftest.$ac_ext <<_ACEOF
15620       program main
15621
15622       end
15623 _ACEOF
15624 rm -f conftest.$ac_objext conftest$ac_exeext
15625 if { (ac_try="$ac_link"
15626 case "(($ac_try" in
15627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628   *) ac_try_echo=$ac_try;;
15629 esac
15630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631   (eval "$ac_link") 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } && {
15638          test -z "$ac_f77_werror_flag" ||
15639          test ! -s conftest.err
15640        } && test -s conftest$ac_exeext &&
15641        $as_test_x conftest$ac_exeext; then
15642
15643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15644 }'`
15645 # Check for a 64-bit object if we didn't find anything.
15646 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; }
15647 }'`; fi
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652
15653 fi
15654
15655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15656       conftest$ac_exeext conftest.$ac_ext
15657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15658
15659        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15660         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"
15661        else
15662         if test "$host_cpu" = ia64; then
15663           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15664           allow_undefined_flag_F77="-z nodefs"
15665           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"
15666         else
15667          # Determine the default libpath from the value encoded in an empty executable.
15668          cat >conftest.$ac_ext <<_ACEOF
15669       program main
15670
15671       end
15672 _ACEOF
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_link") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } && {
15687          test -z "$ac_f77_werror_flag" ||
15688          test ! -s conftest.err
15689        } && test -s conftest$ac_exeext &&
15690        $as_test_x conftest$ac_exeext; then
15691
15692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15693 }'`
15694 # Check for a 64-bit object if we didn't find anything.
15695 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; }
15696 }'`; fi
15697 else
15698   echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15700
15701
15702 fi
15703
15704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15705       conftest$ac_exeext conftest.$ac_ext
15706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15707
15708          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15709           # Warning - without using the other run time loading flags,
15710           # -berok will link without error, but may produce a broken library.
15711           no_undefined_flag_F77=' ${wl}-bernotok'
15712           allow_undefined_flag_F77=' ${wl}-berok'
15713           # Exported symbols can be pulled into shared objects from archives
15714           whole_archive_flag_spec_F77='$convenience'
15715           archive_cmds_need_lc_F77=yes
15716           # This is similar to how AIX traditionally builds its shared libraries.
15717           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'
15718         fi
15719       fi
15720       ;;
15721
15722     amigaos*)
15723       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)'
15724       hardcode_libdir_flag_spec_F77='-L$libdir'
15725       hardcode_minus_L_F77=yes
15726       # see comment about different semantics on the GNU ld section
15727       ld_shlibs_F77=no
15728       ;;
15729
15730     bsdi[45]*)
15731       export_dynamic_flag_spec_F77=-rdynamic
15732       ;;
15733
15734     cygwin* | mingw* | pw32*)
15735       # When not using gcc, we currently assume that we are using
15736       # Microsoft Visual C++.
15737       # hardcode_libdir_flag_spec is actually meaningless, as there is
15738       # no search path for DLLs.
15739       hardcode_libdir_flag_spec_F77=' '
15740       allow_undefined_flag_F77=unsupported
15741       # Tell ltmain to make .lib files, not .a files.
15742       libext=lib
15743       # Tell ltmain to make .dll files, not .so files.
15744       shrext_cmds=".dll"
15745       # FIXME: Setting linknames here is a bad hack.
15746       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15747       # The linker will automatically build a .lib file if we build a DLL.
15748       old_archive_From_new_cmds_F77='true'
15749       # FIXME: Should let the user specify the lib program.
15750       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15751       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15752       enable_shared_with_static_runtimes_F77=yes
15753       ;;
15754
15755     darwin* | rhapsody*)
15756       case $host_os in
15757         rhapsody* | darwin1.[012])
15758          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15759          ;;
15760        *) # Darwin 1.3 on
15761          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15762            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15763          else
15764            case ${MACOSX_DEPLOYMENT_TARGET} in
15765              10.[012])
15766                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15767                ;;
15768              10.*)
15769                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15770                ;;
15771            esac
15772          fi
15773          ;;
15774       esac
15775       archive_cmds_need_lc_F77=no
15776       hardcode_direct_F77=no
15777       hardcode_automatic_F77=yes
15778       hardcode_shlibpath_var_F77=unsupported
15779       whole_archive_flag_spec_F77=''
15780       link_all_deplibs_F77=yes
15781     if test "$GCC" = yes ; then
15782         output_verbose_link_cmd='echo'
15783         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15784       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15785       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15786       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}'
15787       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}'
15788     else
15789       case $cc_basename in
15790         xlc*)
15791          output_verbose_link_cmd='echo'
15792          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15793          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15794           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15795          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}'
15796           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}'
15797           ;;
15798        *)
15799          ld_shlibs_F77=no
15800           ;;
15801       esac
15802     fi
15803       ;;
15804
15805     dgux*)
15806       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807       hardcode_libdir_flag_spec_F77='-L$libdir'
15808       hardcode_shlibpath_var_F77=no
15809       ;;
15810
15811     freebsd1*)
15812       ld_shlibs_F77=no
15813       ;;
15814
15815     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15816     # support.  Future versions do this automatically, but an explicit c++rt0.o
15817     # does not break anything, and helps significantly (at the cost of a little
15818     # extra space).
15819     freebsd2.2*)
15820       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15821       hardcode_libdir_flag_spec_F77='-R$libdir'
15822       hardcode_direct_F77=yes
15823       hardcode_shlibpath_var_F77=no
15824       ;;
15825
15826     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15827     freebsd2*)
15828       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15829       hardcode_direct_F77=yes
15830       hardcode_minus_L_F77=yes
15831       hardcode_shlibpath_var_F77=no
15832       ;;
15833
15834     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15835     freebsd* | dragonfly*)
15836       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15837       hardcode_libdir_flag_spec_F77='-R$libdir'
15838       hardcode_direct_F77=yes
15839       hardcode_shlibpath_var_F77=no
15840       ;;
15841
15842     hpux9*)
15843       if test "$GCC" = yes; then
15844         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'
15845       else
15846         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'
15847       fi
15848       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15849       hardcode_libdir_separator_F77=:
15850       hardcode_direct_F77=yes
15851
15852       # hardcode_minus_L: Not really in the search PATH,
15853       # but as the default location of the library.
15854       hardcode_minus_L_F77=yes
15855       export_dynamic_flag_spec_F77='${wl}-E'
15856       ;;
15857
15858     hpux10*)
15859       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15860         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15861       else
15862         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15863       fi
15864       if test "$with_gnu_ld" = no; then
15865         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15866         hardcode_libdir_separator_F77=:
15867
15868         hardcode_direct_F77=yes
15869         export_dynamic_flag_spec_F77='${wl}-E'
15870
15871         # hardcode_minus_L: Not really in the search PATH,
15872         # but as the default location of the library.
15873         hardcode_minus_L_F77=yes
15874       fi
15875       ;;
15876
15877     hpux11*)
15878       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15879         case $host_cpu in
15880         hppa*64*)
15881           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15882           ;;
15883         ia64*)
15884           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15885           ;;
15886         *)
15887           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15888           ;;
15889         esac
15890       else
15891         case $host_cpu in
15892         hppa*64*)
15893           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15894           ;;
15895         ia64*)
15896           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15897           ;;
15898         *)
15899           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15900           ;;
15901         esac
15902       fi
15903       if test "$with_gnu_ld" = no; then
15904         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15905         hardcode_libdir_separator_F77=:
15906
15907         case $host_cpu in
15908         hppa*64*|ia64*)
15909           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15910           hardcode_direct_F77=no
15911           hardcode_shlibpath_var_F77=no
15912           ;;
15913         *)
15914           hardcode_direct_F77=yes
15915           export_dynamic_flag_spec_F77='${wl}-E'
15916
15917           # hardcode_minus_L: Not really in the search PATH,
15918           # but as the default location of the library.
15919           hardcode_minus_L_F77=yes
15920           ;;
15921         esac
15922       fi
15923       ;;
15924
15925     irix5* | irix6* | nonstopux*)
15926       if test "$GCC" = yes; then
15927         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'
15928       else
15929         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'
15930         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15931       fi
15932       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15933       hardcode_libdir_separator_F77=:
15934       link_all_deplibs_F77=yes
15935       ;;
15936
15937     netbsd* | netbsdelf*-gnu)
15938       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15939         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15940       else
15941         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15942       fi
15943       hardcode_libdir_flag_spec_F77='-R$libdir'
15944       hardcode_direct_F77=yes
15945       hardcode_shlibpath_var_F77=no
15946       ;;
15947
15948     newsos6)
15949       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15950       hardcode_direct_F77=yes
15951       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15952       hardcode_libdir_separator_F77=:
15953       hardcode_shlibpath_var_F77=no
15954       ;;
15955
15956     openbsd*)
15957       hardcode_direct_F77=yes
15958       hardcode_shlibpath_var_F77=no
15959       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15960         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15961         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15962         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15963         export_dynamic_flag_spec_F77='${wl}-E'
15964       else
15965        case $host_os in
15966          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15967            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15968            hardcode_libdir_flag_spec_F77='-R$libdir'
15969            ;;
15970          *)
15971            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15972            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15973            ;;
15974        esac
15975       fi
15976       ;;
15977
15978     os2*)
15979       hardcode_libdir_flag_spec_F77='-L$libdir'
15980       hardcode_minus_L_F77=yes
15981       allow_undefined_flag_F77=unsupported
15982       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'
15983       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15984       ;;
15985
15986     osf3*)
15987       if test "$GCC" = yes; then
15988         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15989         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'
15990       else
15991         allow_undefined_flag_F77=' -expect_unresolved \*'
15992         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'
15993       fi
15994       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15995       hardcode_libdir_separator_F77=:
15996       ;;
15997
15998     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15999       if test "$GCC" = yes; then
16000         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16001         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'
16002         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16003       else
16004         allow_undefined_flag_F77=' -expect_unresolved \*'
16005         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'
16006         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~
16007         $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'
16008
16009         # Both c and cxx compiler support -rpath directly
16010         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16011       fi
16012       hardcode_libdir_separator_F77=:
16013       ;;
16014
16015     solaris*)
16016       no_undefined_flag_F77=' -z text'
16017       if test "$GCC" = yes; then
16018         wlarc='${wl}'
16019         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16020         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16021           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16022       else
16023         wlarc=''
16024         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16026         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16027       fi
16028       hardcode_libdir_flag_spec_F77='-R$libdir'
16029       hardcode_shlibpath_var_F77=no
16030       case $host_os in
16031       solaris2.[0-5] | solaris2.[0-5].*) ;;
16032       *)
16033         # The compiler driver will combine linker options so we
16034         # cannot just pass the convience library names through
16035         # without $wl, iff we do not link with $LD.
16036         # Luckily, gcc supports the same syntax we need for Sun Studio.
16037         # Supported since Solaris 2.6 (maybe 2.5.1?)
16038         case $wlarc in
16039         '')
16040           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16041         *)
16042           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' ;;
16043         esac ;;
16044       esac
16045       link_all_deplibs_F77=yes
16046       ;;
16047
16048     sunos4*)
16049       if test "x$host_vendor" = xsequent; then
16050         # Use $CC to link under sequent, because it throws in some extra .o
16051         # files that make .init and .fini sections work.
16052         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16053       else
16054         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16055       fi
16056       hardcode_libdir_flag_spec_F77='-L$libdir'
16057       hardcode_direct_F77=yes
16058       hardcode_minus_L_F77=yes
16059       hardcode_shlibpath_var_F77=no
16060       ;;
16061
16062     sysv4)
16063       case $host_vendor in
16064         sni)
16065           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066           hardcode_direct_F77=yes # is this really true???
16067         ;;
16068         siemens)
16069           ## LD is ld it makes a PLAMLIB
16070           ## CC just makes a GrossModule.
16071           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16072           reload_cmds_F77='$CC -r -o $output$reload_objs'
16073           hardcode_direct_F77=no
16074         ;;
16075         motorola)
16076           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16078         ;;
16079       esac
16080       runpath_var='LD_RUN_PATH'
16081       hardcode_shlibpath_var_F77=no
16082       ;;
16083
16084     sysv4.3*)
16085       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086       hardcode_shlibpath_var_F77=no
16087       export_dynamic_flag_spec_F77='-Bexport'
16088       ;;
16089
16090     sysv4*MP*)
16091       if test -d /usr/nec; then
16092         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093         hardcode_shlibpath_var_F77=no
16094         runpath_var=LD_RUN_PATH
16095         hardcode_runpath_var=yes
16096         ld_shlibs_F77=yes
16097       fi
16098       ;;
16099
16100     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16101       no_undefined_flag_F77='${wl}-z,text'
16102       archive_cmds_need_lc_F77=no
16103       hardcode_shlibpath_var_F77=no
16104       runpath_var='LD_RUN_PATH'
16105
16106       if test "$GCC" = yes; then
16107         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16108         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16109       else
16110         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16111         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112       fi
16113       ;;
16114
16115     sysv5* | sco3.2v5* | sco5v6*)
16116       # Note: We can NOT use -z defs as we might desire, because we do not
16117       # link with -lc, and that would cause any symbols used from libc to
16118       # always be unresolved, which means just about no library would
16119       # ever link correctly.  If we're not using GNU ld we use -z text
16120       # though, which does catch some bad symbols but isn't as heavy-handed
16121       # as -z defs.
16122       no_undefined_flag_F77='${wl}-z,text'
16123       allow_undefined_flag_F77='${wl}-z,nodefs'
16124       archive_cmds_need_lc_F77=no
16125       hardcode_shlibpath_var_F77=no
16126       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16127       hardcode_libdir_separator_F77=':'
16128       link_all_deplibs_F77=yes
16129       export_dynamic_flag_spec_F77='${wl}-Bexport'
16130       runpath_var='LD_RUN_PATH'
16131
16132       if test "$GCC" = yes; then
16133         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16134         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16135       else
16136         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16138       fi
16139       ;;
16140
16141     uts4*)
16142       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143       hardcode_libdir_flag_spec_F77='-L$libdir'
16144       hardcode_shlibpath_var_F77=no
16145       ;;
16146
16147     *)
16148       ld_shlibs_F77=no
16149       ;;
16150     esac
16151   fi
16152
16153 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16154 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16155 test "$ld_shlibs_F77" = no && can_build_shared=no
16156
16157 #
16158 # Do we need to explicitly link libc?
16159 #
16160 case "x$archive_cmds_need_lc_F77" in
16161 x|xyes)
16162   # Assume -lc should be added
16163   archive_cmds_need_lc_F77=yes
16164
16165   if test "$enable_shared" = yes && test "$GCC" = yes; then
16166     case $archive_cmds_F77 in
16167     *'~'*)
16168       # FIXME: we may have to deal with multi-command sequences.
16169       ;;
16170     '$CC '*)
16171       # Test whether the compiler implicitly links with -lc since on some
16172       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16173       # to ld, don't add -lc before -lgcc.
16174       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16175 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16176       $rm conftest*
16177       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178
16179       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180   (eval $ac_compile) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); } 2>conftest.err; then
16184         soname=conftest
16185         lib=conftest
16186         libobjs=conftest.$ac_objext
16187         deplibs=
16188         wl=$lt_prog_compiler_wl_F77
16189         pic_flag=$lt_prog_compiler_pic_F77
16190         compiler_flags=-v
16191         linker_flags=-v
16192         verstring=
16193         output_objdir=.
16194         libname=conftest
16195         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16196         allow_undefined_flag_F77=
16197         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16198   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }
16202         then
16203           archive_cmds_need_lc_F77=no
16204         else
16205           archive_cmds_need_lc_F77=yes
16206         fi
16207         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16208       else
16209         cat conftest.err 1>&5
16210       fi
16211       $rm conftest*
16212       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16213 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16214       ;;
16215     esac
16216   fi
16217   ;;
16218 esac
16219
16220 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16222 library_names_spec=
16223 libname_spec='lib$name'
16224 soname_spec=
16225 shrext_cmds=".so"
16226 postinstall_cmds=
16227 postuninstall_cmds=
16228 finish_cmds=
16229 finish_eval=
16230 shlibpath_var=
16231 shlibpath_overrides_runpath=unknown
16232 version_type=none
16233 dynamic_linker="$host_os ld.so"
16234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16235 if test "$GCC" = yes; then
16236   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16237   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16238     # if the path contains ";" then we assume it to be the separator
16239     # otherwise default to the standard path separator (i.e. ":") - it is
16240     # assumed that no part of a normal pathname contains ";" but that should
16241     # okay in the real world where ";" in dirpaths is itself problematic.
16242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16243   else
16244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16245   fi
16246 else
16247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16248 fi
16249 need_lib_prefix=unknown
16250 hardcode_into_libs=no
16251
16252 # when you set need_version to no, make sure it does not cause -set_version
16253 # flags to be left without arguments
16254 need_version=unknown
16255
16256 case $host_os in
16257 aix3*)
16258   version_type=linux
16259   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16260   shlibpath_var=LIBPATH
16261
16262   # AIX 3 has no versioning support, so we append a major version to the name.
16263   soname_spec='${libname}${release}${shared_ext}$major'
16264   ;;
16265
16266 aix4* | aix5*)
16267   version_type=linux
16268   need_lib_prefix=no
16269   need_version=no
16270   hardcode_into_libs=yes
16271   if test "$host_cpu" = ia64; then
16272     # AIX 5 supports IA64
16273     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16274     shlibpath_var=LD_LIBRARY_PATH
16275   else
16276     # With GCC up to 2.95.x, collect2 would create an import file
16277     # for dependence libraries.  The import file would start with
16278     # the line `#! .'.  This would cause the generated library to
16279     # depend on `.', always an invalid library.  This was fixed in
16280     # development snapshots of GCC prior to 3.0.
16281     case $host_os in
16282       aix4 | aix4.[01] | aix4.[01].*)
16283       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16284            echo ' yes '
16285            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16286         :
16287       else
16288         can_build_shared=no
16289       fi
16290       ;;
16291     esac
16292     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16293     # soname into executable. Probably we can add versioning support to
16294     # collect2, so additional links can be useful in future.
16295     if test "$aix_use_runtimelinking" = yes; then
16296       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16297       # instead of lib<name>.a to let people know that these are not
16298       # typical AIX shared libraries.
16299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300     else
16301       # We preserve .a as extension for shared libraries through AIX4.2
16302       # and later when we are not doing run time linking.
16303       library_names_spec='${libname}${release}.a $libname.a'
16304       soname_spec='${libname}${release}${shared_ext}$major'
16305     fi
16306     shlibpath_var=LIBPATH
16307   fi
16308   ;;
16309
16310 amigaos*)
16311   library_names_spec='$libname.ixlibrary $libname.a'
16312   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16313   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'
16314   ;;
16315
16316 beos*)
16317   library_names_spec='${libname}${shared_ext}'
16318   dynamic_linker="$host_os ld.so"
16319   shlibpath_var=LIBRARY_PATH
16320   ;;
16321
16322 bsdi[45]*)
16323   version_type=linux
16324   need_version=no
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326   soname_spec='${libname}${release}${shared_ext}$major'
16327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16331   # the default ld.so.conf also contains /usr/contrib/lib and
16332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16333   # libtool to hard-code these into programs
16334   ;;
16335
16336 cygwin* | mingw* | pw32*)
16337   version_type=windows
16338   shrext_cmds=".dll"
16339   need_version=no
16340   need_lib_prefix=no
16341
16342   case $GCC,$host_os in
16343   yes,cygwin* | yes,mingw* | yes,pw32*)
16344     library_names_spec='$libname.dll.a'
16345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16346     postinstall_cmds='base_file=`basename \${file}`~
16347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16348       dldir=$destdir/`dirname \$dlpath`~
16349       test -d \$dldir || mkdir -p \$dldir~
16350       $install_prog $dir/$dlname \$dldir/$dlname~
16351       chmod a+x \$dldir/$dlname'
16352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16353       dlpath=$dir/\$dldll~
16354        $rm \$dlpath'
16355     shlibpath_overrides_runpath=yes
16356
16357     case $host_os in
16358     cygwin*)
16359       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16360       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16361       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16362       ;;
16363     mingw*)
16364       # MinGW DLLs use traditional 'lib' prefix
16365       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16366       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16367       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16368         # It is most probably a Windows format PATH printed by
16369         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16370         # path with ; separators, and with drive letters. We can handle the
16371         # drive letters (cygwin fileutils understands them), so leave them,
16372         # especially as we might pass files found there to a mingw objdump,
16373         # which wouldn't understand a cygwinified path. Ahh.
16374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16375       else
16376         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16377       fi
16378       ;;
16379     pw32*)
16380       # pw32 DLLs use 'pw' prefix rather than 'lib'
16381       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16382       ;;
16383     esac
16384     ;;
16385
16386   *)
16387     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16388     ;;
16389   esac
16390   dynamic_linker='Win32 ld.exe'
16391   # FIXME: first we should search . and the directory the executable is in
16392   shlibpath_var=PATH
16393   ;;
16394
16395 darwin* | rhapsody*)
16396   dynamic_linker="$host_os dyld"
16397   version_type=darwin
16398   need_lib_prefix=no
16399   need_version=no
16400   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16401   soname_spec='${libname}${release}${major}$shared_ext'
16402   shlibpath_overrides_runpath=yes
16403   shlibpath_var=DYLD_LIBRARY_PATH
16404   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16405   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16406   if test "$GCC" = yes; then
16407     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"`
16408   else
16409     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16410   fi
16411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16412   ;;
16413
16414 dgux*)
16415   version_type=linux
16416   need_lib_prefix=no
16417   need_version=no
16418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16419   soname_spec='${libname}${release}${shared_ext}$major'
16420   shlibpath_var=LD_LIBRARY_PATH
16421   ;;
16422
16423 freebsd1*)
16424   dynamic_linker=no
16425   ;;
16426
16427 freebsd* | dragonfly*)
16428   # DragonFly does not have aout.  When/if they implement a new
16429   # versioning mechanism, adjust this.
16430   if test -x /usr/bin/objformat; then
16431     objformat=`/usr/bin/objformat`
16432   else
16433     case $host_os in
16434     freebsd[123]*) objformat=aout ;;
16435     *) objformat=elf ;;
16436     esac
16437   fi
16438   version_type=freebsd-$objformat
16439   case $version_type in
16440     freebsd-elf*)
16441       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16442       need_version=no
16443       need_lib_prefix=no
16444       ;;
16445     freebsd-*)
16446       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16447       need_version=yes
16448       ;;
16449   esac
16450   shlibpath_var=LD_LIBRARY_PATH
16451   case $host_os in
16452   freebsd2*)
16453     shlibpath_overrides_runpath=yes
16454     ;;
16455   freebsd3.[01]* | freebsdelf3.[01]*)
16456     shlibpath_overrides_runpath=yes
16457     hardcode_into_libs=yes
16458     ;;
16459   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16460   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16461     shlibpath_overrides_runpath=no
16462     hardcode_into_libs=yes
16463     ;;
16464   freebsd*) # from 4.6 on
16465     shlibpath_overrides_runpath=yes
16466     hardcode_into_libs=yes
16467     ;;
16468   esac
16469   ;;
16470
16471 gnu*)
16472   version_type=linux
16473   need_lib_prefix=no
16474   need_version=no
16475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16476   soname_spec='${libname}${release}${shared_ext}$major'
16477   shlibpath_var=LD_LIBRARY_PATH
16478   hardcode_into_libs=yes
16479   ;;
16480
16481 hpux9* | hpux10* | hpux11*)
16482   # Give a soname corresponding to the major version so that dld.sl refuses to
16483   # link against other versions.
16484   version_type=sunos
16485   need_lib_prefix=no
16486   need_version=no
16487   case $host_cpu in
16488   ia64*)
16489     shrext_cmds='.so'
16490     hardcode_into_libs=yes
16491     dynamic_linker="$host_os dld.so"
16492     shlibpath_var=LD_LIBRARY_PATH
16493     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495     soname_spec='${libname}${release}${shared_ext}$major'
16496     if test "X$HPUX_IA64_MODE" = X32; then
16497       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16498     else
16499       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16500     fi
16501     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16502     ;;
16503    hppa*64*)
16504      shrext_cmds='.sl'
16505      hardcode_into_libs=yes
16506      dynamic_linker="$host_os dld.sl"
16507      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16508      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16509      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510      soname_spec='${libname}${release}${shared_ext}$major'
16511      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16512      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16513      ;;
16514    *)
16515     shrext_cmds='.sl'
16516     dynamic_linker="$host_os dld.sl"
16517     shlibpath_var=SHLIB_PATH
16518     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520     soname_spec='${libname}${release}${shared_ext}$major'
16521     ;;
16522   esac
16523   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16524   postinstall_cmds='chmod 555 $lib'
16525   ;;
16526
16527 interix3*)
16528   version_type=linux
16529   need_lib_prefix=no
16530   need_version=no
16531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532   soname_spec='${libname}${release}${shared_ext}$major'
16533   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16534   shlibpath_var=LD_LIBRARY_PATH
16535   shlibpath_overrides_runpath=no
16536   hardcode_into_libs=yes
16537   ;;
16538
16539 irix5* | irix6* | nonstopux*)
16540   case $host_os in
16541     nonstopux*) version_type=nonstopux ;;
16542     *)
16543         if test "$lt_cv_prog_gnu_ld" = yes; then
16544                 version_type=linux
16545         else
16546                 version_type=irix
16547         fi ;;
16548   esac
16549   need_lib_prefix=no
16550   need_version=no
16551   soname_spec='${libname}${release}${shared_ext}$major'
16552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16553   case $host_os in
16554   irix5* | nonstopux*)
16555     libsuff= shlibsuff=
16556     ;;
16557   *)
16558     case $LD in # libtool.m4 will add one of these switches to LD
16559     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16560       libsuff= shlibsuff= libmagic=32-bit;;
16561     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16562       libsuff=32 shlibsuff=N32 libmagic=N32;;
16563     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16564       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16565     *) libsuff= shlibsuff= libmagic=never-match;;
16566     esac
16567     ;;
16568   esac
16569   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16570   shlibpath_overrides_runpath=no
16571   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16572   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16573   hardcode_into_libs=yes
16574   ;;
16575
16576 # No shared lib support for Linux oldld, aout, or coff.
16577 linux*oldld* | linux*aout* | linux*coff*)
16578   dynamic_linker=no
16579   ;;
16580
16581 # This must be Linux ELF.
16582 linux* | k*bsd*-gnu)
16583   version_type=linux
16584   need_lib_prefix=no
16585   need_version=no
16586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16589   shlibpath_var=LD_LIBRARY_PATH
16590   shlibpath_overrides_runpath=no
16591   # This implies no fast_install, which is unacceptable.
16592   # Some rework will be needed to allow for fast_install
16593   # before this can be enabled.
16594   hardcode_into_libs=yes
16595
16596   # Append ld.so.conf contents to the search path
16597   if test -f /etc/ld.so.conf; then
16598     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' ' '`
16599     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16600   fi
16601
16602   # We used to test for /lib/ld.so.1 and disable shared libraries on
16603   # powerpc, because MkLinux only supported shared libraries with the
16604   # GNU dynamic linker.  Since this was broken with cross compilers,
16605   # most powerpc-linux boxes support dynamic linking these days and
16606   # people can always --disable-shared, the test was removed, and we
16607   # assume the GNU/Linux dynamic linker is in use.
16608   dynamic_linker='GNU/Linux ld.so'
16609   ;;
16610
16611 netbsdelf*-gnu)
16612   version_type=linux
16613   need_lib_prefix=no
16614   need_version=no
16615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16616   soname_spec='${libname}${release}${shared_ext}$major'
16617   shlibpath_var=LD_LIBRARY_PATH
16618   shlibpath_overrides_runpath=no
16619   hardcode_into_libs=yes
16620   dynamic_linker='NetBSD ld.elf_so'
16621   ;;
16622
16623 netbsd*)
16624   version_type=sunos
16625   need_lib_prefix=no
16626   need_version=no
16627   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16629     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16630     dynamic_linker='NetBSD (a.out) ld.so'
16631   else
16632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16633     soname_spec='${libname}${release}${shared_ext}$major'
16634     dynamic_linker='NetBSD ld.elf_so'
16635   fi
16636   shlibpath_var=LD_LIBRARY_PATH
16637   shlibpath_overrides_runpath=yes
16638   hardcode_into_libs=yes
16639   ;;
16640
16641 newsos6)
16642   version_type=linux
16643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=yes
16646   ;;
16647
16648 nto-qnx*)
16649   version_type=linux
16650   need_lib_prefix=no
16651   need_version=no
16652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653   soname_spec='${libname}${release}${shared_ext}$major'
16654   shlibpath_var=LD_LIBRARY_PATH
16655   shlibpath_overrides_runpath=yes
16656   ;;
16657
16658 openbsd*)
16659   version_type=sunos
16660   sys_lib_dlsearch_path_spec="/usr/lib"
16661   need_lib_prefix=no
16662   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16663   case $host_os in
16664     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16665     *)                         need_version=no  ;;
16666   esac
16667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16669   shlibpath_var=LD_LIBRARY_PATH
16670   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16671     case $host_os in
16672       openbsd2.[89] | openbsd2.[89].*)
16673         shlibpath_overrides_runpath=no
16674         ;;
16675       *)
16676         shlibpath_overrides_runpath=yes
16677         ;;
16678       esac
16679   else
16680     shlibpath_overrides_runpath=yes
16681   fi
16682   ;;
16683
16684 os2*)
16685   libname_spec='$name'
16686   shrext_cmds=".dll"
16687   need_lib_prefix=no
16688   library_names_spec='$libname${shared_ext} $libname.a'
16689   dynamic_linker='OS/2 ld.exe'
16690   shlibpath_var=LIBPATH
16691   ;;
16692
16693 osf3* | osf4* | osf5*)
16694   version_type=osf
16695   need_lib_prefix=no
16696   need_version=no
16697   soname_spec='${libname}${release}${shared_ext}$major'
16698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16701   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16702   ;;
16703
16704 solaris*)
16705   version_type=linux
16706   need_lib_prefix=no
16707   need_version=no
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   hardcode_into_libs=yes
16713   # ldd complains unless libraries are executable
16714   postinstall_cmds='chmod +x $lib'
16715   ;;
16716
16717 sunos4*)
16718   version_type=sunos
16719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16720   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16721   shlibpath_var=LD_LIBRARY_PATH
16722   shlibpath_overrides_runpath=yes
16723   if test "$with_gnu_ld" = yes; then
16724     need_lib_prefix=no
16725   fi
16726   need_version=yes
16727   ;;
16728
16729 sysv4 | sysv4.3*)
16730   version_type=linux
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732   soname_spec='${libname}${release}${shared_ext}$major'
16733   shlibpath_var=LD_LIBRARY_PATH
16734   case $host_vendor in
16735     sni)
16736       shlibpath_overrides_runpath=no
16737       need_lib_prefix=no
16738       export_dynamic_flag_spec='${wl}-Blargedynsym'
16739       runpath_var=LD_RUN_PATH
16740       ;;
16741     siemens)
16742       need_lib_prefix=no
16743       ;;
16744     motorola)
16745       need_lib_prefix=no
16746       need_version=no
16747       shlibpath_overrides_runpath=no
16748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16749       ;;
16750   esac
16751   ;;
16752
16753 sysv4*MP*)
16754   if test -d /usr/nec ;then
16755     version_type=linux
16756     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16757     soname_spec='$libname${shared_ext}.$major'
16758     shlibpath_var=LD_LIBRARY_PATH
16759   fi
16760   ;;
16761
16762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16763   version_type=freebsd-elf
16764   need_lib_prefix=no
16765   need_version=no
16766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   hardcode_into_libs=yes
16770   if test "$with_gnu_ld" = yes; then
16771     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16772     shlibpath_overrides_runpath=no
16773   else
16774     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16775     shlibpath_overrides_runpath=yes
16776     case $host_os in
16777       sco3.2v5*)
16778         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16779         ;;
16780     esac
16781   fi
16782   sys_lib_dlsearch_path_spec='/usr/lib'
16783   ;;
16784
16785 uts4*)
16786   version_type=linux
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   shlibpath_var=LD_LIBRARY_PATH
16790   ;;
16791
16792 *)
16793   dynamic_linker=no
16794   ;;
16795 esac
16796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16797 echo "${ECHO_T}$dynamic_linker" >&6; }
16798 test "$dynamic_linker" = no && can_build_shared=no
16799
16800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16801 if test "$GCC" = yes; then
16802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16803 fi
16804
16805 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16807 hardcode_action_F77=
16808 if test -n "$hardcode_libdir_flag_spec_F77" || \
16809    test -n "$runpath_var_F77" || \
16810    test "X$hardcode_automatic_F77" = "Xyes" ; then
16811
16812   # We can hardcode non-existant directories.
16813   if test "$hardcode_direct_F77" != no &&
16814      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16815      # have to relink, otherwise we might link with an installed library
16816      # when we should be linking with a yet-to-be-installed one
16817      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16818      test "$hardcode_minus_L_F77" != no; then
16819     # Linking always hardcodes the temporary library directory.
16820     hardcode_action_F77=relink
16821   else
16822     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16823     hardcode_action_F77=immediate
16824   fi
16825 else
16826   # We cannot hardcode anything, or else we can only hardcode existing
16827   # directories.
16828   hardcode_action_F77=unsupported
16829 fi
16830 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16831 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16832
16833 if test "$hardcode_action_F77" = relink; then
16834   # Fast installation is not supported
16835   enable_fast_install=no
16836 elif test "$shlibpath_overrides_runpath" = yes ||
16837      test "$enable_shared" = no; then
16838   # Fast installation is not necessary
16839   enable_fast_install=needless
16840 fi
16841
16842
16843 # The else clause should only fire when bootstrapping the
16844 # libtool distribution, otherwise you forgot to ship ltmain.sh
16845 # with your package, and you will get complaints that there are
16846 # no rules to generate ltmain.sh.
16847 if test -f "$ltmain"; then
16848   # See if we are running on zsh, and set the options which allow our commands through
16849   # without removal of \ escapes.
16850   if test -n "${ZSH_VERSION+set}" ; then
16851     setopt NO_GLOB_SUBST
16852   fi
16853   # Now quote all the things that may contain metacharacters while being
16854   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16855   # variables and quote the copies for generation of the libtool script.
16856   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16857     SED SHELL STRIP \
16858     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16859     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16860     deplibs_check_method reload_flag reload_cmds need_locks \
16861     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16862     lt_cv_sys_global_symbol_to_c_name_address \
16863     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16864     old_postinstall_cmds old_postuninstall_cmds \
16865     compiler_F77 \
16866     CC_F77 \
16867     LD_F77 \
16868     lt_prog_compiler_wl_F77 \
16869     lt_prog_compiler_pic_F77 \
16870     lt_prog_compiler_static_F77 \
16871     lt_prog_compiler_no_builtin_flag_F77 \
16872     export_dynamic_flag_spec_F77 \
16873     thread_safe_flag_spec_F77 \
16874     whole_archive_flag_spec_F77 \
16875     enable_shared_with_static_runtimes_F77 \
16876     old_archive_cmds_F77 \
16877     old_archive_from_new_cmds_F77 \
16878     predep_objects_F77 \
16879     postdep_objects_F77 \
16880     predeps_F77 \
16881     postdeps_F77 \
16882     compiler_lib_search_path_F77 \
16883     archive_cmds_F77 \
16884     archive_expsym_cmds_F77 \
16885     postinstall_cmds_F77 \
16886     postuninstall_cmds_F77 \
16887     old_archive_from_expsyms_cmds_F77 \
16888     allow_undefined_flag_F77 \
16889     no_undefined_flag_F77 \
16890     export_symbols_cmds_F77 \
16891     hardcode_libdir_flag_spec_F77 \
16892     hardcode_libdir_flag_spec_ld_F77 \
16893     hardcode_libdir_separator_F77 \
16894     hardcode_automatic_F77 \
16895     module_cmds_F77 \
16896     module_expsym_cmds_F77 \
16897     lt_cv_prog_compiler_c_o_F77 \
16898     exclude_expsyms_F77 \
16899     include_expsyms_F77; do
16900
16901     case $var in
16902     old_archive_cmds_F77 | \
16903     old_archive_from_new_cmds_F77 | \
16904     archive_cmds_F77 | \
16905     archive_expsym_cmds_F77 | \
16906     module_cmds_F77 | \
16907     module_expsym_cmds_F77 | \
16908     old_archive_from_expsyms_cmds_F77 | \
16909     export_symbols_cmds_F77 | \
16910     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16911     postinstall_cmds | postuninstall_cmds | \
16912     old_postinstall_cmds | old_postuninstall_cmds | \
16913     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16914       # Double-quote double-evaled strings.
16915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16916       ;;
16917     *)
16918       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16919       ;;
16920     esac
16921   done
16922
16923   case $lt_echo in
16924   *'\$0 --fallback-echo"')
16925     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16926     ;;
16927   esac
16928
16929 cfgfile="$ofile"
16930
16931   cat <<__EOF__ >> "$cfgfile"
16932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16933
16934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16935
16936 # Shell to use when invoking shell scripts.
16937 SHELL=$lt_SHELL
16938
16939 # Whether or not to build shared libraries.
16940 build_libtool_libs=$enable_shared
16941
16942 # Whether or not to build static libraries.
16943 build_old_libs=$enable_static
16944
16945 # Whether or not to add -lc for building shared libraries.
16946 build_libtool_need_lc=$archive_cmds_need_lc_F77
16947
16948 # Whether or not to disallow shared libs when runtime libs are static
16949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16950
16951 # Whether or not to optimize for fast installation.
16952 fast_install=$enable_fast_install
16953
16954 # The host system.
16955 host_alias=$host_alias
16956 host=$host
16957 host_os=$host_os
16958
16959 # The build system.
16960 build_alias=$build_alias
16961 build=$build
16962 build_os=$build_os
16963
16964 # An echo program that does not interpret backslashes.
16965 echo=$lt_echo
16966
16967 # The archiver.
16968 AR=$lt_AR
16969 AR_FLAGS=$lt_AR_FLAGS
16970
16971 # A C compiler.
16972 LTCC=$lt_LTCC
16973
16974 # LTCC compiler flags.
16975 LTCFLAGS=$lt_LTCFLAGS
16976
16977 # A language-specific compiler.
16978 CC=$lt_compiler_F77
16979
16980 # Is the compiler the GNU C compiler?
16981 with_gcc=$GCC_F77
16982
16983 # An ERE matcher.
16984 EGREP=$lt_EGREP
16985
16986 # The linker used to build libraries.
16987 LD=$lt_LD_F77
16988
16989 # Whether we need hard or soft links.
16990 LN_S=$lt_LN_S
16991
16992 # A BSD-compatible nm program.
16993 NM=$lt_NM
16994
16995 # A symbol stripping program
16996 STRIP=$lt_STRIP
16997
16998 # Used to examine libraries when file_magic_cmd begins "file"
16999 MAGIC_CMD=$MAGIC_CMD
17000
17001 # Used on cygwin: DLL creation program.
17002 DLLTOOL="$DLLTOOL"
17003
17004 # Used on cygwin: object dumper.
17005 OBJDUMP="$OBJDUMP"
17006
17007 # Used on cygwin: assembler.
17008 AS="$AS"
17009
17010 # The name of the directory that contains temporary libtool files.
17011 objdir=$objdir
17012
17013 # How to create reloadable object files.
17014 reload_flag=$lt_reload_flag
17015 reload_cmds=$lt_reload_cmds
17016
17017 # How to pass a linker flag through the compiler.
17018 wl=$lt_lt_prog_compiler_wl_F77
17019
17020 # Object file suffix (normally "o").
17021 objext="$ac_objext"
17022
17023 # Old archive suffix (normally "a").
17024 libext="$libext"
17025
17026 # Shared library suffix (normally ".so").
17027 shrext_cmds='$shrext_cmds'
17028
17029 # Executable file suffix (normally "").
17030 exeext="$exeext"
17031
17032 # Additional compiler flags for building library objects.
17033 pic_flag=$lt_lt_prog_compiler_pic_F77
17034 pic_mode=$pic_mode
17035
17036 # What is the maximum length of a command?
17037 max_cmd_len=$lt_cv_sys_max_cmd_len
17038
17039 # Does compiler simultaneously support -c and -o options?
17040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17041
17042 # Must we lock files when doing compilation?
17043 need_locks=$lt_need_locks
17044
17045 # Do we need the lib prefix for modules?
17046 need_lib_prefix=$need_lib_prefix
17047
17048 # Do we need a version for libraries?
17049 need_version=$need_version
17050
17051 # Whether dlopen is supported.
17052 dlopen_support=$enable_dlopen
17053
17054 # Whether dlopen of programs is supported.
17055 dlopen_self=$enable_dlopen_self
17056
17057 # Whether dlopen of statically linked programs is supported.
17058 dlopen_self_static=$enable_dlopen_self_static
17059
17060 # Compiler flag to prevent dynamic linking.
17061 link_static_flag=$lt_lt_prog_compiler_static_F77
17062
17063 # Compiler flag to turn off builtin functions.
17064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17065
17066 # Compiler flag to allow reflexive dlopens.
17067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17068
17069 # Compiler flag to generate shared objects directly from archives.
17070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17071
17072 # Compiler flag to generate thread-safe objects.
17073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17074
17075 # Library versioning type.
17076 version_type=$version_type
17077
17078 # Format of library name prefix.
17079 libname_spec=$lt_libname_spec
17080
17081 # List of archive names.  First name is the real one, the rest are links.
17082 # The last name is the one that the linker finds with -lNAME.
17083 library_names_spec=$lt_library_names_spec
17084
17085 # The coded name of the library, if different from the real name.
17086 soname_spec=$lt_soname_spec
17087
17088 # Commands used to build and install an old-style archive.
17089 RANLIB=$lt_RANLIB
17090 old_archive_cmds=$lt_old_archive_cmds_F77
17091 old_postinstall_cmds=$lt_old_postinstall_cmds
17092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17093
17094 # Create an old-style archive from a shared archive.
17095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17096
17097 # Create a temporary old-style archive to link instead of a shared archive.
17098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17099
17100 # Commands used to build and install a shared archive.
17101 archive_cmds=$lt_archive_cmds_F77
17102 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17103 postinstall_cmds=$lt_postinstall_cmds
17104 postuninstall_cmds=$lt_postuninstall_cmds
17105
17106 # Commands used to build a loadable module (assumed same as above if empty)
17107 module_cmds=$lt_module_cmds_F77
17108 module_expsym_cmds=$lt_module_expsym_cmds_F77
17109
17110 # Commands to strip libraries.
17111 old_striplib=$lt_old_striplib
17112 striplib=$lt_striplib
17113
17114 # Dependencies to place before the objects being linked to create a
17115 # shared library.
17116 predep_objects=$lt_predep_objects_F77
17117
17118 # Dependencies to place after the objects being linked to create a
17119 # shared library.
17120 postdep_objects=$lt_postdep_objects_F77
17121
17122 # Dependencies to place before the objects being linked to create a
17123 # shared library.
17124 predeps=$lt_predeps_F77
17125
17126 # Dependencies to place after the objects being linked to create a
17127 # shared library.
17128 postdeps=$lt_postdeps_F77
17129
17130 # The library search path used internally by the compiler when linking
17131 # a shared library.
17132 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17133
17134 # Method to check whether dependent libraries are shared objects.
17135 deplibs_check_method=$lt_deplibs_check_method
17136
17137 # Command to use when deplibs_check_method == file_magic.
17138 file_magic_cmd=$lt_file_magic_cmd
17139
17140 # Flag that allows shared libraries with undefined symbols to be built.
17141 allow_undefined_flag=$lt_allow_undefined_flag_F77
17142
17143 # Flag that forces no undefined symbols.
17144 no_undefined_flag=$lt_no_undefined_flag_F77
17145
17146 # Commands used to finish a libtool library installation in a directory.
17147 finish_cmds=$lt_finish_cmds
17148
17149 # Same as above, but a single script fragment to be evaled but not shown.
17150 finish_eval=$lt_finish_eval
17151
17152 # Take the output of nm and produce a listing of raw symbols and C names.
17153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17154
17155 # Transform the output of nm in a proper C declaration
17156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17157
17158 # Transform the output of nm in a C name address pair
17159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17160
17161 # This is the shared library runtime path variable.
17162 runpath_var=$runpath_var
17163
17164 # This is the shared library path variable.
17165 shlibpath_var=$shlibpath_var
17166
17167 # Is shlibpath searched before the hard-coded library search path?
17168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17169
17170 # How to hardcode a shared library path into an executable.
17171 hardcode_action=$hardcode_action_F77
17172
17173 # Whether we should hardcode library paths into libraries.
17174 hardcode_into_libs=$hardcode_into_libs
17175
17176 # Flag to hardcode \$libdir into a binary during linking.
17177 # This must work even if \$libdir does not exist.
17178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17179
17180 # If ld is used when linking, flag to hardcode \$libdir into
17181 # a binary during linking. This must work even if \$libdir does
17182 # not exist.
17183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17184
17185 # Whether we need a single -rpath flag with a separated argument.
17186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17187
17188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17189 # resulting binary.
17190 hardcode_direct=$hardcode_direct_F77
17191
17192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17193 # resulting binary.
17194 hardcode_minus_L=$hardcode_minus_L_F77
17195
17196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17197 # the resulting binary.
17198 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17199
17200 # Set to yes if building a shared library automatically hardcodes DIR into the library
17201 # and all subsequent libraries and executables linked against it.
17202 hardcode_automatic=$hardcode_automatic_F77
17203
17204 # Variables whose values should be saved in libtool wrapper scripts and
17205 # restored at relink time.
17206 variables_saved_for_relink="$variables_saved_for_relink"
17207
17208 # Whether libtool must link a program against all its dependency libraries.
17209 link_all_deplibs=$link_all_deplibs_F77
17210
17211 # Compile-time system search path for libraries
17212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17213
17214 # Run-time system search path for libraries
17215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17216
17217 # Fix the shell variable \$srcfile for the compiler.
17218 fix_srcfile_path="$fix_srcfile_path_F77"
17219
17220 # Set to yes if exported symbols are required.
17221 always_export_symbols=$always_export_symbols_F77
17222
17223 # The commands to list exported symbols.
17224 export_symbols_cmds=$lt_export_symbols_cmds_F77
17225
17226 # The commands to extract the exported symbol list from a shared archive.
17227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17228
17229 # Symbols that should not be listed in the preloaded symbols.
17230 exclude_expsyms=$lt_exclude_expsyms_F77
17231
17232 # Symbols that must always be exported.
17233 include_expsyms=$lt_include_expsyms_F77
17234
17235 # ### END LIBTOOL TAG CONFIG: $tagname
17236
17237 __EOF__
17238
17239
17240 else
17241   # If there is no Makefile yet, we rely on a make rule to execute
17242   # `config.status --recheck' to rerun these tests and create the
17243   # libtool script then.
17244   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17245   if test -f "$ltmain_in"; then
17246     test -f Makefile && make "$ltmain"
17247   fi
17248 fi
17249
17250
17251 ac_ext=c
17252 ac_cpp='$CPP $CPPFLAGS'
17253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17256
17257 CC="$lt_save_CC"
17258
17259         else
17260           tagname=""
17261         fi
17262         ;;
17263
17264       GCJ)
17265         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17266
17267
17268 # Source file extension for Java test sources.
17269 ac_ext=java
17270
17271 # Object file extension for compiled Java test sources.
17272 objext=o
17273 objext_GCJ=$objext
17274
17275 # Code to be used in simple compile tests
17276 lt_simple_compile_test_code="class foo {}\n"
17277
17278 # Code to be used in simple link tests
17279 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17280
17281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17282
17283 # If no C compiler was specified, use CC.
17284 LTCC=${LTCC-"$CC"}
17285
17286 # If no C compiler flags were specified, use CFLAGS.
17287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17288
17289 # Allow CC to be a program name with arguments.
17290 compiler=$CC
17291
17292
17293 # save warnings/boilerplate of simple test code
17294 ac_outfile=conftest.$ac_objext
17295 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297 _lt_compiler_boilerplate=`cat conftest.err`
17298 $rm conftest*
17299
17300 ac_outfile=conftest.$ac_objext
17301 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17303 _lt_linker_boilerplate=`cat conftest.err`
17304 $rm conftest*
17305
17306
17307 # Allow CC to be a program name with arguments.
17308 lt_save_CC="$CC"
17309 CC=${GCJ-"gcj"}
17310 compiler=$CC
17311 compiler_GCJ=$CC
17312 for cc_temp in $compiler""; do
17313   case $cc_temp in
17314     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17315     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17316     \-*) ;;
17317     *) break;;
17318   esac
17319 done
17320 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17321
17322
17323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17324 archive_cmds_need_lc_GCJ=no
17325
17326 old_archive_cmds_GCJ=$old_archive_cmds
17327
17328
17329 lt_prog_compiler_no_builtin_flag_GCJ=
17330
17331 if test "$GCC" = yes; then
17332   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17333
17334
17335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   lt_cv_prog_compiler_rtti_exceptions=no
17341   ac_outfile=conftest.$ac_objext
17342    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17343    lt_compiler_flag="-fno-rtti -fno-exceptions"
17344    # Insert the option either (1) after the last *FLAGS variable, or
17345    # (2) before a word containing "conftest.", or (3) at the end.
17346    # Note that $ac_compile itself does not contain backslashes and begins
17347    # with a dollar sign (not a hyphen), so the echo should work correctly.
17348    # The option is referenced via a variable to avoid confusing sed.
17349    lt_compile=`echo "$ac_compile" | $SED \
17350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17352    -e 's:$: $lt_compiler_flag:'`
17353    (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
17354    (eval "$lt_compile" 2>conftest.err)
17355    ac_status=$?
17356    cat conftest.err >&5
17357    echo "$as_me:17357: \$? = $ac_status" >&5
17358    if (exit $ac_status) && test -s "$ac_outfile"; then
17359      # The compiler can only warn and ignore the option if not recognized
17360      # So say no if there are warnings other than the usual output.
17361      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17364        lt_cv_prog_compiler_rtti_exceptions=yes
17365      fi
17366    fi
17367    $rm conftest*
17368
17369 fi
17370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17372
17373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17374     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17375 else
17376     :
17377 fi
17378
17379 fi
17380
17381 lt_prog_compiler_wl_GCJ=
17382 lt_prog_compiler_pic_GCJ=
17383 lt_prog_compiler_static_GCJ=
17384
17385 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17387
17388   if test "$GCC" = yes; then
17389     lt_prog_compiler_wl_GCJ='-Wl,'
17390     lt_prog_compiler_static_GCJ='-static'
17391
17392     case $host_os in
17393       aix*)
17394       # All AIX code is PIC.
17395       if test "$host_cpu" = ia64; then
17396         # AIX 5 now supports IA64 processor
17397         lt_prog_compiler_static_GCJ='-Bstatic'
17398       fi
17399       ;;
17400
17401     amigaos*)
17402       # FIXME: we need at least 68020 code to build shared libraries, but
17403       # adding the `-m68020' flag to GCC prevents building anything better,
17404       # like `-m68040'.
17405       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17406       ;;
17407
17408     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17409       # PIC is the default for these OSes.
17410       ;;
17411
17412     mingw* | pw32* | os2*)
17413       # This hack is so that the source file can tell whether it is being
17414       # built for inclusion in a dll (and should export symbols for example).
17415       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17416       ;;
17417
17418     darwin* | rhapsody*)
17419       # PIC is the default on this platform
17420       # Common symbols not allowed in MH_DYLIB files
17421       lt_prog_compiler_pic_GCJ='-fno-common'
17422       ;;
17423
17424     interix3*)
17425       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17426       # Instead, we relocate shared libraries at runtime.
17427       ;;
17428
17429     msdosdjgpp*)
17430       # Just because we use GCC doesn't mean we suddenly get shared libraries
17431       # on systems that don't support them.
17432       lt_prog_compiler_can_build_shared_GCJ=no
17433       enable_shared=no
17434       ;;
17435
17436     sysv4*MP*)
17437       if test -d /usr/nec; then
17438         lt_prog_compiler_pic_GCJ=-Kconform_pic
17439       fi
17440       ;;
17441
17442     hpux*)
17443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17444       # not for PA HP-UX.
17445       case $host_cpu in
17446       hppa*64*|ia64*)
17447         # +Z the default
17448         ;;
17449       *)
17450         lt_prog_compiler_pic_GCJ='-fPIC'
17451         ;;
17452       esac
17453       ;;
17454
17455     *)
17456       lt_prog_compiler_pic_GCJ='-fPIC'
17457       ;;
17458     esac
17459   else
17460     # PORTME Check for flag to pass linker flags through the system compiler.
17461     case $host_os in
17462     aix*)
17463       lt_prog_compiler_wl_GCJ='-Wl,'
17464       if test "$host_cpu" = ia64; then
17465         # AIX 5 now supports IA64 processor
17466         lt_prog_compiler_static_GCJ='-Bstatic'
17467       else
17468         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17469       fi
17470       ;;
17471       darwin*)
17472         # PIC is the default on this platform
17473         # Common symbols not allowed in MH_DYLIB files
17474        case $cc_basename in
17475          xlc*)
17476          lt_prog_compiler_pic_GCJ='-qnocommon'
17477          lt_prog_compiler_wl_GCJ='-Wl,'
17478          ;;
17479        esac
17480        ;;
17481
17482     mingw* | pw32* | os2*)
17483       # This hack is so that the source file can tell whether it is being
17484       # built for inclusion in a dll (and should export symbols for example).
17485       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17486       ;;
17487
17488     hpux9* | hpux10* | hpux11*)
17489       lt_prog_compiler_wl_GCJ='-Wl,'
17490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17491       # not for PA HP-UX.
17492       case $host_cpu in
17493       hppa*64*|ia64*)
17494         # +Z the default
17495         ;;
17496       *)
17497         lt_prog_compiler_pic_GCJ='+Z'
17498         ;;
17499       esac
17500       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17501       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17502       ;;
17503
17504     irix5* | irix6* | nonstopux*)
17505       lt_prog_compiler_wl_GCJ='-Wl,'
17506       # PIC (with -KPIC) is the default.
17507       lt_prog_compiler_static_GCJ='-non_shared'
17508       ;;
17509
17510     newsos6)
17511       lt_prog_compiler_pic_GCJ='-KPIC'
17512       lt_prog_compiler_static_GCJ='-Bstatic'
17513       ;;
17514
17515     linux* | k*bsd*-gnu)
17516       case $cc_basename in
17517       icc* | ecc*)
17518         lt_prog_compiler_wl_GCJ='-Wl,'
17519         lt_prog_compiler_pic_GCJ='-KPIC'
17520         lt_prog_compiler_static_GCJ='-static'
17521         ;;
17522       pgcc* | pgf77* | pgf90* | pgf95*)
17523         # Portland Group compilers (*not* the Pentium gcc compiler,
17524         # which looks to be a dead project)
17525         lt_prog_compiler_wl_GCJ='-Wl,'
17526         lt_prog_compiler_pic_GCJ='-fpic'
17527         lt_prog_compiler_static_GCJ='-Bstatic'
17528         ;;
17529       ccc*)
17530         lt_prog_compiler_wl_GCJ='-Wl,'
17531         # All Alpha code is PIC.
17532         lt_prog_compiler_static_GCJ='-non_shared'
17533         ;;
17534       esac
17535       ;;
17536
17537     osf3* | osf4* | osf5*)
17538       lt_prog_compiler_wl_GCJ='-Wl,'
17539       # All OSF/1 code is PIC.
17540       lt_prog_compiler_static_GCJ='-non_shared'
17541       ;;
17542
17543     solaris*)
17544       lt_prog_compiler_pic_GCJ='-KPIC'
17545       lt_prog_compiler_static_GCJ='-Bstatic'
17546       case $cc_basename in
17547       f77* | f90* | f95*)
17548         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17549       *)
17550         lt_prog_compiler_wl_GCJ='-Wl,';;
17551       esac
17552       ;;
17553
17554     sunos4*)
17555       lt_prog_compiler_wl_GCJ='-Qoption ld '
17556       lt_prog_compiler_pic_GCJ='-PIC'
17557       lt_prog_compiler_static_GCJ='-Bstatic'
17558       ;;
17559
17560     sysv4 | sysv4.2uw2* | sysv4.3*)
17561       lt_prog_compiler_wl_GCJ='-Wl,'
17562       lt_prog_compiler_pic_GCJ='-KPIC'
17563       lt_prog_compiler_static_GCJ='-Bstatic'
17564       ;;
17565
17566     sysv4*MP*)
17567       if test -d /usr/nec ;then
17568         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17569         lt_prog_compiler_static_GCJ='-Bstatic'
17570       fi
17571       ;;
17572
17573     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17574       lt_prog_compiler_wl_GCJ='-Wl,'
17575       lt_prog_compiler_pic_GCJ='-KPIC'
17576       lt_prog_compiler_static_GCJ='-Bstatic'
17577       ;;
17578
17579     unicos*)
17580       lt_prog_compiler_wl_GCJ='-Wl,'
17581       lt_prog_compiler_can_build_shared_GCJ=no
17582       ;;
17583
17584     uts4*)
17585       lt_prog_compiler_pic_GCJ='-pic'
17586       lt_prog_compiler_static_GCJ='-Bstatic'
17587       ;;
17588
17589     *)
17590       lt_prog_compiler_can_build_shared_GCJ=no
17591       ;;
17592     esac
17593   fi
17594
17595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17596 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17597
17598 #
17599 # Check to make sure the PIC flag actually works.
17600 #
17601 if test -n "$lt_prog_compiler_pic_GCJ"; then
17602
17603 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17604 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17605 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608   lt_prog_compiler_pic_works_GCJ=no
17609   ac_outfile=conftest.$ac_objext
17610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17611    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17612    # Insert the option either (1) after the last *FLAGS variable, or
17613    # (2) before a word containing "conftest.", or (3) at the end.
17614    # Note that $ac_compile itself does not contain backslashes and begins
17615    # with a dollar sign (not a hyphen), so the echo should work correctly.
17616    # The option is referenced via a variable to avoid confusing sed.
17617    lt_compile=`echo "$ac_compile" | $SED \
17618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17620    -e 's:$: $lt_compiler_flag:'`
17621    (eval echo "\"\$as_me:17621: $lt_compile\"" >&5)
17622    (eval "$lt_compile" 2>conftest.err)
17623    ac_status=$?
17624    cat conftest.err >&5
17625    echo "$as_me:17625: \$? = $ac_status" >&5
17626    if (exit $ac_status) && test -s "$ac_outfile"; then
17627      # The compiler can only warn and ignore the option if not recognized
17628      # So say no if there are warnings other than the usual output.
17629      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17632        lt_prog_compiler_pic_works_GCJ=yes
17633      fi
17634    fi
17635    $rm conftest*
17636
17637 fi
17638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17639 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17640
17641 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17642     case $lt_prog_compiler_pic_GCJ in
17643      "" | " "*) ;;
17644      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17645      esac
17646 else
17647     lt_prog_compiler_pic_GCJ=
17648      lt_prog_compiler_can_build_shared_GCJ=no
17649 fi
17650
17651 fi
17652 case $host_os in
17653   # For platforms which do not support PIC, -DPIC is meaningless:
17654   *djgpp*)
17655     lt_prog_compiler_pic_GCJ=
17656     ;;
17657   *)
17658     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17659     ;;
17660 esac
17661
17662 #
17663 # Check to make sure the static flag actually works.
17664 #
17665 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17666 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17668 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17669   echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671   lt_prog_compiler_static_works_GCJ=no
17672    save_LDFLAGS="$LDFLAGS"
17673    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17674    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17675    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17676      # The linker can only warn and ignore the option if not recognized
17677      # So say no if there are warnings
17678      if test -s conftest.err; then
17679        # Append any errors to the config.log.
17680        cat conftest.err 1>&5
17681        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17682        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17683        if diff conftest.exp conftest.er2 >/dev/null; then
17684          lt_prog_compiler_static_works_GCJ=yes
17685        fi
17686      else
17687        lt_prog_compiler_static_works_GCJ=yes
17688      fi
17689    fi
17690    $rm conftest*
17691    LDFLAGS="$save_LDFLAGS"
17692
17693 fi
17694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17695 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17696
17697 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17698     :
17699 else
17700     lt_prog_compiler_static_GCJ=
17701 fi
17702
17703
17704 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17705 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17706 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17707   echo $ECHO_N "(cached) $ECHO_C" >&6
17708 else
17709   lt_cv_prog_compiler_c_o_GCJ=no
17710    $rm -r conftest 2>/dev/null
17711    mkdir conftest
17712    cd conftest
17713    mkdir out
17714    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17715
17716    lt_compiler_flag="-o out/conftest2.$ac_objext"
17717    # Insert the option either (1) after the last *FLAGS variable, or
17718    # (2) before a word containing "conftest.", or (3) at the end.
17719    # Note that $ac_compile itself does not contain backslashes and begins
17720    # with a dollar sign (not a hyphen), so the echo should work correctly.
17721    lt_compile=`echo "$ac_compile" | $SED \
17722    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17724    -e 's:$: $lt_compiler_flag:'`
17725    (eval echo "\"\$as_me:17725: $lt_compile\"" >&5)
17726    (eval "$lt_compile" 2>out/conftest.err)
17727    ac_status=$?
17728    cat out/conftest.err >&5
17729    echo "$as_me:17729: \$? = $ac_status" >&5
17730    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17731    then
17732      # The compiler can only warn and ignore the option if not recognized
17733      # So say no if there are warnings
17734      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17735      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17736      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17737        lt_cv_prog_compiler_c_o_GCJ=yes
17738      fi
17739    fi
17740    chmod u+w . 2>&5
17741    $rm conftest*
17742    # SGI C++ compiler will create directory out/ii_files/ for
17743    # template instantiation
17744    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17745    $rm out/* && rmdir out
17746    cd ..
17747    rmdir conftest
17748    $rm conftest*
17749
17750 fi
17751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17752 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17753
17754
17755 hard_links="nottested"
17756 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17757   # do not overwrite the value of need_locks provided by the user
17758   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17759 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17760   hard_links=yes
17761   $rm conftest*
17762   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17763   touch conftest.a
17764   ln conftest.a conftest.b 2>&5 || hard_links=no
17765   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17766   { echo "$as_me:$LINENO: result: $hard_links" >&5
17767 echo "${ECHO_T}$hard_links" >&6; }
17768   if test "$hard_links" = no; then
17769     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17770 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17771     need_locks=warn
17772   fi
17773 else
17774   need_locks=no
17775 fi
17776
17777 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17778 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17779
17780   runpath_var=
17781   allow_undefined_flag_GCJ=
17782   enable_shared_with_static_runtimes_GCJ=no
17783   archive_cmds_GCJ=
17784   archive_expsym_cmds_GCJ=
17785   old_archive_From_new_cmds_GCJ=
17786   old_archive_from_expsyms_cmds_GCJ=
17787   export_dynamic_flag_spec_GCJ=
17788   whole_archive_flag_spec_GCJ=
17789   thread_safe_flag_spec_GCJ=
17790   hardcode_libdir_flag_spec_GCJ=
17791   hardcode_libdir_flag_spec_ld_GCJ=
17792   hardcode_libdir_separator_GCJ=
17793   hardcode_direct_GCJ=no
17794   hardcode_minus_L_GCJ=no
17795   hardcode_shlibpath_var_GCJ=unsupported
17796   link_all_deplibs_GCJ=unknown
17797   hardcode_automatic_GCJ=no
17798   module_cmds_GCJ=
17799   module_expsym_cmds_GCJ=
17800   always_export_symbols_GCJ=no
17801   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17802   # include_expsyms should be a list of space-separated symbols to be *always*
17803   # included in the symbol list
17804   include_expsyms_GCJ=
17805   # exclude_expsyms can be an extended regexp of symbols to exclude
17806   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17807   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17808   # as well as any symbol that contains `d'.
17809   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17810   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17811   # platforms (ab)use it in PIC code, but their linkers get confused if
17812   # the symbol is explicitly referenced.  Since portable code cannot
17813   # rely on this symbol name, it's probably fine to never include it in
17814   # preloaded symbol tables.
17815   extract_expsyms_cmds=
17816   # Just being paranoid about ensuring that cc_basename is set.
17817   for cc_temp in $compiler""; do
17818   case $cc_temp in
17819     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17820     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17821     \-*) ;;
17822     *) break;;
17823   esac
17824 done
17825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17826
17827   case $host_os in
17828   cygwin* | mingw* | pw32*)
17829     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17830     # When not using gcc, we currently assume that we are using
17831     # Microsoft Visual C++.
17832     if test "$GCC" != yes; then
17833       with_gnu_ld=no
17834     fi
17835     ;;
17836   interix*)
17837     # we just hope/assume this is gcc and not c89 (= MSVC++)
17838     with_gnu_ld=yes
17839     ;;
17840   openbsd*)
17841     with_gnu_ld=no
17842     ;;
17843   esac
17844
17845   ld_shlibs_GCJ=yes
17846   if test "$with_gnu_ld" = yes; then
17847     # If archive_cmds runs LD, not CC, wlarc should be empty
17848     wlarc='${wl}'
17849
17850     # Set some defaults for GNU ld with shared library support. These
17851     # are reset later if shared libraries are not supported. Putting them
17852     # here allows them to be overridden if necessary.
17853     runpath_var=LD_RUN_PATH
17854     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17855     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17856     # ancient GNU ld didn't support --whole-archive et. al.
17857     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17858         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17859       else
17860         whole_archive_flag_spec_GCJ=
17861     fi
17862     supports_anon_versioning=no
17863     case `$LD -v 2>/dev/null` in
17864       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17865       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17866       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17867       *\ 2.11.*) ;; # other 2.11 versions
17868       *) supports_anon_versioning=yes ;;
17869     esac
17870
17871     # See if GNU ld supports shared libraries.
17872     case $host_os in
17873     aix3* | aix4* | aix5*)
17874       # On AIX/PPC, the GNU linker is very broken
17875       if test "$host_cpu" != ia64; then
17876         ld_shlibs_GCJ=no
17877         cat <<EOF 1>&2
17878
17879 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17880 *** to be unable to reliably create shared libraries on AIX.
17881 *** Therefore, libtool is disabling shared libraries support.  If you
17882 *** really care for shared libraries, you may want to modify your PATH
17883 *** so that a non-GNU linker is found, and then restart.
17884
17885 EOF
17886       fi
17887       ;;
17888
17889     amigaos*)
17890       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)'
17891       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17892       hardcode_minus_L_GCJ=yes
17893
17894       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17895       # that the semantics of dynamic libraries on AmigaOS, at least up
17896       # to version 4, is to share data among multiple programs linked
17897       # with the same dynamic library.  Since this doesn't match the
17898       # behavior of shared libraries on other platforms, we can't use
17899       # them.
17900       ld_shlibs_GCJ=no
17901       ;;
17902
17903     beos*)
17904       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17905         allow_undefined_flag_GCJ=unsupported
17906         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17907         # support --undefined.  This deserves some investigation.  FIXME
17908         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17909       else
17910         ld_shlibs_GCJ=no
17911       fi
17912       ;;
17913
17914     cygwin* | mingw* | pw32*)
17915       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17916       # as there is no search path for DLLs.
17917       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918       allow_undefined_flag_GCJ=unsupported
17919       always_export_symbols_GCJ=no
17920       enable_shared_with_static_runtimes_GCJ=yes
17921       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17922
17923       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17924         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17925         # If the export-symbols file already is a .def file (1st line
17926         # is EXPORTS), use it as is; otherwise, prepend...
17927         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17928           cp $export_symbols $output_objdir/$soname.def;
17929         else
17930           echo EXPORTS > $output_objdir/$soname.def;
17931           cat $export_symbols >> $output_objdir/$soname.def;
17932         fi~
17933         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17934       else
17935         ld_shlibs_GCJ=no
17936       fi
17937       ;;
17938
17939     interix3*)
17940       hardcode_direct_GCJ=no
17941       hardcode_shlibpath_var_GCJ=no
17942       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17943       export_dynamic_flag_spec_GCJ='${wl}-E'
17944       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17945       # Instead, shared libraries are loaded at an image base (0x10000000 by
17946       # default) and relocated if they conflict, which is a slow very memory
17947       # consuming and fragmenting process.  To avoid this, we pick a random,
17948       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17949       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17950       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'
17951       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'
17952       ;;
17953
17954     linux* | k*bsd*-gnu)
17955       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17956         tmp_addflag=
17957         case $cc_basename,$host_cpu in
17958         pgcc*)                          # Portland Group C compiler
17959           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'
17960           tmp_addflag=' $pic_flag'
17961           ;;
17962         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17963           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'
17964           tmp_addflag=' $pic_flag -Mnomain' ;;
17965         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17966           tmp_addflag=' -i_dynamic' ;;
17967         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17968           tmp_addflag=' -i_dynamic -nofor_main' ;;
17969         ifc* | ifort*)                  # Intel Fortran compiler
17970           tmp_addflag=' -nofor_main' ;;
17971         esac
17972         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17973
17974         if test $supports_anon_versioning = yes; then
17975           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17976   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17977   $echo "local: *; };" >> $output_objdir/$libname.ver~
17978           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17979         fi
17980         link_all_deplibs_GCJ=no
17981       else
17982         ld_shlibs_GCJ=no
17983       fi
17984       ;;
17985
17986     netbsd* | netbsdelf*-gnu)
17987       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17988         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17989         wlarc=
17990       else
17991         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17993       fi
17994       ;;
17995
17996     solaris*)
17997       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17998         ld_shlibs_GCJ=no
17999         cat <<EOF 1>&2
18000
18001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18002 *** create shared libraries on Solaris systems.  Therefore, libtool
18003 *** is disabling shared libraries support.  We urge you to upgrade GNU
18004 *** binutils to release 2.9.1 or newer.  Another option is to modify
18005 *** your PATH or compiler configuration so that the native linker is
18006 *** used, and then restart.
18007
18008 EOF
18009       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18010         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18012       else
18013         ld_shlibs_GCJ=no
18014       fi
18015       ;;
18016
18017     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18018       case `$LD -v 2>&1` in
18019         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18020         ld_shlibs_GCJ=no
18021         cat <<_LT_EOF 1>&2
18022
18023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18024 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18025 *** is disabling shared libraries support.  We urge you to upgrade GNU
18026 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18027 *** your PATH or compiler configuration so that the native linker is
18028 *** used, and then restart.
18029
18030 _LT_EOF
18031         ;;
18032         *)
18033           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18034             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18035             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18036             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18037           else
18038             ld_shlibs_GCJ=no
18039           fi
18040         ;;
18041       esac
18042       ;;
18043
18044     sunos4*)
18045       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18046       wlarc=
18047       hardcode_direct_GCJ=yes
18048       hardcode_shlibpath_var_GCJ=no
18049       ;;
18050
18051     *)
18052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18053         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18054         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18055       else
18056         ld_shlibs_GCJ=no
18057       fi
18058       ;;
18059     esac
18060
18061     if test "$ld_shlibs_GCJ" = no; then
18062       runpath_var=
18063       hardcode_libdir_flag_spec_GCJ=
18064       export_dynamic_flag_spec_GCJ=
18065       whole_archive_flag_spec_GCJ=
18066     fi
18067   else
18068     # PORTME fill in a description of your system's linker (not GNU ld)
18069     case $host_os in
18070     aix3*)
18071       allow_undefined_flag_GCJ=unsupported
18072       always_export_symbols_GCJ=yes
18073       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'
18074       # Note: this linker hardcodes the directories in LIBPATH if there
18075       # are no directories specified by -L.
18076       hardcode_minus_L_GCJ=yes
18077       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18078         # Neither direct hardcoding nor static linking is supported with a
18079         # broken collect2.
18080         hardcode_direct_GCJ=unsupported
18081       fi
18082       ;;
18083
18084     aix4* | aix5*)
18085       if test "$host_cpu" = ia64; then
18086         # On IA64, the linker does run time linking by default, so we don't
18087         # have to do anything special.
18088         aix_use_runtimelinking=no
18089         exp_sym_flag='-Bexport'
18090         no_entry_flag=""
18091       else
18092         # If we're using GNU nm, then we don't want the "-C" option.
18093         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18094         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18095           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'
18096         else
18097           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'
18098         fi
18099         aix_use_runtimelinking=no
18100
18101         # Test if we are trying to use run time linking or normal
18102         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18103         # need to do runtime linking.
18104         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18105           for ld_flag in $LDFLAGS; do
18106           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18107             aix_use_runtimelinking=yes
18108             break
18109           fi
18110           done
18111           ;;
18112         esac
18113
18114         exp_sym_flag='-bexport'
18115         no_entry_flag='-bnoentry'
18116       fi
18117
18118       # When large executables or shared objects are built, AIX ld can
18119       # have problems creating the table of contents.  If linking a library
18120       # or program results in "error TOC overflow" add -mminimal-toc to
18121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18123
18124       archive_cmds_GCJ=''
18125       hardcode_direct_GCJ=yes
18126       hardcode_libdir_separator_GCJ=':'
18127       link_all_deplibs_GCJ=yes
18128
18129       if test "$GCC" = yes; then
18130         case $host_os in aix4.[012]|aix4.[012].*)
18131         # We only want to do this on AIX 4.2 and lower, the check
18132         # below for broken collect2 doesn't work under 4.3+
18133           collect2name=`${CC} -print-prog-name=collect2`
18134           if test -f "$collect2name" && \
18135            strings "$collect2name" | grep resolve_lib_name >/dev/null
18136           then
18137           # We have reworked collect2
18138           hardcode_direct_GCJ=yes
18139           else
18140           # We have old collect2
18141           hardcode_direct_GCJ=unsupported
18142           # It fails to find uninstalled libraries when the uninstalled
18143           # path is not listed in the libpath.  Setting hardcode_minus_L
18144           # to unsupported forces relinking
18145           hardcode_minus_L_GCJ=yes
18146           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147           hardcode_libdir_separator_GCJ=
18148           fi
18149           ;;
18150         esac
18151         shared_flag='-shared'
18152         if test "$aix_use_runtimelinking" = yes; then
18153           shared_flag="$shared_flag "'${wl}-G'
18154         fi
18155       else
18156         # not using gcc
18157         if test "$host_cpu" = ia64; then
18158         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18159         # chokes on -Wl,-G. The following line is correct:
18160           shared_flag='-G'
18161         else
18162           if test "$aix_use_runtimelinking" = yes; then
18163             shared_flag='${wl}-G'
18164           else
18165             shared_flag='${wl}-bM:SRE'
18166           fi
18167         fi
18168       fi
18169
18170       # It seems that -bexpall does not export symbols beginning with
18171       # underscore (_), so it is better to generate a list of symbols to export.
18172       always_export_symbols_GCJ=yes
18173       if test "$aix_use_runtimelinking" = yes; then
18174         # Warning - without using the other runtime loading flags (-brtl),
18175         # -berok will link without error, but may produce a broken library.
18176         allow_undefined_flag_GCJ='-berok'
18177        # Determine the default libpath from the value encoded in an empty executable.
18178        cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184
18185 int
18186 main ()
18187 {
18188
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_link") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } && {
18207          test -z "$ac_c_werror_flag" ||
18208          test ! -s conftest.err
18209        } && test -s conftest$ac_exeext &&
18210        $as_test_x conftest$ac_exeext; then
18211
18212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18213 }'`
18214 # Check for a 64-bit object if we didn't find anything.
18215 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; }
18216 }'`; fi
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225       conftest$ac_exeext conftest.$ac_ext
18226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18227
18228        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18229         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"
18230        else
18231         if test "$host_cpu" = ia64; then
18232           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18233           allow_undefined_flag_GCJ="-z nodefs"
18234           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"
18235         else
18236          # Determine the default libpath from the value encoded in an empty executable.
18237          cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244 int
18245 main ()
18246 {
18247
18248   ;
18249   return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (ac_try="$ac_link"
18254 case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_link") 2>conftest.er1
18260   ac_status=$?
18261   grep -v '^ *+' conftest.er1 >conftest.err
18262   rm -f conftest.er1
18263   cat conftest.err >&5
18264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265   (exit $ac_status); } && {
18266          test -z "$ac_c_werror_flag" ||
18267          test ! -s conftest.err
18268        } && test -s conftest$ac_exeext &&
18269        $as_test_x conftest$ac_exeext; then
18270
18271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18272 }'`
18273 # Check for a 64-bit object if we didn't find anything.
18274 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; }
18275 }'`; fi
18276 else
18277   echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280
18281 fi
18282
18283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18284       conftest$ac_exeext conftest.$ac_ext
18285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18286
18287          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18288           # Warning - without using the other run time loading flags,
18289           # -berok will link without error, but may produce a broken library.
18290           no_undefined_flag_GCJ=' ${wl}-bernotok'
18291           allow_undefined_flag_GCJ=' ${wl}-berok'
18292           # Exported symbols can be pulled into shared objects from archives
18293           whole_archive_flag_spec_GCJ='$convenience'
18294           archive_cmds_need_lc_GCJ=yes
18295           # This is similar to how AIX traditionally builds its shared libraries.
18296           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'
18297         fi
18298       fi
18299       ;;
18300
18301     amigaos*)
18302       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)'
18303       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18304       hardcode_minus_L_GCJ=yes
18305       # see comment about different semantics on the GNU ld section
18306       ld_shlibs_GCJ=no
18307       ;;
18308
18309     bsdi[45]*)
18310       export_dynamic_flag_spec_GCJ=-rdynamic
18311       ;;
18312
18313     cygwin* | mingw* | pw32*)
18314       # When not using gcc, we currently assume that we are using
18315       # Microsoft Visual C++.
18316       # hardcode_libdir_flag_spec is actually meaningless, as there is
18317       # no search path for DLLs.
18318       hardcode_libdir_flag_spec_GCJ=' '
18319       allow_undefined_flag_GCJ=unsupported
18320       # Tell ltmain to make .lib files, not .a files.
18321       libext=lib
18322       # Tell ltmain to make .dll files, not .so files.
18323       shrext_cmds=".dll"
18324       # FIXME: Setting linknames here is a bad hack.
18325       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18326       # The linker will automatically build a .lib file if we build a DLL.
18327       old_archive_From_new_cmds_GCJ='true'
18328       # FIXME: Should let the user specify the lib program.
18329       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18330       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18331       enable_shared_with_static_runtimes_GCJ=yes
18332       ;;
18333
18334     darwin* | rhapsody*)
18335       case $host_os in
18336         rhapsody* | darwin1.[012])
18337          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18338          ;;
18339        *) # Darwin 1.3 on
18340          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18341            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18342          else
18343            case ${MACOSX_DEPLOYMENT_TARGET} in
18344              10.[012])
18345                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18346                ;;
18347              10.*)
18348                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18349                ;;
18350            esac
18351          fi
18352          ;;
18353       esac
18354       archive_cmds_need_lc_GCJ=no
18355       hardcode_direct_GCJ=no
18356       hardcode_automatic_GCJ=yes
18357       hardcode_shlibpath_var_GCJ=unsupported
18358       whole_archive_flag_spec_GCJ=''
18359       link_all_deplibs_GCJ=yes
18360     if test "$GCC" = yes ; then
18361         output_verbose_link_cmd='echo'
18362         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18363       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18364       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18365       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}'
18366       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}'
18367     else
18368       case $cc_basename in
18369         xlc*)
18370          output_verbose_link_cmd='echo'
18371          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18372          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18373           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18374          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}'
18375           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}'
18376           ;;
18377        *)
18378          ld_shlibs_GCJ=no
18379           ;;
18380       esac
18381     fi
18382       ;;
18383
18384     dgux*)
18385       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18386       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18387       hardcode_shlibpath_var_GCJ=no
18388       ;;
18389
18390     freebsd1*)
18391       ld_shlibs_GCJ=no
18392       ;;
18393
18394     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18395     # support.  Future versions do this automatically, but an explicit c++rt0.o
18396     # does not break anything, and helps significantly (at the cost of a little
18397     # extra space).
18398     freebsd2.2*)
18399       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18400       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18401       hardcode_direct_GCJ=yes
18402       hardcode_shlibpath_var_GCJ=no
18403       ;;
18404
18405     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18406     freebsd2*)
18407       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18408       hardcode_direct_GCJ=yes
18409       hardcode_minus_L_GCJ=yes
18410       hardcode_shlibpath_var_GCJ=no
18411       ;;
18412
18413     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18414     freebsd* | dragonfly*)
18415       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18416       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18417       hardcode_direct_GCJ=yes
18418       hardcode_shlibpath_var_GCJ=no
18419       ;;
18420
18421     hpux9*)
18422       if test "$GCC" = yes; then
18423         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'
18424       else
18425         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'
18426       fi
18427       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18428       hardcode_libdir_separator_GCJ=:
18429       hardcode_direct_GCJ=yes
18430
18431       # hardcode_minus_L: Not really in the search PATH,
18432       # but as the default location of the library.
18433       hardcode_minus_L_GCJ=yes
18434       export_dynamic_flag_spec_GCJ='${wl}-E'
18435       ;;
18436
18437     hpux10*)
18438       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18439         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18440       else
18441         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18442       fi
18443       if test "$with_gnu_ld" = no; then
18444         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18445         hardcode_libdir_separator_GCJ=:
18446
18447         hardcode_direct_GCJ=yes
18448         export_dynamic_flag_spec_GCJ='${wl}-E'
18449
18450         # hardcode_minus_L: Not really in the search PATH,
18451         # but as the default location of the library.
18452         hardcode_minus_L_GCJ=yes
18453       fi
18454       ;;
18455
18456     hpux11*)
18457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18458         case $host_cpu in
18459         hppa*64*)
18460           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18461           ;;
18462         ia64*)
18463           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18464           ;;
18465         *)
18466           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18467           ;;
18468         esac
18469       else
18470         case $host_cpu in
18471         hppa*64*)
18472           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473           ;;
18474         ia64*)
18475           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18476           ;;
18477         *)
18478           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18479           ;;
18480         esac
18481       fi
18482       if test "$with_gnu_ld" = no; then
18483         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18484         hardcode_libdir_separator_GCJ=:
18485
18486         case $host_cpu in
18487         hppa*64*|ia64*)
18488           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18489           hardcode_direct_GCJ=no
18490           hardcode_shlibpath_var_GCJ=no
18491           ;;
18492         *)
18493           hardcode_direct_GCJ=yes
18494           export_dynamic_flag_spec_GCJ='${wl}-E'
18495
18496           # hardcode_minus_L: Not really in the search PATH,
18497           # but as the default location of the library.
18498           hardcode_minus_L_GCJ=yes
18499           ;;
18500         esac
18501       fi
18502       ;;
18503
18504     irix5* | irix6* | nonstopux*)
18505       if test "$GCC" = yes; then
18506         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'
18507       else
18508         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'
18509         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18510       fi
18511       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18512       hardcode_libdir_separator_GCJ=:
18513       link_all_deplibs_GCJ=yes
18514       ;;
18515
18516     netbsd* | netbsdelf*-gnu)
18517       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18518         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18519       else
18520         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18521       fi
18522       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18523       hardcode_direct_GCJ=yes
18524       hardcode_shlibpath_var_GCJ=no
18525       ;;
18526
18527     newsos6)
18528       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18529       hardcode_direct_GCJ=yes
18530       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18531       hardcode_libdir_separator_GCJ=:
18532       hardcode_shlibpath_var_GCJ=no
18533       ;;
18534
18535     openbsd*)
18536       hardcode_direct_GCJ=yes
18537       hardcode_shlibpath_var_GCJ=no
18538       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18539         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18540         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18541         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18542         export_dynamic_flag_spec_GCJ='${wl}-E'
18543       else
18544        case $host_os in
18545          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18546            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18547            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18548            ;;
18549          *)
18550            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18551            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18552            ;;
18553        esac
18554       fi
18555       ;;
18556
18557     os2*)
18558       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18559       hardcode_minus_L_GCJ=yes
18560       allow_undefined_flag_GCJ=unsupported
18561       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'
18562       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18563       ;;
18564
18565     osf3*)
18566       if test "$GCC" = yes; then
18567         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18568         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'
18569       else
18570         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18571         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'
18572       fi
18573       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18574       hardcode_libdir_separator_GCJ=:
18575       ;;
18576
18577     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18578       if test "$GCC" = yes; then
18579         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18580         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'
18581         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18582       else
18583         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18584         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'
18585         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~
18586         $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'
18587
18588         # Both c and cxx compiler support -rpath directly
18589         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18590       fi
18591       hardcode_libdir_separator_GCJ=:
18592       ;;
18593
18594     solaris*)
18595       no_undefined_flag_GCJ=' -z text'
18596       if test "$GCC" = yes; then
18597         wlarc='${wl}'
18598         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18599         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18600           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18601       else
18602         wlarc=''
18603         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18604         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18605         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18606       fi
18607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18608       hardcode_shlibpath_var_GCJ=no
18609       case $host_os in
18610       solaris2.[0-5] | solaris2.[0-5].*) ;;
18611       *)
18612         # The compiler driver will combine linker options so we
18613         # cannot just pass the convience library names through
18614         # without $wl, iff we do not link with $LD.
18615         # Luckily, gcc supports the same syntax we need for Sun Studio.
18616         # Supported since Solaris 2.6 (maybe 2.5.1?)
18617         case $wlarc in
18618         '')
18619           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18620         *)
18621           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' ;;
18622         esac ;;
18623       esac
18624       link_all_deplibs_GCJ=yes
18625       ;;
18626
18627     sunos4*)
18628       if test "x$host_vendor" = xsequent; then
18629         # Use $CC to link under sequent, because it throws in some extra .o
18630         # files that make .init and .fini sections work.
18631         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18632       else
18633         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18634       fi
18635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18636       hardcode_direct_GCJ=yes
18637       hardcode_minus_L_GCJ=yes
18638       hardcode_shlibpath_var_GCJ=no
18639       ;;
18640
18641     sysv4)
18642       case $host_vendor in
18643         sni)
18644           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645           hardcode_direct_GCJ=yes # is this really true???
18646         ;;
18647         siemens)
18648           ## LD is ld it makes a PLAMLIB
18649           ## CC just makes a GrossModule.
18650           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18651           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18652           hardcode_direct_GCJ=no
18653         ;;
18654         motorola)
18655           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18657         ;;
18658       esac
18659       runpath_var='LD_RUN_PATH'
18660       hardcode_shlibpath_var_GCJ=no
18661       ;;
18662
18663     sysv4.3*)
18664       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18665       hardcode_shlibpath_var_GCJ=no
18666       export_dynamic_flag_spec_GCJ='-Bexport'
18667       ;;
18668
18669     sysv4*MP*)
18670       if test -d /usr/nec; then
18671         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18672         hardcode_shlibpath_var_GCJ=no
18673         runpath_var=LD_RUN_PATH
18674         hardcode_runpath_var=yes
18675         ld_shlibs_GCJ=yes
18676       fi
18677       ;;
18678
18679     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18680       no_undefined_flag_GCJ='${wl}-z,text'
18681       archive_cmds_need_lc_GCJ=no
18682       hardcode_shlibpath_var_GCJ=no
18683       runpath_var='LD_RUN_PATH'
18684
18685       if test "$GCC" = yes; then
18686         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688       else
18689         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18690         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18691       fi
18692       ;;
18693
18694     sysv5* | sco3.2v5* | sco5v6*)
18695       # Note: We can NOT use -z defs as we might desire, because we do not
18696       # link with -lc, and that would cause any symbols used from libc to
18697       # always be unresolved, which means just about no library would
18698       # ever link correctly.  If we're not using GNU ld we use -z text
18699       # though, which does catch some bad symbols but isn't as heavy-handed
18700       # as -z defs.
18701       no_undefined_flag_GCJ='${wl}-z,text'
18702       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18703       archive_cmds_need_lc_GCJ=no
18704       hardcode_shlibpath_var_GCJ=no
18705       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18706       hardcode_libdir_separator_GCJ=':'
18707       link_all_deplibs_GCJ=yes
18708       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18709       runpath_var='LD_RUN_PATH'
18710
18711       if test "$GCC" = yes; then
18712         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18713         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18714       else
18715         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18716         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18717       fi
18718       ;;
18719
18720     uts4*)
18721       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18722       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18723       hardcode_shlibpath_var_GCJ=no
18724       ;;
18725
18726     *)
18727       ld_shlibs_GCJ=no
18728       ;;
18729     esac
18730   fi
18731
18732 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18733 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18734 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18735
18736 #
18737 # Do we need to explicitly link libc?
18738 #
18739 case "x$archive_cmds_need_lc_GCJ" in
18740 x|xyes)
18741   # Assume -lc should be added
18742   archive_cmds_need_lc_GCJ=yes
18743
18744   if test "$enable_shared" = yes && test "$GCC" = yes; then
18745     case $archive_cmds_GCJ in
18746     *'~'*)
18747       # FIXME: we may have to deal with multi-command sequences.
18748       ;;
18749     '$CC '*)
18750       # Test whether the compiler implicitly links with -lc since on some
18751       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18752       # to ld, don't add -lc before -lgcc.
18753       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18755       $rm conftest*
18756       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18757
18758       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18759   (eval $ac_compile) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } 2>conftest.err; then
18763         soname=conftest
18764         lib=conftest
18765         libobjs=conftest.$ac_objext
18766         deplibs=
18767         wl=$lt_prog_compiler_wl_GCJ
18768         pic_flag=$lt_prog_compiler_pic_GCJ
18769         compiler_flags=-v
18770         linker_flags=-v
18771         verstring=
18772         output_objdir=.
18773         libname=conftest
18774         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18775         allow_undefined_flag_GCJ=
18776         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18777   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }
18781         then
18782           archive_cmds_need_lc_GCJ=no
18783         else
18784           archive_cmds_need_lc_GCJ=yes
18785         fi
18786         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18787       else
18788         cat conftest.err 1>&5
18789       fi
18790       $rm conftest*
18791       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18792 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18793       ;;
18794     esac
18795   fi
18796   ;;
18797 esac
18798
18799 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18801 library_names_spec=
18802 libname_spec='lib$name'
18803 soname_spec=
18804 shrext_cmds=".so"
18805 postinstall_cmds=
18806 postuninstall_cmds=
18807 finish_cmds=
18808 finish_eval=
18809 shlibpath_var=
18810 shlibpath_overrides_runpath=unknown
18811 version_type=none
18812 dynamic_linker="$host_os ld.so"
18813 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18814 if test "$GCC" = yes; then
18815   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18816   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18817     # if the path contains ";" then we assume it to be the separator
18818     # otherwise default to the standard path separator (i.e. ":") - it is
18819     # assumed that no part of a normal pathname contains ";" but that should
18820     # okay in the real world where ";" in dirpaths is itself problematic.
18821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18822   else
18823     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18824   fi
18825 else
18826   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18827 fi
18828 need_lib_prefix=unknown
18829 hardcode_into_libs=no
18830
18831 # when you set need_version to no, make sure it does not cause -set_version
18832 # flags to be left without arguments
18833 need_version=unknown
18834
18835 case $host_os in
18836 aix3*)
18837   version_type=linux
18838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18839   shlibpath_var=LIBPATH
18840
18841   # AIX 3 has no versioning support, so we append a major version to the name.
18842   soname_spec='${libname}${release}${shared_ext}$major'
18843   ;;
18844
18845 aix4* | aix5*)
18846   version_type=linux
18847   need_lib_prefix=no
18848   need_version=no
18849   hardcode_into_libs=yes
18850   if test "$host_cpu" = ia64; then
18851     # AIX 5 supports IA64
18852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18853     shlibpath_var=LD_LIBRARY_PATH
18854   else
18855     # With GCC up to 2.95.x, collect2 would create an import file
18856     # for dependence libraries.  The import file would start with
18857     # the line `#! .'.  This would cause the generated library to
18858     # depend on `.', always an invalid library.  This was fixed in
18859     # development snapshots of GCC prior to 3.0.
18860     case $host_os in
18861       aix4 | aix4.[01] | aix4.[01].*)
18862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18863            echo ' yes '
18864            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18865         :
18866       else
18867         can_build_shared=no
18868       fi
18869       ;;
18870     esac
18871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18872     # soname into executable. Probably we can add versioning support to
18873     # collect2, so additional links can be useful in future.
18874     if test "$aix_use_runtimelinking" = yes; then
18875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18876       # instead of lib<name>.a to let people know that these are not
18877       # typical AIX shared libraries.
18878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879     else
18880       # We preserve .a as extension for shared libraries through AIX4.2
18881       # and later when we are not doing run time linking.
18882       library_names_spec='${libname}${release}.a $libname.a'
18883       soname_spec='${libname}${release}${shared_ext}$major'
18884     fi
18885     shlibpath_var=LIBPATH
18886   fi
18887   ;;
18888
18889 amigaos*)
18890   library_names_spec='$libname.ixlibrary $libname.a'
18891   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18892   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'
18893   ;;
18894
18895 beos*)
18896   library_names_spec='${libname}${shared_ext}'
18897   dynamic_linker="$host_os ld.so"
18898   shlibpath_var=LIBRARY_PATH
18899   ;;
18900
18901 bsdi[45]*)
18902   version_type=linux
18903   need_version=no
18904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905   soname_spec='${libname}${release}${shared_ext}$major'
18906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18907   shlibpath_var=LD_LIBRARY_PATH
18908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18910   # the default ld.so.conf also contains /usr/contrib/lib and
18911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18912   # libtool to hard-code these into programs
18913   ;;
18914
18915 cygwin* | mingw* | pw32*)
18916   version_type=windows
18917   shrext_cmds=".dll"
18918   need_version=no
18919   need_lib_prefix=no
18920
18921   case $GCC,$host_os in
18922   yes,cygwin* | yes,mingw* | yes,pw32*)
18923     library_names_spec='$libname.dll.a'
18924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18925     postinstall_cmds='base_file=`basename \${file}`~
18926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18927       dldir=$destdir/`dirname \$dlpath`~
18928       test -d \$dldir || mkdir -p \$dldir~
18929       $install_prog $dir/$dlname \$dldir/$dlname~
18930       chmod a+x \$dldir/$dlname'
18931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18932       dlpath=$dir/\$dldll~
18933        $rm \$dlpath'
18934     shlibpath_overrides_runpath=yes
18935
18936     case $host_os in
18937     cygwin*)
18938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18940       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18941       ;;
18942     mingw*)
18943       # MinGW DLLs use traditional 'lib' prefix
18944       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18945       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18946       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18947         # It is most probably a Windows format PATH printed by
18948         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18949         # path with ; separators, and with drive letters. We can handle the
18950         # drive letters (cygwin fileutils understands them), so leave them,
18951         # especially as we might pass files found there to a mingw objdump,
18952         # which wouldn't understand a cygwinified path. Ahh.
18953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18954       else
18955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18956       fi
18957       ;;
18958     pw32*)
18959       # pw32 DLLs use 'pw' prefix rather than 'lib'
18960       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18961       ;;
18962     esac
18963     ;;
18964
18965   *)
18966     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18967     ;;
18968   esac
18969   dynamic_linker='Win32 ld.exe'
18970   # FIXME: first we should search . and the directory the executable is in
18971   shlibpath_var=PATH
18972   ;;
18973
18974 darwin* | rhapsody*)
18975   dynamic_linker="$host_os dyld"
18976   version_type=darwin
18977   need_lib_prefix=no
18978   need_version=no
18979   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18980   soname_spec='${libname}${release}${major}$shared_ext'
18981   shlibpath_overrides_runpath=yes
18982   shlibpath_var=DYLD_LIBRARY_PATH
18983   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18984   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18985   if test "$GCC" = yes; then
18986     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"`
18987   else
18988     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18989   fi
18990   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18991   ;;
18992
18993 dgux*)
18994   version_type=linux
18995   need_lib_prefix=no
18996   need_version=no
18997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18998   soname_spec='${libname}${release}${shared_ext}$major'
18999   shlibpath_var=LD_LIBRARY_PATH
19000   ;;
19001
19002 freebsd1*)
19003   dynamic_linker=no
19004   ;;
19005
19006 freebsd* | dragonfly*)
19007   # DragonFly does not have aout.  When/if they implement a new
19008   # versioning mechanism, adjust this.
19009   if test -x /usr/bin/objformat; then
19010     objformat=`/usr/bin/objformat`
19011   else
19012     case $host_os in
19013     freebsd[123]*) objformat=aout ;;
19014     *) objformat=elf ;;
19015     esac
19016   fi
19017   version_type=freebsd-$objformat
19018   case $version_type in
19019     freebsd-elf*)
19020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19021       need_version=no
19022       need_lib_prefix=no
19023       ;;
19024     freebsd-*)
19025       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19026       need_version=yes
19027       ;;
19028   esac
19029   shlibpath_var=LD_LIBRARY_PATH
19030   case $host_os in
19031   freebsd2*)
19032     shlibpath_overrides_runpath=yes
19033     ;;
19034   freebsd3.[01]* | freebsdelf3.[01]*)
19035     shlibpath_overrides_runpath=yes
19036     hardcode_into_libs=yes
19037     ;;
19038   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19039   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19040     shlibpath_overrides_runpath=no
19041     hardcode_into_libs=yes
19042     ;;
19043   freebsd*) # from 4.6 on
19044     shlibpath_overrides_runpath=yes
19045     hardcode_into_libs=yes
19046     ;;
19047   esac
19048   ;;
19049
19050 gnu*)
19051   version_type=linux
19052   need_lib_prefix=no
19053   need_version=no
19054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19055   soname_spec='${libname}${release}${shared_ext}$major'
19056   shlibpath_var=LD_LIBRARY_PATH
19057   hardcode_into_libs=yes
19058   ;;
19059
19060 hpux9* | hpux10* | hpux11*)
19061   # Give a soname corresponding to the major version so that dld.sl refuses to
19062   # link against other versions.
19063   version_type=sunos
19064   need_lib_prefix=no
19065   need_version=no
19066   case $host_cpu in
19067   ia64*)
19068     shrext_cmds='.so'
19069     hardcode_into_libs=yes
19070     dynamic_linker="$host_os dld.so"
19071     shlibpath_var=LD_LIBRARY_PATH
19072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19074     soname_spec='${libname}${release}${shared_ext}$major'
19075     if test "X$HPUX_IA64_MODE" = X32; then
19076       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19077     else
19078       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19079     fi
19080     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19081     ;;
19082    hppa*64*)
19083      shrext_cmds='.sl'
19084      hardcode_into_libs=yes
19085      dynamic_linker="$host_os dld.sl"
19086      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19087      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19088      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19089      soname_spec='${libname}${release}${shared_ext}$major'
19090      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19091      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19092      ;;
19093    *)
19094     shrext_cmds='.sl'
19095     dynamic_linker="$host_os dld.sl"
19096     shlibpath_var=SHLIB_PATH
19097     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099     soname_spec='${libname}${release}${shared_ext}$major'
19100     ;;
19101   esac
19102   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19103   postinstall_cmds='chmod 555 $lib'
19104   ;;
19105
19106 interix3*)
19107   version_type=linux
19108   need_lib_prefix=no
19109   need_version=no
19110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19111   soname_spec='${libname}${release}${shared_ext}$major'
19112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19113   shlibpath_var=LD_LIBRARY_PATH
19114   shlibpath_overrides_runpath=no
19115   hardcode_into_libs=yes
19116   ;;
19117
19118 irix5* | irix6* | nonstopux*)
19119   case $host_os in
19120     nonstopux*) version_type=nonstopux ;;
19121     *)
19122         if test "$lt_cv_prog_gnu_ld" = yes; then
19123                 version_type=linux
19124         else
19125                 version_type=irix
19126         fi ;;
19127   esac
19128   need_lib_prefix=no
19129   need_version=no
19130   soname_spec='${libname}${release}${shared_ext}$major'
19131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19132   case $host_os in
19133   irix5* | nonstopux*)
19134     libsuff= shlibsuff=
19135     ;;
19136   *)
19137     case $LD in # libtool.m4 will add one of these switches to LD
19138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19139       libsuff= shlibsuff= libmagic=32-bit;;
19140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19141       libsuff=32 shlibsuff=N32 libmagic=N32;;
19142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19144     *) libsuff= shlibsuff= libmagic=never-match;;
19145     esac
19146     ;;
19147   esac
19148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19149   shlibpath_overrides_runpath=no
19150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19152   hardcode_into_libs=yes
19153   ;;
19154
19155 # No shared lib support for Linux oldld, aout, or coff.
19156 linux*oldld* | linux*aout* | linux*coff*)
19157   dynamic_linker=no
19158   ;;
19159
19160 # This must be Linux ELF.
19161 linux* | k*bsd*-gnu)
19162   version_type=linux
19163   need_lib_prefix=no
19164   need_version=no
19165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19166   soname_spec='${libname}${release}${shared_ext}$major'
19167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19168   shlibpath_var=LD_LIBRARY_PATH
19169   shlibpath_overrides_runpath=no
19170   # This implies no fast_install, which is unacceptable.
19171   # Some rework will be needed to allow for fast_install
19172   # before this can be enabled.
19173   hardcode_into_libs=yes
19174
19175   # Append ld.so.conf contents to the search path
19176   if test -f /etc/ld.so.conf; then
19177     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' ' '`
19178     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19179   fi
19180
19181   # We used to test for /lib/ld.so.1 and disable shared libraries on
19182   # powerpc, because MkLinux only supported shared libraries with the
19183   # GNU dynamic linker.  Since this was broken with cross compilers,
19184   # most powerpc-linux boxes support dynamic linking these days and
19185   # people can always --disable-shared, the test was removed, and we
19186   # assume the GNU/Linux dynamic linker is in use.
19187   dynamic_linker='GNU/Linux ld.so'
19188   ;;
19189
19190 netbsdelf*-gnu)
19191   version_type=linux
19192   need_lib_prefix=no
19193   need_version=no
19194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19195   soname_spec='${libname}${release}${shared_ext}$major'
19196   shlibpath_var=LD_LIBRARY_PATH
19197   shlibpath_overrides_runpath=no
19198   hardcode_into_libs=yes
19199   dynamic_linker='NetBSD ld.elf_so'
19200   ;;
19201
19202 netbsd*)
19203   version_type=sunos
19204   need_lib_prefix=no
19205   need_version=no
19206   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19208     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19209     dynamic_linker='NetBSD (a.out) ld.so'
19210   else
19211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19212     soname_spec='${libname}${release}${shared_ext}$major'
19213     dynamic_linker='NetBSD ld.elf_so'
19214   fi
19215   shlibpath_var=LD_LIBRARY_PATH
19216   shlibpath_overrides_runpath=yes
19217   hardcode_into_libs=yes
19218   ;;
19219
19220 newsos6)
19221   version_type=linux
19222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19223   shlibpath_var=LD_LIBRARY_PATH
19224   shlibpath_overrides_runpath=yes
19225   ;;
19226
19227 nto-qnx*)
19228   version_type=linux
19229   need_lib_prefix=no
19230   need_version=no
19231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232   soname_spec='${libname}${release}${shared_ext}$major'
19233   shlibpath_var=LD_LIBRARY_PATH
19234   shlibpath_overrides_runpath=yes
19235   ;;
19236
19237 openbsd*)
19238   version_type=sunos
19239   sys_lib_dlsearch_path_spec="/usr/lib"
19240   need_lib_prefix=no
19241   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19242   case $host_os in
19243     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19244     *)                         need_version=no  ;;
19245   esac
19246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19247   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19248   shlibpath_var=LD_LIBRARY_PATH
19249   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19250     case $host_os in
19251       openbsd2.[89] | openbsd2.[89].*)
19252         shlibpath_overrides_runpath=no
19253         ;;
19254       *)
19255         shlibpath_overrides_runpath=yes
19256         ;;
19257       esac
19258   else
19259     shlibpath_overrides_runpath=yes
19260   fi
19261   ;;
19262
19263 os2*)
19264   libname_spec='$name'
19265   shrext_cmds=".dll"
19266   need_lib_prefix=no
19267   library_names_spec='$libname${shared_ext} $libname.a'
19268   dynamic_linker='OS/2 ld.exe'
19269   shlibpath_var=LIBPATH
19270   ;;
19271
19272 osf3* | osf4* | osf5*)
19273   version_type=osf
19274   need_lib_prefix=no
19275   need_version=no
19276   soname_spec='${libname}${release}${shared_ext}$major'
19277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278   shlibpath_var=LD_LIBRARY_PATH
19279   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19280   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19281   ;;
19282
19283 solaris*)
19284   version_type=linux
19285   need_lib_prefix=no
19286   need_version=no
19287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19288   soname_spec='${libname}${release}${shared_ext}$major'
19289   shlibpath_var=LD_LIBRARY_PATH
19290   shlibpath_overrides_runpath=yes
19291   hardcode_into_libs=yes
19292   # ldd complains unless libraries are executable
19293   postinstall_cmds='chmod +x $lib'
19294   ;;
19295
19296 sunos4*)
19297   version_type=sunos
19298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19299   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19300   shlibpath_var=LD_LIBRARY_PATH
19301   shlibpath_overrides_runpath=yes
19302   if test "$with_gnu_ld" = yes; then
19303     need_lib_prefix=no
19304   fi
19305   need_version=yes
19306   ;;
19307
19308 sysv4 | sysv4.3*)
19309   version_type=linux
19310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19311   soname_spec='${libname}${release}${shared_ext}$major'
19312   shlibpath_var=LD_LIBRARY_PATH
19313   case $host_vendor in
19314     sni)
19315       shlibpath_overrides_runpath=no
19316       need_lib_prefix=no
19317       export_dynamic_flag_spec='${wl}-Blargedynsym'
19318       runpath_var=LD_RUN_PATH
19319       ;;
19320     siemens)
19321       need_lib_prefix=no
19322       ;;
19323     motorola)
19324       need_lib_prefix=no
19325       need_version=no
19326       shlibpath_overrides_runpath=no
19327       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19328       ;;
19329   esac
19330   ;;
19331
19332 sysv4*MP*)
19333   if test -d /usr/nec ;then
19334     version_type=linux
19335     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19336     soname_spec='$libname${shared_ext}.$major'
19337     shlibpath_var=LD_LIBRARY_PATH
19338   fi
19339   ;;
19340
19341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19342   version_type=freebsd-elf
19343   need_lib_prefix=no
19344   need_version=no
19345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19346   soname_spec='${libname}${release}${shared_ext}$major'
19347   shlibpath_var=LD_LIBRARY_PATH
19348   hardcode_into_libs=yes
19349   if test "$with_gnu_ld" = yes; then
19350     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19351     shlibpath_overrides_runpath=no
19352   else
19353     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19354     shlibpath_overrides_runpath=yes
19355     case $host_os in
19356       sco3.2v5*)
19357         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19358         ;;
19359     esac
19360   fi
19361   sys_lib_dlsearch_path_spec='/usr/lib'
19362   ;;
19363
19364 uts4*)
19365   version_type=linux
19366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367   soname_spec='${libname}${release}${shared_ext}$major'
19368   shlibpath_var=LD_LIBRARY_PATH
19369   ;;
19370
19371 *)
19372   dynamic_linker=no
19373   ;;
19374 esac
19375 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19376 echo "${ECHO_T}$dynamic_linker" >&6; }
19377 test "$dynamic_linker" = no && can_build_shared=no
19378
19379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19380 if test "$GCC" = yes; then
19381   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19382 fi
19383
19384 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19385 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19386 hardcode_action_GCJ=
19387 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19388    test -n "$runpath_var_GCJ" || \
19389    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19390
19391   # We can hardcode non-existant directories.
19392   if test "$hardcode_direct_GCJ" != no &&
19393      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19394      # have to relink, otherwise we might link with an installed library
19395      # when we should be linking with a yet-to-be-installed one
19396      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19397      test "$hardcode_minus_L_GCJ" != no; then
19398     # Linking always hardcodes the temporary library directory.
19399     hardcode_action_GCJ=relink
19400   else
19401     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19402     hardcode_action_GCJ=immediate
19403   fi
19404 else
19405   # We cannot hardcode anything, or else we can only hardcode existing
19406   # directories.
19407   hardcode_action_GCJ=unsupported
19408 fi
19409 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19410 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19411
19412 if test "$hardcode_action_GCJ" = relink; then
19413   # Fast installation is not supported
19414   enable_fast_install=no
19415 elif test "$shlibpath_overrides_runpath" = yes ||
19416      test "$enable_shared" = no; then
19417   # Fast installation is not necessary
19418   enable_fast_install=needless
19419 fi
19420
19421
19422 # The else clause should only fire when bootstrapping the
19423 # libtool distribution, otherwise you forgot to ship ltmain.sh
19424 # with your package, and you will get complaints that there are
19425 # no rules to generate ltmain.sh.
19426 if test -f "$ltmain"; then
19427   # See if we are running on zsh, and set the options which allow our commands through
19428   # without removal of \ escapes.
19429   if test -n "${ZSH_VERSION+set}" ; then
19430     setopt NO_GLOB_SUBST
19431   fi
19432   # Now quote all the things that may contain metacharacters while being
19433   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19434   # variables and quote the copies for generation of the libtool script.
19435   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19436     SED SHELL STRIP \
19437     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19438     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19439     deplibs_check_method reload_flag reload_cmds need_locks \
19440     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19441     lt_cv_sys_global_symbol_to_c_name_address \
19442     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19443     old_postinstall_cmds old_postuninstall_cmds \
19444     compiler_GCJ \
19445     CC_GCJ \
19446     LD_GCJ \
19447     lt_prog_compiler_wl_GCJ \
19448     lt_prog_compiler_pic_GCJ \
19449     lt_prog_compiler_static_GCJ \
19450     lt_prog_compiler_no_builtin_flag_GCJ \
19451     export_dynamic_flag_spec_GCJ \
19452     thread_safe_flag_spec_GCJ \
19453     whole_archive_flag_spec_GCJ \
19454     enable_shared_with_static_runtimes_GCJ \
19455     old_archive_cmds_GCJ \
19456     old_archive_from_new_cmds_GCJ \
19457     predep_objects_GCJ \
19458     postdep_objects_GCJ \
19459     predeps_GCJ \
19460     postdeps_GCJ \
19461     compiler_lib_search_path_GCJ \
19462     archive_cmds_GCJ \
19463     archive_expsym_cmds_GCJ \
19464     postinstall_cmds_GCJ \
19465     postuninstall_cmds_GCJ \
19466     old_archive_from_expsyms_cmds_GCJ \
19467     allow_undefined_flag_GCJ \
19468     no_undefined_flag_GCJ \
19469     export_symbols_cmds_GCJ \
19470     hardcode_libdir_flag_spec_GCJ \
19471     hardcode_libdir_flag_spec_ld_GCJ \
19472     hardcode_libdir_separator_GCJ \
19473     hardcode_automatic_GCJ \
19474     module_cmds_GCJ \
19475     module_expsym_cmds_GCJ \
19476     lt_cv_prog_compiler_c_o_GCJ \
19477     exclude_expsyms_GCJ \
19478     include_expsyms_GCJ; do
19479
19480     case $var in
19481     old_archive_cmds_GCJ | \
19482     old_archive_from_new_cmds_GCJ | \
19483     archive_cmds_GCJ | \
19484     archive_expsym_cmds_GCJ | \
19485     module_cmds_GCJ | \
19486     module_expsym_cmds_GCJ | \
19487     old_archive_from_expsyms_cmds_GCJ | \
19488     export_symbols_cmds_GCJ | \
19489     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19490     postinstall_cmds | postuninstall_cmds | \
19491     old_postinstall_cmds | old_postuninstall_cmds | \
19492     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19493       # Double-quote double-evaled strings.
19494       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19495       ;;
19496     *)
19497       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19498       ;;
19499     esac
19500   done
19501
19502   case $lt_echo in
19503   *'\$0 --fallback-echo"')
19504     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19505     ;;
19506   esac
19507
19508 cfgfile="$ofile"
19509
19510   cat <<__EOF__ >> "$cfgfile"
19511 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19512
19513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19514
19515 # Shell to use when invoking shell scripts.
19516 SHELL=$lt_SHELL
19517
19518 # Whether or not to build shared libraries.
19519 build_libtool_libs=$enable_shared
19520
19521 # Whether or not to build static libraries.
19522 build_old_libs=$enable_static
19523
19524 # Whether or not to add -lc for building shared libraries.
19525 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19526
19527 # Whether or not to disallow shared libs when runtime libs are static
19528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19529
19530 # Whether or not to optimize for fast installation.
19531 fast_install=$enable_fast_install
19532
19533 # The host system.
19534 host_alias=$host_alias
19535 host=$host
19536 host_os=$host_os
19537
19538 # The build system.
19539 build_alias=$build_alias
19540 build=$build
19541 build_os=$build_os
19542
19543 # An echo program that does not interpret backslashes.
19544 echo=$lt_echo
19545
19546 # The archiver.
19547 AR=$lt_AR
19548 AR_FLAGS=$lt_AR_FLAGS
19549
19550 # A C compiler.
19551 LTCC=$lt_LTCC
19552
19553 # LTCC compiler flags.
19554 LTCFLAGS=$lt_LTCFLAGS
19555
19556 # A language-specific compiler.
19557 CC=$lt_compiler_GCJ
19558
19559 # Is the compiler the GNU C compiler?
19560 with_gcc=$GCC_GCJ
19561
19562 # An ERE matcher.
19563 EGREP=$lt_EGREP
19564
19565 # The linker used to build libraries.
19566 LD=$lt_LD_GCJ
19567
19568 # Whether we need hard or soft links.
19569 LN_S=$lt_LN_S
19570
19571 # A BSD-compatible nm program.
19572 NM=$lt_NM
19573
19574 # A symbol stripping program
19575 STRIP=$lt_STRIP
19576
19577 # Used to examine libraries when file_magic_cmd begins "file"
19578 MAGIC_CMD=$MAGIC_CMD
19579
19580 # Used on cygwin: DLL creation program.
19581 DLLTOOL="$DLLTOOL"
19582
19583 # Used on cygwin: object dumper.
19584 OBJDUMP="$OBJDUMP"
19585
19586 # Used on cygwin: assembler.
19587 AS="$AS"
19588
19589 # The name of the directory that contains temporary libtool files.
19590 objdir=$objdir
19591
19592 # How to create reloadable object files.
19593 reload_flag=$lt_reload_flag
19594 reload_cmds=$lt_reload_cmds
19595
19596 # How to pass a linker flag through the compiler.
19597 wl=$lt_lt_prog_compiler_wl_GCJ
19598
19599 # Object file suffix (normally "o").
19600 objext="$ac_objext"
19601
19602 # Old archive suffix (normally "a").
19603 libext="$libext"
19604
19605 # Shared library suffix (normally ".so").
19606 shrext_cmds='$shrext_cmds'
19607
19608 # Executable file suffix (normally "").
19609 exeext="$exeext"
19610
19611 # Additional compiler flags for building library objects.
19612 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19613 pic_mode=$pic_mode
19614
19615 # What is the maximum length of a command?
19616 max_cmd_len=$lt_cv_sys_max_cmd_len
19617
19618 # Does compiler simultaneously support -c and -o options?
19619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19620
19621 # Must we lock files when doing compilation?
19622 need_locks=$lt_need_locks
19623
19624 # Do we need the lib prefix for modules?
19625 need_lib_prefix=$need_lib_prefix
19626
19627 # Do we need a version for libraries?
19628 need_version=$need_version
19629
19630 # Whether dlopen is supported.
19631 dlopen_support=$enable_dlopen
19632
19633 # Whether dlopen of programs is supported.
19634 dlopen_self=$enable_dlopen_self
19635
19636 # Whether dlopen of statically linked programs is supported.
19637 dlopen_self_static=$enable_dlopen_self_static
19638
19639 # Compiler flag to prevent dynamic linking.
19640 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19641
19642 # Compiler flag to turn off builtin functions.
19643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19644
19645 # Compiler flag to allow reflexive dlopens.
19646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19647
19648 # Compiler flag to generate shared objects directly from archives.
19649 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19650
19651 # Compiler flag to generate thread-safe objects.
19652 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19653
19654 # Library versioning type.
19655 version_type=$version_type
19656
19657 # Format of library name prefix.
19658 libname_spec=$lt_libname_spec
19659
19660 # List of archive names.  First name is the real one, the rest are links.
19661 # The last name is the one that the linker finds with -lNAME.
19662 library_names_spec=$lt_library_names_spec
19663
19664 # The coded name of the library, if different from the real name.
19665 soname_spec=$lt_soname_spec
19666
19667 # Commands used to build and install an old-style archive.
19668 RANLIB=$lt_RANLIB
19669 old_archive_cmds=$lt_old_archive_cmds_GCJ
19670 old_postinstall_cmds=$lt_old_postinstall_cmds
19671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19672
19673 # Create an old-style archive from a shared archive.
19674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19675
19676 # Create a temporary old-style archive to link instead of a shared archive.
19677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19678
19679 # Commands used to build and install a shared archive.
19680 archive_cmds=$lt_archive_cmds_GCJ
19681 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19682 postinstall_cmds=$lt_postinstall_cmds
19683 postuninstall_cmds=$lt_postuninstall_cmds
19684
19685 # Commands used to build a loadable module (assumed same as above if empty)
19686 module_cmds=$lt_module_cmds_GCJ
19687 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19688
19689 # Commands to strip libraries.
19690 old_striplib=$lt_old_striplib
19691 striplib=$lt_striplib
19692
19693 # Dependencies to place before the objects being linked to create a
19694 # shared library.
19695 predep_objects=$lt_predep_objects_GCJ
19696
19697 # Dependencies to place after the objects being linked to create a
19698 # shared library.
19699 postdep_objects=$lt_postdep_objects_GCJ
19700
19701 # Dependencies to place before the objects being linked to create a
19702 # shared library.
19703 predeps=$lt_predeps_GCJ
19704
19705 # Dependencies to place after the objects being linked to create a
19706 # shared library.
19707 postdeps=$lt_postdeps_GCJ
19708
19709 # The library search path used internally by the compiler when linking
19710 # a shared library.
19711 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19712
19713 # Method to check whether dependent libraries are shared objects.
19714 deplibs_check_method=$lt_deplibs_check_method
19715
19716 # Command to use when deplibs_check_method == file_magic.
19717 file_magic_cmd=$lt_file_magic_cmd
19718
19719 # Flag that allows shared libraries with undefined symbols to be built.
19720 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19721
19722 # Flag that forces no undefined symbols.
19723 no_undefined_flag=$lt_no_undefined_flag_GCJ
19724
19725 # Commands used to finish a libtool library installation in a directory.
19726 finish_cmds=$lt_finish_cmds
19727
19728 # Same as above, but a single script fragment to be evaled but not shown.
19729 finish_eval=$lt_finish_eval
19730
19731 # Take the output of nm and produce a listing of raw symbols and C names.
19732 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19733
19734 # Transform the output of nm in a proper C declaration
19735 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19736
19737 # Transform the output of nm in a C name address pair
19738 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19739
19740 # This is the shared library runtime path variable.
19741 runpath_var=$runpath_var
19742
19743 # This is the shared library path variable.
19744 shlibpath_var=$shlibpath_var
19745
19746 # Is shlibpath searched before the hard-coded library search path?
19747 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19748
19749 # How to hardcode a shared library path into an executable.
19750 hardcode_action=$hardcode_action_GCJ
19751
19752 # Whether we should hardcode library paths into libraries.
19753 hardcode_into_libs=$hardcode_into_libs
19754
19755 # Flag to hardcode \$libdir into a binary during linking.
19756 # This must work even if \$libdir does not exist.
19757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19758
19759 # If ld is used when linking, flag to hardcode \$libdir into
19760 # a binary during linking. This must work even if \$libdir does
19761 # not exist.
19762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19763
19764 # Whether we need a single -rpath flag with a separated argument.
19765 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19766
19767 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19768 # resulting binary.
19769 hardcode_direct=$hardcode_direct_GCJ
19770
19771 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19772 # resulting binary.
19773 hardcode_minus_L=$hardcode_minus_L_GCJ
19774
19775 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19776 # the resulting binary.
19777 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19778
19779 # Set to yes if building a shared library automatically hardcodes DIR into the library
19780 # and all subsequent libraries and executables linked against it.
19781 hardcode_automatic=$hardcode_automatic_GCJ
19782
19783 # Variables whose values should be saved in libtool wrapper scripts and
19784 # restored at relink time.
19785 variables_saved_for_relink="$variables_saved_for_relink"
19786
19787 # Whether libtool must link a program against all its dependency libraries.
19788 link_all_deplibs=$link_all_deplibs_GCJ
19789
19790 # Compile-time system search path for libraries
19791 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19792
19793 # Run-time system search path for libraries
19794 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19795
19796 # Fix the shell variable \$srcfile for the compiler.
19797 fix_srcfile_path="$fix_srcfile_path_GCJ"
19798
19799 # Set to yes if exported symbols are required.
19800 always_export_symbols=$always_export_symbols_GCJ
19801
19802 # The commands to list exported symbols.
19803 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19804
19805 # The commands to extract the exported symbol list from a shared archive.
19806 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19807
19808 # Symbols that should not be listed in the preloaded symbols.
19809 exclude_expsyms=$lt_exclude_expsyms_GCJ
19810
19811 # Symbols that must always be exported.
19812 include_expsyms=$lt_include_expsyms_GCJ
19813
19814 # ### END LIBTOOL TAG CONFIG: $tagname
19815
19816 __EOF__
19817
19818
19819 else
19820   # If there is no Makefile yet, we rely on a make rule to execute
19821   # `config.status --recheck' to rerun these tests and create the
19822   # libtool script then.
19823   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19824   if test -f "$ltmain_in"; then
19825     test -f Makefile && make "$ltmain"
19826   fi
19827 fi
19828
19829
19830 ac_ext=c
19831 ac_cpp='$CPP $CPPFLAGS'
19832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19835
19836 CC="$lt_save_CC"
19837
19838         else
19839           tagname=""
19840         fi
19841         ;;
19842
19843       RC)
19844
19845
19846 # Source file extension for RC test sources.
19847 ac_ext=rc
19848
19849 # Object file extension for compiled RC test sources.
19850 objext=o
19851 objext_RC=$objext
19852
19853 # Code to be used in simple compile tests
19854 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19855
19856 # Code to be used in simple link tests
19857 lt_simple_link_test_code="$lt_simple_compile_test_code"
19858
19859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19860
19861 # If no C compiler was specified, use CC.
19862 LTCC=${LTCC-"$CC"}
19863
19864 # If no C compiler flags were specified, use CFLAGS.
19865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19866
19867 # Allow CC to be a program name with arguments.
19868 compiler=$CC
19869
19870
19871 # save warnings/boilerplate of simple test code
19872 ac_outfile=conftest.$ac_objext
19873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19875 _lt_compiler_boilerplate=`cat conftest.err`
19876 $rm conftest*
19877
19878 ac_outfile=conftest.$ac_objext
19879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19881 _lt_linker_boilerplate=`cat conftest.err`
19882 $rm conftest*
19883
19884
19885 # Allow CC to be a program name with arguments.
19886 lt_save_CC="$CC"
19887 CC=${RC-"windres"}
19888 compiler=$CC
19889 compiler_RC=$CC
19890 for cc_temp in $compiler""; do
19891   case $cc_temp in
19892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19894     \-*) ;;
19895     *) break;;
19896   esac
19897 done
19898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19899
19900 lt_cv_prog_compiler_c_o_RC=yes
19901
19902 # The else clause should only fire when bootstrapping the
19903 # libtool distribution, otherwise you forgot to ship ltmain.sh
19904 # with your package, and you will get complaints that there are
19905 # no rules to generate ltmain.sh.
19906 if test -f "$ltmain"; then
19907   # See if we are running on zsh, and set the options which allow our commands through
19908   # without removal of \ escapes.
19909   if test -n "${ZSH_VERSION+set}" ; then
19910     setopt NO_GLOB_SUBST
19911   fi
19912   # Now quote all the things that may contain metacharacters while being
19913   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19914   # variables and quote the copies for generation of the libtool script.
19915   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19916     SED SHELL STRIP \
19917     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19918     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19919     deplibs_check_method reload_flag reload_cmds need_locks \
19920     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19921     lt_cv_sys_global_symbol_to_c_name_address \
19922     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19923     old_postinstall_cmds old_postuninstall_cmds \
19924     compiler_RC \
19925     CC_RC \
19926     LD_RC \
19927     lt_prog_compiler_wl_RC \
19928     lt_prog_compiler_pic_RC \
19929     lt_prog_compiler_static_RC \
19930     lt_prog_compiler_no_builtin_flag_RC \
19931     export_dynamic_flag_spec_RC \
19932     thread_safe_flag_spec_RC \
19933     whole_archive_flag_spec_RC \
19934     enable_shared_with_static_runtimes_RC \
19935     old_archive_cmds_RC \
19936     old_archive_from_new_cmds_RC \
19937     predep_objects_RC \
19938     postdep_objects_RC \
19939     predeps_RC \
19940     postdeps_RC \
19941     compiler_lib_search_path_RC \
19942     archive_cmds_RC \
19943     archive_expsym_cmds_RC \
19944     postinstall_cmds_RC \
19945     postuninstall_cmds_RC \
19946     old_archive_from_expsyms_cmds_RC \
19947     allow_undefined_flag_RC \
19948     no_undefined_flag_RC \
19949     export_symbols_cmds_RC \
19950     hardcode_libdir_flag_spec_RC \
19951     hardcode_libdir_flag_spec_ld_RC \
19952     hardcode_libdir_separator_RC \
19953     hardcode_automatic_RC \
19954     module_cmds_RC \
19955     module_expsym_cmds_RC \
19956     lt_cv_prog_compiler_c_o_RC \
19957     exclude_expsyms_RC \
19958     include_expsyms_RC; do
19959
19960     case $var in
19961     old_archive_cmds_RC | \
19962     old_archive_from_new_cmds_RC | \
19963     archive_cmds_RC | \
19964     archive_expsym_cmds_RC | \
19965     module_cmds_RC | \
19966     module_expsym_cmds_RC | \
19967     old_archive_from_expsyms_cmds_RC | \
19968     export_symbols_cmds_RC | \
19969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19970     postinstall_cmds | postuninstall_cmds | \
19971     old_postinstall_cmds | old_postuninstall_cmds | \
19972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19973       # Double-quote double-evaled strings.
19974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19975       ;;
19976     *)
19977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19978       ;;
19979     esac
19980   done
19981
19982   case $lt_echo in
19983   *'\$0 --fallback-echo"')
19984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19985     ;;
19986   esac
19987
19988 cfgfile="$ofile"
19989
19990   cat <<__EOF__ >> "$cfgfile"
19991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19992
19993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19994
19995 # Shell to use when invoking shell scripts.
19996 SHELL=$lt_SHELL
19997
19998 # Whether or not to build shared libraries.
19999 build_libtool_libs=$enable_shared
20000
20001 # Whether or not to build static libraries.
20002 build_old_libs=$enable_static
20003
20004 # Whether or not to add -lc for building shared libraries.
20005 build_libtool_need_lc=$archive_cmds_need_lc_RC
20006
20007 # Whether or not to disallow shared libs when runtime libs are static
20008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20009
20010 # Whether or not to optimize for fast installation.
20011 fast_install=$enable_fast_install
20012
20013 # The host system.
20014 host_alias=$host_alias
20015 host=$host
20016 host_os=$host_os
20017
20018 # The build system.
20019 build_alias=$build_alias
20020 build=$build
20021 build_os=$build_os
20022
20023 # An echo program that does not interpret backslashes.
20024 echo=$lt_echo
20025
20026 # The archiver.
20027 AR=$lt_AR
20028 AR_FLAGS=$lt_AR_FLAGS
20029
20030 # A C compiler.
20031 LTCC=$lt_LTCC
20032
20033 # LTCC compiler flags.
20034 LTCFLAGS=$lt_LTCFLAGS
20035
20036 # A language-specific compiler.
20037 CC=$lt_compiler_RC
20038
20039 # Is the compiler the GNU C compiler?
20040 with_gcc=$GCC_RC
20041
20042 # An ERE matcher.
20043 EGREP=$lt_EGREP
20044
20045 # The linker used to build libraries.
20046 LD=$lt_LD_RC
20047
20048 # Whether we need hard or soft links.
20049 LN_S=$lt_LN_S
20050
20051 # A BSD-compatible nm program.
20052 NM=$lt_NM
20053
20054 # A symbol stripping program
20055 STRIP=$lt_STRIP
20056
20057 # Used to examine libraries when file_magic_cmd begins "file"
20058 MAGIC_CMD=$MAGIC_CMD
20059
20060 # Used on cygwin: DLL creation program.
20061 DLLTOOL="$DLLTOOL"
20062
20063 # Used on cygwin: object dumper.
20064 OBJDUMP="$OBJDUMP"
20065
20066 # Used on cygwin: assembler.
20067 AS="$AS"
20068
20069 # The name of the directory that contains temporary libtool files.
20070 objdir=$objdir
20071
20072 # How to create reloadable object files.
20073 reload_flag=$lt_reload_flag
20074 reload_cmds=$lt_reload_cmds
20075
20076 # How to pass a linker flag through the compiler.
20077 wl=$lt_lt_prog_compiler_wl_RC
20078
20079 # Object file suffix (normally "o").
20080 objext="$ac_objext"
20081
20082 # Old archive suffix (normally "a").
20083 libext="$libext"
20084
20085 # Shared library suffix (normally ".so").
20086 shrext_cmds='$shrext_cmds'
20087
20088 # Executable file suffix (normally "").
20089 exeext="$exeext"
20090
20091 # Additional compiler flags for building library objects.
20092 pic_flag=$lt_lt_prog_compiler_pic_RC
20093 pic_mode=$pic_mode
20094
20095 # What is the maximum length of a command?
20096 max_cmd_len=$lt_cv_sys_max_cmd_len
20097
20098 # Does compiler simultaneously support -c and -o options?
20099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20100
20101 # Must we lock files when doing compilation?
20102 need_locks=$lt_need_locks
20103
20104 # Do we need the lib prefix for modules?
20105 need_lib_prefix=$need_lib_prefix
20106
20107 # Do we need a version for libraries?
20108 need_version=$need_version
20109
20110 # Whether dlopen is supported.
20111 dlopen_support=$enable_dlopen
20112
20113 # Whether dlopen of programs is supported.
20114 dlopen_self=$enable_dlopen_self
20115
20116 # Whether dlopen of statically linked programs is supported.
20117 dlopen_self_static=$enable_dlopen_self_static
20118
20119 # Compiler flag to prevent dynamic linking.
20120 link_static_flag=$lt_lt_prog_compiler_static_RC
20121
20122 # Compiler flag to turn off builtin functions.
20123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20124
20125 # Compiler flag to allow reflexive dlopens.
20126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20127
20128 # Compiler flag to generate shared objects directly from archives.
20129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20130
20131 # Compiler flag to generate thread-safe objects.
20132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20133
20134 # Library versioning type.
20135 version_type=$version_type
20136
20137 # Format of library name prefix.
20138 libname_spec=$lt_libname_spec
20139
20140 # List of archive names.  First name is the real one, the rest are links.
20141 # The last name is the one that the linker finds with -lNAME.
20142 library_names_spec=$lt_library_names_spec
20143
20144 # The coded name of the library, if different from the real name.
20145 soname_spec=$lt_soname_spec
20146
20147 # Commands used to build and install an old-style archive.
20148 RANLIB=$lt_RANLIB
20149 old_archive_cmds=$lt_old_archive_cmds_RC
20150 old_postinstall_cmds=$lt_old_postinstall_cmds
20151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20152
20153 # Create an old-style archive from a shared archive.
20154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20155
20156 # Create a temporary old-style archive to link instead of a shared archive.
20157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20158
20159 # Commands used to build and install a shared archive.
20160 archive_cmds=$lt_archive_cmds_RC
20161 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20162 postinstall_cmds=$lt_postinstall_cmds
20163 postuninstall_cmds=$lt_postuninstall_cmds
20164
20165 # Commands used to build a loadable module (assumed same as above if empty)
20166 module_cmds=$lt_module_cmds_RC
20167 module_expsym_cmds=$lt_module_expsym_cmds_RC
20168
20169 # Commands to strip libraries.
20170 old_striplib=$lt_old_striplib
20171 striplib=$lt_striplib
20172
20173 # Dependencies to place before the objects being linked to create a
20174 # shared library.
20175 predep_objects=$lt_predep_objects_RC
20176
20177 # Dependencies to place after the objects being linked to create a
20178 # shared library.
20179 postdep_objects=$lt_postdep_objects_RC
20180
20181 # Dependencies to place before the objects being linked to create a
20182 # shared library.
20183 predeps=$lt_predeps_RC
20184
20185 # Dependencies to place after the objects being linked to create a
20186 # shared library.
20187 postdeps=$lt_postdeps_RC
20188
20189 # The library search path used internally by the compiler when linking
20190 # a shared library.
20191 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20192
20193 # Method to check whether dependent libraries are shared objects.
20194 deplibs_check_method=$lt_deplibs_check_method
20195
20196 # Command to use when deplibs_check_method == file_magic.
20197 file_magic_cmd=$lt_file_magic_cmd
20198
20199 # Flag that allows shared libraries with undefined symbols to be built.
20200 allow_undefined_flag=$lt_allow_undefined_flag_RC
20201
20202 # Flag that forces no undefined symbols.
20203 no_undefined_flag=$lt_no_undefined_flag_RC
20204
20205 # Commands used to finish a libtool library installation in a directory.
20206 finish_cmds=$lt_finish_cmds
20207
20208 # Same as above, but a single script fragment to be evaled but not shown.
20209 finish_eval=$lt_finish_eval
20210
20211 # Take the output of nm and produce a listing of raw symbols and C names.
20212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20213
20214 # Transform the output of nm in a proper C declaration
20215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20216
20217 # Transform the output of nm in a C name address pair
20218 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20219
20220 # This is the shared library runtime path variable.
20221 runpath_var=$runpath_var
20222
20223 # This is the shared library path variable.
20224 shlibpath_var=$shlibpath_var
20225
20226 # Is shlibpath searched before the hard-coded library search path?
20227 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20228
20229 # How to hardcode a shared library path into an executable.
20230 hardcode_action=$hardcode_action_RC
20231
20232 # Whether we should hardcode library paths into libraries.
20233 hardcode_into_libs=$hardcode_into_libs
20234
20235 # Flag to hardcode \$libdir into a binary during linking.
20236 # This must work even if \$libdir does not exist.
20237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20238
20239 # If ld is used when linking, flag to hardcode \$libdir into
20240 # a binary during linking. This must work even if \$libdir does
20241 # not exist.
20242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20243
20244 # Whether we need a single -rpath flag with a separated argument.
20245 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20246
20247 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20248 # resulting binary.
20249 hardcode_direct=$hardcode_direct_RC
20250
20251 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20252 # resulting binary.
20253 hardcode_minus_L=$hardcode_minus_L_RC
20254
20255 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20256 # the resulting binary.
20257 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20258
20259 # Set to yes if building a shared library automatically hardcodes DIR into the library
20260 # and all subsequent libraries and executables linked against it.
20261 hardcode_automatic=$hardcode_automatic_RC
20262
20263 # Variables whose values should be saved in libtool wrapper scripts and
20264 # restored at relink time.
20265 variables_saved_for_relink="$variables_saved_for_relink"
20266
20267 # Whether libtool must link a program against all its dependency libraries.
20268 link_all_deplibs=$link_all_deplibs_RC
20269
20270 # Compile-time system search path for libraries
20271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20272
20273 # Run-time system search path for libraries
20274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20275
20276 # Fix the shell variable \$srcfile for the compiler.
20277 fix_srcfile_path="$fix_srcfile_path_RC"
20278
20279 # Set to yes if exported symbols are required.
20280 always_export_symbols=$always_export_symbols_RC
20281
20282 # The commands to list exported symbols.
20283 export_symbols_cmds=$lt_export_symbols_cmds_RC
20284
20285 # The commands to extract the exported symbol list from a shared archive.
20286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20287
20288 # Symbols that should not be listed in the preloaded symbols.
20289 exclude_expsyms=$lt_exclude_expsyms_RC
20290
20291 # Symbols that must always be exported.
20292 include_expsyms=$lt_include_expsyms_RC
20293
20294 # ### END LIBTOOL TAG CONFIG: $tagname
20295
20296 __EOF__
20297
20298
20299 else
20300   # If there is no Makefile yet, we rely on a make rule to execute
20301   # `config.status --recheck' to rerun these tests and create the
20302   # libtool script then.
20303   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20304   if test -f "$ltmain_in"; then
20305     test -f Makefile && make "$ltmain"
20306   fi
20307 fi
20308
20309
20310 ac_ext=c
20311 ac_cpp='$CPP $CPPFLAGS'
20312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20315
20316 CC="$lt_save_CC"
20317
20318         ;;
20319
20320       *)
20321         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20322 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20323    { (exit 1); exit 1; }; }
20324         ;;
20325       esac
20326
20327       # Append the new tag name to the list of available tags.
20328       if test -n "$tagname" ; then
20329       available_tags="$available_tags $tagname"
20330     fi
20331     fi
20332   done
20333   IFS="$lt_save_ifs"
20334
20335   # Now substitute the updated list of available tags.
20336   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20337     mv "${ofile}T" "$ofile"
20338     chmod +x "$ofile"
20339   else
20340     rm -f "${ofile}T"
20341     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20342 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20343    { (exit 1); exit 1; }; }
20344   fi
20345 fi
20346
20347
20348
20349 # This can be used to rebuild libtool when needed
20350 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20351
20352 # Always use our own libtool.
20353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20354
20355 # Prevent multiple expansion
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377 if test "x$cross_compiling" = "xno"; then
20378         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20379 else
20380         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20381 fi
20382
20383
20384
20385 if test -n "$ac_tool_prefix"; then
20386   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20387 set dummy ${ac_tool_prefix}ar; ac_word=$2
20388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20390 if test "${ac_cv_prog_AR+set}" = set; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   if test -n "$AR"; then
20394   ac_cv_prog_AR="$AR" # Let the user override the test.
20395 else
20396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397 for as_dir in $PATH
20398 do
20399   IFS=$as_save_IFS
20400   test -z "$as_dir" && as_dir=.
20401   for ac_exec_ext in '' $ac_executable_extensions; do
20402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20403     ac_cv_prog_AR="${ac_tool_prefix}ar"
20404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20405     break 2
20406   fi
20407 done
20408 done
20409 IFS=$as_save_IFS
20410
20411 fi
20412 fi
20413 AR=$ac_cv_prog_AR
20414 if test -n "$AR"; then
20415   { echo "$as_me:$LINENO: result: $AR" >&5
20416 echo "${ECHO_T}$AR" >&6; }
20417 else
20418   { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20420 fi
20421
20422
20423 fi
20424 if test -z "$ac_cv_prog_AR"; then
20425   ac_ct_AR=$AR
20426   # Extract the first word of "ar", so it can be a program name with args.
20427 set dummy ar; ac_word=$2
20428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20430 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20431   echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433   if test -n "$ac_ct_AR"; then
20434   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20435 else
20436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20437 for as_dir in $PATH
20438 do
20439   IFS=$as_save_IFS
20440   test -z "$as_dir" && as_dir=.
20441   for ac_exec_ext in '' $ac_executable_extensions; do
20442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20443     ac_cv_prog_ac_ct_AR="ar"
20444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20445     break 2
20446   fi
20447 done
20448 done
20449 IFS=$as_save_IFS
20450
20451 fi
20452 fi
20453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20454 if test -n "$ac_ct_AR"; then
20455   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20456 echo "${ECHO_T}$ac_ct_AR" >&6; }
20457 else
20458   { echo "$as_me:$LINENO: result: no" >&5
20459 echo "${ECHO_T}no" >&6; }
20460 fi
20461
20462   if test "x$ac_ct_AR" = x; then
20463     AR=""
20464   else
20465     case $cross_compiling:$ac_tool_warned in
20466 yes:)
20467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20468 whose name does not start with the host triplet.  If you think this
20469 configuration is useful to you, please write to autoconf@gnu.org." >&5
20470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20471 whose name does not start with the host triplet.  If you think this
20472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20473 ac_tool_warned=yes ;;
20474 esac
20475     AR=$ac_ct_AR
20476   fi
20477 else
20478   AR="$ac_cv_prog_AR"
20479 fi
20480
20481 if test -n "$ac_tool_prefix"; then
20482   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20483 set dummy ${ac_tool_prefix}ld; ac_word=$2
20484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20486 if test "${ac_cv_prog_LD+set}" = set; then
20487   echo $ECHO_N "(cached) $ECHO_C" >&6
20488 else
20489   if test -n "$LD"; then
20490   ac_cv_prog_LD="$LD" # Let the user override the test.
20491 else
20492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20493 for as_dir in $PATH
20494 do
20495   IFS=$as_save_IFS
20496   test -z "$as_dir" && as_dir=.
20497   for ac_exec_ext in '' $ac_executable_extensions; do
20498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20499     ac_cv_prog_LD="${ac_tool_prefix}ld"
20500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20501     break 2
20502   fi
20503 done
20504 done
20505 IFS=$as_save_IFS
20506
20507 fi
20508 fi
20509 LD=$ac_cv_prog_LD
20510 if test -n "$LD"; then
20511   { echo "$as_me:$LINENO: result: $LD" >&5
20512 echo "${ECHO_T}$LD" >&6; }
20513 else
20514   { echo "$as_me:$LINENO: result: no" >&5
20515 echo "${ECHO_T}no" >&6; }
20516 fi
20517
20518
20519 fi
20520 if test -z "$ac_cv_prog_LD"; then
20521   ac_ct_LD=$LD
20522   # Extract the first word of "ld", so it can be a program name with args.
20523 set dummy ld; ac_word=$2
20524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20526 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   if test -n "$ac_ct_LD"; then
20530   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20531 else
20532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20534 do
20535   IFS=$as_save_IFS
20536   test -z "$as_dir" && as_dir=.
20537   for ac_exec_ext in '' $ac_executable_extensions; do
20538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20539     ac_cv_prog_ac_ct_LD="ld"
20540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20541     break 2
20542   fi
20543 done
20544 done
20545 IFS=$as_save_IFS
20546
20547 fi
20548 fi
20549 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20550 if test -n "$ac_ct_LD"; then
20551   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20552 echo "${ECHO_T}$ac_ct_LD" >&6; }
20553 else
20554   { echo "$as_me:$LINENO: result: no" >&5
20555 echo "${ECHO_T}no" >&6; }
20556 fi
20557
20558   if test "x$ac_ct_LD" = x; then
20559     LD=""
20560   else
20561     case $cross_compiling:$ac_tool_warned in
20562 yes:)
20563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20564 whose name does not start with the host triplet.  If you think this
20565 configuration is useful to you, please write to autoconf@gnu.org." >&5
20566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20567 whose name does not start with the host triplet.  If you think this
20568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20569 ac_tool_warned=yes ;;
20570 esac
20571     LD=$ac_ct_LD
20572   fi
20573 else
20574   LD="$ac_cv_prog_LD"
20575 fi
20576
20577
20578 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20580 if test "${ac_cv_header_stdc+set}" = set; then
20581   echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583   cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 #include <stdlib.h>
20590 #include <stdarg.h>
20591 #include <string.h>
20592 #include <float.h>
20593
20594 int
20595 main ()
20596 {
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_compile") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } && {
20616          test -z "$ac_c_werror_flag" ||
20617          test ! -s conftest.err
20618        } && test -s conftest.$ac_objext; then
20619   ac_cv_header_stdc=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624         ac_cv_header_stdc=no
20625 fi
20626
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628
20629 if test $ac_cv_header_stdc = yes; then
20630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20631   cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h.  */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h.  */
20637 #include <string.h>
20638
20639 _ACEOF
20640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20641   $EGREP "memchr" >/dev/null 2>&1; then
20642   :
20643 else
20644   ac_cv_header_stdc=no
20645 fi
20646 rm -f conftest*
20647
20648 fi
20649
20650 if test $ac_cv_header_stdc = yes; then
20651   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20652   cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658 #include <stdlib.h>
20659
20660 _ACEOF
20661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20662   $EGREP "free" >/dev/null 2>&1; then
20663   :
20664 else
20665   ac_cv_header_stdc=no
20666 fi
20667 rm -f conftest*
20668
20669 fi
20670
20671 if test $ac_cv_header_stdc = yes; then
20672   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20673   if test "$cross_compiling" = yes; then
20674   :
20675 else
20676   cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h.  */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h.  */
20682 #include <ctype.h>
20683 #include <stdlib.h>
20684 #if ((' ' & 0x0FF) == 0x020)
20685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20687 #else
20688 # define ISLOWER(c) \
20689                    (('a' <= (c) && (c) <= 'i') \
20690                      || ('j' <= (c) && (c) <= 'r') \
20691                      || ('s' <= (c) && (c) <= 'z'))
20692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20693 #endif
20694
20695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20696 int
20697 main ()
20698 {
20699   int i;
20700   for (i = 0; i < 256; i++)
20701     if (XOR (islower (i), ISLOWER (i))
20702         || toupper (i) != TOUPPER (i))
20703       return 2;
20704   return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_link") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20718   { (case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_try") 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   :
20728 else
20729   echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ( exit $ac_status )
20734 ac_cv_header_stdc=no
20735 fi
20736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20737 fi
20738
20739
20740 fi
20741 fi
20742 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20743 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20744 if test $ac_cv_header_stdc = yes; then
20745
20746 cat >>confdefs.h <<\_ACEOF
20747 #define STDC_HEADERS 1
20748 _ACEOF
20749
20750 fi
20751
20752
20753   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20754 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20755   if test "${knfsd_cv_glibc2+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764
20765       #include <features.h>
20766       #if !defined(__GLIBC__)
20767       # error Nope
20768       #endif
20769
20770 _ACEOF
20771 if { (ac_try="$ac_cpp conftest.$ac_ext"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } >/dev/null && {
20784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20785          test ! -s conftest.err
20786        }; then
20787   knfsd_cv_glibc2=yes
20788 else
20789   echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792   knfsd_cv_glibc2=no
20793 fi
20794
20795 rm -f conftest.err conftest.$ac_ext
20796 fi
20797
20798   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20799 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20800   if test $knfsd_cv_glibc2 = yes; then
20801     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20802     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20803   fi
20804
20805
20806   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20807 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20808   if test "${knfsd_cv_bsd_signals+set}" = set; then
20809   echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811   if test "$cross_compiling" = yes; then
20812   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20813 See \`config.log' for more details." >&5
20814 echo "$as_me: error: cannot run test program while cross compiling
20815 See \`config.log' for more details." >&2;}
20816    { (exit 1); exit 1; }; }
20817 else
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824
20825         #include <signal.h>
20826         #include <unistd.h>
20827         #include <sys/wait.h>
20828
20829         static int counter = 0;
20830         static RETSIGTYPE handler(int num) { counter++; }
20831
20832         int main()
20833         {
20834                 int     s;
20835                 if ((s = fork()) < 0) return 1;
20836                 if (s != 0) {
20837                         if (wait(&s) < 0) return 1;
20838                         return WIFSIGNALED(s)? 1 : 0;
20839                 }
20840
20841                 signal(SIGHUP, handler);
20842                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20843                 return (counter == 2)? 0 : 1;
20844         }
20845
20846 _ACEOF
20847 rm -f conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851   *) ac_try_echo=$ac_try;;
20852 esac
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854   (eval "$ac_link") 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20858   { (case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863   (eval "$ac_try") 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; }; then
20867   knfsd_cv_bsd_signals=yes
20868 else
20869   echo "$as_me: program exited with status $ac_status" >&5
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ( exit $ac_status )
20874 knfsd_cv_bsd_signals=no
20875 fi
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20877 fi
20878
20879
20880 fi
20881      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20882 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20883     test $knfsd_cv_bsd_signals = yes &&
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_BSD_SIGNALS 1
20886 _ACEOF
20887
20888
20889
20890 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20891 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20892 if test "${ac_cv_func_gethostbyname+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20903 #define gethostbyname innocuous_gethostbyname
20904
20905 /* System header to define __stub macros and hopefully few prototypes,
20906     which can conflict with char gethostbyname (); below.
20907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20908     <limits.h> exists even on freestanding compilers.  */
20909
20910 #ifdef __STDC__
20911 # include <limits.h>
20912 #else
20913 # include <assert.h>
20914 #endif
20915
20916 #undef gethostbyname
20917
20918 /* Override any GCC internal prototype to avoid an error.
20919    Use char because int might match the return type of a GCC
20920    builtin and then its argument prototype would still apply.  */
20921 #ifdef __cplusplus
20922 extern "C"
20923 #endif
20924 char gethostbyname ();
20925 /* The GNU C library defines this for functions which it implements
20926     to always fail with ENOSYS.  Some functions are actually named
20927     something starting with __ and the normal name is an alias.  */
20928 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20929 choke me
20930 #endif
20931
20932 int
20933 main ()
20934 {
20935 return gethostbyname ();
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (ac_try="$ac_link"
20942 case "(($ac_try" in
20943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944   *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947   (eval "$ac_link") 2>conftest.er1
20948   ac_status=$?
20949   grep -v '^ *+' conftest.er1 >conftest.err
20950   rm -f conftest.er1
20951   cat conftest.err >&5
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } && {
20954          test -z "$ac_c_werror_flag" ||
20955          test ! -s conftest.err
20956        } && test -s conftest$ac_exeext &&
20957        $as_test_x conftest$ac_exeext; then
20958   ac_cv_func_gethostbyname=yes
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963         ac_cv_func_gethostbyname=no
20964 fi
20965
20966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20967       conftest$ac_exeext conftest.$ac_ext
20968 fi
20969 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20970 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20971 if test $ac_cv_func_gethostbyname = yes; then
20972   :
20973 else
20974   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20975 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20976 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20977   echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979   ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lnsl  $LIBS"
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987
20988 /* Override any GCC internal prototype to avoid an error.
20989    Use char because int might match the return type of a GCC
20990    builtin and then its argument prototype would still apply.  */
20991 #ifdef __cplusplus
20992 extern "C"
20993 #endif
20994 char gethostbyname ();
20995 int
20996 main ()
20997 {
20998 return gethostbyname ();
20999   ;
21000   return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_link") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } && {
21017          test -z "$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        } && test -s conftest$ac_exeext &&
21020        $as_test_x conftest$ac_exeext; then
21021   ac_cv_lib_nsl_gethostbyname=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_cv_lib_nsl_gethostbyname=no
21027 fi
21028
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030       conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21032 fi
21033 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21034 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21035 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21036   LIBNSL="-lnsl"
21037 fi
21038
21039 fi
21040
21041
21042
21043 { echo "$as_me:$LINENO: checking for connect" >&5
21044 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21045 if test "${ac_cv_func_connect+set}" = set; then
21046   echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048   cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21056 #define connect innocuous_connect
21057
21058 /* System header to define __stub macros and hopefully few prototypes,
21059     which can conflict with char connect (); below.
21060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21061     <limits.h> exists even on freestanding compilers.  */
21062
21063 #ifdef __STDC__
21064 # include <limits.h>
21065 #else
21066 # include <assert.h>
21067 #endif
21068
21069 #undef connect
21070
21071 /* Override any GCC internal prototype to avoid an error.
21072    Use char because int might match the return type of a GCC
21073    builtin and then its argument prototype would still apply.  */
21074 #ifdef __cplusplus
21075 extern "C"
21076 #endif
21077 char connect ();
21078 /* The GNU C library defines this for functions which it implements
21079     to always fail with ENOSYS.  Some functions are actually named
21080     something starting with __ and the normal name is an alias.  */
21081 #if defined __stub_connect || defined __stub___connect
21082 choke me
21083 #endif
21084
21085 int
21086 main ()
21087 {
21088 return connect ();
21089   ;
21090   return 0;
21091 }
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest$ac_exeext &&
21110        $as_test_x conftest$ac_exeext; then
21111   ac_cv_func_connect=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116         ac_cv_func_connect=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120       conftest$ac_exeext conftest.$ac_ext
21121 fi
21122 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21123 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21124 if test $ac_cv_func_connect = yes; then
21125   :
21126 else
21127   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21128 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21129 if test "${ac_cv_lib_socket_connect+set}" = set; then
21130   echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132   ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lsocket $LIBNSL $LIBS"
21134 cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140
21141 /* Override any GCC internal prototype to avoid an error.
21142    Use char because int might match the return type of a GCC
21143    builtin and then its argument prototype would still apply.  */
21144 #ifdef __cplusplus
21145 extern "C"
21146 #endif
21147 char connect ();
21148 int
21149 main ()
21150 {
21151 return connect ();
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_link") 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && {
21170          test -z "$ac_c_werror_flag" ||
21171          test ! -s conftest.err
21172        } && test -s conftest$ac_exeext &&
21173        $as_test_x conftest$ac_exeext; then
21174   ac_cv_lib_socket_connect=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179         ac_cv_lib_socket_connect=no
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21183       conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21185 fi
21186 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21187 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21188 if test $ac_cv_lib_socket_connect = yes; then
21189   LIBSOCKET="-lsocket"
21190 else
21191   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21192 echo "$as_me: error: Function 'socket' not found." >&2;}
21193    { (exit 1); exit 1; }; }
21194 fi
21195
21196 fi
21197
21198
21199 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21200 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21201 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   ac_check_lib_save_LIBS=$LIBS
21205 LIBS="-lcrypt  $LIBS"
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h.  */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h.  */
21212
21213 /* Override any GCC internal prototype to avoid an error.
21214    Use char because int might match the return type of a GCC
21215    builtin and then its argument prototype would still apply.  */
21216 #ifdef __cplusplus
21217 extern "C"
21218 #endif
21219 char crypt ();
21220 int
21221 main ()
21222 {
21223 return crypt ();
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (ac_try="$ac_link"
21230 case "(($ac_try" in
21231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232   *) ac_try_echo=$ac_try;;
21233 esac
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235   (eval "$ac_link") 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } && {
21242          test -z "$ac_c_werror_flag" ||
21243          test ! -s conftest.err
21244        } && test -s conftest$ac_exeext &&
21245        $as_test_x conftest$ac_exeext; then
21246   ac_cv_lib_crypt_crypt=yes
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         ac_cv_lib_crypt_crypt=no
21252 fi
21253
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255       conftest$ac_exeext conftest.$ac_ext
21256 LIBS=$ac_check_lib_save_LIBS
21257 fi
21258 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21259 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21260 if test $ac_cv_lib_crypt_crypt = yes; then
21261   LIBCRYPT="-lcrypt"
21262 fi
21263
21264 if test "$enable_nfsv4" = yes; then
21265     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21266 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21267 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270   ac_check_lib_save_LIBS=$LIBS
21271 LIBS="-levent  $LIBS"
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h.  */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h.  */
21278
21279 /* Override any GCC internal prototype to avoid an error.
21280    Use char because int might match the return type of a GCC
21281    builtin and then its argument prototype would still apply.  */
21282 #ifdef __cplusplus
21283 extern "C"
21284 #endif
21285 char event_dispatch ();
21286 int
21287 main ()
21288 {
21289 return event_dispatch ();
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_link") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && {
21308          test -z "$ac_c_werror_flag" ||
21309          test ! -s conftest.err
21310        } && test -s conftest$ac_exeext &&
21311        $as_test_x conftest$ac_exeext; then
21312   ac_cv_lib_event_event_dispatch=yes
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317         ac_cv_lib_event_event_dispatch=no
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321       conftest$ac_exeext conftest.$ac_ext
21322 LIBS=$ac_check_lib_save_LIBS
21323 fi
21324 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21325 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21326 if test $ac_cv_lib_event_event_dispatch = yes; then
21327   libevent=1
21328 else
21329   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21330 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21331    { (exit 1); exit 1; }; }
21332 fi
21333
21334     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21335 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21336 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21337   echo $ECHO_N "(cached) $ECHO_C" >&6
21338 else
21339   ac_check_lib_save_LIBS=$LIBS
21340 LIBS="-lnfsidmap  $LIBS"
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347
21348 /* Override any GCC internal prototype to avoid an error.
21349    Use char because int might match the return type of a GCC
21350    builtin and then its argument prototype would still apply.  */
21351 #ifdef __cplusplus
21352 extern "C"
21353 #endif
21354 char nfs4_init_name_mapping ();
21355 int
21356 main ()
21357 {
21358 return nfs4_init_name_mapping ();
21359   ;
21360   return 0;
21361 }
21362 _ACEOF
21363 rm -f conftest.$ac_objext conftest$ac_exeext
21364 if { (ac_try="$ac_link"
21365 case "(($ac_try" in
21366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367   *) ac_try_echo=$ac_try;;
21368 esac
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370   (eval "$ac_link") 2>conftest.er1
21371   ac_status=$?
21372   grep -v '^ *+' conftest.er1 >conftest.err
21373   rm -f conftest.er1
21374   cat conftest.err >&5
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); } && {
21377          test -z "$ac_c_werror_flag" ||
21378          test ! -s conftest.err
21379        } && test -s conftest$ac_exeext &&
21380        $as_test_x conftest$ac_exeext; then
21381   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21390       conftest$ac_exeext conftest.$ac_ext
21391 LIBS=$ac_check_lib_save_LIBS
21392 fi
21393 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21394 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21395 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21396   libnfsidmap=1
21397 else
21398   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21399 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21400    { (exit 1); exit 1; }; }
21401 fi
21402
21403
21404 for ac_header in event.h
21405 do
21406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 fi
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414                { echo "$as_me:$LINENO: result: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21416 else
21417   # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 $ac_includes_default
21427 #include <$ac_header>
21428 _ACEOF
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_compile") 2>conftest.er1
21437   ac_status=$?
21438   grep -v '^ *+' conftest.er1 >conftest.err
21439   rm -f conftest.er1
21440   cat conftest.err >&5
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); } && {
21443          test -z "$ac_c_werror_flag" ||
21444          test ! -s conftest.err
21445        } && test -s conftest.$ac_objext; then
21446   ac_header_compiler=yes
21447 else
21448   echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21450
21451         ac_header_compiler=no
21452 fi
21453
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21456 echo "${ECHO_T}$ac_header_compiler" >&6; }
21457
21458 # Is the header present?
21459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21461 cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467 #include <$ac_header>
21468 _ACEOF
21469 if { (ac_try="$ac_cpp conftest.$ac_ext"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } >/dev/null && {
21482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21483          test ! -s conftest.err
21484        }; then
21485   ac_header_preproc=yes
21486 else
21487   echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490   ac_header_preproc=no
21491 fi
21492
21493 rm -f conftest.err conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21495 echo "${ECHO_T}$ac_header_preproc" >&6; }
21496
21497 # So?  What about this header?
21498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21499   yes:no: )
21500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21504     ac_header_preproc=yes
21505     ;;
21506   no:yes:* )
21507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21519     ( cat <<\_ASBOX
21520 ## ------------------------------- ##
21521 ## Report this to nfs@lists.sf.net ##
21522 ## ------------------------------- ##
21523 _ASBOX
21524      ) | sed "s/^/$as_me: WARNING:     /" >&2
21525     ;;
21526 esac
21527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21530   echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532   eval "$as_ac_Header=\$ac_header_preproc"
21533 fi
21534 ac_res=`eval echo '${'$as_ac_Header'}'`
21535                { echo "$as_me:$LINENO: result: $ac_res" >&5
21536 echo "${ECHO_T}$ac_res" >&6; }
21537
21538 fi
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540   cat >>confdefs.h <<_ACEOF
21541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21542 _ACEOF
21543
21544 else
21545   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21546 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21547    { (exit 1); exit 1; }; }
21548 fi
21549
21550 done
21551
21552
21553 for ac_header in nfsidmap.h
21554 do
21555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21560   echo $ECHO_N "(cached) $ECHO_C" >&6
21561 fi
21562 ac_res=`eval echo '${'$as_ac_Header'}'`
21563                { echo "$as_me:$LINENO: result: $ac_res" >&5
21564 echo "${ECHO_T}$ac_res" >&6; }
21565 else
21566   # Is the header compilable?
21567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 $ac_includes_default
21576 #include <$ac_header>
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582   *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585   (eval "$ac_compile") 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } && {
21592          test -z "$ac_c_werror_flag" ||
21593          test ! -s conftest.err
21594        } && test -s conftest.$ac_objext; then
21595   ac_header_compiler=yes
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600         ac_header_compiler=no
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21606
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <$ac_header>
21617 _ACEOF
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } >/dev/null && {
21631          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        }; then
21634   ac_header_preproc=yes
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639   ac_header_preproc=no
21640 fi
21641
21642 rm -f conftest.err conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21644 echo "${ECHO_T}$ac_header_preproc" >&6; }
21645
21646 # So?  What about this header?
21647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21648   yes:no: )
21649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21653     ac_header_preproc=yes
21654     ;;
21655   no:yes:* )
21656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21668     ( cat <<\_ASBOX
21669 ## ------------------------------- ##
21670 ## Report this to nfs@lists.sf.net ##
21671 ## ------------------------------- ##
21672 _ASBOX
21673      ) | sed "s/^/$as_me: WARNING:     /" >&2
21674     ;;
21675 esac
21676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21679   echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681   eval "$as_ac_Header=\$ac_header_preproc"
21682 fi
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684                { echo "$as_me:$LINENO: result: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21686
21687 fi
21688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21689   cat >>confdefs.h <<_ACEOF
21690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21691 _ACEOF
21692
21693 else
21694   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21695 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21696    { (exit 1); exit 1; }; }
21697 fi
21698
21699 done
21700
21701             if test "$enable_gss" = yes; then
21702
21703
21704 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21705         if test -n "$ac_tool_prefix"; then
21706   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21707 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21710 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713   case $PKG_CONFIG in
21714   [\\/]* | ?:[\\/]*)
21715   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21716   ;;
21717   *)
21718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in $PATH
21720 do
21721   IFS=$as_save_IFS
21722   test -z "$as_dir" && as_dir=.
21723   for ac_exec_ext in '' $ac_executable_extensions; do
21724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21725     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21727     break 2
21728   fi
21729 done
21730 done
21731 IFS=$as_save_IFS
21732
21733   ;;
21734 esac
21735 fi
21736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21737 if test -n "$PKG_CONFIG"; then
21738   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21739 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21740 else
21741   { echo "$as_me:$LINENO: result: no" >&5
21742 echo "${ECHO_T}no" >&6; }
21743 fi
21744
21745
21746 fi
21747 if test -z "$ac_cv_path_PKG_CONFIG"; then
21748   ac_pt_PKG_CONFIG=$PKG_CONFIG
21749   # Extract the first word of "pkg-config", so it can be a program name with args.
21750 set dummy pkg-config; ac_word=$2
21751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21753 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21754   echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756   case $ac_pt_PKG_CONFIG in
21757   [\\/]* | ?:[\\/]*)
21758   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21759   ;;
21760   *)
21761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21762 for as_dir in $PATH
21763 do
21764   IFS=$as_save_IFS
21765   test -z "$as_dir" && as_dir=.
21766   for ac_exec_ext in '' $ac_executable_extensions; do
21767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21768     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21770     break 2
21771   fi
21772 done
21773 done
21774 IFS=$as_save_IFS
21775
21776   ;;
21777 esac
21778 fi
21779 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21780 if test -n "$ac_pt_PKG_CONFIG"; then
21781   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21782 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21783 else
21784   { echo "$as_me:$LINENO: result: no" >&5
21785 echo "${ECHO_T}no" >&6; }
21786 fi
21787
21788   if test "x$ac_pt_PKG_CONFIG" = x; then
21789     PKG_CONFIG=""
21790   else
21791     case $cross_compiling:$ac_tool_warned in
21792 yes:)
21793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21794 whose name does not start with the host triplet.  If you think this
21795 configuration is useful to you, please write to autoconf@gnu.org." >&5
21796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21797 whose name does not start with the host triplet.  If you think this
21798 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21799 ac_tool_warned=yes ;;
21800 esac
21801     PKG_CONFIG=$ac_pt_PKG_CONFIG
21802   fi
21803 else
21804   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21805 fi
21806
21807 fi
21808 if test -n "$PKG_CONFIG"; then
21809         _pkg_min_version=0.9.0
21810         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21811 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21812         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21813                 { echo "$as_me:$LINENO: result: yes" >&5
21814 echo "${ECHO_T}yes" >&6; }
21815         else
21816                 { echo "$as_me:$LINENO: result: no" >&5
21817 echo "${ECHO_T}no" >&6; }
21818                 PKG_CONFIG=""
21819         fi
21820
21821 fi
21822
21823 pkg_failed=no
21824 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21825 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21826
21827 if test -n "$PKG_CONFIG"; then
21828     if test -n "$RPCSECGSS_CFLAGS"; then
21829         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21830     else
21831         if test -n "$PKG_CONFIG" && \
21832     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21833   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21834   ac_status=$?
21835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836   (exit $ac_status); }; then
21837   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21838 else
21839   pkg_failed=yes
21840 fi
21841     fi
21842 else
21843         pkg_failed=untried
21844 fi
21845 if test -n "$PKG_CONFIG"; then
21846     if test -n "$RPCSECGSS_LIBS"; then
21847         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21848     else
21849         if test -n "$PKG_CONFIG" && \
21850     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21851   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); }; then
21855   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21856 else
21857   pkg_failed=yes
21858 fi
21859     fi
21860 else
21861         pkg_failed=untried
21862 fi
21863
21864
21865
21866 if test $pkg_failed = yes; then
21867
21868 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21869         _pkg_short_errors_supported=yes
21870 else
21871         _pkg_short_errors_supported=no
21872 fi
21873         if test $_pkg_short_errors_supported = yes; then
21874                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21875         else
21876                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21877         fi
21878         # Put the nasty error message in config.log where it belongs
21879         echo "$RPCSECGSS_PKG_ERRORS" >&5
21880
21881         { echo "$as_me:$LINENO: result: no" >&5
21882 echo "${ECHO_T}no" >&6; }
21883                 { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21884 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21885    { (exit 1); exit 1; }; }
21886
21887
21888 elif test $pkg_failed = untried; then
21889         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
21890 echo "$as_me: error: Unable to locate information required to use librpcsecgss.  If you have pkgconfig installed, you might try setting environment variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21891    { (exit 1); exit 1; }; }
21892
21893
21894 else
21895         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21896         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21897         { echo "$as_me:$LINENO: result: yes" >&5
21898 echo "${ECHO_T}yes" >&6; }
21899         :
21900 fi
21901
21902 pkg_failed=no
21903 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21904 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21905
21906 if test -n "$PKG_CONFIG"; then
21907     if test -n "$GSSAPI_CFLAGS"; then
21908         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21909     else
21910         if test -n "$PKG_CONFIG" && \
21911     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21912   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21913   ac_status=$?
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); }; then
21916   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21917 else
21918   pkg_failed=yes
21919 fi
21920     fi
21921 else
21922         pkg_failed=untried
21923 fi
21924 if test -n "$PKG_CONFIG"; then
21925     if test -n "$GSSAPI_LIBS"; then
21926         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21927     else
21928         if test -n "$PKG_CONFIG" && \
21929     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21930   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; then
21934   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21935 else
21936   pkg_failed=yes
21937 fi
21938     fi
21939 else
21940         pkg_failed=untried
21941 fi
21942
21943
21944
21945 if test $pkg_failed = yes; then
21946
21947 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21948         _pkg_short_errors_supported=yes
21949 else
21950         _pkg_short_errors_supported=no
21951 fi
21952         if test $_pkg_short_errors_supported = yes; then
21953                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21954         else
21955                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21956         fi
21957         # Put the nasty error message in config.log where it belongs
21958         echo "$GSSAPI_PKG_ERRORS" >&5
21959
21960         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21961
21962 $GSSAPI_PKG_ERRORS
21963
21964 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21965 installed software in a non-standard prefix.
21966
21967 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21968 and GSSAPI_LIBS to avoid the need to call pkg-config.
21969 See the pkg-config man page for more details.
21970 " >&5
21971 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21972
21973 $GSSAPI_PKG_ERRORS
21974
21975 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21976 installed software in a non-standard prefix.
21977
21978 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21979 and GSSAPI_LIBS to avoid the need to call pkg-config.
21980 See the pkg-config man page for more details.
21981 " >&2;}
21982    { (exit 1); exit 1; }; }
21983 elif test $pkg_failed = untried; then
21984         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21985 is in your PATH or set the PKG_CONFIG environment variable to the full
21986 path to pkg-config.
21987
21988 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21989 and GSSAPI_LIBS to avoid the need to call pkg-config.
21990 See the pkg-config man page for more details.
21991
21992 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21993 See \`config.log' for more details." >&5
21994 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21995 is in your PATH or set the PKG_CONFIG environment variable to the full
21996 path to pkg-config.
21997
21998 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21999 and GSSAPI_LIBS to avoid the need to call pkg-config.
22000 See the pkg-config man page for more details.
22001
22002 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22003 See \`config.log' for more details." >&2;}
22004    { (exit 1); exit 1; }; }
22005 else
22006         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22007         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22008         { echo "$as_me:$LINENO: result: yes" >&5
22009 echo "${ECHO_T}yes" >&6; }
22010         :
22011 fi
22012     fi
22013
22014 fi
22015 if test "$knfsd_cv_glibc2" = no; then
22016     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22017 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22018 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lbsd  $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029
22030 /* Override any GCC internal prototype to avoid an error.
22031    Use char because int might match the return type of a GCC
22032    builtin and then its argument prototype would still apply.  */
22033 #ifdef __cplusplus
22034 extern "C"
22035 #endif
22036 char daemon ();
22037 int
22038 main ()
22039 {
22040 return daemon ();
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_link") 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && {
22059          test -z "$ac_c_werror_flag" ||
22060          test ! -s conftest.err
22061        } && test -s conftest$ac_exeext &&
22062        $as_test_x conftest$ac_exeext; then
22063   ac_cv_lib_bsd_daemon=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068         ac_cv_lib_bsd_daemon=no
22069 fi
22070
22071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22072       conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22074 fi
22075 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22076 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22077 if test $ac_cv_lib_bsd_daemon = yes; then
22078   LIBBSD="-lbsd"
22079 fi
22080
22081 fi
22082
22083
22084
22085
22086 if test "$enable_gss" = yes; then
22087
22088 for ac_header in nfsidmap.h
22089 do
22090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 fi
22097 ac_res=`eval echo '${'$as_ac_Header'}'`
22098                { echo "$as_me:$LINENO: result: $ac_res" >&5
22099 echo "${ECHO_T}$ac_res" >&6; }
22100 else
22101   # Is the header compilable?
22102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 $ac_includes_default
22111 #include <$ac_header>
22112 _ACEOF
22113 rm -f conftest.$ac_objext
22114 if { (ac_try="$ac_compile"
22115 case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_compile") 2>conftest.er1
22121   ac_status=$?
22122   grep -v '^ *+' conftest.er1 >conftest.err
22123   rm -f conftest.er1
22124   cat conftest.err >&5
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } && {
22127          test -z "$ac_c_werror_flag" ||
22128          test ! -s conftest.err
22129        } && test -s conftest.$ac_objext; then
22130   ac_header_compiler=yes
22131 else
22132   echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135         ac_header_compiler=no
22136 fi
22137
22138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22140 echo "${ECHO_T}$ac_header_compiler" >&6; }
22141
22142 # Is the header present?
22143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 #include <$ac_header>
22152 _ACEOF
22153 if { (ac_try="$ac_cpp conftest.$ac_ext"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } >/dev/null && {
22166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        }; then
22169   ac_header_preproc=yes
22170 else
22171   echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174   ac_header_preproc=no
22175 fi
22176
22177 rm -f conftest.err conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22179 echo "${ECHO_T}$ac_header_preproc" >&6; }
22180
22181 # So?  What about this header?
22182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22183   yes:no: )
22184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22188     ac_header_preproc=yes
22189     ;;
22190   no:yes:* )
22191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22203     ( cat <<\_ASBOX
22204 ## ------------------------------- ##
22205 ## Report this to nfs@lists.sf.net ##
22206 ## ------------------------------- ##
22207 _ASBOX
22208      ) | sed "s/^/$as_me: WARNING:     /" >&2
22209     ;;
22210 esac
22211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   eval "$as_ac_Header=\$ac_header_preproc"
22217 fi
22218 ac_res=`eval echo '${'$as_ac_Header'}'`
22219                { echo "$as_me:$LINENO: result: $ac_res" >&5
22220 echo "${ECHO_T}$ac_res" >&6; }
22221
22222 fi
22223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22224   cat >>confdefs.h <<_ACEOF
22225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22226 _ACEOF
22227
22228 else
22229   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22230 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22231    { (exit 1); exit 1; }; }
22232 fi
22233
22234 done
22235
22236
22237 for ac_header in spkm3.h
22238 do
22239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22244   echo $ECHO_N "(cached) $ECHO_C" >&6
22245 fi
22246 ac_res=`eval echo '${'$as_ac_Header'}'`
22247                { echo "$as_me:$LINENO: result: $ac_res" >&5
22248 echo "${ECHO_T}$ac_res" >&6; }
22249 else
22250   # Is the header compilable?
22251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 $ac_includes_default
22260 #include <$ac_header>
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266   *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269   (eval "$ac_compile") 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } && {
22276          test -z "$ac_c_werror_flag" ||
22277          test ! -s conftest.err
22278        } && test -s conftest.$ac_objext; then
22279   ac_header_compiler=yes
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284         ac_header_compiler=no
22285 fi
22286
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22289 echo "${ECHO_T}$ac_header_compiler" >&6; }
22290
22291 # Is the header present?
22292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22294 cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #include <$ac_header>
22301 _ACEOF
22302 if { (ac_try="$ac_cpp conftest.$ac_ext"
22303 case "(($ac_try" in
22304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305   *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22309   ac_status=$?
22310   grep -v '^ *+' conftest.er1 >conftest.err
22311   rm -f conftest.er1
22312   cat conftest.err >&5
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } >/dev/null && {
22315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22316          test ! -s conftest.err
22317        }; then
22318   ac_header_preproc=yes
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323   ac_header_preproc=no
22324 fi
22325
22326 rm -f conftest.err conftest.$ac_ext
22327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22328 echo "${ECHO_T}$ac_header_preproc" >&6; }
22329
22330 # So?  What about this header?
22331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22332   yes:no: )
22333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22337     ac_header_preproc=yes
22338     ;;
22339   no:yes:* )
22340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22352     ( cat <<\_ASBOX
22353 ## ------------------------------- ##
22354 ## Report this to nfs@lists.sf.net ##
22355 ## ------------------------------- ##
22356 _ASBOX
22357      ) | sed "s/^/$as_me: WARNING:     /" >&2
22358     ;;
22359 esac
22360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363   echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365   eval "$as_ac_Header=\$ac_header_preproc"
22366 fi
22367 ac_res=`eval echo '${'$as_ac_Header'}'`
22368                { echo "$as_me:$LINENO: result: $ac_res" >&5
22369 echo "${ECHO_T}$ac_res" >&6; }
22370
22371 fi
22372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22373   cat >>confdefs.h <<_ACEOF
22374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22375 _ACEOF
22376
22377 else
22378   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22379 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22380 fi
22381
22382 done
22383
22384     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22385 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22386 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   ac_check_lib_save_LIBS=$LIBS
22390 LIBS="-lnfsidmap  $LIBS"
22391 cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397
22398 /* Override any GCC internal prototype to avoid an error.
22399    Use char because int might match the return type of a GCC
22400    builtin and then its argument prototype would still apply.  */
22401 #ifdef __cplusplus
22402 extern "C"
22403 #endif
22404 char nfs4_set_debug ();
22405 int
22406 main ()
22407 {
22408 return nfs4_set_debug ();
22409   ;
22410   return 0;
22411 }
22412 _ACEOF
22413 rm -f conftest.$ac_objext conftest$ac_exeext
22414 if { (ac_try="$ac_link"
22415 case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_link") 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } && {
22427          test -z "$ac_c_werror_flag" ||
22428          test ! -s conftest.err
22429        } && test -s conftest$ac_exeext &&
22430        $as_test_x conftest$ac_exeext; then
22431   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22440       conftest$ac_exeext conftest.$ac_ext
22441 LIBS=$ac_check_lib_save_LIBS
22442 fi
22443 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22444 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22445 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22446
22447 cat >>confdefs.h <<\_ACEOF
22448 #define HAVE_NFS4_SET_DEBUG 1
22449 _ACEOF
22450
22451 fi
22452
22453
22454
22455   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22456 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22457
22458 # Check whether --with-krb5 was given.
22459 if test "${with_krb5+set}" = set; then
22460   withval=$with_krb5;  case "$withval" in
22461     yes|no)
22462        krb5_with=""
22463        ;;
22464     *)
22465        krb5_with="$withval"
22466        ;;
22467     esac
22468
22469 fi
22470
22471
22472   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22473              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22474             K5CONFIG=""
22475     if test -f $dir/bin/krb5-config; then
22476       K5CONFIG=$dir/bin/krb5-config
22477     elif test -f "/usr/kerberos/bin/krb5-config"; then
22478       K5CONFIG="/usr/kerberos/bin/krb5-config"
22479     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22480       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22481     fi
22482     if test "$K5CONFIG" != ""; then
22483       KRBCFLAGS=`$K5CONFIG --cflags`
22484       KRBLIBS=`$K5CONFIG --libs gssapi`
22485       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22486
22487 cat >>confdefs.h <<_ACEOF
22488 #define KRB5_VERSION $K5VERS
22489 _ACEOF
22490
22491       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22492                 \( -f $dir/lib/libgssapi_krb5.a -o \
22493                    -f $dir/lib/libgssapi_krb5.so \) ; then
22494
22495 cat >>confdefs.h <<\_ACEOF
22496 #define HAVE_KRB5 1
22497 _ACEOF
22498
22499          KRBDIR="$dir"
22500                      if test $K5VERS -le 131; then
22501
22502 cat >>confdefs.h <<\_ACEOF
22503 #define USE_GSS_KRB5_CCACHE_NAME 1
22504 _ACEOF
22505
22506          fi
22507          gssapi_lib=gssapi_krb5
22508          break
22509                   elif test \( -f $dir/include/heim_err.h -o\
22510                  -f $dir/include/heimdal/heim_err.h \) -a \
22511                 -f $dir/lib/libroken.a; then
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define HAVE_HEIMDAL 1
22515 _ACEOF
22516
22517          KRBDIR="$dir"
22518          gssapi_lib=gssapi
22519         break
22520       fi
22521     fi
22522   done
22523     if test "x$KRBDIR" = "x"; then
22524     if test "x$krb5_with" = "x"; then
22525       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22526 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22527    { (exit 1); exit 1; }; }
22528     else
22529       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22530 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22531    { (exit 1); exit 1; }; }
22532     fi
22533   fi
22534   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22535 echo "${ECHO_T}$KRBDIR" >&6; }
22536
22537     echo "The current KRBDIR is $KRBDIR"
22538   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22539        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22540     KRBLDFLAGS="";
22541   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22542     KRBLDFLAGS="";
22543   else
22544     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22545   fi
22546
22547     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22548 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22549 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22550 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553   ac_check_lib_save_LIBS=$LIBS
22554 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561
22562 /* Override any GCC internal prototype to avoid an error.
22563    Use char because int might match the return type of a GCC
22564    builtin and then its argument prototype would still apply.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char gss_krb5_export_lucid_sec_context ();
22569 int
22570 main ()
22571 {
22572 return gss_krb5_export_lucid_sec_context ();
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581   *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584   (eval "$ac_link") 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } && {
22591          test -z "$ac_c_werror_flag" ||
22592          test ! -s conftest.err
22593        } && test -s conftest$ac_exeext &&
22594        $as_test_x conftest$ac_exeext; then
22595   eval "$as_ac_Lib=yes"
22596 else
22597   echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600         eval "$as_ac_Lib=no"
22601 fi
22602
22603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22604       conftest$ac_exeext conftest.$ac_ext
22605 LIBS=$ac_check_lib_save_LIBS
22606 fi
22607 ac_res=`eval echo '${'$as_ac_Lib'}'`
22608                { echo "$as_me:$LINENO: result: $ac_res" >&5
22609 echo "${ECHO_T}$ac_res" >&6; }
22610 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22611
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22614 _ACEOF
22615
22616 fi
22617
22618   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22619 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22620 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22621 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22622   echo $ECHO_N "(cached) $ECHO_C" >&6
22623 else
22624   ac_check_lib_save_LIBS=$LIBS
22625 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22626 cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632
22633 /* Override any GCC internal prototype to avoid an error.
22634    Use char because int might match the return type of a GCC
22635    builtin and then its argument prototype would still apply.  */
22636 #ifdef __cplusplus
22637 extern "C"
22638 #endif
22639 char gss_krb5_set_allowable_enctypes ();
22640 int
22641 main ()
22642 {
22643 return gss_krb5_set_allowable_enctypes ();
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_link") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest$ac_exeext &&
22665        $as_test_x conftest$ac_exeext; then
22666   eval "$as_ac_Lib=yes"
22667 else
22668   echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671         eval "$as_ac_Lib=no"
22672 fi
22673
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675       conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22677 fi
22678 ac_res=`eval echo '${'$as_ac_Lib'}'`
22679                { echo "$as_me:$LINENO: result: $ac_res" >&5
22680 echo "${ECHO_T}$ac_res" >&6; }
22681 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22682
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22685 _ACEOF
22686
22687 fi
22688
22689   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22690 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22691 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22692 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22693   echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695   ac_check_lib_save_LIBS=$LIBS
22696 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22697 cat >conftest.$ac_ext <<_ACEOF
22698 /* confdefs.h.  */
22699 _ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h.  */
22703
22704 /* Override any GCC internal prototype to avoid an error.
22705    Use char because int might match the return type of a GCC
22706    builtin and then its argument prototype would still apply.  */
22707 #ifdef __cplusplus
22708 extern "C"
22709 #endif
22710 char gss_krb5_ccache_name ();
22711 int
22712 main ()
22713 {
22714 return gss_krb5_ccache_name ();
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723   *) ac_try_echo=$ac_try;;
22724 esac
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726   (eval "$ac_link") 2>conftest.er1
22727   ac_status=$?
22728   grep -v '^ *+' conftest.er1 >conftest.err
22729   rm -f conftest.er1
22730   cat conftest.err >&5
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } && {
22733          test -z "$ac_c_werror_flag" ||
22734          test ! -s conftest.err
22735        } && test -s conftest$ac_exeext &&
22736        $as_test_x conftest$ac_exeext; then
22737   eval "$as_ac_Lib=yes"
22738 else
22739   echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742         eval "$as_ac_Lib=no"
22743 fi
22744
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746       conftest$ac_exeext conftest.$ac_ext
22747 LIBS=$ac_check_lib_save_LIBS
22748 fi
22749 ac_res=`eval echo '${'$as_ac_Lib'}'`
22750                { echo "$as_me:$LINENO: result: $ac_res" >&5
22751 echo "${ECHO_T}$ac_res" >&6; }
22752 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22753
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22756 _ACEOF
22757
22758 fi
22759
22760
22761     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22762     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22763 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22764   fi
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22775 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22776 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22777   echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779   ac_check_lib_save_LIBS=$LIBS
22780 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787
22788 /* Override any GCC internal prototype to avoid an error.
22789    Use char because int might match the return type of a GCC
22790    builtin and then its argument prototype would still apply.  */
22791 #ifdef __cplusplus
22792 extern "C"
22793 #endif
22794 char authgss_create_default ();
22795 int
22796 main ()
22797 {
22798 return authgss_create_default ();
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_link") 2>conftest.er1
22811   ac_status=$?
22812   grep -v '^ *+' conftest.er1 >conftest.err
22813   rm -f conftest.er1
22814   cat conftest.err >&5
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); } && {
22817          test -z "$ac_c_werror_flag" ||
22818          test ! -s conftest.err
22819        } && test -s conftest$ac_exeext &&
22820        $as_test_x conftest$ac_exeext; then
22821   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22822 else
22823   echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826         ac_cv_lib_rpcsecgss_authgss_create_default=no
22827 fi
22828
22829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22830       conftest$ac_exeext conftest.$ac_ext
22831 LIBS=$ac_check_lib_save_LIBS
22832 fi
22833 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22834 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22835 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22836   librpcsecgss=1
22837 else
22838   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22839 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22840    { (exit 1); exit 1; }; }
22841 fi
22842
22843   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22844 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22845 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22846   echo $ECHO_N "(cached) $ECHO_C" >&6
22847 else
22848   ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856
22857 /* Override any GCC internal prototype to avoid an error.
22858    Use char because int might match the return type of a GCC
22859    builtin and then its argument prototype would still apply.  */
22860 #ifdef __cplusplus
22861 extern "C"
22862 #endif
22863 char authgss_set_debug_level ();
22864 int
22865 main ()
22866 {
22867 return authgss_set_debug_level ();
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (ac_try="$ac_link"
22874 case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_link") 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } && {
22886          test -z "$ac_c_werror_flag" ||
22887          test ! -s conftest.err
22888        } && test -s conftest$ac_exeext &&
22889        $as_test_x conftest$ac_exeext; then
22890   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899       conftest$ac_exeext conftest.$ac_ext
22900 LIBS=$ac_check_lib_save_LIBS
22901 fi
22902 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22903 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22904 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22908 _ACEOF
22909
22910 fi
22911
22912
22913 fi
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22939                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22940                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22941                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22942                  syslog.h unistd.h com_err.h et/com_err.h \
22943                  ifaddrs.h
22944 do
22945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 fi
22952 ac_res=`eval echo '${'$as_ac_Header'}'`
22953                { echo "$as_me:$LINENO: result: $ac_res" >&5
22954 echo "${ECHO_T}$ac_res" >&6; }
22955 else
22956   # Is the header compilable?
22957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h.  */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h.  */
22965 $ac_includes_default
22966 #include <$ac_header>
22967 _ACEOF
22968 rm -f conftest.$ac_objext
22969 if { (ac_try="$ac_compile"
22970 case "(($ac_try" in
22971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972   *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975   (eval "$ac_compile") 2>conftest.er1
22976   ac_status=$?
22977   grep -v '^ *+' conftest.er1 >conftest.err
22978   rm -f conftest.er1
22979   cat conftest.err >&5
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); } && {
22982          test -z "$ac_c_werror_flag" ||
22983          test ! -s conftest.err
22984        } && test -s conftest.$ac_objext; then
22985   ac_header_compiler=yes
22986 else
22987   echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990         ac_header_compiler=no
22991 fi
22992
22993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22995 echo "${ECHO_T}$ac_header_compiler" >&6; }
22996
22997 # Is the header present?
22998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23000 cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h.  */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h.  */
23006 #include <$ac_header>
23007 _ACEOF
23008 if { (ac_try="$ac_cpp conftest.$ac_ext"
23009 case "(($ac_try" in
23010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011   *) ac_try_echo=$ac_try;;
23012 esac
23013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } >/dev/null && {
23021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23022          test ! -s conftest.err
23023        }; then
23024   ac_header_preproc=yes
23025 else
23026   echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029   ac_header_preproc=no
23030 fi
23031
23032 rm -f conftest.err conftest.$ac_ext
23033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23034 echo "${ECHO_T}$ac_header_preproc" >&6; }
23035
23036 # So?  What about this header?
23037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23038   yes:no: )
23039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23043     ac_header_preproc=yes
23044     ;;
23045   no:yes:* )
23046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23058     ( cat <<\_ASBOX
23059 ## ------------------------------- ##
23060 ## Report this to nfs@lists.sf.net ##
23061 ## ------------------------------- ##
23062 _ASBOX
23063      ) | sed "s/^/$as_me: WARNING:     /" >&2
23064     ;;
23065 esac
23066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23069   echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071   eval "$as_ac_Header=\$ac_header_preproc"
23072 fi
23073 ac_res=`eval echo '${'$as_ac_Header'}'`
23074                { echo "$as_me:$LINENO: result: $ac_res" >&5
23075 echo "${ECHO_T}$ac_res" >&6; }
23076
23077 fi
23078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23079   cat >>confdefs.h <<_ACEOF
23080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23081 _ACEOF
23082
23083 fi
23084
23085 done
23086
23087
23088 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23090 if test "${ac_cv_c_const+set}" = set; then
23091   echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099
23100 int
23101 main ()
23102 {
23103 /* FIXME: Include the comments suggested by Paul. */
23104 #ifndef __cplusplus
23105   /* Ultrix mips cc rejects this.  */
23106   typedef int charset[2];
23107   const charset cs;
23108   /* SunOS 4.1.1 cc rejects this.  */
23109   char const *const *pcpcc;
23110   char **ppc;
23111   /* NEC SVR4.0.2 mips cc rejects this.  */
23112   struct point {int x, y;};
23113   static struct point const zero = {0,0};
23114   /* AIX XL C 1.02.0.0 rejects this.
23115      It does not let you subtract one const X* pointer from another in
23116      an arm of an if-expression whose if-part is not a constant
23117      expression */
23118   const char *g = "string";
23119   pcpcc = &g + (g ? g-g : 0);
23120   /* HPUX 7.0 cc rejects these. */
23121   ++pcpcc;
23122   ppc = (char**) pcpcc;
23123   pcpcc = (char const *const *) ppc;
23124   { /* SCO 3.2v4 cc rejects this.  */
23125     char *t;
23126     char const *s = 0 ? (char *) 0 : (char const *) 0;
23127
23128     *t++ = 0;
23129     if (s) return 0;
23130   }
23131   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23132     int x[] = {25, 17};
23133     const int *foo = &x[0];
23134     ++foo;
23135   }
23136   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23137     typedef const int *iptr;
23138     iptr p = 0;
23139     ++p;
23140   }
23141   { /* AIX XL C 1.02.0.0 rejects this saying
23142        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23143     struct s { int j; const int *ap[3]; };
23144     struct s *b; b->j = 5;
23145   }
23146   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23147     const int foo = 10;
23148     if (!foo) return 0;
23149   }
23150   return !cs[0] && !zero.x;
23151 #endif
23152
23153   ;
23154   return 0;
23155 }
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161   *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164   (eval "$ac_compile") 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } && {
23171          test -z "$ac_c_werror_flag" ||
23172          test ! -s conftest.err
23173        } && test -s conftest.$ac_objext; then
23174   ac_cv_c_const=yes
23175 else
23176   echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179         ac_cv_c_const=no
23180 fi
23181
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 fi
23184 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23185 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23186 if test $ac_cv_c_const = no; then
23187
23188 cat >>confdefs.h <<\_ACEOF
23189 #define const
23190 _ACEOF
23191
23192 fi
23193
23194 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23195 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23196 if test "${ac_cv_type_uid_t+set}" = set; then
23197   echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199   cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 #include <sys/types.h>
23206
23207 _ACEOF
23208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23209   $EGREP "uid_t" >/dev/null 2>&1; then
23210   ac_cv_type_uid_t=yes
23211 else
23212   ac_cv_type_uid_t=no
23213 fi
23214 rm -f conftest*
23215
23216 fi
23217 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23218 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23219 if test $ac_cv_type_uid_t = no; then
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define uid_t int
23223 _ACEOF
23224
23225
23226 cat >>confdefs.h <<\_ACEOF
23227 #define gid_t int
23228 _ACEOF
23229
23230 fi
23231
23232 { echo "$as_me:$LINENO: checking for inline" >&5
23233 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23234 if test "${ac_cv_c_inline+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   ac_cv_c_inline=no
23238 for ac_kw in inline __inline__ __inline; do
23239   cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h.  */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h.  */
23245 #ifndef __cplusplus
23246 typedef int foo_t;
23247 static $ac_kw foo_t static_foo () {return 0; }
23248 $ac_kw foo_t foo () {return 0; }
23249 #endif
23250
23251 _ACEOF
23252 rm -f conftest.$ac_objext
23253 if { (ac_try="$ac_compile"
23254 case "(($ac_try" in
23255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256   *) ac_try_echo=$ac_try;;
23257 esac
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259   (eval "$ac_compile") 2>conftest.er1
23260   ac_status=$?
23261   grep -v '^ *+' conftest.er1 >conftest.err
23262   rm -f conftest.er1
23263   cat conftest.err >&5
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); } && {
23266          test -z "$ac_c_werror_flag" ||
23267          test ! -s conftest.err
23268        } && test -s conftest.$ac_objext; then
23269   ac_cv_c_inline=$ac_kw
23270 else
23271   echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274
23275 fi
23276
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278   test "$ac_cv_c_inline" != no && break
23279 done
23280
23281 fi
23282 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23283 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23284
23285
23286 case $ac_cv_c_inline in
23287   inline | yes) ;;
23288   *)
23289     case $ac_cv_c_inline in
23290       no) ac_val=;;
23291       *) ac_val=$ac_cv_c_inline;;
23292     esac
23293     cat >>confdefs.h <<_ACEOF
23294 #ifndef __cplusplus
23295 #define inline $ac_val
23296 #endif
23297 _ACEOF
23298     ;;
23299 esac
23300
23301 { echo "$as_me:$LINENO: checking for off_t" >&5
23302 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23303 if test "${ac_cv_type_off_t+set}" = set; then
23304   echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306   cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 $ac_includes_default
23313 typedef off_t ac__type_new_;
23314 int
23315 main ()
23316 {
23317 if ((ac__type_new_ *) 0)
23318   return 0;
23319 if (sizeof (ac__type_new_))
23320   return 0;
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (ac_try="$ac_compile"
23327 case "(($ac_try" in
23328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329   *) ac_try_echo=$ac_try;;
23330 esac
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332   (eval "$ac_compile") 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } && {
23339          test -z "$ac_c_werror_flag" ||
23340          test ! -s conftest.err
23341        } && test -s conftest.$ac_objext; then
23342   ac_cv_type_off_t=yes
23343 else
23344   echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.$ac_ext >&5
23346
23347         ac_cv_type_off_t=no
23348 fi
23349
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351 fi
23352 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23353 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23354 if test $ac_cv_type_off_t = yes; then
23355   :
23356 else
23357
23358 cat >>confdefs.h <<_ACEOF
23359 #define off_t long int
23360 _ACEOF
23361
23362 fi
23363
23364 { echo "$as_me:$LINENO: checking for pid_t" >&5
23365 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23366 if test "${ac_cv_type_pid_t+set}" = set; then
23367   echo $ECHO_N "(cached) $ECHO_C" >&6
23368 else
23369   cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375 $ac_includes_default
23376 typedef pid_t ac__type_new_;
23377 int
23378 main ()
23379 {
23380 if ((ac__type_new_ *) 0)
23381   return 0;
23382 if (sizeof (ac__type_new_))
23383   return 0;
23384   ;
23385   return 0;
23386 }
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392   *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395   (eval "$ac_compile") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_c_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest.$ac_objext; then
23405   ac_cv_type_pid_t=yes
23406 else
23407   echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410         ac_cv_type_pid_t=no
23411 fi
23412
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
23415 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23416 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23417 if test $ac_cv_type_pid_t = yes; then
23418   :
23419 else
23420
23421 cat >>confdefs.h <<_ACEOF
23422 #define pid_t int
23423 _ACEOF
23424
23425 fi
23426
23427 { echo "$as_me:$LINENO: checking for size_t" >&5
23428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23429 if test "${ac_cv_type_size_t+set}" = set; then
23430   echo $ECHO_N "(cached) $ECHO_C" >&6
23431 else
23432   cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 $ac_includes_default
23439 typedef size_t ac__type_new_;
23440 int
23441 main ()
23442 {
23443 if ((ac__type_new_ *) 0)
23444   return 0;
23445 if (sizeof (ac__type_new_))
23446   return 0;
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } && {
23465          test -z "$ac_c_werror_flag" ||
23466          test ! -s conftest.err
23467        } && test -s conftest.$ac_objext; then
23468   ac_cv_type_size_t=yes
23469 else
23470   echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473         ac_cv_type_size_t=no
23474 fi
23475
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23477 fi
23478 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23479 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23480 if test $ac_cv_type_size_t = yes; then
23481   :
23482 else
23483
23484 cat >>confdefs.h <<_ACEOF
23485 #define size_t unsigned int
23486 _ACEOF
23487
23488 fi
23489
23490 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23491 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23492 if test "${ac_cv_header_time+set}" = set; then
23493   echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495   cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h.  */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h.  */
23501 #include <sys/types.h>
23502 #include <sys/time.h>
23503 #include <time.h>
23504
23505 int
23506 main ()
23507 {
23508 if ((struct tm *) 0)
23509 return 0;
23510   ;
23511   return 0;
23512 }
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518   *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521   (eval "$ac_compile") 2>conftest.er1
23522   ac_status=$?
23523   grep -v '^ *+' conftest.er1 >conftest.err
23524   rm -f conftest.er1
23525   cat conftest.err >&5
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } && {
23528          test -z "$ac_c_werror_flag" ||
23529          test ! -s conftest.err
23530        } && test -s conftest.$ac_objext; then
23531   ac_cv_header_time=yes
23532 else
23533   echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536         ac_cv_header_time=no
23537 fi
23538
23539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540 fi
23541 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23542 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23543 if test $ac_cv_header_time = yes; then
23544
23545 cat >>confdefs.h <<\_ACEOF
23546 #define TIME_WITH_SYS_TIME 1
23547 _ACEOF
23548
23549 fi
23550
23551 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23552 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23553 if test "${ac_cv_struct_tm+set}" = set; then
23554   echo $ECHO_N "(cached) $ECHO_C" >&6
23555 else
23556   cat >conftest.$ac_ext <<_ACEOF
23557 /* confdefs.h.  */
23558 _ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h.  */
23562 #include <sys/types.h>
23563 #include <time.h>
23564
23565 int
23566 main ()
23567 {
23568 struct tm tm;
23569                                      int *p = &tm.tm_sec;
23570                                      return !p;
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579   *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582   (eval "$ac_compile") 2>conftest.er1
23583   ac_status=$?
23584   grep -v '^ *+' conftest.er1 >conftest.err
23585   rm -f conftest.er1
23586   cat conftest.err >&5
23587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); } && {
23589          test -z "$ac_c_werror_flag" ||
23590          test ! -s conftest.err
23591        } && test -s conftest.$ac_objext; then
23592   ac_cv_struct_tm=time.h
23593 else
23594   echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23596
23597         ac_cv_struct_tm=sys/time.h
23598 fi
23599
23600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23601 fi
23602 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23603 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23604 if test $ac_cv_struct_tm = sys/time.h; then
23605
23606 cat >>confdefs.h <<\_ACEOF
23607 #define TM_IN_SYS_TIME 1
23608 _ACEOF
23609
23610 fi
23611
23612
23613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23614 # for constant arguments.  Useless!
23615 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23617 if test "${ac_cv_working_alloca_h+set}" = set; then
23618   echo $ECHO_N "(cached) $ECHO_C" >&6
23619 else
23620   cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h.  */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h.  */
23626 #include <alloca.h>
23627 int
23628 main ()
23629 {
23630 char *p = (char *) alloca (2 * sizeof (int));
23631                           if (p) return 0;
23632   ;
23633   return 0;
23634 }
23635 _ACEOF
23636 rm -f conftest.$ac_objext conftest$ac_exeext
23637 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23644   ac_status=$?
23645   grep -v '^ *+' conftest.er1 >conftest.err
23646   rm -f conftest.er1
23647   cat conftest.err >&5
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); } && {
23650          test -z "$ac_c_werror_flag" ||
23651          test ! -s conftest.err
23652        } && test -s conftest$ac_exeext &&
23653        $as_test_x conftest$ac_exeext; then
23654   ac_cv_working_alloca_h=yes
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_cv_working_alloca_h=no
23660 fi
23661
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663       conftest$ac_exeext conftest.$ac_ext
23664 fi
23665 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23667 if test $ac_cv_working_alloca_h = yes; then
23668
23669 cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_ALLOCA_H 1
23671 _ACEOF
23672
23673 fi
23674
23675 { echo "$as_me:$LINENO: checking for alloca" >&5
23676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23677 if test "${ac_cv_func_alloca_works+set}" = set; then
23678   echo $ECHO_N "(cached) $ECHO_C" >&6
23679 else
23680   cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 #ifdef __GNUC__
23687 # define alloca __builtin_alloca
23688 #else
23689 # ifdef _MSC_VER
23690 #  include <malloc.h>
23691 #  define alloca _alloca
23692 # else
23693 #  ifdef HAVE_ALLOCA_H
23694 #   include <alloca.h>
23695 #  else
23696 #   ifdef _AIX
23697  #pragma alloca
23698 #   else
23699 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23700 char *alloca ();
23701 #    endif
23702 #   endif
23703 #  endif
23704 # endif
23705 #endif
23706
23707 int
23708 main ()
23709 {
23710 char *p = (char *) alloca (1);
23711                                     if (p) return 0;
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720   *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723   (eval "$ac_link") 2>conftest.er1
23724   ac_status=$?
23725   grep -v '^ *+' conftest.er1 >conftest.err
23726   rm -f conftest.er1
23727   cat conftest.err >&5
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); } && {
23730          test -z "$ac_c_werror_flag" ||
23731          test ! -s conftest.err
23732        } && test -s conftest$ac_exeext &&
23733        $as_test_x conftest$ac_exeext; then
23734   ac_cv_func_alloca_works=yes
23735 else
23736   echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739         ac_cv_func_alloca_works=no
23740 fi
23741
23742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23743       conftest$ac_exeext conftest.$ac_ext
23744 fi
23745 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23747
23748 if test $ac_cv_func_alloca_works = yes; then
23749
23750 cat >>confdefs.h <<\_ACEOF
23751 #define HAVE_ALLOCA 1
23752 _ACEOF
23753
23754 else
23755   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23756 # that cause trouble.  Some versions do not even contain alloca or
23757 # contain a buggy version.  If you still want to use their alloca,
23758 # use ar to extract alloca.o from them instead of compiling alloca.c.
23759
23760 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23761
23762 cat >>confdefs.h <<\_ACEOF
23763 #define C_ALLOCA 1
23764 _ACEOF
23765
23766
23767 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23769 if test "${ac_cv_os_cray+set}" = set; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 else
23772   cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h.  */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h.  */
23778 #if defined CRAY && ! defined CRAY2
23779 webecray
23780 #else
23781 wenotbecray
23782 #endif
23783
23784 _ACEOF
23785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23786   $EGREP "webecray" >/dev/null 2>&1; then
23787   ac_cv_os_cray=yes
23788 else
23789   ac_cv_os_cray=no
23790 fi
23791 rm -f conftest*
23792
23793 fi
23794 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23795 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23796 if test $ac_cv_os_cray = yes; then
23797   for ac_func in _getb67 GETB67 getb67; do
23798     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804   cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23812 #define $ac_func innocuous_$ac_func
23813
23814 /* System header to define __stub macros and hopefully few prototypes,
23815     which can conflict with char $ac_func (); below.
23816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23817     <limits.h> exists even on freestanding compilers.  */
23818
23819 #ifdef __STDC__
23820 # include <limits.h>
23821 #else
23822 # include <assert.h>
23823 #endif
23824
23825 #undef $ac_func
23826
23827 /* Override any GCC internal prototype to avoid an error.
23828    Use char because int might match the return type of a GCC
23829    builtin and then its argument prototype would still apply.  */
23830 #ifdef __cplusplus
23831 extern "C"
23832 #endif
23833 char $ac_func ();
23834 /* The GNU C library defines this for functions which it implements
23835     to always fail with ENOSYS.  Some functions are actually named
23836     something starting with __ and the normal name is an alias.  */
23837 #if defined __stub_$ac_func || defined __stub___$ac_func
23838 choke me
23839 #endif
23840
23841 int
23842 main ()
23843 {
23844 return $ac_func ();
23845   ;
23846   return 0;
23847 }
23848 _ACEOF
23849 rm -f conftest.$ac_objext conftest$ac_exeext
23850 if { (ac_try="$ac_link"
23851 case "(($ac_try" in
23852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853   *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856   (eval "$ac_link") 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } && {
23863          test -z "$ac_c_werror_flag" ||
23864          test ! -s conftest.err
23865        } && test -s conftest$ac_exeext &&
23866        $as_test_x conftest$ac_exeext; then
23867   eval "$as_ac_var=yes"
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872         eval "$as_ac_var=no"
23873 fi
23874
23875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23876       conftest$ac_exeext conftest.$ac_ext
23877 fi
23878 ac_res=`eval echo '${'$as_ac_var'}'`
23879                { echo "$as_me:$LINENO: result: $ac_res" >&5
23880 echo "${ECHO_T}$ac_res" >&6; }
23881 if test `eval echo '${'$as_ac_var'}'` = yes; then
23882
23883 cat >>confdefs.h <<_ACEOF
23884 #define CRAY_STACKSEG_END $ac_func
23885 _ACEOF
23886
23887     break
23888 fi
23889
23890   done
23891 fi
23892
23893 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23895 if test "${ac_cv_c_stack_direction+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   if test "$cross_compiling" = yes; then
23899   ac_cv_c_stack_direction=0
23900 else
23901   cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907 $ac_includes_default
23908 int
23909 find_stack_direction ()
23910 {
23911   static char *addr = 0;
23912   auto char dummy;
23913   if (addr == 0)
23914     {
23915       addr = &dummy;
23916       return find_stack_direction ();
23917     }
23918   else
23919     return (&dummy > addr) ? 1 : -1;
23920 }
23921
23922 int
23923 main ()
23924 {
23925   return find_stack_direction () < 0;
23926 }
23927 _ACEOF
23928 rm -f conftest$ac_exeext
23929 if { (ac_try="$ac_link"
23930 case "(($ac_try" in
23931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932   *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935   (eval "$ac_link") 2>&5
23936   ac_status=$?
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23939   { (case "(($ac_try" in
23940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941   *) ac_try_echo=$ac_try;;
23942 esac
23943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23944   (eval "$ac_try") 2>&5
23945   ac_status=$?
23946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947   (exit $ac_status); }; }; then
23948   ac_cv_c_stack_direction=1
23949 else
23950   echo "$as_me: program exited with status $ac_status" >&5
23951 echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954 ( exit $ac_status )
23955 ac_cv_c_stack_direction=-1
23956 fi
23957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23958 fi
23959
23960
23961 fi
23962 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23964
23965 cat >>confdefs.h <<_ACEOF
23966 #define STACK_DIRECTION $ac_cv_c_stack_direction
23967 _ACEOF
23968
23969
23970 fi
23971
23972
23973
23974
23975
23976
23977 ac_header_dirent=no
23978 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23979   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23980 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23981 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23983   echo $ECHO_N "(cached) $ECHO_C" >&6
23984 else
23985   cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h.  */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h.  */
23991 #include <sys/types.h>
23992 #include <$ac_hdr>
23993
23994 int
23995 main ()
23996 {
23997 if ((DIR *) 0)
23998 return 0;
23999   ;
24000   return 0;
24001 }
24002 _ACEOF
24003 rm -f conftest.$ac_objext
24004 if { (ac_try="$ac_compile"
24005 case "(($ac_try" in
24006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24007   *) ac_try_echo=$ac_try;;
24008 esac
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010   (eval "$ac_compile") 2>conftest.er1
24011   ac_status=$?
24012   grep -v '^ *+' conftest.er1 >conftest.err
24013   rm -f conftest.er1
24014   cat conftest.err >&5
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); } && {
24017          test -z "$ac_c_werror_flag" ||
24018          test ! -s conftest.err
24019        } && test -s conftest.$ac_objext; then
24020   eval "$as_ac_Header=yes"
24021 else
24022   echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24024
24025         eval "$as_ac_Header=no"
24026 fi
24027
24028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029 fi
24030 ac_res=`eval echo '${'$as_ac_Header'}'`
24031                { echo "$as_me:$LINENO: result: $ac_res" >&5
24032 echo "${ECHO_T}$ac_res" >&6; }
24033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24034   cat >>confdefs.h <<_ACEOF
24035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24036 _ACEOF
24037
24038 ac_header_dirent=$ac_hdr; break
24039 fi
24040
24041 done
24042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24043 if test $ac_header_dirent = dirent.h; then
24044   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24046 if test "${ac_cv_search_opendir+set}" = set; then
24047   echo $ECHO_N "(cached) $ECHO_C" >&6
24048 else
24049   ac_func_search_save_LIBS=$LIBS
24050 cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h.  */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h.  */
24056
24057 /* Override any GCC internal prototype to avoid an error.
24058    Use char because int might match the return type of a GCC
24059    builtin and then its argument prototype would still apply.  */
24060 #ifdef __cplusplus
24061 extern "C"
24062 #endif
24063 char opendir ();
24064 int
24065 main ()
24066 {
24067 return opendir ();
24068   ;
24069   return 0;
24070 }
24071 _ACEOF
24072 for ac_lib in '' dir; do
24073   if test -z "$ac_lib"; then
24074     ac_res="none required"
24075   else
24076     ac_res=-l$ac_lib
24077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24078   fi
24079   rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086   (eval "$ac_link") 2>conftest.er1
24087   ac_status=$?
24088   grep -v '^ *+' conftest.er1 >conftest.err
24089   rm -f conftest.er1
24090   cat conftest.err >&5
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); } && {
24093          test -z "$ac_c_werror_flag" ||
24094          test ! -s conftest.err
24095        } && test -s conftest$ac_exeext &&
24096        $as_test_x conftest$ac_exeext; then
24097   ac_cv_search_opendir=$ac_res
24098 else
24099   echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24101
24102
24103 fi
24104
24105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24106       conftest$ac_exeext
24107   if test "${ac_cv_search_opendir+set}" = set; then
24108   break
24109 fi
24110 done
24111 if test "${ac_cv_search_opendir+set}" = set; then
24112   :
24113 else
24114   ac_cv_search_opendir=no
24115 fi
24116 rm conftest.$ac_ext
24117 LIBS=$ac_func_search_save_LIBS
24118 fi
24119 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24120 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24121 ac_res=$ac_cv_search_opendir
24122 if test "$ac_res" != no; then
24123   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24124
24125 fi
24126
24127 else
24128   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24129 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24130 if test "${ac_cv_search_opendir+set}" = set; then
24131   echo $ECHO_N "(cached) $ECHO_C" >&6
24132 else
24133   ac_func_search_save_LIBS=$LIBS
24134 cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140
24141 /* Override any GCC internal prototype to avoid an error.
24142    Use char because int might match the return type of a GCC
24143    builtin and then its argument prototype would still apply.  */
24144 #ifdef __cplusplus
24145 extern "C"
24146 #endif
24147 char opendir ();
24148 int
24149 main ()
24150 {
24151 return opendir ();
24152   ;
24153   return 0;
24154 }
24155 _ACEOF
24156 for ac_lib in '' x; do
24157   if test -z "$ac_lib"; then
24158     ac_res="none required"
24159   else
24160     ac_res=-l$ac_lib
24161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24162   fi
24163   rm -f conftest.$ac_objext conftest$ac_exeext
24164 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
24171   ac_status=$?
24172   grep -v '^ *+' conftest.er1 >conftest.err
24173   rm -f conftest.er1
24174   cat conftest.err >&5
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); } && {
24177          test -z "$ac_c_werror_flag" ||
24178          test ! -s conftest.err
24179        } && test -s conftest$ac_exeext &&
24180        $as_test_x conftest$ac_exeext; then
24181   ac_cv_search_opendir=$ac_res
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186
24187 fi
24188
24189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24190       conftest$ac_exeext
24191   if test "${ac_cv_search_opendir+set}" = set; then
24192   break
24193 fi
24194 done
24195 if test "${ac_cv_search_opendir+set}" = set; then
24196   :
24197 else
24198   ac_cv_search_opendir=no
24199 fi
24200 rm conftest.$ac_ext
24201 LIBS=$ac_func_search_save_LIBS
24202 fi
24203 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24204 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24205 ac_res=$ac_cv_search_opendir
24206 if test "$ac_res" != no; then
24207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24208
24209 fi
24210
24211 fi
24212
24213 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24214 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24215 if test "${ac_cv_func_closedir_void+set}" = set; then
24216   echo $ECHO_N "(cached) $ECHO_C" >&6
24217 else
24218   if test "$cross_compiling" = yes; then
24219   ac_cv_func_closedir_void=yes
24220 else
24221   cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228 #include <$ac_header_dirent>
24229 #ifndef __cplusplus
24230 int closedir ();
24231 #endif
24232
24233 int
24234 main ()
24235 {
24236 return closedir (opendir (".")) != 0;
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245   *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248   (eval "$ac_link") 2>&5
24249   ac_status=$?
24250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24252   { (case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_try") 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; }; then
24261   ac_cv_func_closedir_void=no
24262 else
24263   echo "$as_me: program exited with status $ac_status" >&5
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267 ( exit $ac_status )
24268 ac_cv_func_closedir_void=yes
24269 fi
24270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24271 fi
24272
24273
24274 fi
24275 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24276 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24277 if test $ac_cv_func_closedir_void = yes; then
24278
24279 cat >>confdefs.h <<\_ACEOF
24280 #define CLOSEDIR_VOID 1
24281 _ACEOF
24282
24283 fi
24284
24285 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24286 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24287 if test "${ac_cv_lib_error_at_line+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290   cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296 #include <error.h>
24297 int
24298 main ()
24299 {
24300 error_at_line (0, 0, "", 0, "an error occurred");
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309   *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312   (eval "$ac_link") 2>conftest.er1
24313   ac_status=$?
24314   grep -v '^ *+' conftest.er1 >conftest.err
24315   rm -f conftest.er1
24316   cat conftest.err >&5
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && {
24319          test -z "$ac_c_werror_flag" ||
24320          test ! -s conftest.err
24321        } && test -s conftest$ac_exeext &&
24322        $as_test_x conftest$ac_exeext; then
24323   ac_cv_lib_error_at_line=yes
24324 else
24325   echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328         ac_cv_lib_error_at_line=no
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332       conftest$ac_exeext conftest.$ac_ext
24333 fi
24334 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24335 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24336 if test $ac_cv_lib_error_at_line = no; then
24337   case " $LIBOBJS " in
24338   *" error.$ac_objext "* ) ;;
24339   *) LIBOBJS="$LIBOBJS error.$ac_objext"
24340  ;;
24341 esac
24342
24343 fi
24344
24345
24346 for ac_header in vfork.h
24347 do
24348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24353   echo $ECHO_N "(cached) $ECHO_C" >&6
24354 fi
24355 ac_res=`eval echo '${'$as_ac_Header'}'`
24356                { echo "$as_me:$LINENO: result: $ac_res" >&5
24357 echo "${ECHO_T}$ac_res" >&6; }
24358 else
24359   # Is the header compilable?
24360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24362 cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h.  */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h.  */
24368 $ac_includes_default
24369 #include <$ac_header>
24370 _ACEOF
24371 rm -f conftest.$ac_objext
24372 if { (ac_try="$ac_compile"
24373 case "(($ac_try" in
24374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24375   *) ac_try_echo=$ac_try;;
24376 esac
24377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24378   (eval "$ac_compile") 2>conftest.er1
24379   ac_status=$?
24380   grep -v '^ *+' conftest.er1 >conftest.err
24381   rm -f conftest.er1
24382   cat conftest.err >&5
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } && {
24385          test -z "$ac_c_werror_flag" ||
24386          test ! -s conftest.err
24387        } && test -s conftest.$ac_objext; then
24388   ac_header_compiler=yes
24389 else
24390   echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393         ac_header_compiler=no
24394 fi
24395
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24398 echo "${ECHO_T}$ac_header_compiler" >&6; }
24399
24400 # Is the header present?
24401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24403 cat >conftest.$ac_ext <<_ACEOF
24404 /* confdefs.h.  */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h.  */
24409 #include <$ac_header>
24410 _ACEOF
24411 if { (ac_try="$ac_cpp conftest.$ac_ext"
24412 case "(($ac_try" in
24413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414   *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24418   ac_status=$?
24419   grep -v '^ *+' conftest.er1 >conftest.err
24420   rm -f conftest.er1
24421   cat conftest.err >&5
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); } >/dev/null && {
24424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24425          test ! -s conftest.err
24426        }; then
24427   ac_header_preproc=yes
24428 else
24429   echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24431
24432   ac_header_preproc=no
24433 fi
24434
24435 rm -f conftest.err conftest.$ac_ext
24436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24437 echo "${ECHO_T}$ac_header_preproc" >&6; }
24438
24439 # So?  What about this header?
24440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24441   yes:no: )
24442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24446     ac_header_preproc=yes
24447     ;;
24448   no:yes:* )
24449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24461     ( cat <<\_ASBOX
24462 ## ------------------------------- ##
24463 ## Report this to nfs@lists.sf.net ##
24464 ## ------------------------------- ##
24465 _ASBOX
24466      ) | sed "s/^/$as_me: WARNING:     /" >&2
24467     ;;
24468 esac
24469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24472   echo $ECHO_N "(cached) $ECHO_C" >&6
24473 else
24474   eval "$as_ac_Header=\$ac_header_preproc"
24475 fi
24476 ac_res=`eval echo '${'$as_ac_Header'}'`
24477                { echo "$as_me:$LINENO: result: $ac_res" >&5
24478 echo "${ECHO_T}$ac_res" >&6; }
24479
24480 fi
24481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24482   cat >>confdefs.h <<_ACEOF
24483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24484 _ACEOF
24485
24486 fi
24487
24488 done
24489
24490
24491
24492 for ac_func in fork vfork
24493 do
24494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24498   echo $ECHO_N "(cached) $ECHO_C" >&6
24499 else
24500   cat >conftest.$ac_ext <<_ACEOF
24501 /* confdefs.h.  */
24502 _ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h.  */
24506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24508 #define $ac_func innocuous_$ac_func
24509
24510 /* System header to define __stub macros and hopefully few prototypes,
24511     which can conflict with char $ac_func (); below.
24512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24513     <limits.h> exists even on freestanding compilers.  */
24514
24515 #ifdef __STDC__
24516 # include <limits.h>
24517 #else
24518 # include <assert.h>
24519 #endif
24520
24521 #undef $ac_func
24522
24523 /* Override any GCC internal prototype to avoid an error.
24524    Use char because int might match the return type of a GCC
24525    builtin and then its argument prototype would still apply.  */
24526 #ifdef __cplusplus
24527 extern "C"
24528 #endif
24529 char $ac_func ();
24530 /* The GNU C library defines this for functions which it implements
24531     to always fail with ENOSYS.  Some functions are actually named
24532     something starting with __ and the normal name is an alias.  */
24533 #if defined __stub_$ac_func || defined __stub___$ac_func
24534 choke me
24535 #endif
24536
24537 int
24538 main ()
24539 {
24540 return $ac_func ();
24541   ;
24542   return 0;
24543 }
24544 _ACEOF
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (ac_try="$ac_link"
24547 case "(($ac_try" in
24548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549   *) ac_try_echo=$ac_try;;
24550 esac
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552   (eval "$ac_link") 2>conftest.er1
24553   ac_status=$?
24554   grep -v '^ *+' conftest.er1 >conftest.err
24555   rm -f conftest.er1
24556   cat conftest.err >&5
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } && {
24559          test -z "$ac_c_werror_flag" ||
24560          test ! -s conftest.err
24561        } && test -s conftest$ac_exeext &&
24562        $as_test_x conftest$ac_exeext; then
24563   eval "$as_ac_var=yes"
24564 else
24565   echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568         eval "$as_ac_var=no"
24569 fi
24570
24571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24572       conftest$ac_exeext conftest.$ac_ext
24573 fi
24574 ac_res=`eval echo '${'$as_ac_var'}'`
24575                { echo "$as_me:$LINENO: result: $ac_res" >&5
24576 echo "${ECHO_T}$ac_res" >&6; }
24577 if test `eval echo '${'$as_ac_var'}'` = yes; then
24578   cat >>confdefs.h <<_ACEOF
24579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24580 _ACEOF
24581
24582 fi
24583 done
24584
24585 if test "x$ac_cv_func_fork" = xyes; then
24586   { echo "$as_me:$LINENO: checking for working fork" >&5
24587 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24588 if test "${ac_cv_func_fork_works+set}" = set; then
24589   echo $ECHO_N "(cached) $ECHO_C" >&6
24590 else
24591   if test "$cross_compiling" = yes; then
24592   ac_cv_func_fork_works=cross
24593 else
24594   cat >conftest.$ac_ext <<_ACEOF
24595 /* confdefs.h.  */
24596 _ACEOF
24597 cat confdefs.h >>conftest.$ac_ext
24598 cat >>conftest.$ac_ext <<_ACEOF
24599 /* end confdefs.h.  */
24600 $ac_includes_default
24601 int
24602 main ()
24603 {
24604
24605           /* By Ruediger Kuhlmann. */
24606           return fork () < 0;
24607
24608   ;
24609   return 0;
24610 }
24611 _ACEOF
24612 rm -f conftest$ac_exeext
24613 if { (ac_try="$ac_link"
24614 case "(($ac_try" in
24615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616   *) ac_try_echo=$ac_try;;
24617 esac
24618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619   (eval "$ac_link") 2>&5
24620   ac_status=$?
24621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24623   { (case "(($ac_try" in
24624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625   *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628   (eval "$ac_try") 2>&5
24629   ac_status=$?
24630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631   (exit $ac_status); }; }; then
24632   ac_cv_func_fork_works=yes
24633 else
24634   echo "$as_me: program exited with status $ac_status" >&5
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638 ( exit $ac_status )
24639 ac_cv_func_fork_works=no
24640 fi
24641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24642 fi
24643
24644
24645 fi
24646 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24647 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24648
24649 else
24650   ac_cv_func_fork_works=$ac_cv_func_fork
24651 fi
24652 if test "x$ac_cv_func_fork_works" = xcross; then
24653   case $host in
24654     *-*-amigaos* | *-*-msdosdjgpp*)
24655       # Override, as these systems have only a dummy fork() stub
24656       ac_cv_func_fork_works=no
24657       ;;
24658     *)
24659       ac_cv_func_fork_works=yes
24660       ;;
24661   esac
24662   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24663 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24664 fi
24665 ac_cv_func_vfork_works=$ac_cv_func_vfork
24666 if test "x$ac_cv_func_vfork" = xyes; then
24667   { echo "$as_me:$LINENO: checking for working vfork" >&5
24668 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24669 if test "${ac_cv_func_vfork_works+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   if test "$cross_compiling" = yes; then
24673   ac_cv_func_vfork_works=cross
24674 else
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 /* Thanks to Paul Eggert for this test.  */
24682 $ac_includes_default
24683 #include <sys/wait.h>
24684 #ifdef HAVE_VFORK_H
24685 # include <vfork.h>
24686 #endif
24687 /* On some sparc systems, changes by the child to local and incoming
24688    argument registers are propagated back to the parent.  The compiler
24689    is told about this with #include <vfork.h>, but some compilers
24690    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24691    static variable whose address is put into a register that is
24692    clobbered by the vfork.  */
24693 static void
24694 #ifdef __cplusplus
24695 sparc_address_test (int arg)
24696 # else
24697 sparc_address_test (arg) int arg;
24698 #endif
24699 {
24700   static pid_t child;
24701   if (!child) {
24702     child = vfork ();
24703     if (child < 0) {
24704       perror ("vfork");
24705       _exit(2);
24706     }
24707     if (!child) {
24708       arg = getpid();
24709       write(-1, "", 0);
24710       _exit (arg);
24711     }
24712   }
24713 }
24714
24715 int
24716 main ()
24717 {
24718   pid_t parent = getpid ();
24719   pid_t child;
24720
24721   sparc_address_test (0);
24722
24723   child = vfork ();
24724
24725   if (child == 0) {
24726     /* Here is another test for sparc vfork register problems.  This
24727        test uses lots of local variables, at least as many local
24728        variables as main has allocated so far including compiler
24729        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24730        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24731        reuse the register of parent for one of the local variables,
24732        since it will think that parent can't possibly be used any more
24733        in this routine.  Assigning to the local variable will thus
24734        munge parent in the parent process.  */
24735     pid_t
24736       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24737       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24738     /* Convince the compiler that p..p7 are live; otherwise, it might
24739        use the same hardware register for all 8 local variables.  */
24740     if (p != p1 || p != p2 || p != p3 || p != p4
24741         || p != p5 || p != p6 || p != p7)
24742       _exit(1);
24743
24744     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24745        from child file descriptors.  If the child closes a descriptor
24746        before it execs or exits, this munges the parent's descriptor
24747        as well.  Test for this by closing stdout in the child.  */
24748     _exit(close(fileno(stdout)) != 0);
24749   } else {
24750     int status;
24751     struct stat st;
24752
24753     while (wait(&status) != child)
24754       ;
24755     return (
24756          /* Was there some problem with vforking?  */
24757          child < 0
24758
24759          /* Did the child fail?  (This shouldn't happen.)  */
24760          || status
24761
24762          /* Did the vfork/compiler bug occur?  */
24763          || parent != getpid()
24764
24765          /* Did the file descriptor bug occur?  */
24766          || fstat(fileno(stdout), &st) != 0
24767          );
24768   }
24769 }
24770 _ACEOF
24771 rm -f conftest$ac_exeext
24772 if { (ac_try="$ac_link"
24773 case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778   (eval "$ac_link") 2>&5
24779   ac_status=$?
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24782   { (case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_try") 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; }; then
24791   ac_cv_func_vfork_works=yes
24792 else
24793   echo "$as_me: program exited with status $ac_status" >&5
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797 ( exit $ac_status )
24798 ac_cv_func_vfork_works=no
24799 fi
24800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24801 fi
24802
24803
24804 fi
24805 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24806 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24807
24808 fi;
24809 if test "x$ac_cv_func_fork_works" = xcross; then
24810   ac_cv_func_vfork_works=$ac_cv_func_vfork
24811   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24812 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24813 fi
24814
24815 if test "x$ac_cv_func_vfork_works" = xyes; then
24816
24817 cat >>confdefs.h <<\_ACEOF
24818 #define HAVE_WORKING_VFORK 1
24819 _ACEOF
24820
24821 else
24822
24823 cat >>confdefs.h <<\_ACEOF
24824 #define vfork fork
24825 _ACEOF
24826
24827 fi
24828 if test "x$ac_cv_func_fork_works" = xyes; then
24829
24830 cat >>confdefs.h <<\_ACEOF
24831 #define HAVE_WORKING_FORK 1
24832 _ACEOF
24833
24834 fi
24835
24836 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24837 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24838 if test "${ac_cv_type_getgroups+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   if test "$cross_compiling" = yes; then
24842   ac_cv_type_getgroups=cross
24843 else
24844   cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850 /* Thanks to Mike Rendell for this test.  */
24851 $ac_includes_default
24852 #define NGID 256
24853 #undef MAX
24854 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24855
24856 int
24857 main ()
24858 {
24859   gid_t gidset[NGID];
24860   int i, n;
24861   union { gid_t gval; long int lval; }  val;
24862
24863   val.lval = -1;
24864   for (i = 0; i < NGID; i++)
24865     gidset[i] = val.gval;
24866   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24867                  gidset);
24868   /* Exit non-zero if getgroups seems to require an array of ints.  This
24869      happens when gid_t is short int but getgroups modifies an array
24870      of ints.  */
24871   return n > 0 && gidset[n] != val.gval;
24872 }
24873 _ACEOF
24874 rm -f conftest$ac_exeext
24875 if { (ac_try="$ac_link"
24876 case "(($ac_try" in
24877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878   *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881   (eval "$ac_link") 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24885   { (case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_try") 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; }; then
24894   ac_cv_type_getgroups=gid_t
24895 else
24896   echo "$as_me: program exited with status $ac_status" >&5
24897 echo "$as_me: failed program was:" >&5
24898 sed 's/^/| /' conftest.$ac_ext >&5
24899
24900 ( exit $ac_status )
24901 ac_cv_type_getgroups=int
24902 fi
24903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24904 fi
24905
24906
24907 if test $ac_cv_type_getgroups = cross; then
24908         cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 #include <unistd.h>
24915
24916 _ACEOF
24917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24918   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24919   ac_cv_type_getgroups=gid_t
24920 else
24921   ac_cv_type_getgroups=int
24922 fi
24923 rm -f conftest*
24924
24925 fi
24926 fi
24927 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24928 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24929
24930 cat >>confdefs.h <<_ACEOF
24931 #define GETGROUPS_T $ac_cv_type_getgroups
24932 _ACEOF
24933
24934
24935 { echo "$as_me:$LINENO: checking for getgroups" >&5
24936 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24937 if test "${ac_cv_func_getgroups+set}" = set; then
24938   echo $ECHO_N "(cached) $ECHO_C" >&6
24939 else
24940   cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h.  */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h.  */
24946 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24948 #define getgroups innocuous_getgroups
24949
24950 /* System header to define __stub macros and hopefully few prototypes,
24951     which can conflict with char getgroups (); below.
24952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24953     <limits.h> exists even on freestanding compilers.  */
24954
24955 #ifdef __STDC__
24956 # include <limits.h>
24957 #else
24958 # include <assert.h>
24959 #endif
24960
24961 #undef getgroups
24962
24963 /* Override any GCC internal prototype to avoid an error.
24964    Use char because int might match the return type of a GCC
24965    builtin and then its argument prototype would still apply.  */
24966 #ifdef __cplusplus
24967 extern "C"
24968 #endif
24969 char getgroups ();
24970 /* The GNU C library defines this for functions which it implements
24971     to always fail with ENOSYS.  Some functions are actually named
24972     something starting with __ and the normal name is an alias.  */
24973 #if defined __stub_getgroups || defined __stub___getgroups
24974 choke me
24975 #endif
24976
24977 int
24978 main ()
24979 {
24980 return getgroups ();
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext conftest$ac_exeext
24986 if { (ac_try="$ac_link"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_link") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } && {
24999          test -z "$ac_c_werror_flag" ||
25000          test ! -s conftest.err
25001        } && test -s conftest$ac_exeext &&
25002        $as_test_x conftest$ac_exeext; then
25003   ac_cv_func_getgroups=yes
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008         ac_cv_func_getgroups=no
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25012       conftest$ac_exeext conftest.$ac_ext
25013 fi
25014 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25015 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25016
25017
25018 # If we don't yet have getgroups, see if it's in -lbsd.
25019 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25020 ac_save_LIBS=$LIBS
25021 if test $ac_cv_func_getgroups = no; then
25022   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25023 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25024 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 else
25027   ac_check_lib_save_LIBS=$LIBS
25028 LIBS="-lbsd  $LIBS"
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h.  */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h.  */
25035
25036 /* Override any GCC internal prototype to avoid an error.
25037    Use char because int might match the return type of a GCC
25038    builtin and then its argument prototype would still apply.  */
25039 #ifdef __cplusplus
25040 extern "C"
25041 #endif
25042 char getgroups ();
25043 int
25044 main ()
25045 {
25046 return getgroups ();
25047   ;
25048   return 0;
25049 }
25050 _ACEOF
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055   *) ac_try_echo=$ac_try;;
25056 esac
25057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058   (eval "$ac_link") 2>conftest.er1
25059   ac_status=$?
25060   grep -v '^ *+' conftest.er1 >conftest.err
25061   rm -f conftest.er1
25062   cat conftest.err >&5
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); } && {
25065          test -z "$ac_c_werror_flag" ||
25066          test ! -s conftest.err
25067        } && test -s conftest$ac_exeext &&
25068        $as_test_x conftest$ac_exeext; then
25069   ac_cv_lib_bsd_getgroups=yes
25070 else
25071   echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074         ac_cv_lib_bsd_getgroups=no
25075 fi
25076
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078       conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25080 fi
25081 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25082 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25083 if test $ac_cv_lib_bsd_getgroups = yes; then
25084   GETGROUPS_LIB=-lbsd
25085 fi
25086
25087 fi
25088
25089 # Run the program to test the functionality of the system-supplied
25090 # getgroups function only if there is such a function.
25091 if test $ac_cv_func_getgroups = yes; then
25092   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25093 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25094 if test "${ac_cv_func_getgroups_works+set}" = set; then
25095   echo $ECHO_N "(cached) $ECHO_C" >&6
25096 else
25097   if test "$cross_compiling" = yes; then
25098   ac_cv_func_getgroups_works=no
25099 else
25100   cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h.  */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h.  */
25106 $ac_includes_default
25107 int
25108 main ()
25109 {
25110 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25111        return getgroups (0, 0) == -1;
25112   ;
25113   return 0;
25114 }
25115 _ACEOF
25116 rm -f conftest$ac_exeext
25117 if { (ac_try="$ac_link"
25118 case "(($ac_try" in
25119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120   *) ac_try_echo=$ac_try;;
25121 esac
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123   (eval "$ac_link") 2>&5
25124   ac_status=$?
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25127   { (case "(($ac_try" in
25128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129   *) ac_try_echo=$ac_try;;
25130 esac
25131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25132   (eval "$ac_try") 2>&5
25133   ac_status=$?
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); }; }; then
25136   ac_cv_func_getgroups_works=yes
25137 else
25138   echo "$as_me: program exited with status $ac_status" >&5
25139 echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142 ( exit $ac_status )
25143 ac_cv_func_getgroups_works=no
25144 fi
25145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25146 fi
25147
25148
25149
25150 fi
25151 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25152 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25153   if test $ac_cv_func_getgroups_works = yes; then
25154
25155 cat >>confdefs.h <<\_ACEOF
25156 #define HAVE_GETGROUPS 1
25157 _ACEOF
25158
25159   fi
25160 fi
25161 LIBS=$ac_save_LIBS
25162
25163 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25164 # -lseq on Dynix/PTX, -lgen on Unixware.
25165 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25166 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25167 if test "${ac_cv_search_getmntent+set}" = set; then
25168   echo $ECHO_N "(cached) $ECHO_C" >&6
25169 else
25170   ac_func_search_save_LIBS=$LIBS
25171 cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177
25178 /* Override any GCC internal prototype to avoid an error.
25179    Use char because int might match the return type of a GCC
25180    builtin and then its argument prototype would still apply.  */
25181 #ifdef __cplusplus
25182 extern "C"
25183 #endif
25184 char getmntent ();
25185 int
25186 main ()
25187 {
25188 return getmntent ();
25189   ;
25190   return 0;
25191 }
25192 _ACEOF
25193 for ac_lib in '' sun seq gen; do
25194   if test -z "$ac_lib"; then
25195     ac_res="none required"
25196   else
25197     ac_res=-l$ac_lib
25198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25199   fi
25200   rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204   *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207   (eval "$ac_link") 2>conftest.er1
25208   ac_status=$?
25209   grep -v '^ *+' conftest.er1 >conftest.err
25210   rm -f conftest.er1
25211   cat conftest.err >&5
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && {
25214          test -z "$ac_c_werror_flag" ||
25215          test ! -s conftest.err
25216        } && test -s conftest$ac_exeext &&
25217        $as_test_x conftest$ac_exeext; then
25218   ac_cv_search_getmntent=$ac_res
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25222
25223
25224 fi
25225
25226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25227       conftest$ac_exeext
25228   if test "${ac_cv_search_getmntent+set}" = set; then
25229   break
25230 fi
25231 done
25232 if test "${ac_cv_search_getmntent+set}" = set; then
25233   :
25234 else
25235   ac_cv_search_getmntent=no
25236 fi
25237 rm conftest.$ac_ext
25238 LIBS=$ac_func_search_save_LIBS
25239 fi
25240 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25241 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25242 ac_res=$ac_cv_search_getmntent
25243 if test "$ac_res" != no; then
25244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25245   ac_cv_func_getmntent=yes
25246
25247 cat >>confdefs.h <<\_ACEOF
25248 #define HAVE_GETMNTENT 1
25249 _ACEOF
25250
25251 else
25252   ac_cv_func_getmntent=no
25253 fi
25254
25255
25256 if test $ac_cv_c_compiler_gnu = yes; then
25257     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25258 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25259 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25260   echo $ECHO_N "(cached) $ECHO_C" >&6
25261 else
25262     ac_pattern="Autoconf.*'x'"
25263   cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h.  */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h.  */
25269 #include <sgtty.h>
25270 Autoconf TIOCGETP
25271 _ACEOF
25272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25273   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25274   ac_cv_prog_gcc_traditional=yes
25275 else
25276   ac_cv_prog_gcc_traditional=no
25277 fi
25278 rm -f conftest*
25279
25280
25281   if test $ac_cv_prog_gcc_traditional = no; then
25282     cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h.  */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h.  */
25288 #include <termio.h>
25289 Autoconf TCGETA
25290 _ACEOF
25291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25292   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25293   ac_cv_prog_gcc_traditional=yes
25294 fi
25295 rm -f conftest*
25296
25297   fi
25298 fi
25299 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25300 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25301   if test $ac_cv_prog_gcc_traditional = yes; then
25302     CC="$CC -traditional"
25303   fi
25304 fi
25305
25306 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25307 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25308 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25309   echo $ECHO_N "(cached) $ECHO_C" >&6
25310 else
25311   rm -f conftest.sym conftest.file
25312 echo >conftest.file
25313 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25314   if test "$cross_compiling" = yes; then
25315   ac_cv_func_lstat_dereferences_slashed_symlink=no
25316 else
25317   cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 $ac_includes_default
25324 int
25325 main ()
25326 {
25327 struct stat sbuf;
25328      /* Linux will dereference the symlink and fail.
25329         That is better in the sense that it means we will not
25330         have to compile and use the lstat wrapper.  */
25331      return lstat ("conftest.sym/", &sbuf) == 0;
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest$ac_exeext
25337 if { (ac_try="$ac_link"
25338 case "(($ac_try" in
25339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340   *) ac_try_echo=$ac_try;;
25341 esac
25342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25343   (eval "$ac_link") 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25347   { (case "(($ac_try" in
25348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25349   *) ac_try_echo=$ac_try;;
25350 esac
25351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25352   (eval "$ac_try") 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; }; then
25356   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25357 else
25358   echo "$as_me: program exited with status $ac_status" >&5
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362 ( exit $ac_status )
25363 ac_cv_func_lstat_dereferences_slashed_symlink=no
25364 fi
25365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25366 fi
25367
25368
25369 else
25370   # If the `ln -s' command failed, then we probably don't even
25371   # have an lstat function.
25372   ac_cv_func_lstat_dereferences_slashed_symlink=no
25373 fi
25374 rm -f conftest.sym conftest.file
25375
25376 fi
25377 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25378 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25379
25380 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25381
25382 cat >>confdefs.h <<_ACEOF
25383 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25384 _ACEOF
25385
25386
25387 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25388   case " $LIBOBJS " in
25389   *" lstat.$ac_objext "* ) ;;
25390   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25391  ;;
25392 esac
25393
25394 fi
25395
25396 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25397 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25398 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25399   echo $ECHO_N "(cached) $ECHO_C" >&6
25400 else
25401   if test "$cross_compiling" = yes; then
25402   ac_cv_func_lstat_empty_string_bug=yes
25403 else
25404   cat >conftest.$ac_ext <<_ACEOF
25405 /* confdefs.h.  */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h.  */
25410 $ac_includes_default
25411 int
25412 main ()
25413 {
25414 struct stat sbuf;
25415   return lstat ("", &sbuf) == 0;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 rm -f conftest$ac_exeext
25421 if { (ac_try="$ac_link"
25422 case "(($ac_try" in
25423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424   *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427   (eval "$ac_link") 2>&5
25428   ac_status=$?
25429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25431   { (case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_try") 2>&5
25437   ac_status=$?
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); }; }; then
25440   ac_cv_func_lstat_empty_string_bug=no
25441 else
25442   echo "$as_me: program exited with status $ac_status" >&5
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 ( exit $ac_status )
25447 ac_cv_func_lstat_empty_string_bug=yes
25448 fi
25449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25450 fi
25451
25452
25453 fi
25454 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25455 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25456 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25457   case " $LIBOBJS " in
25458   *" lstat.$ac_objext "* ) ;;
25459   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25460  ;;
25461 esac
25462
25463
25464 cat >>confdefs.h <<_ACEOF
25465 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25466 _ACEOF
25467
25468 fi
25469
25470 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25471 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25472 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25473   echo $ECHO_N "(cached) $ECHO_C" >&6
25474 else
25475   rm -f conftest.sym conftest.file
25476 echo >conftest.file
25477 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25478   if test "$cross_compiling" = yes; then
25479   ac_cv_func_lstat_dereferences_slashed_symlink=no
25480 else
25481   cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 $ac_includes_default
25488 int
25489 main ()
25490 {
25491 struct stat sbuf;
25492      /* Linux will dereference the symlink and fail.
25493         That is better in the sense that it means we will not
25494         have to compile and use the lstat wrapper.  */
25495      return lstat ("conftest.sym/", &sbuf) == 0;
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest$ac_exeext
25501 if { (ac_try="$ac_link"
25502 case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_link") 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25511   { (case "(($ac_try" in
25512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513   *) ac_try_echo=$ac_try;;
25514 esac
25515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25516   (eval "$ac_try") 2>&5
25517   ac_status=$?
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); }; }; then
25520   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25521 else
25522   echo "$as_me: program exited with status $ac_status" >&5
25523 echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526 ( exit $ac_status )
25527 ac_cv_func_lstat_dereferences_slashed_symlink=no
25528 fi
25529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25530 fi
25531
25532
25533 else
25534   # If the `ln -s' command failed, then we probably don't even
25535   # have an lstat function.
25536   ac_cv_func_lstat_dereferences_slashed_symlink=no
25537 fi
25538 rm -f conftest.sym conftest.file
25539
25540 fi
25541 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25542 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25543
25544 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25545
25546 cat >>confdefs.h <<_ACEOF
25547 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25548 _ACEOF
25549
25550
25551 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25552   case " $LIBOBJS " in
25553   *" lstat.$ac_objext "* ) ;;
25554   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25555  ;;
25556 esac
25557
25558 fi
25559
25560 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25561 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25562 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25563   echo $ECHO_N "(cached) $ECHO_C" >&6
25564 else
25565   cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h.  */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h.  */
25571 #include <sys/types.h>
25572 int
25573 main ()
25574 {
25575 return makedev(0, 0);
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest.$ac_objext conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584   *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587   (eval "$ac_link") 2>conftest.er1
25588   ac_status=$?
25589   grep -v '^ *+' conftest.er1 >conftest.err
25590   rm -f conftest.er1
25591   cat conftest.err >&5
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } && {
25594          test -z "$ac_c_werror_flag" ||
25595          test ! -s conftest.err
25596        } && test -s conftest$ac_exeext &&
25597        $as_test_x conftest$ac_exeext; then
25598   ac_cv_header_sys_types_h_makedev=yes
25599 else
25600   echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603         ac_cv_header_sys_types_h_makedev=no
25604 fi
25605
25606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25607       conftest$ac_exeext conftest.$ac_ext
25608
25609 fi
25610 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25611 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25612
25613 if test $ac_cv_header_sys_types_h_makedev = no; then
25614 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25615   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25616 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25617 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 fi
25620 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25621 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25622 else
25623   # Is the header compilable?
25624 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25625 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25626 cat >conftest.$ac_ext <<_ACEOF
25627 /* confdefs.h.  */
25628 _ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h.  */
25632 $ac_includes_default
25633 #include <sys/mkdev.h>
25634 _ACEOF
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642   (eval "$ac_compile") 2>conftest.er1
25643   ac_status=$?
25644   grep -v '^ *+' conftest.er1 >conftest.err
25645   rm -f conftest.er1
25646   cat conftest.err >&5
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); } && {
25649          test -z "$ac_c_werror_flag" ||
25650          test ! -s conftest.err
25651        } && test -s conftest.$ac_objext; then
25652   ac_header_compiler=yes
25653 else
25654   echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25656
25657         ac_header_compiler=no
25658 fi
25659
25660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25662 echo "${ECHO_T}$ac_header_compiler" >&6; }
25663
25664 # Is the header present?
25665 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25666 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25667 cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 #include <sys/mkdev.h>
25674 _ACEOF
25675 if { (ac_try="$ac_cpp conftest.$ac_ext"
25676 case "(($ac_try" in
25677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678   *) ac_try_echo=$ac_try;;
25679 esac
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25682   ac_status=$?
25683   grep -v '^ *+' conftest.er1 >conftest.err
25684   rm -f conftest.er1
25685   cat conftest.err >&5
25686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687   (exit $ac_status); } >/dev/null && {
25688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25689          test ! -s conftest.err
25690        }; then
25691   ac_header_preproc=yes
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696   ac_header_preproc=no
25697 fi
25698
25699 rm -f conftest.err conftest.$ac_ext
25700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25701 echo "${ECHO_T}$ac_header_preproc" >&6; }
25702
25703 # So?  What about this header?
25704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25705   yes:no: )
25706     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25707 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25708     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25709 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25710     ac_header_preproc=yes
25711     ;;
25712   no:yes:* )
25713     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25714 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25715     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25716 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25717     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25718 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25719     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25720 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25721     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25723     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25724 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25725     ( cat <<\_ASBOX
25726 ## ------------------------------- ##
25727 ## Report this to nfs@lists.sf.net ##
25728 ## ------------------------------- ##
25729 _ASBOX
25730      ) | sed "s/^/$as_me: WARNING:     /" >&2
25731     ;;
25732 esac
25733 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25734 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25735 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25736   echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25739 fi
25740 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25741 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25742
25743 fi
25744 if test $ac_cv_header_sys_mkdev_h = yes; then
25745
25746 cat >>confdefs.h <<\_ACEOF
25747 #define MAJOR_IN_MKDEV 1
25748 _ACEOF
25749
25750 fi
25751
25752
25753
25754   if test $ac_cv_header_sys_mkdev_h = no; then
25755     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25756   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25757 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25758 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25759   echo $ECHO_N "(cached) $ECHO_C" >&6
25760 fi
25761 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25762 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25763 else
25764   # Is the header compilable?
25765 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25766 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25767 cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h.  */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h.  */
25773 $ac_includes_default
25774 #include <sys/sysmacros.h>
25775 _ACEOF
25776 rm -f conftest.$ac_objext
25777 if { (ac_try="$ac_compile"
25778 case "(($ac_try" in
25779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780   *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783   (eval "$ac_compile") 2>conftest.er1
25784   ac_status=$?
25785   grep -v '^ *+' conftest.er1 >conftest.err
25786   rm -f conftest.er1
25787   cat conftest.err >&5
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); } && {
25790          test -z "$ac_c_werror_flag" ||
25791          test ! -s conftest.err
25792        } && test -s conftest.$ac_objext; then
25793   ac_header_compiler=yes
25794 else
25795   echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25797
25798         ac_header_compiler=no
25799 fi
25800
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25803 echo "${ECHO_T}$ac_header_compiler" >&6; }
25804
25805 # Is the header present?
25806 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25807 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25808 cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h.  */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h.  */
25814 #include <sys/sysmacros.h>
25815 _ACEOF
25816 if { (ac_try="$ac_cpp conftest.$ac_ext"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } >/dev/null && {
25829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25830          test ! -s conftest.err
25831        }; then
25832   ac_header_preproc=yes
25833 else
25834   echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837   ac_header_preproc=no
25838 fi
25839
25840 rm -f conftest.err conftest.$ac_ext
25841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25842 echo "${ECHO_T}$ac_header_preproc" >&6; }
25843
25844 # So?  What about this header?
25845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25846   yes:no: )
25847     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25848 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25849     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25850 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25851     ac_header_preproc=yes
25852     ;;
25853   no:yes:* )
25854     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25855 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25856     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25857 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25858     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25859 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25860     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25861 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25862     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25863 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25864     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25865 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25866     ( cat <<\_ASBOX
25867 ## ------------------------------- ##
25868 ## Report this to nfs@lists.sf.net ##
25869 ## ------------------------------- ##
25870 _ASBOX
25871      ) | sed "s/^/$as_me: WARNING:     /" >&2
25872     ;;
25873 esac
25874 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25875 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25876 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25880 fi
25881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25882 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25883
25884 fi
25885 if test $ac_cv_header_sys_sysmacros_h = yes; then
25886
25887 cat >>confdefs.h <<\_ACEOF
25888 #define MAJOR_IN_SYSMACROS 1
25889 _ACEOF
25890
25891 fi
25892
25893
25894   fi
25895 fi
25896
25897 #AC_FUNC_MALLOC
25898 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25899 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25900 if test "${ac_cv_func_memcmp_working+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903   if test "$cross_compiling" = yes; then
25904   ac_cv_func_memcmp_working=no
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913 int
25914 main ()
25915 {
25916
25917   /* Some versions of memcmp are not 8-bit clean.  */
25918   char c0 = '\100', c1 = '\200', c2 = '\201';
25919   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25920     return 1;
25921
25922   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25923      or more and with at least one buffer not starting on a 4-byte boundary.
25924      William Lewis provided this test program.   */
25925   {
25926     char foo[21];
25927     char bar[21];
25928     int i;
25929     for (i = 0; i < 4; i++)
25930       {
25931         char *a = foo + i;
25932         char *b = bar + i;
25933         strcpy (a, "--------01111111");
25934         strcpy (b, "--------10000000");
25935         if (memcmp (a, b, 16) >= 0)
25936           return 1;
25937       }
25938     return 0;
25939   }
25940
25941   ;
25942   return 0;
25943 }
25944 _ACEOF
25945 rm -f conftest$ac_exeext
25946 if { (ac_try="$ac_link"
25947 case "(($ac_try" in
25948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949   *) ac_try_echo=$ac_try;;
25950 esac
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952   (eval "$ac_link") 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25956   { (case "(($ac_try" in
25957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958   *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961   (eval "$ac_try") 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; }; then
25965   ac_cv_func_memcmp_working=yes
25966 else
25967   echo "$as_me: program exited with status $ac_status" >&5
25968 echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.$ac_ext >&5
25970
25971 ( exit $ac_status )
25972 ac_cv_func_memcmp_working=no
25973 fi
25974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25975 fi
25976
25977
25978 fi
25979 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25980 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25981 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25982   *" memcmp.$ac_objext "* ) ;;
25983   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25984  ;;
25985 esac
25986
25987
25988 #AC_FUNC_REALLOC
25989
25990
25991 for ac_header in sys/select.h sys/socket.h
25992 do
25993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25995   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25998   echo $ECHO_N "(cached) $ECHO_C" >&6
25999 fi
26000 ac_res=`eval echo '${'$as_ac_Header'}'`
26001                { echo "$as_me:$LINENO: result: $ac_res" >&5
26002 echo "${ECHO_T}$ac_res" >&6; }
26003 else
26004   # Is the header compilable?
26005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26007 cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013 $ac_includes_default
26014 #include <$ac_header>
26015 _ACEOF
26016 rm -f conftest.$ac_objext
26017 if { (ac_try="$ac_compile"
26018 case "(($ac_try" in
26019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020   *) ac_try_echo=$ac_try;;
26021 esac
26022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26023   (eval "$ac_compile") 2>conftest.er1
26024   ac_status=$?
26025   grep -v '^ *+' conftest.er1 >conftest.err
26026   rm -f conftest.er1
26027   cat conftest.err >&5
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); } && {
26030          test -z "$ac_c_werror_flag" ||
26031          test ! -s conftest.err
26032        } && test -s conftest.$ac_objext; then
26033   ac_header_compiler=yes
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038         ac_header_compiler=no
26039 fi
26040
26041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26043 echo "${ECHO_T}$ac_header_compiler" >&6; }
26044
26045 # Is the header present?
26046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26048 cat >conftest.$ac_ext <<_ACEOF
26049 /* confdefs.h.  */
26050 _ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h.  */
26054 #include <$ac_header>
26055 _ACEOF
26056 if { (ac_try="$ac_cpp conftest.$ac_ext"
26057 case "(($ac_try" in
26058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059   *) ac_try_echo=$ac_try;;
26060 esac
26061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26063   ac_status=$?
26064   grep -v '^ *+' conftest.er1 >conftest.err
26065   rm -f conftest.er1
26066   cat conftest.err >&5
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); } >/dev/null && {
26069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26070          test ! -s conftest.err
26071        }; then
26072   ac_header_preproc=yes
26073 else
26074   echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077   ac_header_preproc=no
26078 fi
26079
26080 rm -f conftest.err conftest.$ac_ext
26081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26082 echo "${ECHO_T}$ac_header_preproc" >&6; }
26083
26084 # So?  What about this header?
26085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26086   yes:no: )
26087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26091     ac_header_preproc=yes
26092     ;;
26093   no:yes:* )
26094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26106     ( cat <<\_ASBOX
26107 ## ------------------------------- ##
26108 ## Report this to nfs@lists.sf.net ##
26109 ## ------------------------------- ##
26110 _ASBOX
26111      ) | sed "s/^/$as_me: WARNING:     /" >&2
26112     ;;
26113 esac
26114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26117   echo $ECHO_N "(cached) $ECHO_C" >&6
26118 else
26119   eval "$as_ac_Header=\$ac_header_preproc"
26120 fi
26121 ac_res=`eval echo '${'$as_ac_Header'}'`
26122                { echo "$as_me:$LINENO: result: $ac_res" >&5
26123 echo "${ECHO_T}$ac_res" >&6; }
26124
26125 fi
26126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26127   cat >>confdefs.h <<_ACEOF
26128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26129 _ACEOF
26130
26131 fi
26132
26133 done
26134
26135 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26136 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26137 if test "${ac_cv_func_select_args+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26141  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26142   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26143    cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h.  */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h.  */
26149 $ac_includes_default
26150 #ifdef HAVE_SYS_SELECT_H
26151 # include <sys/select.h>
26152 #endif
26153 #ifdef HAVE_SYS_SOCKET_H
26154 # include <sys/socket.h>
26155 #endif
26156
26157 int
26158 main ()
26159 {
26160 extern int select ($ac_arg1,
26161                                             $ac_arg234, $ac_arg234, $ac_arg234,
26162                                             $ac_arg5);
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 rm -f conftest.$ac_objext
26168 if { (ac_try="$ac_compile"
26169 case "(($ac_try" in
26170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171   *) ac_try_echo=$ac_try;;
26172 esac
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174   (eval "$ac_compile") 2>conftest.er1
26175   ac_status=$?
26176   grep -v '^ *+' conftest.er1 >conftest.err
26177   rm -f conftest.er1
26178   cat conftest.err >&5
26179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180   (exit $ac_status); } && {
26181          test -z "$ac_c_werror_flag" ||
26182          test ! -s conftest.err
26183        } && test -s conftest.$ac_objext; then
26184   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26185 else
26186   echo "$as_me: failed program was:" >&5
26187 sed 's/^/| /' conftest.$ac_ext >&5
26188
26189
26190 fi
26191
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193   done
26194  done
26195 done
26196 # Provide a safe default value.
26197 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26198
26199 fi
26200 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26201 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26202 ac_save_IFS=$IFS; IFS=','
26203 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26204 IFS=$ac_save_IFS
26205 shift
26206
26207 cat >>confdefs.h <<_ACEOF
26208 #define SELECT_TYPE_ARG1 $1
26209 _ACEOF
26210
26211
26212 cat >>confdefs.h <<_ACEOF
26213 #define SELECT_TYPE_ARG234 ($2)
26214 _ACEOF
26215
26216
26217 cat >>confdefs.h <<_ACEOF
26218 #define SELECT_TYPE_ARG5 ($3)
26219 _ACEOF
26220
26221 rm -f conftest*
26222
26223 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26224 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26225 if test "${ac_cv_type_signal+set}" = set; then
26226   echo $ECHO_N "(cached) $ECHO_C" >&6
26227 else
26228   cat >conftest.$ac_ext <<_ACEOF
26229 /* confdefs.h.  */
26230 _ACEOF
26231 cat confdefs.h >>conftest.$ac_ext
26232 cat >>conftest.$ac_ext <<_ACEOF
26233 /* end confdefs.h.  */
26234 #include <sys/types.h>
26235 #include <signal.h>
26236
26237 int
26238 main ()
26239 {
26240 return *(signal (0, 0)) (0) == 1;
26241   ;
26242   return 0;
26243 }
26244 _ACEOF
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249   *) ac_try_echo=$ac_try;;
26250 esac
26251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26252   (eval "$ac_compile") 2>conftest.er1
26253   ac_status=$?
26254   grep -v '^ *+' conftest.er1 >conftest.err
26255   rm -f conftest.er1
26256   cat conftest.err >&5
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); } && {
26259          test -z "$ac_c_werror_flag" ||
26260          test ! -s conftest.err
26261        } && test -s conftest.$ac_objext; then
26262   ac_cv_type_signal=int
26263 else
26264   echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26266
26267         ac_cv_type_signal=void
26268 fi
26269
26270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26271 fi
26272 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26273 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26274
26275 cat >>confdefs.h <<_ACEOF
26276 #define RETSIGTYPE $ac_cv_type_signal
26277 _ACEOF
26278
26279
26280 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26281 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26282 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285   if test "$cross_compiling" = yes; then
26286   ac_cv_func_stat_empty_string_bug=yes
26287 else
26288   cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 $ac_includes_default
26295 int
26296 main ()
26297 {
26298 struct stat sbuf;
26299   return stat ("", &sbuf) == 0;
26300   ;
26301   return 0;
26302 }
26303 _ACEOF
26304 rm -f conftest$ac_exeext
26305 if { (ac_try="$ac_link"
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_link") 2>&5
26312   ac_status=$?
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26315   { (case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_try") 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; }; then
26324   ac_cv_func_stat_empty_string_bug=no
26325 else
26326   echo "$as_me: program exited with status $ac_status" >&5
26327 echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26329
26330 ( exit $ac_status )
26331 ac_cv_func_stat_empty_string_bug=yes
26332 fi
26333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26334 fi
26335
26336
26337 fi
26338 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26339 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26340 if test $ac_cv_func_stat_empty_string_bug = yes; then
26341   case " $LIBOBJS " in
26342   *" stat.$ac_objext "* ) ;;
26343   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26344  ;;
26345 esac
26346
26347
26348 cat >>confdefs.h <<_ACEOF
26349 #define HAVE_STAT_EMPTY_STRING_BUG 1
26350 _ACEOF
26351
26352 fi
26353
26354
26355 for ac_func in vprintf
26356 do
26357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26361   echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363   cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26371 #define $ac_func innocuous_$ac_func
26372
26373 /* System header to define __stub macros and hopefully few prototypes,
26374     which can conflict with char $ac_func (); below.
26375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376     <limits.h> exists even on freestanding compilers.  */
26377
26378 #ifdef __STDC__
26379 # include <limits.h>
26380 #else
26381 # include <assert.h>
26382 #endif
26383
26384 #undef $ac_func
26385
26386 /* Override any GCC internal prototype to avoid an error.
26387    Use char because int might match the return type of a GCC
26388    builtin and then its argument prototype would still apply.  */
26389 #ifdef __cplusplus
26390 extern "C"
26391 #endif
26392 char $ac_func ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined __stub_$ac_func || defined __stub___$ac_func
26397 choke me
26398 #endif
26399
26400 int
26401 main ()
26402 {
26403 return $ac_func ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_link") 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } && {
26422          test -z "$ac_c_werror_flag" ||
26423          test ! -s conftest.err
26424        } && test -s conftest$ac_exeext &&
26425        $as_test_x conftest$ac_exeext; then
26426   eval "$as_ac_var=yes"
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431         eval "$as_ac_var=no"
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435       conftest$ac_exeext conftest.$ac_ext
26436 fi
26437 ac_res=`eval echo '${'$as_ac_var'}'`
26438                { echo "$as_me:$LINENO: result: $ac_res" >&5
26439 echo "${ECHO_T}$ac_res" >&6; }
26440 if test `eval echo '${'$as_ac_var'}'` = yes; then
26441   cat >>confdefs.h <<_ACEOF
26442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26443 _ACEOF
26444
26445 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26446 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26447 if test "${ac_cv_func__doprnt+set}" = set; then
26448   echo $ECHO_N "(cached) $ECHO_C" >&6
26449 else
26450   cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26458 #define _doprnt innocuous__doprnt
26459
26460 /* System header to define __stub macros and hopefully few prototypes,
26461     which can conflict with char _doprnt (); below.
26462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26463     <limits.h> exists even on freestanding compilers.  */
26464
26465 #ifdef __STDC__
26466 # include <limits.h>
26467 #else
26468 # include <assert.h>
26469 #endif
26470
26471 #undef _doprnt
26472
26473 /* Override any GCC internal prototype to avoid an error.
26474    Use char because int might match the return type of a GCC
26475    builtin and then its argument prototype would still apply.  */
26476 #ifdef __cplusplus
26477 extern "C"
26478 #endif
26479 char _doprnt ();
26480 /* The GNU C library defines this for functions which it implements
26481     to always fail with ENOSYS.  Some functions are actually named
26482     something starting with __ and the normal name is an alias.  */
26483 #if defined __stub__doprnt || defined __stub____doprnt
26484 choke me
26485 #endif
26486
26487 int
26488 main ()
26489 {
26490 return _doprnt ();
26491   ;
26492   return 0;
26493 }
26494 _ACEOF
26495 rm -f conftest.$ac_objext conftest$ac_exeext
26496 if { (ac_try="$ac_link"
26497 case "(($ac_try" in
26498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499   *) ac_try_echo=$ac_try;;
26500 esac
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502   (eval "$ac_link") 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } && {
26509          test -z "$ac_c_werror_flag" ||
26510          test ! -s conftest.err
26511        } && test -s conftest$ac_exeext &&
26512        $as_test_x conftest$ac_exeext; then
26513   ac_cv_func__doprnt=yes
26514 else
26515   echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.$ac_ext >&5
26517
26518         ac_cv_func__doprnt=no
26519 fi
26520
26521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26522       conftest$ac_exeext conftest.$ac_ext
26523 fi
26524 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26525 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26526 if test $ac_cv_func__doprnt = yes; then
26527
26528 cat >>confdefs.h <<\_ACEOF
26529 #define HAVE_DOPRNT 1
26530 _ACEOF
26531
26532 fi
26533
26534 fi
26535 done
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26568                gethostbyaddr gethostbyname gethostname getmntent \
26569                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26570                realpath rmdir select socket strcasecmp strchr strdup \
26571                strerror strrchr strtol strtoul sigprocmask
26572 do
26573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26577   echo $ECHO_N "(cached) $ECHO_C" >&6
26578 else
26579   cat >conftest.$ac_ext <<_ACEOF
26580 /* confdefs.h.  */
26581 _ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h.  */
26585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26587 #define $ac_func innocuous_$ac_func
26588
26589 /* System header to define __stub macros and hopefully few prototypes,
26590     which can conflict with char $ac_func (); below.
26591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26592     <limits.h> exists even on freestanding compilers.  */
26593
26594 #ifdef __STDC__
26595 # include <limits.h>
26596 #else
26597 # include <assert.h>
26598 #endif
26599
26600 #undef $ac_func
26601
26602 /* Override any GCC internal prototype to avoid an error.
26603    Use char because int might match the return type of a GCC
26604    builtin and then its argument prototype would still apply.  */
26605 #ifdef __cplusplus
26606 extern "C"
26607 #endif
26608 char $ac_func ();
26609 /* The GNU C library defines this for functions which it implements
26610     to always fail with ENOSYS.  Some functions are actually named
26611     something starting with __ and the normal name is an alias.  */
26612 #if defined __stub_$ac_func || defined __stub___$ac_func
26613 choke me
26614 #endif
26615
26616 int
26617 main ()
26618 {
26619 return $ac_func ();
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_link") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } && {
26638          test -z "$ac_c_werror_flag" ||
26639          test ! -s conftest.err
26640        } && test -s conftest$ac_exeext &&
26641        $as_test_x conftest$ac_exeext; then
26642   eval "$as_ac_var=yes"
26643 else
26644   echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26646
26647         eval "$as_ac_var=no"
26648 fi
26649
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651       conftest$ac_exeext conftest.$ac_ext
26652 fi
26653 ac_res=`eval echo '${'$as_ac_var'}'`
26654                { echo "$as_me:$LINENO: result: $ac_res" >&5
26655 echo "${ECHO_T}$ac_res" >&6; }
26656 if test `eval echo '${'$as_ac_var'}'` = yes; then
26657   cat >>confdefs.h <<_ACEOF
26658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26659 _ACEOF
26660
26661 fi
26662 done
26663
26664
26665
26666 { echo "$as_me:$LINENO: checking for short" >&5
26667 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26668 if test "${ac_cv_type_short+set}" = set; then
26669   echo $ECHO_N "(cached) $ECHO_C" >&6
26670 else
26671   cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h.  */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h.  */
26677 $ac_includes_default
26678 typedef short ac__type_new_;
26679 int
26680 main ()
26681 {
26682 if ((ac__type_new_ *) 0)
26683   return 0;
26684 if (sizeof (ac__type_new_))
26685   return 0;
26686   ;
26687   return 0;
26688 }
26689 _ACEOF
26690 rm -f conftest.$ac_objext
26691 if { (ac_try="$ac_compile"
26692 case "(($ac_try" in
26693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26694   *) ac_try_echo=$ac_try;;
26695 esac
26696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26697   (eval "$ac_compile") 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } && {
26704          test -z "$ac_c_werror_flag" ||
26705          test ! -s conftest.err
26706        } && test -s conftest.$ac_objext; then
26707   ac_cv_type_short=yes
26708 else
26709   echo "$as_me: failed program was:" >&5
26710 sed 's/^/| /' conftest.$ac_ext >&5
26711
26712         ac_cv_type_short=no
26713 fi
26714
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716 fi
26717 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26718 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26719
26720 # The cast to long int works around a bug in the HP C Compiler
26721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26723 # This bug is HP SR number 8606223364.
26724 { echo "$as_me:$LINENO: checking size of short" >&5
26725 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26726 if test "${ac_cv_sizeof_short+set}" = set; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729   if test "$cross_compiling" = yes; then
26730   # Depending upon the size, compute the lo and hi bounds.
26731 cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737 $ac_includes_default
26738    typedef short ac__type_sizeof_;
26739 int
26740 main ()
26741 {
26742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26743 test_array [0] = 0
26744
26745   ;
26746   return 0;
26747 }
26748 _ACEOF
26749 rm -f conftest.$ac_objext
26750 if { (ac_try="$ac_compile"
26751 case "(($ac_try" in
26752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753   *) ac_try_echo=$ac_try;;
26754 esac
26755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756   (eval "$ac_compile") 2>conftest.er1
26757   ac_status=$?
26758   grep -v '^ *+' conftest.er1 >conftest.err
26759   rm -f conftest.er1
26760   cat conftest.err >&5
26761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762   (exit $ac_status); } && {
26763          test -z "$ac_c_werror_flag" ||
26764          test ! -s conftest.err
26765        } && test -s conftest.$ac_objext; then
26766   ac_lo=0 ac_mid=0
26767   while :; do
26768     cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 $ac_includes_default
26775    typedef short ac__type_sizeof_;
26776 int
26777 main ()
26778 {
26779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26780 test_array [0] = 0
26781
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 rm -f conftest.$ac_objext
26787 if { (ac_try="$ac_compile"
26788 case "(($ac_try" in
26789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790   *) ac_try_echo=$ac_try;;
26791 esac
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793   (eval "$ac_compile") 2>conftest.er1
26794   ac_status=$?
26795   grep -v '^ *+' conftest.er1 >conftest.err
26796   rm -f conftest.er1
26797   cat conftest.err >&5
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); } && {
26800          test -z "$ac_c_werror_flag" ||
26801          test ! -s conftest.err
26802        } && test -s conftest.$ac_objext; then
26803   ac_hi=$ac_mid; break
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808         ac_lo=`expr $ac_mid + 1`
26809                         if test $ac_lo -le $ac_mid; then
26810                           ac_lo= ac_hi=
26811                           break
26812                         fi
26813                         ac_mid=`expr 2 '*' $ac_mid + 1`
26814 fi
26815
26816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26817   done
26818 else
26819   echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26821
26822         cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828 $ac_includes_default
26829    typedef short ac__type_sizeof_;
26830 int
26831 main ()
26832 {
26833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26834 test_array [0] = 0
26835
26836   ;
26837   return 0;
26838 }
26839 _ACEOF
26840 rm -f conftest.$ac_objext
26841 if { (ac_try="$ac_compile"
26842 case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_compile") 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } && {
26854          test -z "$ac_c_werror_flag" ||
26855          test ! -s conftest.err
26856        } && test -s conftest.$ac_objext; then
26857   ac_hi=-1 ac_mid=-1
26858   while :; do
26859     cat >conftest.$ac_ext <<_ACEOF
26860 /* confdefs.h.  */
26861 _ACEOF
26862 cat confdefs.h >>conftest.$ac_ext
26863 cat >>conftest.$ac_ext <<_ACEOF
26864 /* end confdefs.h.  */
26865 $ac_includes_default
26866    typedef short ac__type_sizeof_;
26867 int
26868 main ()
26869 {
26870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26871 test_array [0] = 0
26872
26873   ;
26874   return 0;
26875 }
26876 _ACEOF
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881   *) ac_try_echo=$ac_try;;
26882 esac
26883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26884   (eval "$ac_compile") 2>conftest.er1
26885   ac_status=$?
26886   grep -v '^ *+' conftest.er1 >conftest.err
26887   rm -f conftest.er1
26888   cat conftest.err >&5
26889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890   (exit $ac_status); } && {
26891          test -z "$ac_c_werror_flag" ||
26892          test ! -s conftest.err
26893        } && test -s conftest.$ac_objext; then
26894   ac_lo=$ac_mid; break
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899         ac_hi=`expr '(' $ac_mid ')' - 1`
26900                         if test $ac_mid -le $ac_hi; then
26901                           ac_lo= ac_hi=
26902                           break
26903                         fi
26904                         ac_mid=`expr 2 '*' $ac_mid`
26905 fi
26906
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908   done
26909 else
26910   echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26912
26913         ac_lo= ac_hi=
26914 fi
26915
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 fi
26918
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920 # Binary search between lo and hi bounds.
26921 while test "x$ac_lo" != "x$ac_hi"; do
26922   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26923   cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 $ac_includes_default
26930    typedef short ac__type_sizeof_;
26931 int
26932 main ()
26933 {
26934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26935 test_array [0] = 0
26936
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948   (eval "$ac_compile") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_c_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest.$ac_objext; then
26958   ac_hi=$ac_mid
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963         ac_lo=`expr '(' $ac_mid ')' + 1`
26964 fi
26965
26966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 done
26968 case $ac_lo in
26969 ?*) ac_cv_sizeof_short=$ac_lo;;
26970 '') if test "$ac_cv_type_short" = yes; then
26971      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26972 See \`config.log' for more details." >&5
26973 echo "$as_me: error: cannot compute sizeof (short)
26974 See \`config.log' for more details." >&2;}
26975    { (exit 77); exit 77; }; }
26976    else
26977      ac_cv_sizeof_short=0
26978    fi ;;
26979 esac
26980 else
26981   cat >conftest.$ac_ext <<_ACEOF
26982 /* confdefs.h.  */
26983 _ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h.  */
26987 $ac_includes_default
26988    typedef short ac__type_sizeof_;
26989 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26990 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26991 #include <stdio.h>
26992 #include <stdlib.h>
26993 int
26994 main ()
26995 {
26996
26997   FILE *f = fopen ("conftest.val", "w");
26998   if (! f)
26999     return 1;
27000   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27001     {
27002       long int i = longval ();
27003       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27004         return 1;
27005       fprintf (f, "%ld\n", i);
27006     }
27007   else
27008     {
27009       unsigned long int i = ulongval ();
27010       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27011         return 1;
27012       fprintf (f, "%lu\n", i);
27013     }
27014   return ferror (f) || fclose (f) != 0;
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest$ac_exeext
27021 if { (ac_try="$ac_link"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_link") 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031   { (case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_try") 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; }; then
27040   ac_cv_sizeof_short=`cat conftest.val`
27041 else
27042   echo "$as_me: program exited with status $ac_status" >&5
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27045
27046 ( exit $ac_status )
27047 if test "$ac_cv_type_short" = yes; then
27048      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27049 See \`config.log' for more details." >&5
27050 echo "$as_me: error: cannot compute sizeof (short)
27051 See \`config.log' for more details." >&2;}
27052    { (exit 77); exit 77; }; }
27053    else
27054      ac_cv_sizeof_short=0
27055    fi
27056 fi
27057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27058 fi
27059 rm -f conftest.val
27060 fi
27061 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27062 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27063
27064
27065
27066 cat >>confdefs.h <<_ACEOF
27067 #define SIZEOF_SHORT $ac_cv_sizeof_short
27068 _ACEOF
27069
27070
27071 { echo "$as_me:$LINENO: checking for int" >&5
27072 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27073 if test "${ac_cv_type_int+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   cat >conftest.$ac_ext <<_ACEOF
27077 /* confdefs.h.  */
27078 _ACEOF
27079 cat confdefs.h >>conftest.$ac_ext
27080 cat >>conftest.$ac_ext <<_ACEOF
27081 /* end confdefs.h.  */
27082 $ac_includes_default
27083 typedef int ac__type_new_;
27084 int
27085 main ()
27086 {
27087 if ((ac__type_new_ *) 0)
27088   return 0;
27089 if (sizeof (ac__type_new_))
27090   return 0;
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext
27096 if { (ac_try="$ac_compile"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102   (eval "$ac_compile") 2>conftest.er1
27103   ac_status=$?
27104   grep -v '^ *+' conftest.er1 >conftest.err
27105   rm -f conftest.er1
27106   cat conftest.err >&5
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); } && {
27109          test -z "$ac_c_werror_flag" ||
27110          test ! -s conftest.err
27111        } && test -s conftest.$ac_objext; then
27112   ac_cv_type_int=yes
27113 else
27114   echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27116
27117         ac_cv_type_int=no
27118 fi
27119
27120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27121 fi
27122 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27123 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27124
27125 # The cast to long int works around a bug in the HP C Compiler
27126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27128 # This bug is HP SR number 8606223364.
27129 { echo "$as_me:$LINENO: checking size of int" >&5
27130 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27131 if test "${ac_cv_sizeof_int+set}" = set; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   if test "$cross_compiling" = yes; then
27135   # Depending upon the size, compute the lo and hi bounds.
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142 $ac_includes_default
27143    typedef int ac__type_sizeof_;
27144 int
27145 main ()
27146 {
27147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27148 test_array [0] = 0
27149
27150   ;
27151   return 0;
27152 }
27153 _ACEOF
27154 rm -f conftest.$ac_objext
27155 if { (ac_try="$ac_compile"
27156 case "(($ac_try" in
27157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158   *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161   (eval "$ac_compile") 2>conftest.er1
27162   ac_status=$?
27163   grep -v '^ *+' conftest.er1 >conftest.err
27164   rm -f conftest.er1
27165   cat conftest.err >&5
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); } && {
27168          test -z "$ac_c_werror_flag" ||
27169          test ! -s conftest.err
27170        } && test -s conftest.$ac_objext; then
27171   ac_lo=0 ac_mid=0
27172   while :; do
27173     cat >conftest.$ac_ext <<_ACEOF
27174 /* confdefs.h.  */
27175 _ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h.  */
27179 $ac_includes_default
27180    typedef int ac__type_sizeof_;
27181 int
27182 main ()
27183 {
27184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27185 test_array [0] = 0
27186
27187   ;
27188   return 0;
27189 }
27190 _ACEOF
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195   *) ac_try_echo=$ac_try;;
27196 esac
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198   (eval "$ac_compile") 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } && {
27205          test -z "$ac_c_werror_flag" ||
27206          test ! -s conftest.err
27207        } && test -s conftest.$ac_objext; then
27208   ac_hi=$ac_mid; break
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213         ac_lo=`expr $ac_mid + 1`
27214                         if test $ac_lo -le $ac_mid; then
27215                           ac_lo= ac_hi=
27216                           break
27217                         fi
27218                         ac_mid=`expr 2 '*' $ac_mid + 1`
27219 fi
27220
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222   done
27223 else
27224   echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27226
27227         cat >conftest.$ac_ext <<_ACEOF
27228 /* confdefs.h.  */
27229 _ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h.  */
27233 $ac_includes_default
27234    typedef int ac__type_sizeof_;
27235 int
27236 main ()
27237 {
27238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27239 test_array [0] = 0
27240
27241   ;
27242   return 0;
27243 }
27244 _ACEOF
27245 rm -f conftest.$ac_objext
27246 if { (ac_try="$ac_compile"
27247 case "(($ac_try" in
27248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249   *) ac_try_echo=$ac_try;;
27250 esac
27251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252   (eval "$ac_compile") 2>conftest.er1
27253   ac_status=$?
27254   grep -v '^ *+' conftest.er1 >conftest.err
27255   rm -f conftest.er1
27256   cat conftest.err >&5
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); } && {
27259          test -z "$ac_c_werror_flag" ||
27260          test ! -s conftest.err
27261        } && test -s conftest.$ac_objext; then
27262   ac_hi=-1 ac_mid=-1
27263   while :; do
27264     cat >conftest.$ac_ext <<_ACEOF
27265 /* confdefs.h.  */
27266 _ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h.  */
27270 $ac_includes_default
27271    typedef int ac__type_sizeof_;
27272 int
27273 main ()
27274 {
27275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27276 test_array [0] = 0
27277
27278   ;
27279   return 0;
27280 }
27281 _ACEOF
27282 rm -f conftest.$ac_objext
27283 if { (ac_try="$ac_compile"
27284 case "(($ac_try" in
27285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286   *) ac_try_echo=$ac_try;;
27287 esac
27288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289   (eval "$ac_compile") 2>conftest.er1
27290   ac_status=$?
27291   grep -v '^ *+' conftest.er1 >conftest.err
27292   rm -f conftest.er1
27293   cat conftest.err >&5
27294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295   (exit $ac_status); } && {
27296          test -z "$ac_c_werror_flag" ||
27297          test ! -s conftest.err
27298        } && test -s conftest.$ac_objext; then
27299   ac_lo=$ac_mid; break
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304         ac_hi=`expr '(' $ac_mid ')' - 1`
27305                         if test $ac_mid -le $ac_hi; then
27306                           ac_lo= ac_hi=
27307                           break
27308                         fi
27309                         ac_mid=`expr 2 '*' $ac_mid`
27310 fi
27311
27312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27313   done
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318         ac_lo= ac_hi=
27319 fi
27320
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27322 fi
27323
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325 # Binary search between lo and hi bounds.
27326 while test "x$ac_lo" != "x$ac_hi"; do
27327   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27328   cat >conftest.$ac_ext <<_ACEOF
27329 /* confdefs.h.  */
27330 _ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h.  */
27334 $ac_includes_default
27335    typedef int ac__type_sizeof_;
27336 int
27337 main ()
27338 {
27339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27340 test_array [0] = 0
27341
27342   ;
27343   return 0;
27344 }
27345 _ACEOF
27346 rm -f conftest.$ac_objext
27347 if { (ac_try="$ac_compile"
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_compile") 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); } && {
27360          test -z "$ac_c_werror_flag" ||
27361          test ! -s conftest.err
27362        } && test -s conftest.$ac_objext; then
27363   ac_hi=$ac_mid
27364 else
27365   echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27367
27368         ac_lo=`expr '(' $ac_mid ')' + 1`
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 done
27373 case $ac_lo in
27374 ?*) ac_cv_sizeof_int=$ac_lo;;
27375 '') if test "$ac_cv_type_int" = yes; then
27376      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (int)
27379 See \`config.log' for more details." >&2;}
27380    { (exit 77); exit 77; }; }
27381    else
27382      ac_cv_sizeof_int=0
27383    fi ;;
27384 esac
27385 else
27386   cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392 $ac_includes_default
27393    typedef int ac__type_sizeof_;
27394 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27395 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27396 #include <stdio.h>
27397 #include <stdlib.h>
27398 int
27399 main ()
27400 {
27401
27402   FILE *f = fopen ("conftest.val", "w");
27403   if (! f)
27404     return 1;
27405   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27406     {
27407       long int i = longval ();
27408       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27409         return 1;
27410       fprintf (f, "%ld\n", i);
27411     }
27412   else
27413     {
27414       unsigned long int i = ulongval ();
27415       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27416         return 1;
27417       fprintf (f, "%lu\n", i);
27418     }
27419   return ferror (f) || fclose (f) != 0;
27420
27421   ;
27422   return 0;
27423 }
27424 _ACEOF
27425 rm -f conftest$ac_exeext
27426 if { (ac_try="$ac_link"
27427 case "(($ac_try" in
27428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429   *) ac_try_echo=$ac_try;;
27430 esac
27431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27432   (eval "$ac_link") 2>&5
27433   ac_status=$?
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27436   { (case "(($ac_try" in
27437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438   *) ac_try_echo=$ac_try;;
27439 esac
27440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27441   (eval "$ac_try") 2>&5
27442   ac_status=$?
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); }; }; then
27445   ac_cv_sizeof_int=`cat conftest.val`
27446 else
27447   echo "$as_me: program exited with status $ac_status" >&5
27448 echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27450
27451 ( exit $ac_status )
27452 if test "$ac_cv_type_int" = yes; then
27453      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27454 See \`config.log' for more details." >&5
27455 echo "$as_me: error: cannot compute sizeof (int)
27456 See \`config.log' for more details." >&2;}
27457    { (exit 77); exit 77; }; }
27458    else
27459      ac_cv_sizeof_int=0
27460    fi
27461 fi
27462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27463 fi
27464 rm -f conftest.val
27465 fi
27466 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27468
27469
27470
27471 cat >>confdefs.h <<_ACEOF
27472 #define SIZEOF_INT $ac_cv_sizeof_int
27473 _ACEOF
27474
27475
27476 { echo "$as_me:$LINENO: checking for long" >&5
27477 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27478 if test "${ac_cv_type_long+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481   cat >conftest.$ac_ext <<_ACEOF
27482 /* confdefs.h.  */
27483 _ACEOF
27484 cat confdefs.h >>conftest.$ac_ext
27485 cat >>conftest.$ac_ext <<_ACEOF
27486 /* end confdefs.h.  */
27487 $ac_includes_default
27488 typedef long ac__type_new_;
27489 int
27490 main ()
27491 {
27492 if ((ac__type_new_ *) 0)
27493   return 0;
27494 if (sizeof (ac__type_new_))
27495   return 0;
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 rm -f conftest.$ac_objext
27501 if { (ac_try="$ac_compile"
27502 case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_compile") 2>conftest.er1
27508   ac_status=$?
27509   grep -v '^ *+' conftest.er1 >conftest.err
27510   rm -f conftest.er1
27511   cat conftest.err >&5
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); } && {
27514          test -z "$ac_c_werror_flag" ||
27515          test ! -s conftest.err
27516        } && test -s conftest.$ac_objext; then
27517   ac_cv_type_long=yes
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522         ac_cv_type_long=no
27523 fi
27524
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27526 fi
27527 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27528 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27529
27530 # The cast to long int works around a bug in the HP C Compiler
27531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533 # This bug is HP SR number 8606223364.
27534 { echo "$as_me:$LINENO: checking size of long" >&5
27535 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27536 if test "${ac_cv_sizeof_long+set}" = set; then
27537   echo $ECHO_N "(cached) $ECHO_C" >&6
27538 else
27539   if test "$cross_compiling" = yes; then
27540   # Depending upon the size, compute the lo and hi bounds.
27541 cat >conftest.$ac_ext <<_ACEOF
27542 /* confdefs.h.  */
27543 _ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h.  */
27547 $ac_includes_default
27548    typedef long ac__type_sizeof_;
27549 int
27550 main ()
27551 {
27552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27553 test_array [0] = 0
27554
27555   ;
27556   return 0;
27557 }
27558 _ACEOF
27559 rm -f conftest.$ac_objext
27560 if { (ac_try="$ac_compile"
27561 case "(($ac_try" in
27562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563   *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566   (eval "$ac_compile") 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } && {
27573          test -z "$ac_c_werror_flag" ||
27574          test ! -s conftest.err
27575        } && test -s conftest.$ac_objext; then
27576   ac_lo=0 ac_mid=0
27577   while :; do
27578     cat >conftest.$ac_ext <<_ACEOF
27579 /* confdefs.h.  */
27580 _ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h.  */
27584 $ac_includes_default
27585    typedef long ac__type_sizeof_;
27586 int
27587 main ()
27588 {
27589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27590 test_array [0] = 0
27591
27592   ;
27593   return 0;
27594 }
27595 _ACEOF
27596 rm -f conftest.$ac_objext
27597 if { (ac_try="$ac_compile"
27598 case "(($ac_try" in
27599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600   *) ac_try_echo=$ac_try;;
27601 esac
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603   (eval "$ac_compile") 2>conftest.er1
27604   ac_status=$?
27605   grep -v '^ *+' conftest.er1 >conftest.err
27606   rm -f conftest.er1
27607   cat conftest.err >&5
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); } && {
27610          test -z "$ac_c_werror_flag" ||
27611          test ! -s conftest.err
27612        } && test -s conftest.$ac_objext; then
27613   ac_hi=$ac_mid; break
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618         ac_lo=`expr $ac_mid + 1`
27619                         if test $ac_lo -le $ac_mid; then
27620                           ac_lo= ac_hi=
27621                           break
27622                         fi
27623                         ac_mid=`expr 2 '*' $ac_mid + 1`
27624 fi
27625
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627   done
27628 else
27629   echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27631
27632         cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 $ac_includes_default
27639    typedef long ac__type_sizeof_;
27640 int
27641 main ()
27642 {
27643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27644 test_array [0] = 0
27645
27646   ;
27647   return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext
27651 if { (ac_try="$ac_compile"
27652 case "(($ac_try" in
27653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654   *) ac_try_echo=$ac_try;;
27655 esac
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657   (eval "$ac_compile") 2>conftest.er1
27658   ac_status=$?
27659   grep -v '^ *+' conftest.er1 >conftest.err
27660   rm -f conftest.er1
27661   cat conftest.err >&5
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); } && {
27664          test -z "$ac_c_werror_flag" ||
27665          test ! -s conftest.err
27666        } && test -s conftest.$ac_objext; then
27667   ac_hi=-1 ac_mid=-1
27668   while :; do
27669     cat >conftest.$ac_ext <<_ACEOF
27670 /* confdefs.h.  */
27671 _ACEOF
27672 cat confdefs.h >>conftest.$ac_ext
27673 cat >>conftest.$ac_ext <<_ACEOF
27674 /* end confdefs.h.  */
27675 $ac_includes_default
27676    typedef long ac__type_sizeof_;
27677 int
27678 main ()
27679 {
27680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27681 test_array [0] = 0
27682
27683   ;
27684   return 0;
27685 }
27686 _ACEOF
27687 rm -f conftest.$ac_objext
27688 if { (ac_try="$ac_compile"
27689 case "(($ac_try" in
27690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27691   *) ac_try_echo=$ac_try;;
27692 esac
27693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27694   (eval "$ac_compile") 2>conftest.er1
27695   ac_status=$?
27696   grep -v '^ *+' conftest.er1 >conftest.err
27697   rm -f conftest.er1
27698   cat conftest.err >&5
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); } && {
27701          test -z "$ac_c_werror_flag" ||
27702          test ! -s conftest.err
27703        } && test -s conftest.$ac_objext; then
27704   ac_lo=$ac_mid; break
27705 else
27706   echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27708
27709         ac_hi=`expr '(' $ac_mid ')' - 1`
27710                         if test $ac_mid -le $ac_hi; then
27711                           ac_lo= ac_hi=
27712                           break
27713                         fi
27714                         ac_mid=`expr 2 '*' $ac_mid`
27715 fi
27716
27717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27718   done
27719 else
27720   echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27722
27723         ac_lo= ac_hi=
27724 fi
27725
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 fi
27728
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 # Binary search between lo and hi bounds.
27731 while test "x$ac_lo" != "x$ac_hi"; do
27732   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27733   cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 $ac_includes_default
27740    typedef long ac__type_sizeof_;
27741 int
27742 main ()
27743 {
27744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27745 test_array [0] = 0
27746
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext
27752 if { (ac_try="$ac_compile"
27753 case "(($ac_try" in
27754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755   *) ac_try_echo=$ac_try;;
27756 esac
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758   (eval "$ac_compile") 2>conftest.er1
27759   ac_status=$?
27760   grep -v '^ *+' conftest.er1 >conftest.err
27761   rm -f conftest.er1
27762   cat conftest.err >&5
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); } && {
27765          test -z "$ac_c_werror_flag" ||
27766          test ! -s conftest.err
27767        } && test -s conftest.$ac_objext; then
27768   ac_hi=$ac_mid
27769 else
27770   echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27772
27773         ac_lo=`expr '(' $ac_mid ')' + 1`
27774 fi
27775
27776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27777 done
27778 case $ac_lo in
27779 ?*) ac_cv_sizeof_long=$ac_lo;;
27780 '') if test "$ac_cv_type_long" = yes; then
27781      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27782 See \`config.log' for more details." >&5
27783 echo "$as_me: error: cannot compute sizeof (long)
27784 See \`config.log' for more details." >&2;}
27785    { (exit 77); exit 77; }; }
27786    else
27787      ac_cv_sizeof_long=0
27788    fi ;;
27789 esac
27790 else
27791   cat >conftest.$ac_ext <<_ACEOF
27792 /* confdefs.h.  */
27793 _ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h.  */
27797 $ac_includes_default
27798    typedef long ac__type_sizeof_;
27799 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27800 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27801 #include <stdio.h>
27802 #include <stdlib.h>
27803 int
27804 main ()
27805 {
27806
27807   FILE *f = fopen ("conftest.val", "w");
27808   if (! f)
27809     return 1;
27810   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27811     {
27812       long int i = longval ();
27813       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27814         return 1;
27815       fprintf (f, "%ld\n", i);
27816     }
27817   else
27818     {
27819       unsigned long int i = ulongval ();
27820       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27821         return 1;
27822       fprintf (f, "%lu\n", i);
27823     }
27824   return ferror (f) || fclose (f) != 0;
27825
27826   ;
27827   return 0;
27828 }
27829 _ACEOF
27830 rm -f conftest$ac_exeext
27831 if { (ac_try="$ac_link"
27832 case "(($ac_try" in
27833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834   *) ac_try_echo=$ac_try;;
27835 esac
27836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27837   (eval "$ac_link") 2>&5
27838   ac_status=$?
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27841   { (case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27846   (eval "$ac_try") 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; }; then
27850   ac_cv_sizeof_long=`cat conftest.val`
27851 else
27852   echo "$as_me: program exited with status $ac_status" >&5
27853 echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27855
27856 ( exit $ac_status )
27857 if test "$ac_cv_type_long" = yes; then
27858      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27859 See \`config.log' for more details." >&5
27860 echo "$as_me: error: cannot compute sizeof (long)
27861 See \`config.log' for more details." >&2;}
27862    { (exit 77); exit 77; }; }
27863    else
27864      ac_cv_sizeof_long=0
27865    fi
27866 fi
27867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27868 fi
27869 rm -f conftest.val
27870 fi
27871 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27872 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27873
27874
27875
27876 cat >>confdefs.h <<_ACEOF
27877 #define SIZEOF_LONG $ac_cv_sizeof_long
27878 _ACEOF
27879
27880
27881 { echo "$as_me:$LINENO: checking for size_t" >&5
27882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27883 if test "${ac_cv_type_size_t+set}" = set; then
27884   echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886   cat >conftest.$ac_ext <<_ACEOF
27887 /* confdefs.h.  */
27888 _ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h.  */
27892 $ac_includes_default
27893 typedef size_t ac__type_new_;
27894 int
27895 main ()
27896 {
27897 if ((ac__type_new_ *) 0)
27898   return 0;
27899 if (sizeof (ac__type_new_))
27900   return 0;
27901   ;
27902   return 0;
27903 }
27904 _ACEOF
27905 rm -f conftest.$ac_objext
27906 if { (ac_try="$ac_compile"
27907 case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912   (eval "$ac_compile") 2>conftest.er1
27913   ac_status=$?
27914   grep -v '^ *+' conftest.er1 >conftest.err
27915   rm -f conftest.er1
27916   cat conftest.err >&5
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); } && {
27919          test -z "$ac_c_werror_flag" ||
27920          test ! -s conftest.err
27921        } && test -s conftest.$ac_objext; then
27922   ac_cv_type_size_t=yes
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927         ac_cv_type_size_t=no
27928 fi
27929
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931 fi
27932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27934
27935 # The cast to long int works around a bug in the HP C Compiler
27936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27938 # This bug is HP SR number 8606223364.
27939 { echo "$as_me:$LINENO: checking size of size_t" >&5
27940 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27941 if test "${ac_cv_sizeof_size_t+set}" = set; then
27942   echo $ECHO_N "(cached) $ECHO_C" >&6
27943 else
27944   if test "$cross_compiling" = yes; then
27945   # Depending upon the size, compute the lo and hi bounds.
27946 cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952 $ac_includes_default
27953    typedef size_t ac__type_sizeof_;
27954 int
27955 main ()
27956 {
27957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27958 test_array [0] = 0
27959
27960   ;
27961   return 0;
27962 }
27963 _ACEOF
27964 rm -f conftest.$ac_objext
27965 if { (ac_try="$ac_compile"
27966 case "(($ac_try" in
27967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968   *) ac_try_echo=$ac_try;;
27969 esac
27970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971   (eval "$ac_compile") 2>conftest.er1
27972   ac_status=$?
27973   grep -v '^ *+' conftest.er1 >conftest.err
27974   rm -f conftest.er1
27975   cat conftest.err >&5
27976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977   (exit $ac_status); } && {
27978          test -z "$ac_c_werror_flag" ||
27979          test ! -s conftest.err
27980        } && test -s conftest.$ac_objext; then
27981   ac_lo=0 ac_mid=0
27982   while :; do
27983     cat >conftest.$ac_ext <<_ACEOF
27984 /* confdefs.h.  */
27985 _ACEOF
27986 cat confdefs.h >>conftest.$ac_ext
27987 cat >>conftest.$ac_ext <<_ACEOF
27988 /* end confdefs.h.  */
27989 $ac_includes_default
27990    typedef size_t ac__type_sizeof_;
27991 int
27992 main ()
27993 {
27994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27995 test_array [0] = 0
27996
27997   ;
27998   return 0;
27999 }
28000 _ACEOF
28001 rm -f conftest.$ac_objext
28002 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28009   ac_status=$?
28010   grep -v '^ *+' conftest.er1 >conftest.err
28011   rm -f conftest.er1
28012   cat conftest.err >&5
28013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014   (exit $ac_status); } && {
28015          test -z "$ac_c_werror_flag" ||
28016          test ! -s conftest.err
28017        } && test -s conftest.$ac_objext; then
28018   ac_hi=$ac_mid; break
28019 else
28020   echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28022
28023         ac_lo=`expr $ac_mid + 1`
28024                         if test $ac_lo -le $ac_mid; then
28025                           ac_lo= ac_hi=
28026                           break
28027                         fi
28028                         ac_mid=`expr 2 '*' $ac_mid + 1`
28029 fi
28030
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28032   done
28033 else
28034   echo "$as_me: failed program was:" >&5
28035 sed 's/^/| /' conftest.$ac_ext >&5
28036
28037         cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043 $ac_includes_default
28044    typedef size_t ac__type_sizeof_;
28045 int
28046 main ()
28047 {
28048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28049 test_array [0] = 0
28050
28051   ;
28052   return 0;
28053 }
28054 _ACEOF
28055 rm -f conftest.$ac_objext
28056 if { (ac_try="$ac_compile"
28057 case "(($ac_try" in
28058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059   *) ac_try_echo=$ac_try;;
28060 esac
28061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062   (eval "$ac_compile") 2>conftest.er1
28063   ac_status=$?
28064   grep -v '^ *+' conftest.er1 >conftest.err
28065   rm -f conftest.er1
28066   cat conftest.err >&5
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); } && {
28069          test -z "$ac_c_werror_flag" ||
28070          test ! -s conftest.err
28071        } && test -s conftest.$ac_objext; then
28072   ac_hi=-1 ac_mid=-1
28073   while :; do
28074     cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 $ac_includes_default
28081    typedef size_t ac__type_sizeof_;
28082 int
28083 main ()
28084 {
28085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28086 test_array [0] = 0
28087
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext
28093 if { (ac_try="$ac_compile"
28094 case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_compile") 2>conftest.er1
28100   ac_status=$?
28101   grep -v '^ *+' conftest.er1 >conftest.err
28102   rm -f conftest.er1
28103   cat conftest.err >&5
28104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105   (exit $ac_status); } && {
28106          test -z "$ac_c_werror_flag" ||
28107          test ! -s conftest.err
28108        } && test -s conftest.$ac_objext; then
28109   ac_lo=$ac_mid; break
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114         ac_hi=`expr '(' $ac_mid ')' - 1`
28115                         if test $ac_mid -le $ac_hi; then
28116                           ac_lo= ac_hi=
28117                           break
28118                         fi
28119                         ac_mid=`expr 2 '*' $ac_mid`
28120 fi
28121
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28123   done
28124 else
28125   echo "$as_me: failed program was:" >&5
28126 sed 's/^/| /' conftest.$ac_ext >&5
28127
28128         ac_lo= ac_hi=
28129 fi
28130
28131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 fi
28133
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135 # Binary search between lo and hi bounds.
28136 while test "x$ac_lo" != "x$ac_hi"; do
28137   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28138   cat >conftest.$ac_ext <<_ACEOF
28139 /* confdefs.h.  */
28140 _ACEOF
28141 cat confdefs.h >>conftest.$ac_ext
28142 cat >>conftest.$ac_ext <<_ACEOF
28143 /* end confdefs.h.  */
28144 $ac_includes_default
28145    typedef size_t ac__type_sizeof_;
28146 int
28147 main ()
28148 {
28149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28150 test_array [0] = 0
28151
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 rm -f conftest.$ac_objext
28157 if { (ac_try="$ac_compile"
28158 case "(($ac_try" in
28159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160   *) ac_try_echo=$ac_try;;
28161 esac
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163   (eval "$ac_compile") 2>conftest.er1
28164   ac_status=$?
28165   grep -v '^ *+' conftest.er1 >conftest.err
28166   rm -f conftest.er1
28167   cat conftest.err >&5
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } && {
28170          test -z "$ac_c_werror_flag" ||
28171          test ! -s conftest.err
28172        } && test -s conftest.$ac_objext; then
28173   ac_hi=$ac_mid
28174 else
28175   echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178         ac_lo=`expr '(' $ac_mid ')' + 1`
28179 fi
28180
28181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28182 done
28183 case $ac_lo in
28184 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28185 '') if test "$ac_cv_type_size_t" = yes; then
28186      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28187 See \`config.log' for more details." >&5
28188 echo "$as_me: error: cannot compute sizeof (size_t)
28189 See \`config.log' for more details." >&2;}
28190    { (exit 77); exit 77; }; }
28191    else
28192      ac_cv_sizeof_size_t=0
28193    fi ;;
28194 esac
28195 else
28196   cat >conftest.$ac_ext <<_ACEOF
28197 /* confdefs.h.  */
28198 _ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h.  */
28202 $ac_includes_default
28203    typedef size_t ac__type_sizeof_;
28204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28206 #include <stdio.h>
28207 #include <stdlib.h>
28208 int
28209 main ()
28210 {
28211
28212   FILE *f = fopen ("conftest.val", "w");
28213   if (! f)
28214     return 1;
28215   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28216     {
28217       long int i = longval ();
28218       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28219         return 1;
28220       fprintf (f, "%ld\n", i);
28221     }
28222   else
28223     {
28224       unsigned long int i = ulongval ();
28225       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28226         return 1;
28227       fprintf (f, "%lu\n", i);
28228     }
28229   return ferror (f) || fclose (f) != 0;
28230
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest$ac_exeext
28236 if { (ac_try="$ac_link"
28237 case "(($ac_try" in
28238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239   *) ac_try_echo=$ac_try;;
28240 esac
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242   (eval "$ac_link") 2>&5
28243   ac_status=$?
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28246   { (case "(($ac_try" in
28247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248   *) ac_try_echo=$ac_try;;
28249 esac
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251   (eval "$ac_try") 2>&5
28252   ac_status=$?
28253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); }; }; then
28255   ac_cv_sizeof_size_t=`cat conftest.val`
28256 else
28257   echo "$as_me: program exited with status $ac_status" >&5
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261 ( exit $ac_status )
28262 if test "$ac_cv_type_size_t" = yes; then
28263      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28264 See \`config.log' for more details." >&5
28265 echo "$as_me: error: cannot compute sizeof (size_t)
28266 See \`config.log' for more details." >&2;}
28267    { (exit 77); exit 77; }; }
28268    else
28269      ac_cv_sizeof_size_t=0
28270    fi
28271 fi
28272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28273 fi
28274 rm -f conftest.val
28275 fi
28276 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28277 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28278
28279
28280
28281 cat >>confdefs.h <<_ACEOF
28282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28283 _ACEOF
28284
28285
28286 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28287 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28288 if test "${ac_cv_type_socklen_t+set}" = set; then
28289   echo $ECHO_N "(cached) $ECHO_C" >&6
28290 else
28291   cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297 $ac_includes_default
28298 typedef socklen_t ac__type_new_;
28299 int
28300 main ()
28301 {
28302 if ((ac__type_new_ *) 0)
28303   return 0;
28304 if (sizeof (ac__type_new_))
28305   return 0;
28306   ;
28307   return 0;
28308 }
28309 _ACEOF
28310 rm -f conftest.$ac_objext
28311 if { (ac_try="$ac_compile"
28312 case "(($ac_try" in
28313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314   *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317   (eval "$ac_compile") 2>conftest.er1
28318   ac_status=$?
28319   grep -v '^ *+' conftest.er1 >conftest.err
28320   rm -f conftest.er1
28321   cat conftest.err >&5
28322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323   (exit $ac_status); } && {
28324          test -z "$ac_c_werror_flag" ||
28325          test ! -s conftest.err
28326        } && test -s conftest.$ac_objext; then
28327   ac_cv_type_socklen_t=yes
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332         ac_cv_type_socklen_t=no
28333 fi
28334
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336 fi
28337 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28338 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28339
28340 # The cast to long int works around a bug in the HP C Compiler
28341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28343 # This bug is HP SR number 8606223364.
28344 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28345 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28346 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28347   echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349   if test "$cross_compiling" = yes; then
28350   # Depending upon the size, compute the lo and hi bounds.
28351 cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h.  */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h.  */
28357 $ac_includes_default
28358    typedef socklen_t ac__type_sizeof_;
28359 int
28360 main ()
28361 {
28362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28363 test_array [0] = 0
28364
28365   ;
28366   return 0;
28367 }
28368 _ACEOF
28369 rm -f conftest.$ac_objext
28370 if { (ac_try="$ac_compile"
28371 case "(($ac_try" in
28372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373   *) ac_try_echo=$ac_try;;
28374 esac
28375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376   (eval "$ac_compile") 2>conftest.er1
28377   ac_status=$?
28378   grep -v '^ *+' conftest.er1 >conftest.err
28379   rm -f conftest.er1
28380   cat conftest.err >&5
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); } && {
28383          test -z "$ac_c_werror_flag" ||
28384          test ! -s conftest.err
28385        } && test -s conftest.$ac_objext; then
28386   ac_lo=0 ac_mid=0
28387   while :; do
28388     cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394 $ac_includes_default
28395    typedef socklen_t ac__type_sizeof_;
28396 int
28397 main ()
28398 {
28399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28400 test_array [0] = 0
28401
28402   ;
28403   return 0;
28404 }
28405 _ACEOF
28406 rm -f conftest.$ac_objext
28407 if { (ac_try="$ac_compile"
28408 case "(($ac_try" in
28409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410   *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413   (eval "$ac_compile") 2>conftest.er1
28414   ac_status=$?
28415   grep -v '^ *+' conftest.er1 >conftest.err
28416   rm -f conftest.er1
28417   cat conftest.err >&5
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); } && {
28420          test -z "$ac_c_werror_flag" ||
28421          test ! -s conftest.err
28422        } && test -s conftest.$ac_objext; then
28423   ac_hi=$ac_mid; break
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         ac_lo=`expr $ac_mid + 1`
28429                         if test $ac_lo -le $ac_mid; then
28430                           ac_lo= ac_hi=
28431                           break
28432                         fi
28433                         ac_mid=`expr 2 '*' $ac_mid + 1`
28434 fi
28435
28436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28437   done
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442         cat >conftest.$ac_ext <<_ACEOF
28443 /* confdefs.h.  */
28444 _ACEOF
28445 cat confdefs.h >>conftest.$ac_ext
28446 cat >>conftest.$ac_ext <<_ACEOF
28447 /* end confdefs.h.  */
28448 $ac_includes_default
28449    typedef socklen_t ac__type_sizeof_;
28450 int
28451 main ()
28452 {
28453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28454 test_array [0] = 0
28455
28456   ;
28457   return 0;
28458 }
28459 _ACEOF
28460 rm -f conftest.$ac_objext
28461 if { (ac_try="$ac_compile"
28462 case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_compile") 2>conftest.er1
28468   ac_status=$?
28469   grep -v '^ *+' conftest.er1 >conftest.err
28470   rm -f conftest.er1
28471   cat conftest.err >&5
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); } && {
28474          test -z "$ac_c_werror_flag" ||
28475          test ! -s conftest.err
28476        } && test -s conftest.$ac_objext; then
28477   ac_hi=-1 ac_mid=-1
28478   while :; do
28479     cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h.  */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h.  */
28485 $ac_includes_default
28486    typedef socklen_t ac__type_sizeof_;
28487 int
28488 main ()
28489 {
28490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28491 test_array [0] = 0
28492
28493   ;
28494   return 0;
28495 }
28496 _ACEOF
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501   *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504   (eval "$ac_compile") 2>conftest.er1
28505   ac_status=$?
28506   grep -v '^ *+' conftest.er1 >conftest.err
28507   rm -f conftest.er1
28508   cat conftest.err >&5
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); } && {
28511          test -z "$ac_c_werror_flag" ||
28512          test ! -s conftest.err
28513        } && test -s conftest.$ac_objext; then
28514   ac_lo=$ac_mid; break
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519         ac_hi=`expr '(' $ac_mid ')' - 1`
28520                         if test $ac_mid -le $ac_hi; then
28521                           ac_lo= ac_hi=
28522                           break
28523                         fi
28524                         ac_mid=`expr 2 '*' $ac_mid`
28525 fi
28526
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528   done
28529 else
28530   echo "$as_me: failed program was:" >&5
28531 sed 's/^/| /' conftest.$ac_ext >&5
28532
28533         ac_lo= ac_hi=
28534 fi
28535
28536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28537 fi
28538
28539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28540 # Binary search between lo and hi bounds.
28541 while test "x$ac_lo" != "x$ac_hi"; do
28542   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28543   cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 $ac_includes_default
28550    typedef socklen_t ac__type_sizeof_;
28551 int
28552 main ()
28553 {
28554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28555 test_array [0] = 0
28556
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext
28562 if { (ac_try="$ac_compile"
28563 case "(($ac_try" in
28564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565   *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568   (eval "$ac_compile") 2>conftest.er1
28569   ac_status=$?
28570   grep -v '^ *+' conftest.er1 >conftest.err
28571   rm -f conftest.er1
28572   cat conftest.err >&5
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); } && {
28575          test -z "$ac_c_werror_flag" ||
28576          test ! -s conftest.err
28577        } && test -s conftest.$ac_objext; then
28578   ac_hi=$ac_mid
28579 else
28580   echo "$as_me: failed program was:" >&5
28581 sed 's/^/| /' conftest.$ac_ext >&5
28582
28583         ac_lo=`expr '(' $ac_mid ')' + 1`
28584 fi
28585
28586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28587 done
28588 case $ac_lo in
28589 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28590 '') if test "$ac_cv_type_socklen_t" = yes; then
28591      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28592 See \`config.log' for more details." >&5
28593 echo "$as_me: error: cannot compute sizeof (socklen_t)
28594 See \`config.log' for more details." >&2;}
28595    { (exit 77); exit 77; }; }
28596    else
28597      ac_cv_sizeof_socklen_t=0
28598    fi ;;
28599 esac
28600 else
28601   cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h.  */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h.  */
28607 $ac_includes_default
28608    typedef socklen_t ac__type_sizeof_;
28609 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28610 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28611 #include <stdio.h>
28612 #include <stdlib.h>
28613 int
28614 main ()
28615 {
28616
28617   FILE *f = fopen ("conftest.val", "w");
28618   if (! f)
28619     return 1;
28620   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28621     {
28622       long int i = longval ();
28623       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28624         return 1;
28625       fprintf (f, "%ld\n", i);
28626     }
28627   else
28628     {
28629       unsigned long int i = ulongval ();
28630       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28631         return 1;
28632       fprintf (f, "%lu\n", i);
28633     }
28634   return ferror (f) || fclose (f) != 0;
28635
28636   ;
28637   return 0;
28638 }
28639 _ACEOF
28640 rm -f conftest$ac_exeext
28641 if { (ac_try="$ac_link"
28642 case "(($ac_try" in
28643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644   *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647   (eval "$ac_link") 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28651   { (case "(($ac_try" in
28652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653   *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656   (eval "$ac_try") 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; }; then
28660   ac_cv_sizeof_socklen_t=`cat conftest.val`
28661 else
28662   echo "$as_me: program exited with status $ac_status" >&5
28663 echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28665
28666 ( exit $ac_status )
28667 if test "$ac_cv_type_socklen_t" = yes; then
28668      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28669 See \`config.log' for more details." >&5
28670 echo "$as_me: error: cannot compute sizeof (socklen_t)
28671 See \`config.log' for more details." >&2;}
28672    { (exit 77); exit 77; }; }
28673    else
28674      ac_cv_sizeof_socklen_t=0
28675    fi
28676 fi
28677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28678 fi
28679 rm -f conftest.val
28680 fi
28681 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28682 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28683
28684
28685
28686 cat >>confdefs.h <<_ACEOF
28687 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28688 _ACEOF
28689
28690
28691
28692
28693
28694 cat >>confdefs.h <<_ACEOF
28695 #define NFS_STATEDIR "$statedir"
28696 _ACEOF
28697
28698
28699 if test "x$cross_compiling" = "xno"; then
28700         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28701         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28702         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28703         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28704 else
28705         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28706         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28707         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28708         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28709 fi
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721 case $host in
28722   alpha*)
28723     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28724   *)
28725     ARCHFLAGS="" ;;
28726 esac
28727
28728 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28729
28730 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28731
28732 AM_CFLAGS="$my_am_cflags"
28733
28734
28735 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28736 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28737
28738
28739 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/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28740
28741 cat >confcache <<\_ACEOF
28742 # This file is a shell script that caches the results of configure
28743 # tests run on this system so they can be shared between configure
28744 # scripts and configure runs, see configure's option --config-cache.
28745 # It is not useful on other systems.  If it contains results you don't
28746 # want to keep, you may remove or edit it.
28747 #
28748 # config.status only pays attention to the cache file if you give it
28749 # the --recheck option to rerun configure.
28750 #
28751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28753 # following values.
28754
28755 _ACEOF
28756
28757 # The following way of writing the cache mishandles newlines in values,
28758 # but we know of no workaround that is simple, portable, and efficient.
28759 # So, we kill variables containing newlines.
28760 # Ultrix sh set writes to stderr and can't be redirected directly,
28761 # and sets the high bit in the cache file unless we assign to the vars.
28762 (
28763   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28764     eval ac_val=\$$ac_var
28765     case $ac_val in #(
28766     *${as_nl}*)
28767       case $ac_var in #(
28768       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28769 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28770       esac
28771       case $ac_var in #(
28772       _ | IFS | as_nl) ;; #(
28773       *) $as_unset $ac_var ;;
28774       esac ;;
28775     esac
28776   done
28777
28778   (set) 2>&1 |
28779     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28780     *${as_nl}ac_space=\ *)
28781       # `set' does not quote correctly, so add quotes (double-quote
28782       # substitution turns \\\\ into \\, and sed turns \\ into \).
28783       sed -n \
28784         "s/'/'\\\\''/g;
28785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28786       ;; #(
28787     *)
28788       # `set' quotes correctly as required by POSIX, so do not add quotes.
28789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28790       ;;
28791     esac |
28792     sort
28793 ) |
28794   sed '
28795      /^ac_cv_env_/b end
28796      t clear
28797      :clear
28798      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28799      t end
28800      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28801      :end' >>confcache
28802 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28803   if test -w "$cache_file"; then
28804     test "x$cache_file" != "x/dev/null" &&
28805       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28806 echo "$as_me: updating cache $cache_file" >&6;}
28807     cat confcache >$cache_file
28808   else
28809     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28810 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28811   fi
28812 fi
28813 rm -f confcache
28814
28815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28816 # Let make expand exec_prefix.
28817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28818
28819 DEFS=-DHAVE_CONFIG_H
28820
28821 ac_libobjs=
28822 ac_ltlibobjs=
28823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28824   # 1. Remove the extension, and $U if already installed.
28825   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28826   ac_i=`echo "$ac_i" | sed "$ac_script"`
28827   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28828   #    will be set to the directory where LIBOBJS objects are built.
28829   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28830   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28831 done
28832 LIBOBJS=$ac_libobjs
28833
28834 LTLIBOBJS=$ac_ltlibobjs
28835
28836
28837 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28838   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&5
28840 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&2;}
28842    { (exit 1); exit 1; }; }
28843 fi
28844 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28845   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&5
28847 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&2;}
28849    { (exit 1); exit 1; }; }
28850 fi
28851 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28852   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&5
28854 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28855 Usually this means the macro was only invoked conditionally." >&2;}
28856    { (exit 1); exit 1; }; }
28857 fi
28858 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28859   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&5
28861 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28862 Usually this means the macro was only invoked conditionally." >&2;}
28863    { (exit 1); exit 1; }; }
28864 fi
28865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28866   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&5
28868 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28869 Usually this means the macro was only invoked conditionally." >&2;}
28870    { (exit 1); exit 1; }; }
28871 fi
28872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28873   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&5
28875 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28876 Usually this means the macro was only invoked conditionally." >&2;}
28877    { (exit 1); exit 1; }; }
28878 fi
28879 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28880   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&5
28882 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28883 Usually this means the macro was only invoked conditionally." >&2;}
28884    { (exit 1); exit 1; }; }
28885 fi
28886 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28887   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&5
28889 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28890 Usually this means the macro was only invoked conditionally." >&2;}
28891    { (exit 1); exit 1; }; }
28892 fi
28893
28894 : ${CONFIG_STATUS=./config.status}
28895 ac_clean_files_save=$ac_clean_files
28896 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28897 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28898 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28899 cat >$CONFIG_STATUS <<_ACEOF
28900 #! $SHELL
28901 # Generated by $as_me.
28902 # Run this file to recreate the current configuration.
28903 # Compiler output produced by configure, useful for debugging
28904 # configure, is in config.log if it exists.
28905
28906 debug=false
28907 ac_cs_recheck=false
28908 ac_cs_silent=false
28909 SHELL=\${CONFIG_SHELL-$SHELL}
28910 _ACEOF
28911
28912 cat >>$CONFIG_STATUS <<\_ACEOF
28913 ## --------------------- ##
28914 ## M4sh Initialization.  ##
28915 ## --------------------- ##
28916
28917 # Be more Bourne compatible
28918 DUALCASE=1; export DUALCASE # for MKS sh
28919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28920   emulate sh
28921   NULLCMD=:
28922   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28923   # is contrary to our usage.  Disable this feature.
28924   alias -g '${1+"$@"}'='"$@"'
28925   setopt NO_GLOB_SUBST
28926 else
28927   case `(set -o) 2>/dev/null` in
28928   *posix*) set -o posix ;;
28929 esac
28930
28931 fi
28932
28933
28934
28935
28936 # PATH needs CR
28937 # Avoid depending upon Character Ranges.
28938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28941 as_cr_digits='0123456789'
28942 as_cr_alnum=$as_cr_Letters$as_cr_digits
28943
28944 # The user is always right.
28945 if test "${PATH_SEPARATOR+set}" != set; then
28946   echo "#! /bin/sh" >conf$$.sh
28947   echo  "exit 0"   >>conf$$.sh
28948   chmod +x conf$$.sh
28949   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28950     PATH_SEPARATOR=';'
28951   else
28952     PATH_SEPARATOR=:
28953   fi
28954   rm -f conf$$.sh
28955 fi
28956
28957 # Support unset when possible.
28958 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28959   as_unset=unset
28960 else
28961   as_unset=false
28962 fi
28963
28964
28965 # IFS
28966 # We need space, tab and new line, in precisely that order.  Quoting is
28967 # there to prevent editors from complaining about space-tab.
28968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28969 # splitting by setting IFS to empty value.)
28970 as_nl='
28971 '
28972 IFS=" ""        $as_nl"
28973
28974 # Find who we are.  Look in the path if we contain no directory separator.
28975 case $0 in
28976   *[\\/]* ) as_myself=$0 ;;
28977   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978 for as_dir in $PATH
28979 do
28980   IFS=$as_save_IFS
28981   test -z "$as_dir" && as_dir=.
28982   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28983 done
28984 IFS=$as_save_IFS
28985
28986      ;;
28987 esac
28988 # We did not find ourselves, most probably we were run as `sh COMMAND'
28989 # in which case we are not to be found in the path.
28990 if test "x$as_myself" = x; then
28991   as_myself=$0
28992 fi
28993 if test ! -f "$as_myself"; then
28994   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28995   { (exit 1); exit 1; }
28996 fi
28997
28998 # Work around bugs in pre-3.0 UWIN ksh.
28999 for as_var in ENV MAIL MAILPATH
29000 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29001 done
29002 PS1='$ '
29003 PS2='> '
29004 PS4='+ '
29005
29006 # NLS nuisances.
29007 for as_var in \
29008   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29009   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29010   LC_TELEPHONE LC_TIME
29011 do
29012   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29013     eval $as_var=C; export $as_var
29014   else
29015     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29016   fi
29017 done
29018
29019 # Required to use basename.
29020 if expr a : '\(a\)' >/dev/null 2>&1 &&
29021    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29022   as_expr=expr
29023 else
29024   as_expr=false
29025 fi
29026
29027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29028   as_basename=basename
29029 else
29030   as_basename=false
29031 fi
29032
29033
29034 # Name of the executable.
29035 as_me=`$as_basename -- "$0" ||
29036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29037          X"$0" : 'X\(//\)$' \| \
29038          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29039 echo X/"$0" |
29040     sed '/^.*\/\([^/][^/]*\)\/*$/{
29041             s//\1/
29042             q
29043           }
29044           /^X\/\(\/\/\)$/{
29045             s//\1/
29046             q
29047           }
29048           /^X\/\(\/\).*/{
29049             s//\1/
29050             q
29051           }
29052           s/.*/./; q'`
29053
29054 # CDPATH.
29055 $as_unset CDPATH
29056
29057
29058
29059   as_lineno_1=$LINENO
29060   as_lineno_2=$LINENO
29061   test "x$as_lineno_1" != "x$as_lineno_2" &&
29062   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29063
29064   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29065   # uniformly replaced by the line number.  The first 'sed' inserts a
29066   # line-number line after each line using $LINENO; the second 'sed'
29067   # does the real work.  The second script uses 'N' to pair each
29068   # line-number line with the line containing $LINENO, and appends
29069   # trailing '-' during substitution so that $LINENO is not a special
29070   # case at line end.
29071   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29072   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29073   # E. McMahon (1931-1989) for sed's syntax.  :-)
29074   sed -n '
29075     p
29076     /[$]LINENO/=
29077   ' <$as_myself |
29078     sed '
29079       s/[$]LINENO.*/&-/
29080       t lineno
29081       b
29082       :lineno
29083       N
29084       :loop
29085       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29086       t loop
29087       s/-\n.*//
29088     ' >$as_me.lineno &&
29089   chmod +x "$as_me.lineno" ||
29090     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29091    { (exit 1); exit 1; }; }
29092
29093   # Don't try to exec as it changes $[0], causing all sort of problems
29094   # (the dirname of $[0] is not the place where we might find the
29095   # original and so on.  Autoconf is especially sensitive to this).
29096   . "./$as_me.lineno"
29097   # Exit status is that of the last command.
29098   exit
29099 }
29100
29101
29102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29103   as_dirname=dirname
29104 else
29105   as_dirname=false
29106 fi
29107
29108 ECHO_C= ECHO_N= ECHO_T=
29109 case `echo -n x` in
29110 -n*)
29111   case `echo 'x\c'` in
29112   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29113   *)   ECHO_C='\c';;
29114   esac;;
29115 *)
29116   ECHO_N='-n';;
29117 esac
29118
29119 if expr a : '\(a\)' >/dev/null 2>&1 &&
29120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29121   as_expr=expr
29122 else
29123   as_expr=false
29124 fi
29125
29126 rm -f conf$$ conf$$.exe conf$$.file
29127 if test -d conf$$.dir; then
29128   rm -f conf$$.dir/conf$$.file
29129 else
29130   rm -f conf$$.dir
29131   mkdir conf$$.dir
29132 fi
29133 echo >conf$$.file
29134 if ln -s conf$$.file conf$$ 2>/dev/null; then
29135   as_ln_s='ln -s'
29136   # ... but there are two gotchas:
29137   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29138   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29139   # In both cases, we have to default to `cp -p'.
29140   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29141     as_ln_s='cp -p'
29142 elif ln conf$$.file conf$$ 2>/dev/null; then
29143   as_ln_s=ln
29144 else
29145   as_ln_s='cp -p'
29146 fi
29147 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29148 rmdir conf$$.dir 2>/dev/null
29149
29150 if mkdir -p . 2>/dev/null; then
29151   as_mkdir_p=:
29152 else
29153   test -d ./-p && rmdir ./-p
29154   as_mkdir_p=false
29155 fi
29156
29157 if test -x / >/dev/null 2>&1; then
29158   as_test_x='test -x'
29159 else
29160   if ls -dL / >/dev/null 2>&1; then
29161     as_ls_L_option=L
29162   else
29163     as_ls_L_option=
29164   fi
29165   as_test_x='
29166     eval sh -c '\''
29167       if test -d "$1"; then
29168         test -d "$1/.";
29169       else
29170         case $1 in
29171         -*)set "./$1";;
29172         esac;
29173         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29174         ???[sx]*):;;*)false;;esac;fi
29175     '\'' sh
29176   '
29177 fi
29178 as_executable_p=$as_test_x
29179
29180 # Sed expression to map a string onto a valid CPP name.
29181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29182
29183 # Sed expression to map a string onto a valid variable name.
29184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29185
29186
29187 exec 6>&1
29188
29189 # Save the log message, to keep $[0] and so on meaningful, and to
29190 # report actual input values of CONFIG_FILES etc. instead of their
29191 # values after options handling.
29192 ac_log="
29193 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29194 generated by GNU Autoconf 2.61.  Invocation command line was
29195
29196   CONFIG_FILES    = $CONFIG_FILES
29197   CONFIG_HEADERS  = $CONFIG_HEADERS
29198   CONFIG_LINKS    = $CONFIG_LINKS
29199   CONFIG_COMMANDS = $CONFIG_COMMANDS
29200   $ $0 $@
29201
29202 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29203 "
29204
29205 _ACEOF
29206
29207 cat >>$CONFIG_STATUS <<_ACEOF
29208 # Files that config.status was made for.
29209 config_files="$ac_config_files"
29210 config_headers="$ac_config_headers"
29211 config_commands="$ac_config_commands"
29212
29213 _ACEOF
29214
29215 cat >>$CONFIG_STATUS <<\_ACEOF
29216 ac_cs_usage="\
29217 \`$as_me' instantiates files from templates according to the
29218 current configuration.
29219
29220 Usage: $0 [OPTIONS] [FILE]...
29221
29222   -h, --help       print this help, then exit
29223   -V, --version    print version number and configuration settings, then exit
29224   -q, --quiet      do not print progress messages
29225   -d, --debug      don't remove temporary files
29226       --recheck    update $as_me by reconfiguring in the same conditions
29227   --file=FILE[:TEMPLATE]
29228                    instantiate the configuration file FILE
29229   --header=FILE[:TEMPLATE]
29230                    instantiate the configuration header FILE
29231
29232 Configuration files:
29233 $config_files
29234
29235 Configuration headers:
29236 $config_headers
29237
29238 Configuration commands:
29239 $config_commands
29240
29241 Report bugs to <bug-autoconf@gnu.org>."
29242
29243 _ACEOF
29244 cat >>$CONFIG_STATUS <<_ACEOF
29245 ac_cs_version="\\
29246 linux nfs-utils config.status 1.0.10
29247 configured by $0, generated by GNU Autoconf 2.61,
29248   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29249
29250 Copyright (C) 2006 Free Software Foundation, Inc.
29251 This config.status script is free software; the Free Software Foundation
29252 gives unlimited permission to copy, distribute and modify it."
29253
29254 ac_pwd='$ac_pwd'
29255 srcdir='$srcdir'
29256 INSTALL='$INSTALL'
29257 _ACEOF
29258
29259 cat >>$CONFIG_STATUS <<\_ACEOF
29260 # If no file are specified by the user, then we need to provide default
29261 # value.  By we need to know if files were specified by the user.
29262 ac_need_defaults=:
29263 while test $# != 0
29264 do
29265   case $1 in
29266   --*=*)
29267     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29268     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29269     ac_shift=:
29270     ;;
29271   *)
29272     ac_option=$1
29273     ac_optarg=$2
29274     ac_shift=shift
29275     ;;
29276   esac
29277
29278   case $ac_option in
29279   # Handling of the options.
29280   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29281     ac_cs_recheck=: ;;
29282   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29283     echo "$ac_cs_version"; exit ;;
29284   --debug | --debu | --deb | --de | --d | -d )
29285     debug=: ;;
29286   --file | --fil | --fi | --f )
29287     $ac_shift
29288     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29289     ac_need_defaults=false;;
29290   --header | --heade | --head | --hea )
29291     $ac_shift
29292     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29293     ac_need_defaults=false;;
29294   --he | --h)
29295     # Conflict between --help and --header
29296     { echo "$as_me: error: ambiguous option: $1
29297 Try \`$0 --help' for more information." >&2
29298    { (exit 1); exit 1; }; };;
29299   --help | --hel | -h )
29300     echo "$ac_cs_usage"; exit ;;
29301   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29302   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29303     ac_cs_silent=: ;;
29304
29305   # This is an error.
29306   -*) { echo "$as_me: error: unrecognized option: $1
29307 Try \`$0 --help' for more information." >&2
29308    { (exit 1); exit 1; }; } ;;
29309
29310   *) ac_config_targets="$ac_config_targets $1"
29311      ac_need_defaults=false ;;
29312
29313   esac
29314   shift
29315 done
29316
29317 ac_configure_extra_args=
29318
29319 if $ac_cs_silent; then
29320   exec 6>/dev/null
29321   ac_configure_extra_args="$ac_configure_extra_args --silent"
29322 fi
29323
29324 _ACEOF
29325 cat >>$CONFIG_STATUS <<_ACEOF
29326 if \$ac_cs_recheck; then
29327   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29328   CONFIG_SHELL=$SHELL
29329   export CONFIG_SHELL
29330   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29331 fi
29332
29333 _ACEOF
29334 cat >>$CONFIG_STATUS <<\_ACEOF
29335 exec 5>>config.log
29336 {
29337   echo
29338   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29339 ## Running $as_me. ##
29340 _ASBOX
29341   echo "$ac_log"
29342 } >&5
29343
29344 _ACEOF
29345 cat >>$CONFIG_STATUS <<_ACEOF
29346 #
29347 # INIT-COMMANDS
29348 #
29349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29350
29351 _ACEOF
29352
29353 cat >>$CONFIG_STATUS <<\_ACEOF
29354
29355 # Handling of arguments.
29356 for ac_config_target in $ac_config_targets
29357 do
29358   case $ac_config_target in
29359     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29360     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29361     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29362     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29363     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29364     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29365     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29366     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29367     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29368     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29369     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29370     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29371     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29372     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29373     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29374     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29375     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29376     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29377     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29378     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29379     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29380     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29381     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29382     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29383     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29384     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29385     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29386     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29387     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29388     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29389     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29390     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29391
29392   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29394    { (exit 1); exit 1; }; };;
29395   esac
29396 done
29397
29398
29399 # If the user did not use the arguments to specify the items to instantiate,
29400 # then the envvar interface is used.  Set only those that are not.
29401 # We use the long form for the default assignment because of an extremely
29402 # bizarre bug on SunOS 4.1.3.
29403 if $ac_need_defaults; then
29404   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29405   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29406   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29407 fi
29408
29409 # Have a temporary directory for convenience.  Make it in the build tree
29410 # simply because there is no reason against having it here, and in addition,
29411 # creating and moving files from /tmp can sometimes cause problems.
29412 # Hook for its removal unless debugging.
29413 # Note that there is a small window in which the directory will not be cleaned:
29414 # after its creation but before its name has been assigned to `$tmp'.
29415 $debug ||
29416 {
29417   tmp=
29418   trap 'exit_status=$?
29419   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29420 ' 0
29421   trap '{ (exit 1); exit 1; }' 1 2 13 15
29422 }
29423 # Create a (secure) tmp directory for tmp files.
29424
29425 {
29426   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29427   test -n "$tmp" && test -d "$tmp"
29428 }  ||
29429 {
29430   tmp=./conf$$-$RANDOM
29431   (umask 077 && mkdir "$tmp")
29432 } ||
29433 {
29434    echo "$me: cannot create a temporary directory in ." >&2
29435    { (exit 1); exit 1; }
29436 }
29437
29438 #
29439 # Set up the sed scripts for CONFIG_FILES section.
29440 #
29441
29442 # No need to generate the scripts if there are no CONFIG_FILES.
29443 # This happens for instance when ./config.status config.h
29444 if test -n "$CONFIG_FILES"; then
29445
29446 _ACEOF
29447
29448
29449
29450 ac_delim='%!_!# '
29451 for ac_last_try in false false false false false :; do
29452   cat >conf$$subs.sed <<_ACEOF
29453 SHELL!$SHELL$ac_delim
29454 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29455 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29456 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29457 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29458 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29459 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29460 exec_prefix!$exec_prefix$ac_delim
29461 prefix!$prefix$ac_delim
29462 program_transform_name!$program_transform_name$ac_delim
29463 bindir!$bindir$ac_delim
29464 sbindir!$sbindir$ac_delim
29465 libexecdir!$libexecdir$ac_delim
29466 datarootdir!$datarootdir$ac_delim
29467 datadir!$datadir$ac_delim
29468 sysconfdir!$sysconfdir$ac_delim
29469 sharedstatedir!$sharedstatedir$ac_delim
29470 localstatedir!$localstatedir$ac_delim
29471 includedir!$includedir$ac_delim
29472 oldincludedir!$oldincludedir$ac_delim
29473 docdir!$docdir$ac_delim
29474 infodir!$infodir$ac_delim
29475 htmldir!$htmldir$ac_delim
29476 dvidir!$dvidir$ac_delim
29477 pdfdir!$pdfdir$ac_delim
29478 psdir!$psdir$ac_delim
29479 libdir!$libdir$ac_delim
29480 localedir!$localedir$ac_delim
29481 mandir!$mandir$ac_delim
29482 DEFS!$DEFS$ac_delim
29483 ECHO_C!$ECHO_C$ac_delim
29484 ECHO_N!$ECHO_N$ac_delim
29485 ECHO_T!$ECHO_T$ac_delim
29486 LIBS!$LIBS$ac_delim
29487 build_alias!$build_alias$ac_delim
29488 host_alias!$host_alias$ac_delim
29489 target_alias!$target_alias$ac_delim
29490 build!$build$ac_delim
29491 build_cpu!$build_cpu$ac_delim
29492 build_vendor!$build_vendor$ac_delim
29493 build_os!$build_os$ac_delim
29494 host!$host$ac_delim
29495 host_cpu!$host_cpu$ac_delim
29496 host_vendor!$host_vendor$ac_delim
29497 host_os!$host_os$ac_delim
29498 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29499 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29500 INSTALL_DATA!$INSTALL_DATA$ac_delim
29501 CYGPATH_W!$CYGPATH_W$ac_delim
29502 PACKAGE!$PACKAGE$ac_delim
29503 VERSION!$VERSION$ac_delim
29504 ACLOCAL!$ACLOCAL$ac_delim
29505 AUTOCONF!$AUTOCONF$ac_delim
29506 AUTOMAKE!$AUTOMAKE$ac_delim
29507 AUTOHEADER!$AUTOHEADER$ac_delim
29508 MAKEINFO!$MAKEINFO$ac_delim
29509 install_sh!$install_sh$ac_delim
29510 STRIP!$STRIP$ac_delim
29511 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29512 mkdir_p!$mkdir_p$ac_delim
29513 AWK!$AWK$ac_delim
29514 SET_MAKE!$SET_MAKE$ac_delim
29515 am__leading_dot!$am__leading_dot$ac_delim
29516 AMTAR!$AMTAR$ac_delim
29517 am__tar!$am__tar$ac_delim
29518 am__untar!$am__untar$ac_delim
29519 RELEASE!$RELEASE$ac_delim
29520 statedir!$statedir$ac_delim
29521 statduser!$statduser$ac_delim
29522 enable_nfsv3!$enable_nfsv3$ac_delim
29523 IDMAPD!$IDMAPD$ac_delim
29524 enable_nfsv4!$enable_nfsv4$ac_delim
29525 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29526 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29527 GSSD!$GSSD$ac_delim
29528 SVCGSSD!$SVCGSSD$ac_delim
29529 enable_gss!$enable_gss$ac_delim
29530 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29531 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29532 kprefix!$kprefix$ac_delim
29533 secure_statd!$secure_statd$ac_delim
29534 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29535 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29536 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29537 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29538 CC!$CC$ac_delim
29539 CFLAGS!$CFLAGS$ac_delim
29540 LDFLAGS!$LDFLAGS$ac_delim
29541 CPPFLAGS!$CPPFLAGS$ac_delim
29542 ac_ct_CC!$ac_ct_CC$ac_delim
29543 EXEEXT!$EXEEXT$ac_delim
29544 OBJEXT!$OBJEXT$ac_delim
29545 DEPDIR!$DEPDIR$ac_delim
29546 am__include!$am__include$ac_delim
29547 am__quote!$am__quote$ac_delim
29548 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29549 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29550 _ACEOF
29551
29552   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29553     break
29554   elif $ac_last_try; then
29555     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29556 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29557    { (exit 1); exit 1; }; }
29558   else
29559     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29560   fi
29561 done
29562
29563 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29564 if test -n "$ac_eof"; then
29565   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29566   ac_eof=`expr $ac_eof + 1`
29567 fi
29568
29569 cat >>$CONFIG_STATUS <<_ACEOF
29570 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29572 _ACEOF
29573 sed '
29574 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29575 s/^/s,@/; s/!/@,|#_!!_#|/
29576 :n
29577 t n
29578 s/'"$ac_delim"'$/,g/; t
29579 s/$/\\/; p
29580 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29581 ' >>$CONFIG_STATUS <conf$$subs.sed
29582 rm -f conf$$subs.sed
29583 cat >>$CONFIG_STATUS <<_ACEOF
29584 CEOF$ac_eof
29585 _ACEOF
29586
29587
29588 ac_delim='%!_!# '
29589 for ac_last_try in false false false false false :; do
29590   cat >conf$$subs.sed <<_ACEOF
29591 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29592 CCDEPMODE!$CCDEPMODE$ac_delim
29593 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29594 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29595 LIBWRAP!$LIBWRAP$ac_delim
29596 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29597 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29598 CXX!$CXX$ac_delim
29599 CXXFLAGS!$CXXFLAGS$ac_delim
29600 ac_ct_CXX!$ac_ct_CXX$ac_delim
29601 CXXDEPMODE!$CXXDEPMODE$ac_delim
29602 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29603 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29604 CPP!$CPP$ac_delim
29605 LN_S!$LN_S$ac_delim
29606 GREP!$GREP$ac_delim
29607 EGREP!$EGREP$ac_delim
29608 ECHO!$ECHO$ac_delim
29609 AR!$AR$ac_delim
29610 RANLIB!$RANLIB$ac_delim
29611 CXXCPP!$CXXCPP$ac_delim
29612 F77!$F77$ac_delim
29613 FFLAGS!$FFLAGS$ac_delim
29614 ac_ct_F77!$ac_ct_F77$ac_delim
29615 LIBTOOL!$LIBTOOL$ac_delim
29616 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29617 LD!$LD$ac_delim
29618 LIBNSL!$LIBNSL$ac_delim
29619 PKG_CONFIG!$PKG_CONFIG$ac_delim
29620 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29621 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29622 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29623 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29624 LIBSOCKET!$LIBSOCKET$ac_delim
29625 LIBCRYPT!$LIBCRYPT$ac_delim
29626 LIBBSD!$LIBBSD$ac_delim
29627 KRBDIR!$KRBDIR$ac_delim
29628 KRBLIBS!$KRBLIBS$ac_delim
29629 KRBCFLAGS!$KRBCFLAGS$ac_delim
29630 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29631 K5VERS!$K5VERS$ac_delim
29632 ALLOCA!$ALLOCA$ac_delim
29633 LIBOBJS!$LIBOBJS$ac_delim
29634 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29635 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29636 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29637 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29638 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29639 AM_CFLAGS!$AM_CFLAGS$ac_delim
29640 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29641 LTLIBOBJS!$LTLIBOBJS$ac_delim
29642 _ACEOF
29643
29644   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
29645     break
29646   elif $ac_last_try; then
29647     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29649    { (exit 1); exit 1; }; }
29650   else
29651     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29652   fi
29653 done
29654
29655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29656 if test -n "$ac_eof"; then
29657   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29658   ac_eof=`expr $ac_eof + 1`
29659 fi
29660
29661 cat >>$CONFIG_STATUS <<_ACEOF
29662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29664 _ACEOF
29665 sed '
29666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29667 s/^/s,@/; s/!/@,|#_!!_#|/
29668 :n
29669 t n
29670 s/'"$ac_delim"'$/,g/; t
29671 s/$/\\/; p
29672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29673 ' >>$CONFIG_STATUS <conf$$subs.sed
29674 rm -f conf$$subs.sed
29675 cat >>$CONFIG_STATUS <<_ACEOF
29676 :end
29677 s/|#_!!_#|//g
29678 CEOF$ac_eof
29679 _ACEOF
29680
29681
29682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29684 # trailing colons and then remove the whole line if VPATH becomes empty
29685 # (actually we leave an empty line to preserve line numbers).
29686 if test "x$srcdir" = x.; then
29687   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29688 s/:*\$(srcdir):*/:/
29689 s/:*\${srcdir}:*/:/
29690 s/:*@srcdir@:*/:/
29691 s/^\([^=]*=[     ]*\):*/\1/
29692 s/:*$//
29693 s/^[^=]*=[       ]*$//
29694 }'
29695 fi
29696
29697 cat >>$CONFIG_STATUS <<\_ACEOF
29698 fi # test -n "$CONFIG_FILES"
29699
29700
29701 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29702 do
29703   case $ac_tag in
29704   :[FHLC]) ac_mode=$ac_tag; continue;;
29705   esac
29706   case $ac_mode$ac_tag in
29707   :[FHL]*:*);;
29708   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29710    { (exit 1); exit 1; }; };;
29711   :[FH]-) ac_tag=-:-;;
29712   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29713   esac
29714   ac_save_IFS=$IFS
29715   IFS=:
29716   set x $ac_tag
29717   IFS=$ac_save_IFS
29718   shift
29719   ac_file=$1
29720   shift
29721
29722   case $ac_mode in
29723   :L) ac_source=$1;;
29724   :[FH])
29725     ac_file_inputs=
29726     for ac_f
29727     do
29728       case $ac_f in
29729       -) ac_f="$tmp/stdin";;
29730       *) # Look for the file first in the build tree, then in the source tree
29731          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29732          # because $ac_f cannot contain `:'.
29733          test -f "$ac_f" ||
29734            case $ac_f in
29735            [\\/$]*) false;;
29736            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29737            esac ||
29738            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29740    { (exit 1); exit 1; }; };;
29741       esac
29742       ac_file_inputs="$ac_file_inputs $ac_f"
29743     done
29744
29745     # Let's still pretend it is `configure' which instantiates (i.e., don't
29746     # use $as_me), people would be surprised to read:
29747     #    /* config.h.  Generated by config.status.  */
29748     configure_input="Generated from "`IFS=:
29749           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29750     if test x"$ac_file" != x-; then
29751       configure_input="$ac_file.  $configure_input"
29752       { echo "$as_me:$LINENO: creating $ac_file" >&5
29753 echo "$as_me: creating $ac_file" >&6;}
29754     fi
29755
29756     case $ac_tag in
29757     *:-:* | *:-) cat >"$tmp/stdin";;
29758     esac
29759     ;;
29760   esac
29761
29762   ac_dir=`$as_dirname -- "$ac_file" ||
29763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29764          X"$ac_file" : 'X\(//\)[^/]' \| \
29765          X"$ac_file" : 'X\(//\)$' \| \
29766          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29767 echo X"$ac_file" |
29768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29769             s//\1/
29770             q
29771           }
29772           /^X\(\/\/\)[^/].*/{
29773             s//\1/
29774             q
29775           }
29776           /^X\(\/\/\)$/{
29777             s//\1/
29778             q
29779           }
29780           /^X\(\/\).*/{
29781             s//\1/
29782             q
29783           }
29784           s/.*/./; q'`
29785   { as_dir="$ac_dir"
29786   case $as_dir in #(
29787   -*) as_dir=./$as_dir;;
29788   esac
29789   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29790     as_dirs=
29791     while :; do
29792       case $as_dir in #(
29793       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29794       *) as_qdir=$as_dir;;
29795       esac
29796       as_dirs="'$as_qdir' $as_dirs"
29797       as_dir=`$as_dirname -- "$as_dir" ||
29798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29799          X"$as_dir" : 'X\(//\)[^/]' \| \
29800          X"$as_dir" : 'X\(//\)$' \| \
29801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29802 echo X"$as_dir" |
29803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29804             s//\1/
29805             q
29806           }
29807           /^X\(\/\/\)[^/].*/{
29808             s//\1/
29809             q
29810           }
29811           /^X\(\/\/\)$/{
29812             s//\1/
29813             q
29814           }
29815           /^X\(\/\).*/{
29816             s//\1/
29817             q
29818           }
29819           s/.*/./; q'`
29820       test -d "$as_dir" && break
29821     done
29822     test -z "$as_dirs" || eval "mkdir $as_dirs"
29823   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29825    { (exit 1); exit 1; }; }; }
29826   ac_builddir=.
29827
29828 case "$ac_dir" in
29829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29830 *)
29831   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29832   # A ".." for each directory in $ac_dir_suffix.
29833   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29834   case $ac_top_builddir_sub in
29835   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29836   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29837   esac ;;
29838 esac
29839 ac_abs_top_builddir=$ac_pwd
29840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29841 # for backward compatibility:
29842 ac_top_builddir=$ac_top_build_prefix
29843
29844 case $srcdir in
29845   .)  # We are building in place.
29846     ac_srcdir=.
29847     ac_top_srcdir=$ac_top_builddir_sub
29848     ac_abs_top_srcdir=$ac_pwd ;;
29849   [\\/]* | ?:[\\/]* )  # Absolute name.
29850     ac_srcdir=$srcdir$ac_dir_suffix;
29851     ac_top_srcdir=$srcdir
29852     ac_abs_top_srcdir=$srcdir ;;
29853   *) # Relative name.
29854     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29855     ac_top_srcdir=$ac_top_build_prefix$srcdir
29856     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29857 esac
29858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29859
29860
29861   case $ac_mode in
29862   :F)
29863   #
29864   # CONFIG_FILE
29865   #
29866
29867   case $INSTALL in
29868   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29869   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29870   esac
29871 _ACEOF
29872
29873 cat >>$CONFIG_STATUS <<\_ACEOF
29874 # If the template does not know about datarootdir, expand it.
29875 # FIXME: This hack should be removed a few years after 2.60.
29876 ac_datarootdir_hack=; ac_datarootdir_seen=
29877
29878 case `sed -n '/datarootdir/ {
29879   p
29880   q
29881 }
29882 /@datadir@/p
29883 /@docdir@/p
29884 /@infodir@/p
29885 /@localedir@/p
29886 /@mandir@/p
29887 ' $ac_file_inputs` in
29888 *datarootdir*) ac_datarootdir_seen=yes;;
29889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29890   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29892 _ACEOF
29893 cat >>$CONFIG_STATUS <<_ACEOF
29894   ac_datarootdir_hack='
29895   s&@datadir@&$datadir&g
29896   s&@docdir@&$docdir&g
29897   s&@infodir@&$infodir&g
29898   s&@localedir@&$localedir&g
29899   s&@mandir@&$mandir&g
29900     s&\\\${datarootdir}&$datarootdir&g' ;;
29901 esac
29902 _ACEOF
29903
29904 # Neutralize VPATH when `$srcdir' = `.'.
29905 # Shell code in configure.ac might set extrasub.
29906 # FIXME: do we really want to maintain this feature?
29907 cat >>$CONFIG_STATUS <<_ACEOF
29908   sed "$ac_vpsub
29909 $extrasub
29910 _ACEOF
29911 cat >>$CONFIG_STATUS <<\_ACEOF
29912 :t
29913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29914 s&@configure_input@&$configure_input&;t t
29915 s&@top_builddir@&$ac_top_builddir_sub&;t t
29916 s&@srcdir@&$ac_srcdir&;t t
29917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29918 s&@top_srcdir@&$ac_top_srcdir&;t t
29919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29920 s&@builddir@&$ac_builddir&;t t
29921 s&@abs_builddir@&$ac_abs_builddir&;t t
29922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29923 s&@INSTALL@&$ac_INSTALL&;t t
29924 $ac_datarootdir_hack
29925 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29926
29927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29928   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29929   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29930   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29931 which seems to be undefined.  Please make sure it is defined." >&5
29932 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29933 which seems to be undefined.  Please make sure it is defined." >&2;}
29934
29935   rm -f "$tmp/stdin"
29936   case $ac_file in
29937   -) cat "$tmp/out"; rm -f "$tmp/out";;
29938   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29939   esac
29940  ;;
29941   :H)
29942   #
29943   # CONFIG_HEADER
29944   #
29945 _ACEOF
29946
29947 # Transform confdefs.h into a sed script `conftest.defines', that
29948 # substitutes the proper values into config.h.in to produce config.h.
29949 rm -f conftest.defines conftest.tail
29950 # First, append a space to every undef/define line, to ease matching.
29951 echo 's/$/ /' >conftest.defines
29952 # Then, protect against being on the right side of a sed subst, or in
29953 # an unquoted here document, in config.status.  If some macros were
29954 # called several times there might be several #defines for the same
29955 # symbol, which is useless.  But do not sort them, since the last
29956 # AC_DEFINE must be honored.
29957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29958 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29959 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29960 # PARAMS is the parameter list in the macro definition--in most cases, it's
29961 # just an empty string.
29962 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29963 ac_dB='\\)[      (].*,\\1define\\2'
29964 ac_dC=' '
29965 ac_dD=' ,'
29966
29967 uniq confdefs.h |
29968   sed -n '
29969         t rset
29970         :rset
29971         s/^[     ]*#[    ]*define[       ][      ]*//
29972         t ok
29973         d
29974         :ok
29975         s/[\\&,]/\\&/g
29976         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29977         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29978   ' >>conftest.defines
29979
29980 # Remove the space that was appended to ease matching.
29981 # Then replace #undef with comments.  This is necessary, for
29982 # example, in the case of _POSIX_SOURCE, which is predefined and required
29983 # on some systems where configure will not decide to define it.
29984 # (The regexp can be short, since the line contains either #define or #undef.)
29985 echo 's/ $//
29986 s,^[     #]*u.*,/* & */,' >>conftest.defines
29987
29988 # Break up conftest.defines:
29989 ac_max_sed_lines=50
29990
29991 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29992 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29993 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29994 # et cetera.
29995 ac_in='$ac_file_inputs'
29996 ac_out='"$tmp/out1"'
29997 ac_nxt='"$tmp/out2"'
29998
29999 while :
30000 do
30001   # Write a here document:
30002     cat >>$CONFIG_STATUS <<_ACEOF
30003     # First, check the format of the line:
30004     cat >"\$tmp/defines.sed" <<\\CEOF
30005 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30006 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30007 b
30008 :def
30009 _ACEOF
30010   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30011   echo 'CEOF
30012     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30013   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30014   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30015   grep . conftest.tail >/dev/null || break
30016   rm -f conftest.defines
30017   mv conftest.tail conftest.defines
30018 done
30019 rm -f conftest.defines conftest.tail
30020
30021 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30022 cat >>$CONFIG_STATUS <<\_ACEOF
30023   if test x"$ac_file" != x-; then
30024     echo "/* $configure_input  */" >"$tmp/config.h"
30025     cat "$ac_result" >>"$tmp/config.h"
30026     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30027       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30028 echo "$as_me: $ac_file is unchanged" >&6;}
30029     else
30030       rm -f $ac_file
30031       mv "$tmp/config.h" $ac_file
30032     fi
30033   else
30034     echo "/* $configure_input  */"
30035     cat "$ac_result"
30036   fi
30037   rm -f "$tmp/out12"
30038 # Compute $ac_file's index in $config_headers.
30039 _am_stamp_count=1
30040 for _am_header in $config_headers :; do
30041   case $_am_header in
30042     $ac_file | $ac_file:* )
30043       break ;;
30044     * )
30045       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30046   esac
30047 done
30048 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30049 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30050          X$ac_file : 'X\(//\)[^/]' \| \
30051          X$ac_file : 'X\(//\)$' \| \
30052          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30053 echo X$ac_file |
30054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30055             s//\1/
30056             q
30057           }
30058           /^X\(\/\/\)[^/].*/{
30059             s//\1/
30060             q
30061           }
30062           /^X\(\/\/\)$/{
30063             s//\1/
30064             q
30065           }
30066           /^X\(\/\).*/{
30067             s//\1/
30068             q
30069           }
30070           s/.*/./; q'`/stamp-h$_am_stamp_count
30071  ;;
30072
30073   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30074 echo "$as_me: executing $ac_file commands" >&6;}
30075  ;;
30076   esac
30077
30078
30079   case $ac_file$ac_mode in
30080     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30081   # Strip MF so we end up with the name of the file.
30082   mf=`echo "$mf" | sed -e 's/:.*$//'`
30083   # Check whether this is an Automake generated Makefile or not.
30084   # We used to match only the files named `Makefile.in', but
30085   # some people rename them; so instead we look at the file content.
30086   # Grep'ing the first line is not enough: some people post-process
30087   # each Makefile.in and add a new line on top of each file to say so.
30088   # So let's grep whole file.
30089   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30090     dirpart=`$as_dirname -- "$mf" ||
30091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30092          X"$mf" : 'X\(//\)[^/]' \| \
30093          X"$mf" : 'X\(//\)$' \| \
30094          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30095 echo X"$mf" |
30096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30097             s//\1/
30098             q
30099           }
30100           /^X\(\/\/\)[^/].*/{
30101             s//\1/
30102             q
30103           }
30104           /^X\(\/\/\)$/{
30105             s//\1/
30106             q
30107           }
30108           /^X\(\/\).*/{
30109             s//\1/
30110             q
30111           }
30112           s/.*/./; q'`
30113   else
30114     continue
30115   fi
30116   # Extract the definition of DEPDIR, am__include, and am__quote
30117   # from the Makefile without running `make'.
30118   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30119   test -z "$DEPDIR" && continue
30120   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30121   test -z "am__include" && continue
30122   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30123   # When using ansi2knr, U may be empty or an underscore; expand it
30124   U=`sed -n 's/^U = //p' < "$mf"`
30125   # Find all dependency output files, they are included files with
30126   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30127   # simplest approach to changing $(DEPDIR) to its actual value in the
30128   # expansion.
30129   for file in `sed -n "
30130     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30131        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30132     # Make sure the directory exists.
30133     test -f "$dirpart/$file" && continue
30134     fdir=`$as_dirname -- "$file" ||
30135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30136          X"$file" : 'X\(//\)[^/]' \| \
30137          X"$file" : 'X\(//\)$' \| \
30138          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30139 echo X"$file" |
30140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30141             s//\1/
30142             q
30143           }
30144           /^X\(\/\/\)[^/].*/{
30145             s//\1/
30146             q
30147           }
30148           /^X\(\/\/\)$/{
30149             s//\1/
30150             q
30151           }
30152           /^X\(\/\).*/{
30153             s//\1/
30154             q
30155           }
30156           s/.*/./; q'`
30157     { as_dir=$dirpart/$fdir
30158   case $as_dir in #(
30159   -*) as_dir=./$as_dir;;
30160   esac
30161   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30162     as_dirs=
30163     while :; do
30164       case $as_dir in #(
30165       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30166       *) as_qdir=$as_dir;;
30167       esac
30168       as_dirs="'$as_qdir' $as_dirs"
30169       as_dir=`$as_dirname -- "$as_dir" ||
30170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30171          X"$as_dir" : 'X\(//\)[^/]' \| \
30172          X"$as_dir" : 'X\(//\)$' \| \
30173          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30174 echo X"$as_dir" |
30175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30176             s//\1/
30177             q
30178           }
30179           /^X\(\/\/\)[^/].*/{
30180             s//\1/
30181             q
30182           }
30183           /^X\(\/\/\)$/{
30184             s//\1/
30185             q
30186           }
30187           /^X\(\/\).*/{
30188             s//\1/
30189             q
30190           }
30191           s/.*/./; q'`
30192       test -d "$as_dir" && break
30193     done
30194     test -z "$as_dirs" || eval "mkdir $as_dirs"
30195   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30197    { (exit 1); exit 1; }; }; }
30198     # echo "creating $dirpart/$file"
30199     echo '# dummy' > "$dirpart/$file"
30200   done
30201 done
30202  ;;
30203
30204   esac
30205 done # for ac_tag
30206
30207
30208 { (exit 0); exit 0; }
30209 _ACEOF
30210 chmod +x $CONFIG_STATUS
30211 ac_clean_files=$ac_clean_files_save
30212
30213
30214 # configure is writing to config.log, and then calls config.status.
30215 # config.status does its own redirection, appending to config.log.
30216 # Unfortunately, on DOS this fails, as config.log is still kept open
30217 # by configure, so config.status won't be able to write to it; its
30218 # output is simply discarded.  So we exec the FD to /dev/null,
30219 # effectively closing config.log, so it can be properly (re)opened and
30220 # appended to by config.status.  When coming back to configure, we
30221 # need to make the FD available again.
30222 if test "$no_create" != yes; then
30223   ac_cs_success=:
30224   ac_config_status_args=
30225   test "$silent" = yes &&
30226     ac_config_status_args="$ac_config_status_args --quiet"
30227   exec 5>/dev/null
30228   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30229   exec 5>>config.log
30230   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30231   # would make configure fail if this is the last instruction.
30232   $ac_cs_success || { (exit 1); exit 1; }
30233 fi
30234
30235