]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Debian patch 1.1.1-5
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.1.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.1'
732 PACKAGE_STRING='linux nfs-utils 1.1.1'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 am__isrc
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 RELEASE
844 statedir
845 statduser
846 startstatd
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 RPCGEN_PATH
860 CONFIG_RPCGEN_TRUE
861 CONFIG_RPCGEN_FALSE
862 CONFIG_MOUNT_TRUE
863 CONFIG_MOUNT_FALSE
864 CC
865 CFLAGS
866 LDFLAGS
867 CPPFLAGS
868 ac_ct_CC
869 EXEEXT
870 OBJEXT
871 DEPDIR
872 am__include
873 am__quote
874 AMDEP_TRUE
875 AMDEP_FALSE
876 AMDEPBACKSLASH
877 CCDEPMODE
878 am__fastdepCC_TRUE
879 am__fastdepCC_FALSE
880 LIBWRAP
881 HAVE_LIBWRAP
882 HAVE_TCP_WRAPPER
883 CXX
884 CXXFLAGS
885 ac_ct_CXX
886 CXXDEPMODE
887 am__fastdepCXX_TRUE
888 am__fastdepCXX_FALSE
889 CPP
890 LN_S
891 SED
892 GREP
893 EGREP
894 ECHO
895 AR
896 RANLIB
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 CC_FOR_BUILD
903 LD
904 LIBNSL
905 PKG_CONFIG
906 RPCSECGSS_CFLAGS
907 RPCSECGSS_LIBS
908 GSSGLUE_CFLAGS
909 GSSGLUE_LIBS
910 LIBSOCKET
911 LIBCRYPT
912 LIBBSD
913 LIBBLKID
914 KRBDIR
915 KRBLIBS
916 KRBCFLAGS
917 KRBLDFLAGS
918 K5VERS
919 ALLOCA
920 LIBOBJS
921 CFLAGS_FOR_BUILD
922 CXXFLAGS_FOR_BUILD
923 CPPFLAGS_FOR_BUILD
924 LDFLAGS_FOR_BUILD
925 AM_CPPFLAGS
926 AM_CFLAGS
927 ACLOCAL_AMFLAGS
928 LTLIBOBJS'
929 ac_subst_files=''
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CXX
939 CXXFLAGS
940 CCC
941 CPP
942 CXXCPP
943 F77
944 FFLAGS
945 PKG_CONFIG
946 RPCSECGSS_CFLAGS
947 RPCSECGSS_LIBS
948 GSSGLUE_CFLAGS
949 GSSGLUE_LIBS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059     eval enable_$ac_feature=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078     eval enable_$ac_feature=\$ac_optarg ;;
1079
1080   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082   | --exec | --exe | --ex)
1083     ac_prev=exec_prefix ;;
1084   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086   | --exec=* | --exe=* | --ex=*)
1087     exec_prefix=$ac_optarg ;;
1088
1089   -gas | --gas | --ga | --g)
1090     # Obsolete; use --with-gas.
1091     with_gas=yes ;;
1092
1093   -help | --help | --hel | --he | -h)
1094     ac_init_help=long ;;
1095   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096     ac_init_help=recursive ;;
1097   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098     ac_init_help=short ;;
1099
1100   -host | --host | --hos | --ho)
1101     ac_prev=host_alias ;;
1102   -host=* | --host=* | --hos=* | --ho=*)
1103     host_alias=$ac_optarg ;;
1104
1105   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106     ac_prev=htmldir ;;
1107   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108   | --ht=*)
1109     htmldir=$ac_optarg ;;
1110
1111   -includedir | --includedir | --includedi | --included | --include \
1112   | --includ | --inclu | --incl | --inc)
1113     ac_prev=includedir ;;
1114   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115   | --includ=* | --inclu=* | --incl=* | --inc=*)
1116     includedir=$ac_optarg ;;
1117
1118   -infodir | --infodir | --infodi | --infod | --info | --inf)
1119     ac_prev=infodir ;;
1120   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121     infodir=$ac_optarg ;;
1122
1123   -libdir | --libdir | --libdi | --libd)
1124     ac_prev=libdir ;;
1125   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126     libdir=$ac_optarg ;;
1127
1128   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129   | --libexe | --libex | --libe)
1130     ac_prev=libexecdir ;;
1131   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132   | --libexe=* | --libex=* | --libe=*)
1133     libexecdir=$ac_optarg ;;
1134
1135   -localedir | --localedir | --localedi | --localed | --locale)
1136     ac_prev=localedir ;;
1137   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138     localedir=$ac_optarg ;;
1139
1140   -localstatedir | --localstatedir | --localstatedi | --localstated \
1141   | --localstate | --localstat | --localsta | --localst | --locals)
1142     ac_prev=localstatedir ;;
1143   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145     localstatedir=$ac_optarg ;;
1146
1147   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148     ac_prev=mandir ;;
1149   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150     mandir=$ac_optarg ;;
1151
1152   -nfp | --nfp | --nf)
1153     # Obsolete; use --without-fp.
1154     with_fp=no ;;
1155
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n)
1158     no_create=yes ;;
1159
1160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162     no_recursion=yes ;;
1163
1164   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166   | --oldin | --oldi | --old | --ol | --o)
1167     ac_prev=oldincludedir ;;
1168   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171     oldincludedir=$ac_optarg ;;
1172
1173   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174     ac_prev=prefix ;;
1175   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176     prefix=$ac_optarg ;;
1177
1178   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179   | --program-pre | --program-pr | --program-p)
1180     ac_prev=program_prefix ;;
1181   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183     program_prefix=$ac_optarg ;;
1184
1185   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186   | --program-suf | --program-su | --program-s)
1187     ac_prev=program_suffix ;;
1188   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190     program_suffix=$ac_optarg ;;
1191
1192   -program-transform-name | --program-transform-name \
1193   | --program-transform-nam | --program-transform-na \
1194   | --program-transform-n | --program-transform- \
1195   | --program-transform | --program-transfor \
1196   | --program-transfo | --program-transf \
1197   | --program-trans | --program-tran \
1198   | --progr-tra | --program-tr | --program-t)
1199     ac_prev=program_transform_name ;;
1200   -program-transform-name=* | --program-transform-name=* \
1201   | --program-transform-nam=* | --program-transform-na=* \
1202   | --program-transform-n=* | --program-transform-=* \
1203   | --program-transform=* | --program-transfor=* \
1204   | --program-transfo=* | --program-transf=* \
1205   | --program-trans=* | --program-tran=* \
1206   | --progr-tra=* | --program-tr=* | --program-t=*)
1207     program_transform_name=$ac_optarg ;;
1208
1209   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210     ac_prev=pdfdir ;;
1211   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212     pdfdir=$ac_optarg ;;
1213
1214   -psdir | --psdir | --psdi | --psd | --ps)
1215     ac_prev=psdir ;;
1216   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217     psdir=$ac_optarg ;;
1218
1219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220   | -silent | --silent | --silen | --sile | --sil)
1221     silent=yes ;;
1222
1223   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224     ac_prev=sbindir ;;
1225   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226   | --sbi=* | --sb=*)
1227     sbindir=$ac_optarg ;;
1228
1229   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231   | --sharedst | --shareds | --shared | --share | --shar \
1232   | --sha | --sh)
1233     ac_prev=sharedstatedir ;;
1234   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237   | --sha=* | --sh=*)
1238     sharedstatedir=$ac_optarg ;;
1239
1240   -site | --site | --sit)
1241     ac_prev=site ;;
1242   -site=* | --site=* | --sit=*)
1243     site=$ac_optarg ;;
1244
1245   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246     ac_prev=srcdir ;;
1247   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248     srcdir=$ac_optarg ;;
1249
1250   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251   | --syscon | --sysco | --sysc | --sys | --sy)
1252     ac_prev=sysconfdir ;;
1253   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255     sysconfdir=$ac_optarg ;;
1256
1257   -target | --target | --targe | --targ | --tar | --ta | --t)
1258     ac_prev=target_alias ;;
1259   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260     target_alias=$ac_optarg ;;
1261
1262   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263     verbose=yes ;;
1264
1265   -version | --version | --versio | --versi | --vers | -V)
1266     ac_init_version=: ;;
1267
1268   -with-* | --with-*)
1269     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid package name: $ac_package" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275     eval with_$ac_package=\$ac_optarg ;;
1276
1277   -without-* | --without-*)
1278     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284     eval with_$ac_package=no ;;
1285
1286   --x)
1287     # Obsolete; use --with-x.
1288     with_x=yes ;;
1289
1290   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291   | --x-incl | --x-inc | --x-in | --x-i)
1292     ac_prev=x_includes ;;
1293   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295     x_includes=$ac_optarg ;;
1296
1297   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299     ac_prev=x_libraries ;;
1300   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302     x_libraries=$ac_optarg ;;
1303
1304   -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306    { (exit 1); exit 1; }; }
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314    { (exit 1); exit 1; }; }
1315     eval $ac_envvar=\$ac_optarg
1316     export $ac_envvar ;;
1317
1318   *)
1319     # FIXME: should be removed in autoconf 3.0.
1320     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324     ;;
1325
1326   esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331   { echo "$as_me: error: missing argument to $ac_option" >&2
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 # Be sure to have absolute directory names.
1336 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337                 datadir sysconfdir sharedstatedir localstatedir includedir \
1338                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339                 libdir localedir mandir
1340 do
1341   eval ac_val=\$$ac_var
1342   case $ac_val in
1343     [\\/$]* | ?:[\\/]* )  continue;;
1344     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345   esac
1346   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347    { (exit 1); exit 1; }; }
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359   if test "x$build_alias" = x; then
1360     cross_compiling=maybe
1361     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362     If a cross compiler is detected then cross compile mode will be used." >&2
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   { echo "$as_me: error: Working directory cannot be determined" >&2
1378    { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380   { echo "$as_me: error: pwd does not report name of working directory" >&2
1381    { (exit 1); exit 1; }; }
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386   ac_srcdir_defaulted=yes
1387   # Try the directory containing this script, then the parent directory.
1388   ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390          X"$0" : 'X\(//\)[^/]' \| \
1391          X"$0" : 'X\(//\)$' \| \
1392          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 echo X"$0" |
1394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)[^/].*/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\).*/{
1407             s//\1/
1408             q
1409           }
1410           s/.*/./; q'`
1411   srcdir=$ac_confdir
1412   if test ! -r "$srcdir/$ac_unique_file"; then
1413     srcdir=..
1414   fi
1415 else
1416   ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 ac_abs_confdir=`(
1425         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426    { (exit 1); exit 1; }; }
1427         pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430   srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_env_${ac_var}_value=\$${ac_var}
1441   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449   # Omit some internal or obsolete options to make the list less imposing.
1450   # This message is too long to be a string in the A/UX 3.1 sh.
1451   cat <<_ACEOF
1452 \`configure' configures linux nfs-utils 1.1.1 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462   -h, --help              display this help and exit
1463       --help=short        display options specific to this package
1464       --help=recursive    display the short help of all the included packages
1465   -V, --version           display version information and exit
1466   -q, --quiet, --silent   do not print \`checking...' messages
1467       --cache-file=FILE   cache test results in FILE [disabled]
1468   -C, --config-cache      alias for \`--cache-file=config.cache'
1469   -n, --no-create         do not create output files
1470       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473   --prefix=PREFIX         install architecture-independent files in PREFIX
1474                           [$ac_default_prefix]
1475   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476                           [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486   --bindir=DIR           user executables [EPREFIX/bin]
1487   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1488   --libexecdir=DIR       program executables [EPREFIX/libexec]
1489   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1490   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1491   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1492   --libdir=DIR           object code libraries [EPREFIX/lib]
1493   --includedir=DIR       C header files [PREFIX/include]
1494   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1495   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1496   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1497   --infodir=DIR          info documentation [DATAROOTDIR/info]
1498   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1499   --mandir=DIR           man documentation [DATAROOTDIR/man]
1500   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1501   --htmldir=DIR          html documentation [DOCDIR]
1502   --dvidir=DIR           dvi documentation [DOCDIR]
1503   --pdfdir=DIR           pdf documentation [DOCDIR]
1504   --psdir=DIR            ps documentation [DOCDIR]
1505 _ACEOF
1506
1507   cat <<\_ACEOF
1508
1509 Program names:
1510   --program-prefix=PREFIX            prepend PREFIX to installed program names
1511   --program-suffix=SUFFIX            append SUFFIX to installed program names
1512   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1513
1514 System types:
1515   --build=BUILD     configure for building on BUILD [guessed]
1516   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521   case $ac_init_help in
1522      short | recursive ) echo "Configuration of linux nfs-utils 1.1.1:";;
1523    esac
1524   cat <<\_ACEOF
1525
1526 Optional Features:
1527   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529   --enable-maintainer-mode  enable make rules and dependencies not useful
1530                           (and sometimes confusing) to the casual installer
1531   --enable-nfsv3          enable support for NFSv3 [default=yes]
1532   --enable-nfsv4          enable support for NFSv4 [default=yes]
1533   --enable-gss            enable support for rpcsec_gss [default=yes]
1534   --enable-kprefix        install progs as rpc.knfsd etc
1535   --enable-secure-statd   Only lockd can use statd (security)
1536   --without-uuid          Exclude uuid support and so avoid possibly buggy
1537                           libblkid
1538   --enable-mount          Create mount.nfs and don't use the util-linux
1539                           mount(8) functionality. [default=yes]
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --disable-largefile     omit support for large files
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-static[=PKGS]  build static libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548
1549 Optional Packages:
1550   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552   --with-release=XXX      set release to XXX [1]
1553   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1554   --with-statduser=rpcuser
1555                           statd to run under [rpcuser or nobody]
1556   --with-start-statd=scriptname
1557                           When an nfs filesystems is mounted with locking, run
1558                           this script
1559   --with-rpcgen=internal  use internal rpcgen instead of system one
1560   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1561                  (optionally in PATH)
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-pic              try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-tags[=TAGS]      include additional configurations [automatic]
1566   --with-krb5=DIR         use Kerberos v5 installation in DIR
1567
1568 Some influential environment variables:
1569   CC          C compiler command
1570   CFLAGS      C compiler flags
1571   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572               nonstandard directory <lib dir>
1573   LIBS        libraries to pass to the linker, e.g. -l<library>
1574   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575               you have headers in a nonstandard directory <include dir>
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   CPP         C preprocessor
1579   CXXCPP      C++ preprocessor
1580   F77         Fortran 77 compiler command
1581   FFLAGS      Fortran 77 compiler flags
1582   PKG_CONFIG  path to pkg-config utility
1583   RPCSECGSS_CFLAGS
1584               C compiler flags for RPCSECGSS, overriding pkg-config
1585   RPCSECGSS_LIBS
1586               linker flags for RPCSECGSS, overriding pkg-config
1587   GSSGLUE_CFLAGS
1588               C compiler flags for GSSGLUE, overriding pkg-config
1589   GSSGLUE_LIBS
1590               linker flags for GSSGLUE, overriding pkg-config
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <nfs@lists.sf.net>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601   # If there are subdirs, report their specific --help.
1602   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603     test -d "$ac_dir" || continue
1604     ac_builddir=.
1605
1606 case "$ac_dir" in
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *)
1609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1610   # A ".." for each directory in $ac_dir_suffix.
1611   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1612   case $ac_top_builddir_sub in
1613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615   esac ;;
1616 esac
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1621
1622 case $srcdir in
1623   .)  # We are building in place.
1624     ac_srcdir=.
1625     ac_top_srcdir=$ac_top_builddir_sub
1626     ac_abs_top_srcdir=$ac_pwd ;;
1627   [\\/]* | ?:[\\/]* )  # Absolute name.
1628     ac_srcdir=$srcdir$ac_dir_suffix;
1629     ac_top_srcdir=$srcdir
1630     ac_abs_top_srcdir=$srcdir ;;
1631   *) # Relative name.
1632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633     ac_top_srcdir=$ac_top_build_prefix$srcdir
1634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 esac
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638     cd "$ac_dir" || { ac_status=$?; continue; }
1639     # Check for guested configure.
1640     if test -f "$ac_srcdir/configure.gnu"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643     elif test -f "$ac_srcdir/configure"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure" --help=recursive
1646     else
1647       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648     fi || ac_status=$?
1649     cd "$ac_pwd" || { ac_status=$?; break; }
1650   done
1651 fi
1652
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1655   cat <<\_ACEOF
1656 linux nfs-utils configure 1.1.1
1657 generated by GNU Autoconf 2.61
1658
1659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664   exit
1665 fi
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1669
1670 It was created by linux nfs-utils $as_me 1.1.1, which was
1671 generated by GNU Autoconf 2.61.  Invocation command line was
1672
1673   $ $0 $@
1674
1675 _ACEOF
1676 exec 5>>config.log
1677 {
1678 cat <<_ASUNAME
1679 ## --------- ##
1680 ## Platform. ##
1681 ## --------- ##
1682
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1691
1692 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1693 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1696 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1697 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1698 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1699
1700 _ASUNAME
1701
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   echo "PATH: $as_dir"
1708 done
1709 IFS=$as_save_IFS
1710
1711 } >&5
1712
1713 cat >&5 <<_ACEOF
1714
1715
1716 ## ----------- ##
1717 ## Core tests. ##
1718 ## ----------- ##
1719
1720 _ACEOF
1721
1722
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_configure_args=
1729 ac_configure_args0=
1730 ac_configure_args1=
1731 ac_must_keep_next=false
1732 for ac_pass in 1 2
1733 do
1734   for ac_arg
1735   do
1736     case $ac_arg in
1737     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739     | -silent | --silent | --silen | --sile | --sil)
1740       continue ;;
1741     *\'*)
1742       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743     esac
1744     case $ac_pass in
1745     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746     2)
1747       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748       if test $ac_must_keep_next = true; then
1749         ac_must_keep_next=false # Got value, back to normal.
1750       else
1751         case $ac_arg in
1752           *=* | --config-cache | -C | -disable-* | --disable-* \
1753           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755           | -with-* | --with-* | -without-* | --without-* | --x)
1756             case "$ac_configure_args0 " in
1757               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758             esac
1759             ;;
1760           -* ) ac_must_keep_next=true ;;
1761         esac
1762       fi
1763       ac_configure_args="$ac_configure_args '$ac_arg'"
1764       ;;
1765     esac
1766   done
1767 done
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log.  We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777   # Save into config.log some information that might help in debugging.
1778   {
1779     echo
1780
1781     cat <<\_ASBOX
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1785 _ASBOX
1786     echo
1787     # The following way of writing the cache mishandles newlines in values,
1788 (
1789   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790     eval ac_val=\$$ac_var
1791     case $ac_val in #(
1792     *${as_nl}*)
1793       case $ac_var in #(
1794       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796       esac
1797       case $ac_var in #(
1798       _ | IFS | as_nl) ;; #(
1799       *) $as_unset $ac_var ;;
1800       esac ;;
1801     esac
1802   done
1803   (set) 2>&1 |
1804     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805     *${as_nl}ac_space=\ *)
1806       sed -n \
1807         "s/'\''/'\''\\\\'\'''\''/g;
1808           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809       ;; #(
1810     *)
1811       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812       ;;
1813     esac |
1814     sort
1815 )
1816     echo
1817
1818     cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823     echo
1824     for ac_var in $ac_subst_vars
1825     do
1826       eval ac_val=\$$ac_var
1827       case $ac_val in
1828       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829       esac
1830       echo "$ac_var='\''$ac_val'\''"
1831     done | sort
1832     echo
1833
1834     if test -n "$ac_subst_files"; then
1835       cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840       echo
1841       for ac_var in $ac_subst_files
1842       do
1843         eval ac_val=\$$ac_var
1844         case $ac_val in
1845         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846         esac
1847         echo "$ac_var='\''$ac_val'\''"
1848       done | sort
1849       echo
1850     fi
1851
1852     if test -s confdefs.h; then
1853       cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858       echo
1859       cat confdefs.h
1860       echo
1861     fi
1862     test "$ac_signal" != 0 &&
1863       echo "$as_me: caught signal $ac_signal"
1864     echo "$as_me: exit $exit_status"
1865   } >&5
1866   rm -f core *.core core.conftest.* &&
1867     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868     exit $exit_status
1869 ' 0
1870 for ac_signal in 1 2 13 15; do
1871   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1874
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1877
1878 # Predefined preprocessor variables.
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1903
1904
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908   set x "$CONFIG_SITE"
1909 elif test "x$prefix" != xNONE; then
1910   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1911 else
1912   set x "$ac_default_prefix/share/config.site" \
1913         "$ac_default_prefix/etc/config.site"
1914 fi
1915 shift
1916 for ac_site_file
1917 do
1918   if test -r "$ac_site_file"; then
1919     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1920 echo "$as_me: loading site script $ac_site_file" >&6;}
1921     sed 's/^/| /' "$ac_site_file" >&5
1922     . "$ac_site_file"
1923   fi
1924 done
1925
1926 if test -r "$cache_file"; then
1927   # Some versions of bash will fail to source /dev/null (special
1928   # files actually), so we avoid doing that.
1929   if test -f "$cache_file"; then
1930     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1931 echo "$as_me: loading cache $cache_file" >&6;}
1932     case $cache_file in
1933       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934       *)                      . "./$cache_file";;
1935     esac
1936   fi
1937 else
1938   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1939 echo "$as_me: creating cache $cache_file" >&6;}
1940   >$cache_file
1941 fi
1942
1943 # Check that the precious variables saved in the cache have kept the same
1944 # value.
1945 ac_cache_corrupted=false
1946 for ac_var in $ac_precious_vars; do
1947   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948   eval ac_new_set=\$ac_env_${ac_var}_set
1949   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950   eval ac_new_val=\$ac_env_${ac_var}_value
1951   case $ac_old_set,$ac_new_set in
1952     set,)
1953       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955       ac_cache_corrupted=: ;;
1956     ,set)
1957       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959       ac_cache_corrupted=: ;;
1960     ,);;
1961     *)
1962       if test "x$ac_old_val" != "x$ac_new_val"; then
1963         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1964 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1966 echo "$as_me:   former value:  $ac_old_val" >&2;}
1967         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1968 echo "$as_me:   current value: $ac_new_val" >&2;}
1969         ac_cache_corrupted=:
1970       fi;;
1971   esac
1972   # Pass precious variables to config.status.
1973   if test "$ac_new_set" = set; then
1974     case $ac_new_val in
1975     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976     *) ac_arg=$ac_var=$ac_new_val ;;
1977     esac
1978     case " $ac_configure_args " in
1979       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1980       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981     esac
1982   fi
1983 done
1984 if $ac_cache_corrupted; then
1985   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016 ac_ext=c
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021
2022
2023 ac_aux_dir=
2024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2025   if test -f "$ac_dir/install-sh"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/install-sh -c"
2028     break
2029   elif test -f "$ac_dir/install.sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install.sh -c"
2032     break
2033   elif test -f "$ac_dir/shtool"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/shtool install -c"
2036     break
2037   fi
2038 done
2039 if test -z "$ac_aux_dir"; then
2040   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2041 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2042    { (exit 1); exit 1; }; }
2043 fi
2044
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2052
2053
2054 # Make sure we can run config.sub.
2055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2056   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2057 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 { echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_build+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   ac_build_alias=$build_alias
2066 test "x$ac_build_alias" = x &&
2067   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2068 test "x$ac_build_alias" = x &&
2069   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071    { (exit 1); exit 1; }; }
2072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2073   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2074 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 fi
2078 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6; }
2080 case $ac_cv_build in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2083 echo "$as_me: error: invalid value of canonical build" >&2;}
2084    { (exit 1); exit 1; }; };;
2085 esac
2086 build=$ac_cv_build
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_build
2089 shift
2090 build_cpu=$1
2091 build_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 build_os=$*
2096 IFS=$ac_save_IFS
2097 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 { echo "$as_me:$LINENO: checking host system type" >&5
2101 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_host+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test "x$host_alias" = x; then
2106   ac_cv_host=$ac_cv_build
2107 else
2108   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2109     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 fi
2115 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2116 echo "${ECHO_T}$ac_cv_host" >&6; }
2117 case $ac_cv_host in
2118 *-*-*) ;;
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2120 echo "$as_me: error: invalid value of canonical host" >&2;}
2121    { (exit 1); exit 1; }; };;
2122 esac
2123 host=$ac_cv_host
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_host
2126 shift
2127 host_cpu=$1
2128 host_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 host_os=$*
2133 IFS=$ac_save_IFS
2134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2135
2136
2137
2138 am__api_version='1.10'
2139
2140 # Find a good install program.  We prefer a C program (faster),
2141 # so one script is as good as another.  But avoid the broken or
2142 # incompatible versions:
2143 # SysV /etc/install, /usr/sbin/install
2144 # SunOS /usr/etc/install
2145 # IRIX /sbin/install
2146 # AIX /bin/install
2147 # AmigaOS /C/install, which installs bootblocks on floppy discs
2148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2151 # OS/2's system install, which has a completely different semantic
2152 # ./install, which can be erroneously created by make from ./install.sh.
2153 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2155 if test -z "$INSTALL"; then
2156 if test "${ac_cv_path_install+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   # Account for people who put trailing slashes in PATH elements.
2165 case $as_dir/ in
2166   ./ | .// | /cC/* | \
2167   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2168   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2169   /usr/ucb/* ) ;;
2170   *)
2171     # OSF1 and SCO ODT 3.0 have their own names for install.
2172     # Don't use installbsd from OSF since it installs stuff as root
2173     # by default.
2174     for ac_prog in ginstall scoinst install; do
2175       for ac_exec_ext in '' $ac_executable_extensions; do
2176         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2177           if test $ac_prog = install &&
2178             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179             # AIX install.  It has an incompatible calling convention.
2180             :
2181           elif test $ac_prog = install &&
2182             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183             # program-specific install script used by HP pwplus--don't use.
2184             :
2185           else
2186             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187             break 3
2188           fi
2189         fi
2190       done
2191     done
2192     ;;
2193 esac
2194 done
2195 IFS=$as_save_IFS
2196
2197
2198 fi
2199   if test "${ac_cv_path_install+set}" = set; then
2200     INSTALL=$ac_cv_path_install
2201   else
2202     # As a last resort, use the slow shell script.  Don't cache a
2203     # value for INSTALL within a source directory, because that will
2204     # break other packages using the cache if that directory is
2205     # removed, or if the value is a relative name.
2206     INSTALL=$ac_install_sh
2207   fi
2208 fi
2209 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2210 echo "${ECHO_T}$INSTALL" >&6; }
2211
2212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213 # It thinks the first close brace ends the variable substitution.
2214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215
2216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217
2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219
2220 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2221 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2222 # Just in case
2223 sleep 1
2224 echo timestamp > conftest.file
2225 # Do `set' in a subshell so we don't clobber the current shell's
2226 # arguments.  Must try -L first in case configure is actually a
2227 # symlink; some systems play weird games with the mod time of symlinks
2228 # (eg FreeBSD returns the mod time of the symlink's containing
2229 # directory).
2230 if (
2231    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2232    if test "$*" = "X"; then
2233       # -L didn't work.
2234       set X `ls -t $srcdir/configure conftest.file`
2235    fi
2236    rm -f conftest.file
2237    if test "$*" != "X $srcdir/configure conftest.file" \
2238       && test "$*" != "X conftest.file $srcdir/configure"; then
2239
2240       # If neither matched, then we have a broken ls.  This can happen
2241       # if, for instance, CONFIG_SHELL is bash and it inherits a
2242       # broken ls alias from the environment.  This has actually
2243       # happened.  Such a system could not be considered "sane".
2244       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2245 alias in your environment" >&5
2246 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2247 alias in your environment" >&2;}
2248    { (exit 1); exit 1; }; }
2249    fi
2250
2251    test "$2" = conftest.file
2252    )
2253 then
2254    # Ok.
2255    :
2256 else
2257    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2258 Check your system clock" >&5
2259 echo "$as_me: error: newly created file is older than distributed files!
2260 Check your system clock" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6; }
2265 test "$program_prefix" != NONE &&
2266   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2267 # Use a double $ so make ignores it.
2268 test "$program_suffix" != NONE &&
2269   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2270 # Double any \ or $.  echo might interpret backslashes.
2271 # By default was `s,x,x', remove it if useless.
2272 cat <<\_ACEOF >conftest.sed
2273 s/[\\$]/&&/g;s/;s,x,x,$//
2274 _ACEOF
2275 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2276 rm -f conftest.sed
2277
2278 # expand $ac_aux_dir to an absolute path
2279 am_aux_dir=`cd $ac_aux_dir && pwd`
2280
2281 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284   am_missing_run="$MISSING --run "
2285 else
2286   am_missing_run=
2287   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289 fi
2290
2291 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2292 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2293 if test -z "$MKDIR_P"; then
2294   if test "${ac_cv_path_mkdir+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_prog in mkdir gmkdir; do
2303          for ac_exec_ext in '' $ac_executable_extensions; do
2304            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2305            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2306              'mkdir (GNU coreutils) '* | \
2307              'mkdir (coreutils) '* | \
2308              'mkdir (fileutils) '4.1*)
2309                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2310                break 3;;
2311            esac
2312          done
2313        done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318
2319   if test "${ac_cv_path_mkdir+set}" = set; then
2320     MKDIR_P="$ac_cv_path_mkdir -p"
2321   else
2322     # As a last resort, use the slow shell script.  Don't cache a
2323     # value for MKDIR_P within a source directory, because that will
2324     # break other packages using the cache if that directory is
2325     # removed, or if the value is a relative name.
2326     test -d ./--version && rmdir ./--version
2327     MKDIR_P="$ac_install_sh -d"
2328   fi
2329 fi
2330 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2331 echo "${ECHO_T}$MKDIR_P" >&6; }
2332
2333 mkdir_p="$MKDIR_P"
2334 case $mkdir_p in
2335   [\\/$]* | ?:[\\/]*) ;;
2336   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2337 esac
2338
2339 for ac_prog in gawk mawk nawk awk
2340 do
2341   # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_AWK+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$AWK"; then
2349   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_AWK="$ac_prog"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 AWK=$ac_cv_prog_AWK
2369 if test -n "$AWK"; then
2370   { echo "$as_me:$LINENO: result: $AWK" >&5
2371 echo "${ECHO_T}$AWK" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378   test -n "$AWK" && break
2379 done
2380
2381 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2382 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2383 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2384 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.make <<\_ACEOF
2388 SHELL = /bin/sh
2389 all:
2390         @echo '@@@%%%=$(MAKE)=@@@%%%'
2391 _ACEOF
2392 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2394   *@@@%%%=?*=@@@%%%*)
2395     eval ac_cv_prog_make_${ac_make}_set=yes;;
2396   *)
2397     eval ac_cv_prog_make_${ac_make}_set=no;;
2398 esac
2399 rm -f conftest.make
2400 fi
2401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2402   { echo "$as_me:$LINENO: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6; }
2404   SET_MAKE=
2405 else
2406   { echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6; }
2408   SET_MAKE="MAKE=${MAKE-make}"
2409 fi
2410
2411 rm -rf .tst 2>/dev/null
2412 mkdir .tst 2>/dev/null
2413 if test -d .tst; then
2414   am__leading_dot=.
2415 else
2416   am__leading_dot=_
2417 fi
2418 rmdir .tst 2>/dev/null
2419
2420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2421   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2422   # is not polluted with repeated "-I."
2423   am__isrc=' -I$(srcdir)'
2424   # test to see if srcdir already configured
2425   if test -f $srcdir/config.status; then
2426     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2427 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2428    { (exit 1); exit 1; }; }
2429   fi
2430 fi
2431
2432 # test whether we have cygpath
2433 if test -z "$CYGPATH_W"; then
2434   if (cygpath --version) >/dev/null 2>/dev/null; then
2435     CYGPATH_W='cygpath -w'
2436   else
2437     CYGPATH_W=echo
2438   fi
2439 fi
2440
2441
2442 # Define the identity of the package.
2443  PACKAGE='nfs-utils'
2444  VERSION='1.1.1'
2445
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE "$PACKAGE"
2449 _ACEOF
2450
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define VERSION "$VERSION"
2454 _ACEOF
2455
2456 # Some tools Automake needs.
2457
2458 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2459
2460
2461 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2462
2463
2464 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2465
2466
2467 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2468
2469
2470 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2471
2472 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2473
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'.  However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479   if test -n "$ac_tool_prefix"; then
2480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_STRIP+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$STRIP"; then
2488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509   { echo "$as_me:$LINENO: result: $STRIP" >&5
2510 echo "${ECHO_T}$STRIP" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_STRIP"; then
2519   ac_ct_STRIP=$STRIP
2520   # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_STRIP"; then
2528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_ac_ct_STRIP="strip"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556   if test "x$ac_ct_STRIP" = x; then
2557     STRIP=":"
2558   else
2559     case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet.  If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet.  If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569     STRIP=$ac_ct_STRIP
2570   fi
2571 else
2572   STRIP="$ac_cv_prog_STRIP"
2573 fi
2574
2575 fi
2576 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2577
2578 # We need awk for the "check" target.  The system "awk" is bad on
2579 # some platforms.
2580 # Always define AMTAR for backward compatibility.
2581
2582 AMTAR=${AMTAR-"${am_missing_run}tar"}
2583
2584 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2585
2586
2587
2588
2589
2590
2591
2592 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2594     # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then
2596   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2597 else
2598   USE_MAINTAINER_MODE=no
2599 fi
2600
2601   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2602 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2603    if test $USE_MAINTAINER_MODE = yes; then
2604   MAINTAINER_MODE_TRUE=
2605   MAINTAINER_MODE_FALSE='#'
2606 else
2607   MAINTAINER_MODE_TRUE='#'
2608   MAINTAINER_MODE_FALSE=
2609 fi
2610
2611   MAINT=$MAINTAINER_MODE_TRUE
2612
2613
2614
2615
2616 # Check whether --with-release was given.
2617 if test "${with_release+set}" = set; then
2618   withval=$with_release; RELEASE=$withval
2619 else
2620   RELEASE=1
2621 fi
2622
2623
2624
2625 # Check whether --with-statedir was given.
2626 if test "${with_statedir+set}" = set; then
2627   withval=$with_statedir; statedir=$withval
2628 else
2629   statedir=/var/lib/nfs
2630 fi
2631
2632
2633
2634 # Check whether --with-statduser was given.
2635 if test "${with_statduser+set}" = set; then
2636   withval=$with_statduser; statduser=$withval
2637 else
2638   if test "x$cross_compiling" = "xno"; then
2639                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2640                         statduser=rpcuser
2641                 else
2642                         statduser=nobody
2643                 fi
2644         else
2645                 statduser=nobody
2646         fi
2647 fi
2648
2649
2650
2651 # Check whether --with-start-statd was given.
2652 if test "${with_start_statd+set}" = set; then
2653   withval=$with_start_statd; startstatd=$withval
2654 else
2655   startstatd=/usr/sbin/start-statd
2656
2657 fi
2658
2659
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define START_STATD "$startstatd"
2663 _ACEOF
2664
2665 # Check whether --enable-nfsv3 was given.
2666 if test "${enable_nfsv3+set}" = set; then
2667   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2668 else
2669   enable_nfsv3=yes
2670 fi
2671
2672         if test "$enable_nfsv3" = yes; then
2673
2674 cat >>confdefs.h <<\_ACEOF
2675 #define NFS3_SUPPORTED 1
2676 _ACEOF
2677
2678         else
2679                 enable_nfsv3=
2680         fi
2681
2682 # Check whether --enable-nfsv4 was given.
2683 if test "${enable_nfsv4+set}" = set; then
2684   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2685 else
2686   enable_nfsv4=yes
2687 fi
2688
2689         if test "$enable_nfsv4" = yes; then
2690
2691 cat >>confdefs.h <<\_ACEOF
2692 #define NFS4_SUPPORTED 1
2693 _ACEOF
2694
2695                 IDMAPD=idmapd
2696         else
2697                 enable_nfsv4=
2698                 IDMAPD=
2699         fi
2700
2701
2702          if test "$enable_nfsv4" = "yes"; then
2703   CONFIG_NFSV4_TRUE=
2704   CONFIG_NFSV4_FALSE='#'
2705 else
2706   CONFIG_NFSV4_TRUE='#'
2707   CONFIG_NFSV4_FALSE=
2708 fi
2709
2710 # Check whether --enable-gss was given.
2711 if test "${enable_gss+set}" = set; then
2712   enableval=$enable_gss; enable_gss=$enableval
2713 else
2714   enable_gss=yes
2715 fi
2716
2717         if test "$enable_gss" = yes; then
2718
2719 cat >>confdefs.h <<\_ACEOF
2720 #define GSS_SUPPORTED 1
2721 _ACEOF
2722
2723                 GSSD=gssd
2724                 SVCGSSD=svcgssd
2725         else
2726                 enable_gss=
2727                 GSSD=
2728                 SVCGSSD=
2729         fi
2730
2731
2732
2733          if test "$enable_gss" = "yes"; then
2734   CONFIG_GSS_TRUE=
2735   CONFIG_GSS_FALSE='#'
2736 else
2737   CONFIG_GSS_TRUE='#'
2738   CONFIG_GSS_FALSE=
2739 fi
2740
2741 # Check whether --enable-kprefix was given.
2742 if test "${enable_kprefix+set}" = set; then
2743   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2744 else
2745   kprefix=
2746 fi
2747
2748
2749 # Check whether --enable-secure-statd was given.
2750 if test "${enable_secure_statd+set}" = set; then
2751   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2752 else
2753   secure_statd=yes
2754 fi
2755
2756         if test "$secure_statd" = yes; then
2757
2758 cat >>confdefs.h <<\_ACEOF
2759 #define RESTRICTED_STATD 1
2760 _ACEOF
2761
2762         fi
2763
2764
2765 # Check whether --with-rpcgen was given.
2766 if test "${with_rpcgen+set}" = set; then
2767   withval=$with_rpcgen; rpcgen_path=$withval
2768 else
2769   rpcgen_path=yes
2770 fi
2771
2772         RPCGEN_PATH=
2773         if test "$rpcgen_path" == "yes"; then
2774             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2775             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2776         elif test "$rpcgen_path" != "internal"; then
2777             RPCGEN_PATH=$rpcgen_path
2778         fi
2779
2780          if test "$RPCGEN_PATH" == ""; then
2781   CONFIG_RPCGEN_TRUE=
2782   CONFIG_RPCGEN_FALSE='#'
2783 else
2784   CONFIG_RPCGEN_TRUE='#'
2785   CONFIG_RPCGEN_FALSE=
2786 fi
2787
2788 # Check whether --enable-uuid was given.
2789 if test "${enable_uuid+set}" = set; then
2790   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2791 else
2792   choose_blkid=default
2793 fi
2794
2795 # Check whether --enable-mount was given.
2796 if test "${enable_mount+set}" = set; then
2797   enableval=$enable_mount; enable_mount=$enableval
2798 else
2799   enable_mount=yes
2800 fi
2801
2802          if test "$enable_mount" = "yes"; then
2803   CONFIG_MOUNT_TRUE=
2804   CONFIG_MOUNT_FALSE='#'
2805 else
2806   CONFIG_MOUNT_TRUE='#'
2807   CONFIG_MOUNT_FALSE=
2808 fi
2809
2810
2811 # Check whether user wants TCP wrappers support
2812 DEPDIR="${am__leading_dot}deps"
2813
2814 ac_config_commands="$ac_config_commands depfiles"
2815
2816
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2819 am__doit:
2820         @echo done
2821 .PHONY: am__doit
2822 END
2823 # If we don't find an include directive, just comment out the code.
2824 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2825 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2826 am__include="#"
2827 am__quote=
2828 _am_result=none
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # We grep out `Entering directory' and `Leaving directory'
2832 # messages which can occur if `w' ends up in MAKEFLAGS.
2833 # In particular we don't look at `^make:' because GNU make might
2834 # be invoked under some other name (usually "gmake"), in which
2835 # case it prints its new name instead of `make'.
2836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2837    am__include=include
2838    am__quote=
2839    _am_result=GNU
2840 fi
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843    echo '.include "confinc"' > confmf
2844    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2845       am__include=.include
2846       am__quote="\""
2847       _am_result=BSD
2848    fi
2849 fi
2850
2851
2852 { echo "$as_me:$LINENO: result: $_am_result" >&5
2853 echo "${ECHO_T}$_am_result" >&6; }
2854 rm -f confinc confmf
2855
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then
2858   enableval=$enable_dependency_tracking;
2859 fi
2860
2861 if test "x$enable_dependency_tracking" != xno; then
2862   am_depcomp="$ac_aux_dir/depcomp"
2863   AMDEPBACKSLASH='\'
2864 fi
2865  if test "x$enable_dependency_tracking" != xno; then
2866   AMDEP_TRUE=
2867   AMDEP_FALSE='#'
2868 else
2869   AMDEP_TRUE='#'
2870   AMDEP_FALSE=
2871 fi
2872
2873
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6; }
2951 else
2952   { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_CC" = x; then
2957     CC=""
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2962 whose name does not start with the host triplet.  If you think this
2963 configuration is useful to you, please write to autoconf@gnu.org." >&5
2964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969     CC=$ac_ct_CC
2970   fi
2971 else
2972   CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976           if test -n "$ac_tool_prefix"; then
2977     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   if test -n "$CC"; then
2985   ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990   IFS=$as_save_IFS
2991   test -z "$as_dir" && as_dir=.
2992   for ac_exec_ext in '' $ac_executable_extensions; do
2993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994     ac_cv_prog_CC="${ac_tool_prefix}cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006   { echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6; }
3008 else
3009   { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3011 fi
3012
3013
3014   fi
3015 fi
3016 if test -z "$CC"; then
3017   # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$CC"; then
3025   ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027   ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033   for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036        ac_prog_rejected=yes
3037        continue
3038      fi
3039     ac_cv_prog_CC="cc"
3040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 if test $ac_prog_rejected = yes; then
3048   # We found a bogon in the path, so make sure we never use it.
3049   set dummy $ac_cv_prog_CC
3050   shift
3051   if test $# != 0; then
3052     # We chose a different compiler from the bogus one.
3053     # However, it has the same basename, so the bogon will be chosen
3054     # first if we set CC to just the basename; use the full file name.
3055     shift
3056     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057   fi
3058 fi
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063   { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3065 else
3066   { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$CC"; then
3073   if test -n "$ac_tool_prefix"; then
3074   for ac_prog in cl.exe
3075   do
3076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -n "$CC"; then
3084   ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105   { echo "$as_me:$LINENO: result: $CC" >&5
3106 echo "${ECHO_T}$CC" >&6; }
3107 else
3108   { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3110 fi
3111
3112
3113     test -n "$CC" && break
3114   done
3115 fi
3116 if test -z "$CC"; then
3117   ac_ct_CC=$CC
3118   for ac_prog in cl.exe
3119 do
3120   # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test -n "$ac_ct_CC"; then
3128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137     ac_cv_prog_ac_ct_CC="$ac_prog"
3138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 echo "${ECHO_T}$ac_ct_CC" >&6; }
3151 else
3152   { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3154 fi
3155
3156
3157   test -n "$ac_ct_CC" && break
3158 done
3159
3160   if test "x$ac_ct_CC" = x; then
3161     CC=""
3162   else
3163     case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet.  If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&5
3168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet.  If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173     CC=$ac_ct_CC
3174   fi
3175 fi
3176
3177 fi
3178
3179
3180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&2;}
3184    { (exit 1); exit 1; }; }
3185
3186 # Provide some information about the compiler.
3187 echo "$as_me:$LINENO: checking for C compiler version" >&5
3188 ac_compiler=`set X $ac_compile; echo $2`
3189 { (ac_try="$ac_compiler --version >&5"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_compiler --version >&5") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compiler -v >&5") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }
3209 { (ac_try="$ac_compiler -V >&5"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_compiler -V >&5") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243 #
3244 # List of possible output files, starting from the most likely.
3245 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3246 # only as a last resort.  b.out is created by i960 compilers.
3247 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3248 #
3249 # The IRIX 6 linker writes into existing files which may not be
3250 # executable, retaining their permissions.  Remove them first so a
3251 # subsequent execution test works.
3252 ac_rmfiles=
3253 for ac_file in $ac_files
3254 do
3255   case $ac_file in
3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3257     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258   esac
3259 done
3260 rm -f $ac_rmfiles
3261
3262 if { (ac_try="$ac_link_default"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_link_default") 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; then
3272   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3276 # Autoconf.
3277 for ac_file in $ac_files ''
3278 do
3279   test -f "$ac_file" || continue
3280   case $ac_file in
3281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3282         ;;
3283     [ab].out )
3284         # We found the default executable, but exeext='' is most
3285         # certainly right.
3286         break;;
3287     *.* )
3288         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289         then :; else
3290            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291         fi
3292         # We set ac_cv_exeext here because the later test for it is not
3293         # safe: cross compilers may not add the suffix if given an `-o'
3294         # argument, so we may need to know it at that point already.
3295         # Even if this section looks crufty: it has the advantage of
3296         # actually working.
3297         break;;
3298     * )
3299         break;;
3300   esac
3301 done
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3303
3304 else
3305   ac_file=''
3306 fi
3307
3308 { echo "$as_me:$LINENO: result: $ac_file" >&5
3309 echo "${ECHO_T}$ac_file" >&6; }
3310 if test -z "$ac_file"; then
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318    { (exit 77); exit 77; }; }
3319 fi
3320
3321 ac_exeext=$ac_cv_exeext
3322
3323 # Check that the compiler produces executables we can run.  If not, either
3324 # the compiler is broken, or we cross compile.
3325 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330   if { ac_try='./$ac_file'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; }; then
3340     cross_compiling=no
3341   else
3342     if test "$cross_compiling" = maybe; then
3343         cross_compiling=yes
3344     else
3345         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3346 If you meant to cross compile, use \`--host'.
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&2;}
3351    { (exit 1); exit 1; }; }
3352     fi
3353   fi
3354 fi
3355 { echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6; }
3357
3358 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 # Check that the compiler produces executables we can run.  If not, either
3361 # the compiler is broken, or we cross compile.
3362 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3363 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3364 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3365 echo "${ECHO_T}$cross_compiling" >&6; }
3366
3367 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3368 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3369 if { (ac_try="$ac_link"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_link") 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; then
3379   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3381 # work properly (i.e., refer to `conftest.exe'), while it won't with
3382 # `rm'.
3383 for ac_file in conftest.exe conftest conftest.*; do
3384   test -f "$ac_file" || continue
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3387     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388           break;;
3389     * ) break;;
3390   esac
3391 done
3392 else
3393   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&2;}
3397    { (exit 1); exit 1; }; }
3398 fi
3399
3400 rm -f conftest$ac_cv_exeext
3401 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3402 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3403
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3408 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3409 if test "${ac_cv_objext+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_compile") 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   for ac_file in conftest.o conftest.obj conftest.*; do
3439   test -f "$ac_file" || continue;
3440   case $ac_file in
3441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3442     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443        break;;
3444   esac
3445 done
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 fi
3459 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3460 echo "${ECHO_T}$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478 #ifndef __GNUC__
3479        choke me
3480 #endif
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493   (eval "$ac_compile") 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } && {
3500          test -z "$ac_c_werror_flag" ||
3501          test ! -s conftest.err
3502        } && test -s conftest.$ac_objext; then
3503   ac_compiler_gnu=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508         ac_compiler_gnu=no
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3517 GCC=`test $ac_compiler_gnu = yes && echo yes`
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_g+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   ac_save_c_werror_flag=$ac_c_werror_flag
3526    ac_c_werror_flag=yes
3527    ac_cv_prog_cc_g=no
3528    CFLAGS="-g"
3529    cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_compile") 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } && {
3558          test -z "$ac_c_werror_flag" ||
3559          test ! -s conftest.err
3560        } && test -s conftest.$ac_objext; then
3561   ac_cv_prog_cc_g=yes
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566         CFLAGS=""
3567       cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_compile") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } && {
3596          test -z "$ac_c_werror_flag" ||
3597          test ! -s conftest.err
3598        } && test -s conftest.$ac_objext; then
3599   :
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604         ac_c_werror_flag=$ac_save_c_werror_flag
3605          CFLAGS="-g"
3606          cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628   (eval "$ac_compile") 2>conftest.er1
3629   ac_status=$?
3630   grep -v '^ *+' conftest.er1 >conftest.err
3631   rm -f conftest.er1
3632   cat conftest.err >&5
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); } && {
3635          test -z "$ac_c_werror_flag" ||
3636          test ! -s conftest.err
3637        } && test -s conftest.$ac_objext; then
3638   ac_cv_prog_cc_g=yes
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643
3644 fi
3645
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653    ac_c_werror_flag=$ac_save_c_werror_flag
3654 fi
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658   CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660   if test "$GCC" = yes; then
3661     CFLAGS="-g -O2"
3662   else
3663     CFLAGS="-g"
3664   fi
3665 else
3666   if test "$GCC" = yes; then
3667     CFLAGS="-O2"
3668   else
3669     CFLAGS=
3670   fi
3671 fi
3672 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3673 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3674 if test "${ac_cv_prog_cc_c89+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_cv_prog_cc_c89=no
3678 ac_save_CC=$CC
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685 #include <stdarg.h>
3686 #include <stdio.h>
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693      char **p;
3694      int i;
3695 {
3696   return p[i];
3697 }
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3699 {
3700   char *s;
3701   va_list v;
3702   va_start (v,p);
3703   s = g (p, va_arg (v,int));
3704   va_end (v);
3705   return s;
3706 }
3707
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3709    function prototypes and stuff, but not '\xHH' hex character constants.
3710    These don't provoke an error unfortunately, instead are silently treated
3711    as 'x'.  The following induces an error, until -std is added to get
3712    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3713    array size at least.  It's necessary to write '\x00'==0 to get something
3714    that's true only with -std.  */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718    inside strings and character constants.  */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3728 int
3729 main ()
3730 {
3731 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 do
3739   CC="$ac_save_CC $ac_arg"
3740   rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_compile") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } && {
3754          test -z "$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        } && test -s conftest.$ac_objext; then
3757   ac_cv_prog_cc_c89=$ac_arg
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762
3763 fi
3764
3765 rm -f core conftest.err conftest.$ac_objext
3766   test "x$ac_cv_prog_cc_c89" != "xno" && break
3767 done
3768 rm -f conftest.$ac_ext
3769 CC=$ac_save_CC
3770
3771 fi
3772 # AC_CACHE_VAL
3773 case "x$ac_cv_prog_cc_c89" in
3774   x)
3775     { echo "$as_me:$LINENO: result: none needed" >&5
3776 echo "${ECHO_T}none needed" >&6; } ;;
3777   xno)
3778     { echo "$as_me:$LINENO: result: unsupported" >&5
3779 echo "${ECHO_T}unsupported" >&6; } ;;
3780   *)
3781     CC="$CC $ac_cv_prog_cc_c89"
3782     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3783 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3784 esac
3785
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793 depcc="$CC"   am_compiler_list=
3794
3795 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3797 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801   # We make a subdir and do the tests there.  Otherwise we can end up
3802   # making bogus files that we don't know about and never remove.  For
3803   # instance it was reported that on HP-UX the gcc test will end up
3804   # making a dummy file named `D' -- because `-MD' means `put the output
3805   # in D'.
3806   mkdir conftest.dir
3807   # Copy depcomp to subdir because otherwise we won't find it if we're
3808   # using a relative directory.
3809   cp "$am_depcomp" conftest.dir
3810   cd conftest.dir
3811   # We will build objects and dependencies in a subdirectory because
3812   # it helps to detect inapplicable dependency modes.  For instance
3813   # both Tru64's cc and ICC support -MD to output dependencies as a
3814   # side effect of compilation, but ICC will put the dependencies in
3815   # the current directory while Tru64 will put them in the object
3816   # directory.
3817   mkdir sub
3818
3819   am_cv_CC_dependencies_compiler_type=none
3820   if test "$am_compiler_list" = ""; then
3821      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3822   fi
3823   for depmode in $am_compiler_list; do
3824     # Setup a source with many dependencies, because some compilers
3825     # like to wrap large dependency lists on column 80 (with \), and
3826     # we should not choose a depcomp mode which is confused by this.
3827     #
3828     # We need to recreate these files for each test, as the compiler may
3829     # overwrite some of them when testing with obscure command lines.
3830     # This happens at least with the AIX C compiler.
3831     : > sub/conftest.c
3832     for i in 1 2 3 4 5 6; do
3833       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835       # Solaris 8's {/usr,}/bin/sh.
3836       touch sub/conftst$i.h
3837     done
3838     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840     case $depmode in
3841     nosideeffect)
3842       # after this tag, mechanisms are not by side-effect, so they'll
3843       # only be used when explicitly requested
3844       if test "x$enable_dependency_tracking" = xyes; then
3845         continue
3846       else
3847         break
3848       fi
3849       ;;
3850     none) break ;;
3851     esac
3852     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3853     # mode.  It turns out that the SunPro C++ compiler does not properly
3854     # handle `-M -o', and we need to detect this.
3855     if depmode=$depmode \
3856        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3857        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3859          >/dev/null 2>conftest.err &&
3860        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864       # icc doesn't choke on unknown options, it will just issue warnings
3865       # or remarks (even with -Werror).  So we grep stderr for any message
3866       # that says an option was ignored or not supported.
3867       # When given -MP, icc 7.0 and 7.1 complain thusly:
3868       #   icc: Command line warning: ignoring option '-M'; no argument required
3869       # The diagnosis changed in icc 8.0:
3870       #   icc: Command line remark: option '-MP' not supported
3871       if (grep 'ignoring option' conftest.err ||
3872           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873         am_cv_CC_dependencies_compiler_type=$depmode
3874         break
3875       fi
3876     fi
3877   done
3878
3879   cd ..
3880   rm -rf conftest.dir
3881 else
3882   am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890  if
3891   test "x$enable_dependency_tracking" != xno \
3892   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893   am__fastdepCC_TRUE=
3894   am__fastdepCC_FALSE='#'
3895 else
3896   am__fastdepCC_TRUE='#'
3897   am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902
3903   TCPW_MSG="no"
3904
3905 # Check whether --with-tcp-wrappers was given.
3906 if test "${with_tcp_wrappers+set}" = set; then
3907   withval=$with_tcp_wrappers; with_tcpw=$withval
3908 else
3909   with_tcpw=yes
3910 fi
3911
3912         if test "x$with_tcpw" != "xno" ; then
3913             saved_LIBS="$LIBS"
3914             saved_LDFLAGS="$LDFLAGS"
3915             saved_CPPFLAGS="$CPPFLAGS"
3916             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3917                 if test -d "${with_tcpw}/lib"; then
3918                     if test -n "${need_dash_r}"; then
3919                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3920                     else
3921                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3922                     fi
3923                 else
3924                     if test -n "${need_dash_r}"; then
3925                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3926                     else
3927                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3928                     fi
3929                 fi
3930                 if test -d "${with_tcpw}/include"; then
3931                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3932                 else
3933                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3934                 fi
3935             fi
3936             LIBWRAP="-lwrap"
3937             LIBS="$LIBWRAP $LIBS"
3938             { echo "$as_me:$LINENO: checking for libwrap" >&5
3939 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3940             cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946
3947                 #include <tcpd.h>
3948                 int deny_severity = 0, allow_severity = 0;
3949
3950 int
3951 main ()
3952 {
3953 hosts_access(0);
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_link") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && {
3972          test -z "$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        } && test -s conftest$ac_exeext &&
3975        $as_test_x conftest$ac_exeext; then
3976
3977                 { echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6; }
3979
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LIBWRAP 1
3983 _ACEOF
3984
3985
3986 cat >>confdefs.h <<\_ACEOF
3987 #define HAVE_LIBWRAP 1
3988 _ACEOF
3989
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define HAVE_TCP_WRAPPER 1
3993 _ACEOF
3994
3995                 TCPW_MSG="yes"
3996
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001
4002                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4003 echo "$as_me: error: *** libwrap missing" >&2;}
4004    { (exit 1); exit 1; }; }
4005
4006
4007 fi
4008
4009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4010       conftest$ac_exeext conftest.$ac_ext
4011             LIBS="$saved_LIBS"
4012         fi
4013
4014
4015
4016
4017
4018 # Arrange for large-file support
4019 # Check whether --enable-largefile was given.
4020 if test "${enable_largefile+set}" = set; then
4021   enableval=$enable_largefile;
4022 fi
4023
4024 if test "$enable_largefile" != no; then
4025
4026   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4027 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4028 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   ac_cv_sys_largefile_CC=no
4032      if test "$GCC" != yes; then
4033        ac_save_CC=$CC
4034        while :; do
4035          # IRIX 6.2 and later do not support large files by default,
4036          # so use the C compiler's -n32 option if that helps.
4037          cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <sys/types.h>
4044  /* Check that off_t can represent 2**63 - 1 correctly.
4045     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4046     since some C++ compilers masquerading as C compilers
4047     incorrectly reject 9223372036854775807.  */
4048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4049   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4050                        && LARGE_OFF_T % 2147483647 == 1)
4051                       ? 1 : -1];
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060          rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_compile") 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } && {
4074          test -z "$ac_c_werror_flag" ||
4075          test ! -s conftest.err
4076        } && test -s conftest.$ac_objext; then
4077   break
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082
4083 fi
4084
4085 rm -f core conftest.err conftest.$ac_objext
4086          CC="$CC -n32"
4087          rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_c_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   ac_cv_sys_largefile_CC=' -n32'; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext
4113          break
4114        done
4115        CC=$ac_save_CC
4116        rm -f conftest.$ac_ext
4117     fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4120 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4121   if test "$ac_cv_sys_largefile_CC" != no; then
4122     CC=$CC$ac_cv_sys_largefile_CC
4123   fi
4124
4125   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4126 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4127 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   while :; do
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <sys/types.h>
4138  /* Check that off_t can represent 2**63 - 1 correctly.
4139     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4140     since some C++ compilers masquerading as C compilers
4141     incorrectly reject 9223372036854775807.  */
4142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4143   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4144                        && LARGE_OFF_T % 2147483647 == 1)
4145                       ? 1 : -1];
4146 int
4147 main ()
4148 {
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_compile") 2>conftest.er1
4162   ac_status=$?
4163   grep -v '^ *+' conftest.er1 >conftest.err
4164   rm -f conftest.er1
4165   cat conftest.err >&5
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); } && {
4168          test -z "$ac_c_werror_flag" ||
4169          test ! -s conftest.err
4170        } && test -s conftest.$ac_objext; then
4171   ac_cv_sys_file_offset_bits=no; break
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #define _FILE_OFFSET_BITS 64
4187 #include <sys/types.h>
4188  /* Check that off_t can represent 2**63 - 1 correctly.
4189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190     since some C++ compilers masquerading as C compilers
4191     incorrectly reject 9223372036854775807.  */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194                        && LARGE_OFF_T % 2147483647 == 1)
4195                       ? 1 : -1];
4196 int
4197 main ()
4198 {
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4206 case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211   (eval "$ac_compile") 2>conftest.er1
4212   ac_status=$?
4213   grep -v '^ *+' conftest.er1 >conftest.err
4214   rm -f conftest.er1
4215   cat conftest.err >&5
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } && {
4218          test -z "$ac_c_werror_flag" ||
4219          test ! -s conftest.err
4220        } && test -s conftest.$ac_objext; then
4221   ac_cv_sys_file_offset_bits=64; break
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230   ac_cv_sys_file_offset_bits=unknown
4231   break
4232 done
4233 fi
4234 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4237   no | unknown) ;;
4238   *)
4239 cat >>confdefs.h <<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4241 _ACEOF
4242 ;;
4243 esac
4244 rm -f conftest*
4245   if test $ac_cv_sys_file_offset_bits = unknown; then
4246     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4247 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   while :; do
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <sys/types.h>
4259  /* Check that off_t can represent 2**63 - 1 correctly.
4260     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261     since some C++ compilers masquerading as C compilers
4262     incorrectly reject 9223372036854775807.  */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265                        && LARGE_OFF_T % 2147483647 == 1)
4266                       ? 1 : -1];
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_compile") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && {
4289          test -z "$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        } && test -s conftest.$ac_objext; then
4292   ac_cv_sys_large_files=no; break
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #define _LARGE_FILES 1
4308 #include <sys/types.h>
4309  /* Check that off_t can represent 2**63 - 1 correctly.
4310     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311     since some C++ compilers masquerading as C compilers
4312     incorrectly reject 9223372036854775807.  */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315                        && LARGE_OFF_T % 2147483647 == 1)
4316                       ? 1 : -1];
4317 int
4318 main ()
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_compile") 2>conftest.er1
4333   ac_status=$?
4334   grep -v '^ *+' conftest.er1 >conftest.err
4335   rm -f conftest.er1
4336   cat conftest.err >&5
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } && {
4339          test -z "$ac_c_werror_flag" ||
4340          test ! -s conftest.err
4341        } && test -s conftest.$ac_objext; then
4342   ac_cv_sys_large_files=1; break
4343 else
4344   echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351   ac_cv_sys_large_files=unknown
4352   break
4353 done
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4357 case $ac_cv_sys_large_files in #(
4358   no | unknown) ;;
4359   *)
4360 cat >>confdefs.h <<_ACEOF
4361 #define _LARGE_FILES $ac_cv_sys_large_files
4362 _ACEOF
4363 ;;
4364 esac
4365 rm -f conftest*
4366   fi
4367 fi
4368
4369
4370
4371 ac_config_headers="$ac_config_headers support/include/config.h"
4372
4373
4374 # Checks for programs.
4375 ac_ext=cpp
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381   if test -n "$CCC"; then
4382     CXX=$CCC
4383   else
4384     if test -n "$ac_tool_prefix"; then
4385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$CXX"; then
4395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CXX=$ac_cv_prog_CXX
4415 if test -n "$CXX"; then
4416   { echo "$as_me:$LINENO: result: $CXX" >&5
4417 echo "${ECHO_T}$CXX" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424     test -n "$CXX" && break
4425   done
4426 fi
4427 if test -z "$CXX"; then
4428   ac_ct_CXX=$CXX
4429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   if test -n "$ac_ct_CXX"; then
4439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_prog_ac_ct_CXX="$ac_prog"
4449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4461 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4462 else
4463   { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CXX" && break
4469 done
4470
4471   if test "x$ac_ct_CXX" = x; then
4472     CXX="g++"
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4477 whose name does not start with the host triplet.  If you think this
4478 configuration is useful to you, please write to autoconf@gnu.org." >&5
4479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet.  If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484     CXX=$ac_ct_CXX
4485   fi
4486 fi
4487
4488   fi
4489 fi
4490 # Provide some information about the compiler.
4491 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (ac_try="$ac_compiler --version >&5"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_compiler --version >&5") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }
4503 { (ac_try="$ac_compiler -v >&5"
4504 case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509   (eval "$ac_compiler -v >&5") 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }
4513 { (ac_try="$ac_compiler -V >&5"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_compiler -V >&5") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }
4523
4524 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4525 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4526 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539 #ifndef __GNUC__
4540        choke me
4541 #endif
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest.$ac_objext
4548 if { (ac_try="$ac_compile"
4549 case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554   (eval "$ac_compile") 2>conftest.er1
4555   ac_status=$?
4556   grep -v '^ *+' conftest.er1 >conftest.err
4557   rm -f conftest.er1
4558   cat conftest.err >&5
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); } && {
4561          test -z "$ac_cxx_werror_flag" ||
4562          test ! -s conftest.err
4563        } && test -s conftest.$ac_objext; then
4564   ac_compiler_gnu=yes
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569         ac_compiler_gnu=no
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4574
4575 fi
4576 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4577 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4578 GXX=`test $ac_compiler_gnu = yes && echo yes`
4579 ac_test_CXXFLAGS=${CXXFLAGS+set}
4580 ac_save_CXXFLAGS=$CXXFLAGS
4581 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4582 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_cxx_g+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4587    ac_cxx_werror_flag=yes
4588    ac_cv_prog_cxx_g=no
4589    CXXFLAGS="-g"
4590    cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_compile") 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } && {
4619          test -z "$ac_cxx_werror_flag" ||
4620          test ! -s conftest.err
4621        } && test -s conftest.$ac_objext; then
4622   ac_cv_prog_cxx_g=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627         CXXFLAGS=""
4628       cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647   *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650   (eval "$ac_compile") 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } && {
4657          test -z "$ac_cxx_werror_flag" ||
4658          test ! -s conftest.err
4659        } && test -s conftest.$ac_objext; then
4660   :
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4666          CXXFLAGS="-g"
4667          cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_compile") 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && {
4696          test -z "$ac_cxx_werror_flag" ||
4697          test ! -s conftest.err
4698        } && test -s conftest.$ac_objext; then
4699   ac_cv_prog_cxx_g=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704
4705 fi
4706
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4715 fi
4716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4717 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4718 if test "$ac_test_CXXFLAGS" = set; then
4719   CXXFLAGS=$ac_save_CXXFLAGS
4720 elif test $ac_cv_prog_cxx_g = yes; then
4721   if test "$GXX" = yes; then
4722     CXXFLAGS="-g -O2"
4723   else
4724     CXXFLAGS="-g"
4725   fi
4726 else
4727   if test "$GXX" = yes; then
4728     CXXFLAGS="-O2"
4729   else
4730     CXXFLAGS=
4731   fi
4732 fi
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739 depcc="$CXX"  am_compiler_list=
4740
4741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4743 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747   # We make a subdir and do the tests there.  Otherwise we can end up
4748   # making bogus files that we don't know about and never remove.  For
4749   # instance it was reported that on HP-UX the gcc test will end up
4750   # making a dummy file named `D' -- because `-MD' means `put the output
4751   # in D'.
4752   mkdir conftest.dir
4753   # Copy depcomp to subdir because otherwise we won't find it if we're
4754   # using a relative directory.
4755   cp "$am_depcomp" conftest.dir
4756   cd conftest.dir
4757   # We will build objects and dependencies in a subdirectory because
4758   # it helps to detect inapplicable dependency modes.  For instance
4759   # both Tru64's cc and ICC support -MD to output dependencies as a
4760   # side effect of compilation, but ICC will put the dependencies in
4761   # the current directory while Tru64 will put them in the object
4762   # directory.
4763   mkdir sub
4764
4765   am_cv_CXX_dependencies_compiler_type=none
4766   if test "$am_compiler_list" = ""; then
4767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4768   fi
4769   for depmode in $am_compiler_list; do
4770     # Setup a source with many dependencies, because some compilers
4771     # like to wrap large dependency lists on column 80 (with \), and
4772     # we should not choose a depcomp mode which is confused by this.
4773     #
4774     # We need to recreate these files for each test, as the compiler may
4775     # overwrite some of them when testing with obscure command lines.
4776     # This happens at least with the AIX C compiler.
4777     : > sub/conftest.c
4778     for i in 1 2 3 4 5 6; do
4779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4781       # Solaris 8's {/usr,}/bin/sh.
4782       touch sub/conftst$i.h
4783     done
4784     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785
4786     case $depmode in
4787     nosideeffect)
4788       # after this tag, mechanisms are not by side-effect, so they'll
4789       # only be used when explicitly requested
4790       if test "x$enable_dependency_tracking" = xyes; then
4791         continue
4792       else
4793         break
4794       fi
4795       ;;
4796     none) break ;;
4797     esac
4798     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799     # mode.  It turns out that the SunPro C++ compiler does not properly
4800     # handle `-M -o', and we need to detect this.
4801     if depmode=$depmode \
4802        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805          >/dev/null 2>conftest.err &&
4806        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4809        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810       # icc doesn't choke on unknown options, it will just issue warnings
4811       # or remarks (even with -Werror).  So we grep stderr for any message
4812       # that says an option was ignored or not supported.
4813       # When given -MP, icc 7.0 and 7.1 complain thusly:
4814       #   icc: Command line warning: ignoring option '-M'; no argument required
4815       # The diagnosis changed in icc 8.0:
4816       #   icc: Command line remark: option '-MP' not supported
4817       if (grep 'ignoring option' conftest.err ||
4818           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819         am_cv_CXX_dependencies_compiler_type=$depmode
4820         break
4821       fi
4822     fi
4823   done
4824
4825   cd ..
4826   rm -rf conftest.dir
4827 else
4828   am_cv_CXX_dependencies_compiler_type=none
4829 fi
4830
4831 fi
4832 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4835
4836  if
4837   test "x$enable_dependency_tracking" != xno \
4838   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839   am__fastdepCXX_TRUE=
4840   am__fastdepCXX_FALSE='#'
4841 else
4842   am__fastdepCXX_TRUE='#'
4843   am__fastdepCXX_FALSE=
4844 fi
4845
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 if test -n "$ac_tool_prefix"; then
4853   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_CC+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$CC"; then
4861   ac_cv_prog_CC="$CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 CC=$ac_cv_prog_CC
4881 if test -n "$CC"; then
4882   { echo "$as_me:$LINENO: result: $CC" >&5
4883 echo "${ECHO_T}$CC" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890 fi
4891 if test -z "$ac_cv_prog_CC"; then
4892   ac_ct_CC=$CC
4893   # Extract the first word of "gcc", so it can be a program name with args.
4894 set dummy gcc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$ac_ct_CC"; then
4901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_ac_ct_CC="gcc"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4923 echo "${ECHO_T}$ac_ct_CC" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929   if test "x$ac_ct_CC" = x; then
4930     CC=""
4931   else
4932     case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet.  If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&5
4937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4938 whose name does not start with the host triplet.  If you think this
4939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942     CC=$ac_ct_CC
4943   fi
4944 else
4945   CC="$ac_cv_prog_CC"
4946 fi
4947
4948 if test -z "$CC"; then
4949           if test -n "$ac_tool_prefix"; then
4950     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}cc; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_CC+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$CC"; then
4958   ac_cv_prog_CC="$CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_CC="${ac_tool_prefix}cc"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979   { echo "$as_me:$LINENO: result: $CC" >&5
4980 echo "${ECHO_T}$CC" >&6; }
4981 else
4982   { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4984 fi
4985
4986
4987   fi
4988 fi
4989 if test -z "$CC"; then
4990   # Extract the first word of "cc", so it can be a program name with args.
4991 set dummy cc; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_CC+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   if test -n "$CC"; then
4998   ac_cv_prog_CC="$CC" # Let the user override the test.
4999 else
5000   ac_prog_rejected=no
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5009        ac_prog_rejected=yes
5010        continue
5011      fi
5012     ac_cv_prog_CC="cc"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020 if test $ac_prog_rejected = yes; then
5021   # We found a bogon in the path, so make sure we never use it.
5022   set dummy $ac_cv_prog_CC
5023   shift
5024   if test $# != 0; then
5025     # We chose a different compiler from the bogus one.
5026     # However, it has the same basename, so the bogon will be chosen
5027     # first if we set CC to just the basename; use the full file name.
5028     shift
5029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5030   fi
5031 fi
5032 fi
5033 fi
5034 CC=$ac_cv_prog_CC
5035 if test -n "$CC"; then
5036   { echo "$as_me:$LINENO: result: $CC" >&5
5037 echo "${ECHO_T}$CC" >&6; }
5038 else
5039   { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5041 fi
5042
5043
5044 fi
5045 if test -z "$CC"; then
5046   if test -n "$ac_tool_prefix"; then
5047   for ac_prog in cl.exe
5048   do
5049     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$CC"; then
5057   ac_cv_prog_CC="$CC" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 CC=$ac_cv_prog_CC
5077 if test -n "$CC"; then
5078   { echo "$as_me:$LINENO: result: $CC" >&5
5079 echo "${ECHO_T}$CC" >&6; }
5080 else
5081   { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5083 fi
5084
5085
5086     test -n "$CC" && break
5087   done
5088 fi
5089 if test -z "$CC"; then
5090   ac_ct_CC=$CC
5091   for ac_prog in cl.exe
5092 do
5093   # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   if test -n "$ac_ct_CC"; then
5101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_CC="$ac_prog"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130   test -n "$ac_ct_CC" && break
5131 done
5132
5133   if test "x$ac_ct_CC" = x; then
5134     CC=""
5135   else
5136     case $cross_compiling:$ac_tool_warned in
5137 yes:)
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet.  If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet.  If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146     CC=$ac_ct_CC
5147   fi
5148 fi
5149
5150 fi
5151
5152
5153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: no acceptable C compiler found in \$PATH
5156 See \`config.log' for more details." >&2;}
5157    { (exit 1); exit 1; }; }
5158
5159 # Provide some information about the compiler.
5160 echo "$as_me:$LINENO: checking for C compiler version" >&5
5161 ac_compiler=`set X $ac_compile; echo $2`
5162 { (ac_try="$ac_compiler --version >&5"
5163 case "(($ac_try" in
5164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165   *) ac_try_echo=$ac_try;;
5166 esac
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168   (eval "$ac_compiler --version >&5") 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }
5172 { (ac_try="$ac_compiler -v >&5"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_compiler -v >&5") 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }
5182 { (ac_try="$ac_compiler -V >&5"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188   (eval "$ac_compiler -V >&5") 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }
5192
5193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204
5205 int
5206 main ()
5207 {
5208 #ifndef __GNUC__
5209        choke me
5210 #endif
5211
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5218 case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223   (eval "$ac_compile") 2>conftest.er1
5224   ac_status=$?
5225   grep -v '^ *+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } && {
5230          test -z "$ac_c_werror_flag" ||
5231          test ! -s conftest.err
5232        } && test -s conftest.$ac_objext; then
5233   ac_compiler_gnu=yes
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238         ac_compiler_gnu=no
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5243
5244 fi
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5247 GCC=`test $ac_compiler_gnu = yes && echo yes`
5248 ac_test_CFLAGS=${CFLAGS+set}
5249 ac_save_CFLAGS=$CFLAGS
5250 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5251 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_cc_g+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   ac_save_c_werror_flag=$ac_c_werror_flag
5256    ac_c_werror_flag=yes
5257    ac_cv_prog_cc_g=no
5258    CFLAGS="-g"
5259    cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265
5266 int
5267 main ()
5268 {
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compile") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } && {
5288          test -z "$ac_c_werror_flag" ||
5289          test ! -s conftest.err
5290        } && test -s conftest.$ac_objext; then
5291   ac_cv_prog_cc_g=yes
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296         CFLAGS=""
5297       cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303
5304 int
5305 main ()
5306 {
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5314 case "(($ac_try" in
5315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316   *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319   (eval "$ac_compile") 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } && {
5326          test -z "$ac_c_werror_flag" ||
5327          test ! -s conftest.err
5328        } && test -s conftest.$ac_objext; then
5329   :
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334         ac_c_werror_flag=$ac_save_c_werror_flag
5335          CFLAGS="-g"
5336          cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342
5343 int
5344 main ()
5345 {
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358   (eval "$ac_compile") 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } && {
5365          test -z "$ac_c_werror_flag" ||
5366          test ! -s conftest.err
5367        } && test -s conftest.$ac_objext; then
5368   ac_cv_prog_cc_g=yes
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383    ac_c_werror_flag=$ac_save_c_werror_flag
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5387 if test "$ac_test_CFLAGS" = set; then
5388   CFLAGS=$ac_save_CFLAGS
5389 elif test $ac_cv_prog_cc_g = yes; then
5390   if test "$GCC" = yes; then
5391     CFLAGS="-g -O2"
5392   else
5393     CFLAGS="-g"
5394   fi
5395 else
5396   if test "$GCC" = yes; then
5397     CFLAGS="-O2"
5398   else
5399     CFLAGS=
5400   fi
5401 fi
5402 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5403 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_c89+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_cv_prog_cc_c89=no
5408 ac_save_CC=$CC
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 #include <stdarg.h>
5416 #include <stdio.h>
5417 #include <sys/types.h>
5418 #include <sys/stat.h>
5419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5420 struct buf { int x; };
5421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5422 static char *e (p, i)
5423      char **p;
5424      int i;
5425 {
5426   return p[i];
5427 }
5428 static char *f (char * (*g) (char **, int), char **p, ...)
5429 {
5430   char *s;
5431   va_list v;
5432   va_start (v,p);
5433   s = g (p, va_arg (v,int));
5434   va_end (v);
5435   return s;
5436 }
5437
5438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5439    function prototypes and stuff, but not '\xHH' hex character constants.
5440    These don't provoke an error unfortunately, instead are silently treated
5441    as 'x'.  The following induces an error, until -std is added to get
5442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5443    array size at least.  It's necessary to write '\x00'==0 to get something
5444    that's true only with -std.  */
5445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5446
5447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5448    inside strings and character constants.  */
5449 #define FOO(x) 'x'
5450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5451
5452 int test (int i, double x);
5453 struct s1 {int (*f) (int a);};
5454 struct s2 {int (*f) (double a);};
5455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5456 int argc;
5457 char **argv;
5458 int
5459 main ()
5460 {
5461 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5467         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5468 do
5469   CC="$ac_save_CC $ac_arg"
5470   rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_compile") 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } && {
5484          test -z "$ac_c_werror_flag" ||
5485          test ! -s conftest.err
5486        } && test -s conftest.$ac_objext; then
5487   ac_cv_prog_cc_c89=$ac_arg
5488 else
5489   echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492
5493 fi
5494
5495 rm -f core conftest.err conftest.$ac_objext
5496   test "x$ac_cv_prog_cc_c89" != "xno" && break
5497 done
5498 rm -f conftest.$ac_ext
5499 CC=$ac_save_CC
5500
5501 fi
5502 # AC_CACHE_VAL
5503 case "x$ac_cv_prog_cc_c89" in
5504   x)
5505     { echo "$as_me:$LINENO: result: none needed" >&5
5506 echo "${ECHO_T}none needed" >&6; } ;;
5507   xno)
5508     { echo "$as_me:$LINENO: result: unsupported" >&5
5509 echo "${ECHO_T}unsupported" >&6; } ;;
5510   *)
5511     CC="$CC $ac_cv_prog_cc_c89"
5512     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5513 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5514 esac
5515
5516
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523 depcc="$CC"   am_compiler_list=
5524
5525 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5526 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531   # We make a subdir and do the tests there.  Otherwise we can end up
5532   # making bogus files that we don't know about and never remove.  For
5533   # instance it was reported that on HP-UX the gcc test will end up
5534   # making a dummy file named `D' -- because `-MD' means `put the output
5535   # in D'.
5536   mkdir conftest.dir
5537   # Copy depcomp to subdir because otherwise we won't find it if we're
5538   # using a relative directory.
5539   cp "$am_depcomp" conftest.dir
5540   cd conftest.dir
5541   # We will build objects and dependencies in a subdirectory because
5542   # it helps to detect inapplicable dependency modes.  For instance
5543   # both Tru64's cc and ICC support -MD to output dependencies as a
5544   # side effect of compilation, but ICC will put the dependencies in
5545   # the current directory while Tru64 will put them in the object
5546   # directory.
5547   mkdir sub
5548
5549   am_cv_CC_dependencies_compiler_type=none
5550   if test "$am_compiler_list" = ""; then
5551      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552   fi
5553   for depmode in $am_compiler_list; do
5554     # Setup a source with many dependencies, because some compilers
5555     # like to wrap large dependency lists on column 80 (with \), and
5556     # we should not choose a depcomp mode which is confused by this.
5557     #
5558     # We need to recreate these files for each test, as the compiler may
5559     # overwrite some of them when testing with obscure command lines.
5560     # This happens at least with the AIX C compiler.
5561     : > sub/conftest.c
5562     for i in 1 2 3 4 5 6; do
5563       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565       # Solaris 8's {/usr,}/bin/sh.
5566       touch sub/conftst$i.h
5567     done
5568     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5569
5570     case $depmode in
5571     nosideeffect)
5572       # after this tag, mechanisms are not by side-effect, so they'll
5573       # only be used when explicitly requested
5574       if test "x$enable_dependency_tracking" = xyes; then
5575         continue
5576       else
5577         break
5578       fi
5579       ;;
5580     none) break ;;
5581     esac
5582     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5583     # mode.  It turns out that the SunPro C++ compiler does not properly
5584     # handle `-M -o', and we need to detect this.
5585     if depmode=$depmode \
5586        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5587        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5589          >/dev/null 2>conftest.err &&
5590        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5593        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594       # icc doesn't choke on unknown options, it will just issue warnings
5595       # or remarks (even with -Werror).  So we grep stderr for any message
5596       # that says an option was ignored or not supported.
5597       # When given -MP, icc 7.0 and 7.1 complain thusly:
5598       #   icc: Command line warning: ignoring option '-M'; no argument required
5599       # The diagnosis changed in icc 8.0:
5600       #   icc: Command line remark: option '-MP' not supported
5601       if (grep 'ignoring option' conftest.err ||
5602           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603         am_cv_CC_dependencies_compiler_type=$depmode
5604         break
5605       fi
5606     fi
5607   done
5608
5609   cd ..
5610   rm -rf conftest.dir
5611 else
5612   am_cv_CC_dependencies_compiler_type=none
5613 fi
5614
5615 fi
5616 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619
5620  if
5621   test "x$enable_dependency_tracking" != xno \
5622   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623   am__fastdepCC_TRUE=
5624   am__fastdepCC_FALSE='#'
5625 else
5626   am__fastdepCC_TRUE='#'
5627   am__fastdepCC_FALSE=
5628 fi
5629
5630
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5640   CPP=
5641 fi
5642 if test -z "$CPP"; then
5643   if test "${ac_cv_prog_CPP+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646       # Double quotes because CPP needs to be expanded
5647     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5648     do
5649       ac_preproc_ok=false
5650 for ac_c_preproc_warn_flag in '' yes
5651 do
5652   # Use a header file that comes with gcc, so configuring glibc
5653   # with a fresh cross-compiler works.
5654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655   # <limits.h> exists even on freestanding compilers.
5656   # On the NeXT, cc -E runs the code through the compiler's parser,
5657   # not just through cpp. "Syntax error" is here to catch this case.
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #ifdef __STDC__
5665 # include <limits.h>
5666 #else
5667 # include <assert.h>
5668 #endif
5669                      Syntax error
5670 _ACEOF
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } >/dev/null && {
5684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5685          test ! -s conftest.err
5686        }; then
5687   :
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692   # Broken: fails on valid input.
5693 continue
5694 fi
5695
5696 rm -f conftest.err conftest.$ac_ext
5697
5698   # OK, works on sane cases.  Now check whether nonexistent headers
5699   # can be detected and how.
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <ac_nonexistent.h>
5707 _ACEOF
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5709 case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } >/dev/null && {
5721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722          test ! -s conftest.err
5723        }; then
5724   # Broken: success on invalid input.
5725 continue
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730   # Passes both tests.
5731 ac_preproc_ok=:
5732 break
5733 fi
5734
5735 rm -f conftest.err conftest.$ac_ext
5736
5737 done
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5741   break
5742 fi
5743
5744     done
5745     ac_cv_prog_CPP=$CPP
5746
5747 fi
5748   CPP=$ac_cv_prog_CPP
5749 else
5750   ac_cv_prog_CPP=$CPP
5751 fi
5752 { echo "$as_me:$LINENO: result: $CPP" >&5
5753 echo "${ECHO_T}$CPP" >&6; }
5754 ac_preproc_ok=false
5755 for ac_c_preproc_warn_flag in '' yes
5756 do
5757   # Use a header file that comes with gcc, so configuring glibc
5758   # with a fresh cross-compiler works.
5759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760   # <limits.h> exists even on freestanding compilers.
5761   # On the NeXT, cc -E runs the code through the compiler's parser,
5762   # not just through cpp. "Syntax error" is here to catch this case.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774                      Syntax error
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } >/dev/null && {
5789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5790          test ! -s conftest.err
5791        }; then
5792   :
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797   # Broken: fails on valid input.
5798 continue
5799 fi
5800
5801 rm -f conftest.err conftest.$ac_ext
5802
5803   # OK, works on sane cases.  Now check whether nonexistent headers
5804   # can be detected and how.
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <ac_nonexistent.h>
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } >/dev/null && {
5826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827          test ! -s conftest.err
5828        }; then
5829   # Broken: success on invalid input.
5830 continue
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839
5840 rm -f conftest.err conftest.$ac_ext
5841
5842 done
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5846   :
5847 else
5848   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854
5855 ac_ext=c
5856 ac_cpp='$CPP $CPPFLAGS'
5857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860
5861 # Find a good install program.  We prefer a C program (faster),
5862 # so one script is as good as another.  But avoid the broken or
5863 # incompatible versions:
5864 # SysV /etc/install, /usr/sbin/install
5865 # SunOS /usr/etc/install
5866 # IRIX /sbin/install
5867 # AIX /bin/install
5868 # AmigaOS /C/install, which installs bootblocks on floppy discs
5869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5872 # OS/2's system install, which has a completely different semantic
5873 # ./install, which can be erroneously created by make from ./install.sh.
5874 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5875 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5876 if test -z "$INSTALL"; then
5877 if test "${ac_cv_path_install+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   # Account for people who put trailing slashes in PATH elements.
5886 case $as_dir/ in
5887   ./ | .// | /cC/* | \
5888   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5889   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5890   /usr/ucb/* ) ;;
5891   *)
5892     # OSF1 and SCO ODT 3.0 have their own names for install.
5893     # Don't use installbsd from OSF since it installs stuff as root
5894     # by default.
5895     for ac_prog in ginstall scoinst install; do
5896       for ac_exec_ext in '' $ac_executable_extensions; do
5897         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5898           if test $ac_prog = install &&
5899             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5900             # AIX install.  It has an incompatible calling convention.
5901             :
5902           elif test $ac_prog = install &&
5903             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5904             # program-specific install script used by HP pwplus--don't use.
5905             :
5906           else
5907             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5908             break 3
5909           fi
5910         fi
5911       done
5912     done
5913     ;;
5914 esac
5915 done
5916 IFS=$as_save_IFS
5917
5918
5919 fi
5920   if test "${ac_cv_path_install+set}" = set; then
5921     INSTALL=$ac_cv_path_install
5922   else
5923     # As a last resort, use the slow shell script.  Don't cache a
5924     # value for INSTALL within a source directory, because that will
5925     # break other packages using the cache if that directory is
5926     # removed, or if the value is a relative name.
5927     INSTALL=$ac_install_sh
5928   fi
5929 fi
5930 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5931 echo "${ECHO_T}$INSTALL" >&6; }
5932
5933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5934 # It thinks the first close brace ends the variable substitution.
5935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5936
5937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5938
5939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5940
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5943 LN_S=$as_ln_s
5944 if test "$LN_S" = "ln -s"; then
5945   { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5950 fi
5951
5952 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5954 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   cat >conftest.make <<\_ACEOF
5959 SHELL = /bin/sh
5960 all:
5961         @echo '@@@%%%=$(MAKE)=@@@%%%'
5962 _ACEOF
5963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5965   *@@@%%%=?*=@@@%%%*)
5966     eval ac_cv_prog_make_${ac_make}_set=yes;;
5967   *)
5968     eval ac_cv_prog_make_${ac_make}_set=no;;
5969 esac
5970 rm -f conftest.make
5971 fi
5972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5973   { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5975   SET_MAKE=
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979   SET_MAKE="MAKE=${MAKE-make}"
5980 fi
5981
5982 # Check whether --enable-shared was given.
5983 if test "${enable_shared+set}" = set; then
5984   enableval=$enable_shared; p=${PACKAGE-default}
5985     case $enableval in
5986     yes) enable_shared=yes ;;
5987     no) enable_shared=no ;;
5988     *)
5989       enable_shared=no
5990       # Look at the argument we got.  We use all the common list separators.
5991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992       for pkg in $enableval; do
5993         IFS="$lt_save_ifs"
5994         if test "X$pkg" = "X$p"; then
5995           enable_shared=yes
5996         fi
5997       done
5998       IFS="$lt_save_ifs"
5999       ;;
6000     esac
6001 else
6002   enable_shared=yes
6003 fi
6004
6005
6006 # Check whether --enable-static was given.
6007 if test "${enable_static+set}" = set; then
6008   enableval=$enable_static; p=${PACKAGE-default}
6009     case $enableval in
6010     yes) enable_static=yes ;;
6011     no) enable_static=no ;;
6012     *)
6013      enable_static=no
6014       # Look at the argument we got.  We use all the common list separators.
6015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6016       for pkg in $enableval; do
6017         IFS="$lt_save_ifs"
6018         if test "X$pkg" = "X$p"; then
6019           enable_static=yes
6020         fi
6021       done
6022       IFS="$lt_save_ifs"
6023       ;;
6024     esac
6025 else
6026   enable_static=yes
6027 fi
6028
6029
6030 # Check whether --enable-fast-install was given.
6031 if test "${enable_fast_install+set}" = set; then
6032   enableval=$enable_fast_install; p=${PACKAGE-default}
6033     case $enableval in
6034     yes) enable_fast_install=yes ;;
6035     no) enable_fast_install=no ;;
6036     *)
6037       enable_fast_install=no
6038       # Look at the argument we got.  We use all the common list separators.
6039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6040       for pkg in $enableval; do
6041         IFS="$lt_save_ifs"
6042         if test "X$pkg" = "X$p"; then
6043           enable_fast_install=yes
6044         fi
6045       done
6046       IFS="$lt_save_ifs"
6047       ;;
6048     esac
6049 else
6050   enable_fast_install=yes
6051 fi
6052
6053
6054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6056 if test "${lt_cv_path_SED+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   # Loop through the user's path and test for sed and gsed.
6060 # Then use that list of sed's as ones to test for truncation.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for lt_ac_prog in sed gsed; do
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6069         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6070       fi
6071     done
6072   done
6073 done
6074 IFS=$as_save_IFS
6075 lt_ac_max=0
6076 lt_ac_count=0
6077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6078 # along with /bin/sed that truncates output.
6079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6080   test ! -f $lt_ac_sed && continue
6081   cat /dev/null > conftest.in
6082   lt_ac_count=0
6083   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6084   # Check for GNU sed and select it if it is found.
6085   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6086     lt_cv_path_SED=$lt_ac_sed
6087     break
6088   fi
6089   while true; do
6090     cat conftest.in conftest.in >conftest.tmp
6091     mv conftest.tmp conftest.in
6092     cp conftest.in conftest.nl
6093     echo >>conftest.nl
6094     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6095     cmp -s conftest.out conftest.nl || break
6096     # 10000 chars as input seems more than enough
6097     test $lt_ac_count -gt 10 && break
6098     lt_ac_count=`expr $lt_ac_count + 1`
6099     if test $lt_ac_count -gt $lt_ac_max; then
6100       lt_ac_max=$lt_ac_count
6101       lt_cv_path_SED=$lt_ac_sed
6102     fi
6103   done
6104 done
6105
6106 fi
6107
6108 SED=$lt_cv_path_SED
6109
6110 { echo "$as_me:$LINENO: result: $SED" >&5
6111 echo "${ECHO_T}$SED" >&6; }
6112
6113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   # Extract the first word of "grep ggrep" to use in msg output
6119 if test -z "$GREP"; then
6120 set dummy grep ggrep; ac_prog_name=$2
6121 if test "${ac_cv_path_GREP+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_path_GREP_found=false
6125 # Loop through the user's path and test for each of PROGNAME-LIST
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_prog in grep ggrep; do
6132   for ac_exec_ext in '' $ac_executable_extensions; do
6133     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6134     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6135     # Check for GNU ac_path_GREP and select it if it is found.
6136   # Check for GNU $ac_path_GREP
6137 case `"$ac_path_GREP" --version 2>&1` in
6138 *GNU*)
6139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6140 *)
6141   ac_count=0
6142   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6143   while :
6144   do
6145     cat "conftest.in" "conftest.in" >"conftest.tmp"
6146     mv "conftest.tmp" "conftest.in"
6147     cp "conftest.in" "conftest.nl"
6148     echo 'GREP' >> "conftest.nl"
6149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6151     ac_count=`expr $ac_count + 1`
6152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6153       # Best one so far, save it but keep looking for a better one
6154       ac_cv_path_GREP="$ac_path_GREP"
6155       ac_path_GREP_max=$ac_count
6156     fi
6157     # 10*(2^10) chars as input seems more than enough
6158     test $ac_count -gt 10 && break
6159   done
6160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6161 esac
6162
6163
6164     $ac_path_GREP_found && break 3
6165   done
6166 done
6167
6168 done
6169 IFS=$as_save_IFS
6170
6171
6172 fi
6173
6174 GREP="$ac_cv_path_GREP"
6175 if test -z "$GREP"; then
6176   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6178    { (exit 1); exit 1; }; }
6179 fi
6180
6181 else
6182   ac_cv_path_GREP=$GREP
6183 fi
6184
6185
6186 fi
6187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6189  GREP="$ac_cv_path_GREP"
6190
6191
6192 { echo "$as_me:$LINENO: checking for egrep" >&5
6193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_EGREP+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6198    then ac_cv_path_EGREP="$GREP -E"
6199    else
6200      # Extract the first word of "egrep" to use in msg output
6201 if test -z "$EGREP"; then
6202 set dummy egrep; ac_prog_name=$2
6203 if test "${ac_cv_path_EGREP+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213   for ac_prog in egrep; do
6214   for ac_exec_ext in '' $ac_executable_extensions; do
6215     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217     # Check for GNU ac_path_EGREP and select it if it is found.
6218   # Check for GNU $ac_path_EGREP
6219 case `"$ac_path_EGREP" --version 2>&1` in
6220 *GNU*)
6221   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6222 *)
6223   ac_count=0
6224   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6225   while :
6226   do
6227     cat "conftest.in" "conftest.in" >"conftest.tmp"
6228     mv "conftest.tmp" "conftest.in"
6229     cp "conftest.in" "conftest.nl"
6230     echo 'EGREP' >> "conftest.nl"
6231     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233     ac_count=`expr $ac_count + 1`
6234     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235       # Best one so far, save it but keep looking for a better one
6236       ac_cv_path_EGREP="$ac_path_EGREP"
6237       ac_path_EGREP_max=$ac_count
6238     fi
6239     # 10*(2^10) chars as input seems more than enough
6240     test $ac_count -gt 10 && break
6241   done
6242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6243 esac
6244
6245
6246     $ac_path_EGREP_found && break 3
6247   done
6248 done
6249
6250 done
6251 IFS=$as_save_IFS
6252
6253
6254 fi
6255
6256 EGREP="$ac_cv_path_EGREP"
6257 if test -z "$EGREP"; then
6258   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6260    { (exit 1); exit 1; }; }
6261 fi
6262
6263 else
6264   ac_cv_path_EGREP=$EGREP
6265 fi
6266
6267
6268    fi
6269 fi
6270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6272  EGREP="$ac_cv_path_EGREP"
6273
6274
6275
6276 # Check whether --with-gnu-ld was given.
6277 if test "${with_gnu_ld+set}" = set; then
6278   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6279 else
6280   with_gnu_ld=no
6281 fi
6282
6283 ac_prog=ld
6284 if test "$GCC" = yes; then
6285   # Check if gcc -print-prog-name=ld gives a path.
6286   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6288   case $host in
6289   *-*-mingw*)
6290     # gcc leaves a trailing carriage return which upsets mingw
6291     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6292   *)
6293     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6294   esac
6295   case $ac_prog in
6296     # Accept absolute paths.
6297     [\\/]* | ?:[\\/]*)
6298       re_direlt='/[^/][^/]*/\.\./'
6299       # Canonicalize the pathname of ld
6300       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6301       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6302         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6303       done
6304       test -z "$LD" && LD="$ac_prog"
6305       ;;
6306   "")
6307     # If it fails, then pretend we aren't using GCC.
6308     ac_prog=ld
6309     ;;
6310   *)
6311     # If it is relative, then search for the first ld in PATH.
6312     with_gnu_ld=unknown
6313     ;;
6314   esac
6315 elif test "$with_gnu_ld" = yes; then
6316   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6318 else
6319   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6321 fi
6322 if test "${lt_cv_path_LD+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   if test -z "$LD"; then
6326   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327   for ac_dir in $PATH; do
6328     IFS="$lt_save_ifs"
6329     test -z "$ac_dir" && ac_dir=.
6330     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331       lt_cv_path_LD="$ac_dir/$ac_prog"
6332       # Check to see if the program is GNU ld.  I'd rather use --version,
6333       # but apparently some variants of GNU ld only accept -v.
6334       # Break only if it was the GNU/non-GNU ld that we prefer.
6335       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336       *GNU* | *'with BFD'*)
6337         test "$with_gnu_ld" != no && break
6338         ;;
6339       *)
6340         test "$with_gnu_ld" != yes && break
6341         ;;
6342       esac
6343     fi
6344   done
6345   IFS="$lt_save_ifs"
6346 else
6347   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348 fi
6349 fi
6350
6351 LD="$lt_cv_path_LD"
6352 if test -n "$LD"; then
6353   { echo "$as_me:$LINENO: result: $LD" >&5
6354 echo "${ECHO_T}$LD" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6358 fi
6359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6361    { (exit 1); exit 1; }; }
6362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6368 case `$LD -v 2>&1 </dev/null` in
6369 *GNU* | *'with BFD'*)
6370   lt_cv_prog_gnu_ld=yes
6371   ;;
6372 *)
6373   lt_cv_prog_gnu_ld=no
6374   ;;
6375 esac
6376 fi
6377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6379 with_gnu_ld=$lt_cv_prog_gnu_ld
6380
6381
6382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6384 if test "${lt_cv_ld_reload_flag+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   lt_cv_ld_reload_flag='-r'
6388 fi
6389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6391 reload_flag=$lt_cv_ld_reload_flag
6392 case $reload_flag in
6393 "" | " "*) ;;
6394 *) reload_flag=" $reload_flag" ;;
6395 esac
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397 case $host_os in
6398   darwin*)
6399     if test "$GCC" = yes; then
6400       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6401     else
6402       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6403     fi
6404     ;;
6405 esac
6406
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   if test -n "$NM"; then
6413   # Let the user override the test.
6414   lt_cv_path_NM="$NM"
6415 else
6416   lt_nm_to_check="${ac_tool_prefix}nm"
6417   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418     lt_nm_to_check="$lt_nm_to_check nm"
6419   fi
6420   for lt_tmp_nm in $lt_nm_to_check; do
6421     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6423       IFS="$lt_save_ifs"
6424       test -z "$ac_dir" && ac_dir=.
6425       tmp_nm="$ac_dir/$lt_tmp_nm"
6426       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427         # Check to see if the nm accepts a BSD-compat flag.
6428         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429         #   nm: unknown option "B" ignored
6430         # Tru64's nm complains that /dev/null is an invalid object file
6431         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432         */dev/null* | *'Invalid file or object type'*)
6433           lt_cv_path_NM="$tmp_nm -B"
6434           break
6435           ;;
6436         *)
6437           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6438           */dev/null*)
6439             lt_cv_path_NM="$tmp_nm -p"
6440             break
6441             ;;
6442           *)
6443             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444             continue # so that we can try to find one that supports BSD flags
6445             ;;
6446           esac
6447           ;;
6448         esac
6449       fi
6450     done
6451     IFS="$lt_save_ifs"
6452   done
6453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6454 fi
6455 fi
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6458 NM="$lt_cv_path_NM"
6459
6460 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6461 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6462 if test "${lt_cv_deplibs_check_method+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   lt_cv_file_magic_cmd='$MAGIC_CMD'
6466 lt_cv_file_magic_test_file=
6467 lt_cv_deplibs_check_method='unknown'
6468 # Need to set the preceding variable on all platforms that support
6469 # interlibrary dependencies.
6470 # 'none' -- dependencies not supported.
6471 # `unknown' -- same as none, but documents that we really don't know.
6472 # 'pass_all' -- all dependencies passed with no checks.
6473 # 'test_compile' -- check by making test program.
6474 # 'file_magic [[regex]]' -- check by looking for files in library path
6475 # which responds to the $file_magic_cmd with a given extended regex.
6476 # If you have `file' or equivalent on your system and you're not sure
6477 # whether `pass_all' will *always* work, you probably want this one.
6478
6479 case $host_os in
6480 aix4* | aix5*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 beos*)
6485   lt_cv_deplibs_check_method=pass_all
6486   ;;
6487
6488 bsdi[45]*)
6489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6490   lt_cv_file_magic_cmd='/usr/bin/file -L'
6491   lt_cv_file_magic_test_file=/shlib/libc.so
6492   ;;
6493
6494 cygwin*)
6495   # func_win32_libid is a shell function defined in ltmain.sh
6496   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6497   lt_cv_file_magic_cmd='func_win32_libid'
6498   ;;
6499
6500 mingw* | pw32*)
6501   # Base MSYS/MinGW do not provide the 'file' command needed by
6502   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6503   # unless we find 'file', for example because we are cross-compiling.
6504   if ( file / ) >/dev/null 2>&1; then
6505     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506     lt_cv_file_magic_cmd='func_win32_libid'
6507   else
6508     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6509     lt_cv_file_magic_cmd='$OBJDUMP -f'
6510   fi
6511   ;;
6512
6513 darwin* | rhapsody*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 freebsd* | dragonfly*)
6518   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6519     case $host_cpu in
6520     i*86 )
6521       # Not sure whether the presence of OpenBSD here was a mistake.
6522       # Let's accept both of them until this is cleared up.
6523       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6524       lt_cv_file_magic_cmd=/usr/bin/file
6525       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6526       ;;
6527     esac
6528   else
6529     lt_cv_deplibs_check_method=pass_all
6530   fi
6531   ;;
6532
6533 gnu*)
6534   lt_cv_deplibs_check_method=pass_all
6535   ;;
6536
6537 hpux10.20* | hpux11*)
6538   lt_cv_file_magic_cmd=/usr/bin/file
6539   case $host_cpu in
6540   ia64*)
6541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6542     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6543     ;;
6544   hppa*64*)
6545     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]'
6546     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6547     ;;
6548   *)
6549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6550     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6551     ;;
6552   esac
6553   ;;
6554
6555 interix[3-9]*)
6556   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6557   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6558   ;;
6559
6560 irix5* | irix6* | nonstopux*)
6561   case $LD in
6562   *-32|*"-32 ") libmagic=32-bit;;
6563   *-n32|*"-n32 ") libmagic=N32;;
6564   *-64|*"-64 ") libmagic=64-bit;;
6565   *) libmagic=never-match;;
6566   esac
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 # This must be Linux ELF.
6571 linux* | k*bsd*-gnu)
6572   lt_cv_deplibs_check_method=pass_all
6573   ;;
6574
6575 netbsd* | netbsdelf*-gnu)
6576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6578   else
6579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6580   fi
6581   ;;
6582
6583 newos6*)
6584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6585   lt_cv_file_magic_cmd=/usr/bin/file
6586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6587   ;;
6588
6589 nto-qnx*)
6590   lt_cv_deplibs_check_method=unknown
6591   ;;
6592
6593 openbsd*)
6594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6596   else
6597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6598   fi
6599   ;;
6600
6601 osf3* | osf4* | osf5*)
6602   lt_cv_deplibs_check_method=pass_all
6603   ;;
6604
6605 rdos*)
6606   lt_cv_deplibs_check_method=pass_all
6607   ;;
6608
6609 solaris*)
6610   lt_cv_deplibs_check_method=pass_all
6611   ;;
6612
6613 sysv4 | sysv4.3*)
6614   case $host_vendor in
6615   motorola)
6616     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]'
6617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6618     ;;
6619   ncr)
6620     lt_cv_deplibs_check_method=pass_all
6621     ;;
6622   sequent)
6623     lt_cv_file_magic_cmd='/bin/file'
6624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6625     ;;
6626   sni)
6627     lt_cv_file_magic_cmd='/bin/file'
6628     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6629     lt_cv_file_magic_test_file=/lib/libc.so
6630     ;;
6631   siemens)
6632     lt_cv_deplibs_check_method=pass_all
6633     ;;
6634   pc)
6635     lt_cv_deplibs_check_method=pass_all
6636     ;;
6637   esac
6638   ;;
6639
6640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6641   lt_cv_deplibs_check_method=pass_all
6642   ;;
6643 esac
6644
6645 fi
6646 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6647 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6648 file_magic_cmd=$lt_cv_file_magic_cmd
6649 deplibs_check_method=$lt_cv_deplibs_check_method
6650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6651
6652
6653
6654
6655 # If no C compiler was specified, use CC.
6656 LTCC=${LTCC-"$CC"}
6657
6658 # If no C compiler flags were specified, use CFLAGS.
6659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6660
6661 # Allow CC to be a program name with arguments.
6662 compiler=$CC
6663
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then
6666   enableval=$enable_libtool_lock;
6667 fi
6668
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6670
6671 # Some flags need to be propagated to the compiler or linker for good
6672 # libtool support.
6673 case $host in
6674 ia64-*-hpux*)
6675   # Find out which ABI we are using.
6676   echo 'int i;' > conftest.$ac_ext
6677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); }; then
6682     case `/usr/bin/file conftest.$ac_objext` in
6683     *ELF-32*)
6684       HPUX_IA64_MODE="32"
6685       ;;
6686     *ELF-64*)
6687       HPUX_IA64_MODE="64"
6688       ;;
6689     esac
6690   fi
6691   rm -rf conftest*
6692   ;;
6693 *-*-irix6*)
6694   # Find out which ABI we are using.
6695   echo '#line 6695 "configure"' > conftest.$ac_ext
6696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697   (eval $ac_compile) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; then
6701    if test "$lt_cv_prog_gnu_ld" = yes; then
6702     case `/usr/bin/file conftest.$ac_objext` in
6703     *32-bit*)
6704       LD="${LD-ld} -melf32bsmip"
6705       ;;
6706     *N32*)
6707       LD="${LD-ld} -melf32bmipn32"
6708       ;;
6709     *64-bit*)
6710       LD="${LD-ld} -melf64bmip"
6711       ;;
6712     esac
6713    else
6714     case `/usr/bin/file conftest.$ac_objext` in
6715     *32-bit*)
6716       LD="${LD-ld} -32"
6717       ;;
6718     *N32*)
6719       LD="${LD-ld} -n32"
6720       ;;
6721     *64-bit*)
6722       LD="${LD-ld} -64"
6723       ;;
6724     esac
6725    fi
6726   fi
6727   rm -rf conftest*
6728   ;;
6729
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|sparc*-*linux*)
6732   # Find out which ABI we are using.
6733   echo 'int i;' > conftest.$ac_ext
6734   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; then
6739     case `/usr/bin/file conftest.o` in
6740     *32-bit*)
6741       case $host in
6742         x86_64-*kfreebsd*-gnu)
6743           LD="${LD-ld} -m elf_i386_fbsd"
6744           ;;
6745         x86_64-*linux*)
6746           LD="${LD-ld} -m elf_i386"
6747           ;;
6748         ppc64-*linux*|powerpc64-*linux*)
6749           LD="${LD-ld} -m elf32ppclinux"
6750           ;;
6751         s390x-*linux*)
6752           LD="${LD-ld} -m elf_s390"
6753           ;;
6754         sparc64-*linux*)
6755           LD="${LD-ld} -m elf32_sparc"
6756           ;;
6757       esac
6758       ;;
6759     *64-bit*)
6760       case $host in
6761         x86_64-*kfreebsd*-gnu)
6762           LD="${LD-ld} -m elf_x86_64_fbsd"
6763           ;;
6764         x86_64-*linux*)
6765           LD="${LD-ld} -m elf_x86_64"
6766           ;;
6767         ppc*-*linux*|powerpc*-*linux*)
6768           LD="${LD-ld} -m elf64ppc"
6769           ;;
6770         s390*-*linux*)
6771           LD="${LD-ld} -m elf64_s390"
6772           ;;
6773         sparc*-*linux*)
6774           LD="${LD-ld} -m elf64_sparc"
6775           ;;
6776       esac
6777       ;;
6778     esac
6779   fi
6780   rm -rf conftest*
6781   ;;
6782
6783 *-*-sco3.2v5*)
6784   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6785   SAVE_CFLAGS="$CFLAGS"
6786   CFLAGS="$CFLAGS -belf"
6787   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6788 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6789 if test "${lt_cv_cc_needs_belf+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   ac_ext=c
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
6798      cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804
6805 int
6806 main ()
6807 {
6808
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (ac_try="$ac_link"
6815 case "(($ac_try" in
6816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817   *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820   (eval "$ac_link") 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } && {
6827          test -z "$ac_c_werror_flag" ||
6828          test ! -s conftest.err
6829        } && test -s conftest$ac_exeext &&
6830        $as_test_x conftest$ac_exeext; then
6831   lt_cv_cc_needs_belf=yes
6832 else
6833   echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836         lt_cv_cc_needs_belf=no
6837 fi
6838
6839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6840       conftest$ac_exeext conftest.$ac_ext
6841      ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847 fi
6848 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6849 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6850   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6851     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6852     CFLAGS="$SAVE_CFLAGS"
6853   fi
6854   ;;
6855 sparc*-*solaris*)
6856   # Find out which ABI we are using.
6857   echo 'int i;' > conftest.$ac_ext
6858   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859   (eval $ac_compile) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; then
6863     case `/usr/bin/file conftest.o` in
6864     *64-bit*)
6865       case $lt_cv_prog_gnu_ld in
6866       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6867       *)    LD="${LD-ld} -64" ;;
6868       esac
6869       ;;
6870     esac
6871   fi
6872   rm -rf conftest*
6873   ;;
6874
6875
6876 esac
6877
6878 need_locks="$enable_libtool_lock"
6879
6880
6881
6882 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6883 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6884 if test "${ac_cv_header_stdc+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 #include <stdlib.h>
6894 #include <stdarg.h>
6895 #include <string.h>
6896 #include <float.h>
6897
6898 int
6899 main ()
6900 {
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_compile") 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } && {
6920          test -z "$ac_c_werror_flag" ||
6921          test ! -s conftest.err
6922        } && test -s conftest.$ac_objext; then
6923   ac_cv_header_stdc=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928         ac_cv_header_stdc=no
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932
6933 if test $ac_cv_header_stdc = yes; then
6934   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 #include <string.h>
6942
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945   $EGREP "memchr" >/dev/null 2>&1; then
6946   :
6947 else
6948   ac_cv_header_stdc=no
6949 fi
6950 rm -f conftest*
6951
6952 fi
6953
6954 if test $ac_cv_header_stdc = yes; then
6955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6956   cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h.  */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h.  */
6962 #include <stdlib.h>
6963
6964 _ACEOF
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966   $EGREP "free" >/dev/null 2>&1; then
6967   :
6968 else
6969   ac_cv_header_stdc=no
6970 fi
6971 rm -f conftest*
6972
6973 fi
6974
6975 if test $ac_cv_header_stdc = yes; then
6976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6977   if test "$cross_compiling" = yes; then
6978   :
6979 else
6980   cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 #include <ctype.h>
6987 #include <stdlib.h>
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6991 #else
6992 # define ISLOWER(c) \
6993                    (('a' <= (c) && (c) <= 'i') \
6994                      || ('j' <= (c) && (c) <= 'r') \
6995                      || ('s' <= (c) && (c) <= 'z'))
6996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6997 #endif
6998
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7000 int
7001 main ()
7002 {
7003   int i;
7004   for (i = 0; i < 256; i++)
7005     if (XOR (islower (i), ISLOWER (i))
7006         || toupper (i) != TOUPPER (i))
7007       return 2;
7008   return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest$ac_exeext
7012 if { (ac_try="$ac_link"
7013 case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_link") 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7022   { (case "(($ac_try" in
7023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024   *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027   (eval "$ac_try") 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); }; }; then
7031   :
7032 else
7033   echo "$as_me: program exited with status $ac_status" >&5
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 ( exit $ac_status )
7038 ac_cv_header_stdc=no
7039 fi
7040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7041 fi
7042
7043
7044 fi
7045 fi
7046 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7047 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7048 if test $ac_cv_header_stdc = yes; then
7049
7050 cat >>confdefs.h <<\_ACEOF
7051 #define STDC_HEADERS 1
7052 _ACEOF
7053
7054 fi
7055
7056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7067                   inttypes.h stdint.h unistd.h
7068 do
7069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h.  */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h.  */
7081 $ac_includes_default
7082
7083 #include <$ac_header>
7084 _ACEOF
7085 rm -f conftest.$ac_objext
7086 if { (ac_try="$ac_compile"
7087 case "(($ac_try" in
7088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089   *) ac_try_echo=$ac_try;;
7090 esac
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092   (eval "$ac_compile") 2>conftest.er1
7093   ac_status=$?
7094   grep -v '^ *+' conftest.er1 >conftest.err
7095   rm -f conftest.er1
7096   cat conftest.err >&5
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } && {
7099          test -z "$ac_c_werror_flag" ||
7100          test ! -s conftest.err
7101        } && test -s conftest.$ac_objext; then
7102   eval "$as_ac_Header=yes"
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107         eval "$as_ac_Header=no"
7108 fi
7109
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 fi
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113                { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116   cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 _ACEOF
7119
7120 fi
7121
7122 done
7123
7124
7125
7126 for ac_header in dlfcn.h
7127 do
7128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7130   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 fi
7135 ac_res=`eval echo '${'$as_ac_Header'}'`
7136                { echo "$as_me:$LINENO: result: $ac_res" >&5
7137 echo "${ECHO_T}$ac_res" >&6; }
7138 else
7139   # Is the header compilable?
7140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 $ac_includes_default
7149 #include <$ac_header>
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7153 case "(($ac_try" in
7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155   *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158   (eval "$ac_compile") 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && {
7165          test -z "$ac_c_werror_flag" ||
7166          test ! -s conftest.err
7167        } && test -s conftest.$ac_objext; then
7168   ac_header_compiler=yes
7169 else
7170   echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173         ac_header_compiler=no
7174 fi
7175
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7178 echo "${ECHO_T}$ac_header_compiler" >&6; }
7179
7180 # Is the header present?
7181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189 #include <$ac_header>
7190 _ACEOF
7191 if { (ac_try="$ac_cpp conftest.$ac_ext"
7192 case "(($ac_try" in
7193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194   *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7198   ac_status=$?
7199   grep -v '^ *+' conftest.er1 >conftest.err
7200   rm -f conftest.er1
7201   cat conftest.err >&5
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); } >/dev/null && {
7204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7205          test ! -s conftest.err
7206        }; then
7207   ac_header_preproc=yes
7208 else
7209   echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7211
7212   ac_header_preproc=no
7213 fi
7214
7215 rm -f conftest.err conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7217 echo "${ECHO_T}$ac_header_preproc" >&6; }
7218
7219 # So?  What about this header?
7220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7221   yes:no: )
7222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7226     ac_header_preproc=yes
7227     ;;
7228   no:yes:* )
7229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7241     ( cat <<\_ASBOX
7242 ## ------------------------------- ##
7243 ## Report this to nfs@lists.sf.net ##
7244 ## ------------------------------- ##
7245 _ASBOX
7246      ) | sed "s/^/$as_me: WARNING:     /" >&2
7247     ;;
7248 esac
7249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   eval "$as_ac_Header=\$ac_header_preproc"
7255 fi
7256 ac_res=`eval echo '${'$as_ac_Header'}'`
7257                { echo "$as_me:$LINENO: result: $ac_res" >&5
7258 echo "${ECHO_T}$ac_res" >&6; }
7259
7260 fi
7261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7262   cat >>confdefs.h <<_ACEOF
7263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7264 _ACEOF
7265
7266 fi
7267
7268 done
7269
7270
7271
7272 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7273     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7274     (test "X$CXX" != "Xg++"))) ; then
7275   ac_ext=cpp
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7281 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7282 if test -z "$CXXCPP"; then
7283   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286       # Double quotes because CXXCPP needs to be expanded
7287     for CXXCPP in "$CXX -E" "/lib/cpp"
7288     do
7289       ac_preproc_ok=false
7290 for ac_cxx_preproc_warn_flag in '' yes
7291 do
7292   # Use a header file that comes with gcc, so configuring glibc
7293   # with a fresh cross-compiler works.
7294   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7295   # <limits.h> exists even on freestanding compilers.
7296   # On the NeXT, cc -E runs the code through the compiler's parser,
7297   # not just through cpp. "Syntax error" is here to catch this case.
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 #ifdef __STDC__
7305 # include <limits.h>
7306 #else
7307 # include <assert.h>
7308 #endif
7309                      Syntax error
7310 _ACEOF
7311 if { (ac_try="$ac_cpp conftest.$ac_ext"
7312 case "(($ac_try" in
7313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314   *) ac_try_echo=$ac_try;;
7315 esac
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7318   ac_status=$?
7319   grep -v '^ *+' conftest.er1 >conftest.err
7320   rm -f conftest.er1
7321   cat conftest.err >&5
7322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323   (exit $ac_status); } >/dev/null && {
7324          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7325          test ! -s conftest.err
7326        }; then
7327   :
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332   # Broken: fails on valid input.
7333 continue
7334 fi
7335
7336 rm -f conftest.err conftest.$ac_ext
7337
7338   # OK, works on sane cases.  Now check whether nonexistent headers
7339   # can be detected and how.
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 #include <ac_nonexistent.h>
7347 _ACEOF
7348 if { (ac_try="$ac_cpp conftest.$ac_ext"
7349 case "(($ac_try" in
7350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351   *) ac_try_echo=$ac_try;;
7352 esac
7353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7355   ac_status=$?
7356   grep -v '^ *+' conftest.er1 >conftest.err
7357   rm -f conftest.er1
7358   cat conftest.err >&5
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } >/dev/null && {
7361          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7362          test ! -s conftest.err
7363        }; then
7364   # Broken: success on invalid input.
7365 continue
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370   # Passes both tests.
7371 ac_preproc_ok=:
7372 break
7373 fi
7374
7375 rm -f conftest.err conftest.$ac_ext
7376
7377 done
7378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7379 rm -f conftest.err conftest.$ac_ext
7380 if $ac_preproc_ok; then
7381   break
7382 fi
7383
7384     done
7385     ac_cv_prog_CXXCPP=$CXXCPP
7386
7387 fi
7388   CXXCPP=$ac_cv_prog_CXXCPP
7389 else
7390   ac_cv_prog_CXXCPP=$CXXCPP
7391 fi
7392 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7393 echo "${ECHO_T}$CXXCPP" >&6; }
7394 ac_preproc_ok=false
7395 for ac_cxx_preproc_warn_flag in '' yes
7396 do
7397   # Use a header file that comes with gcc, so configuring glibc
7398   # with a fresh cross-compiler works.
7399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400   # <limits.h> exists even on freestanding compilers.
7401   # On the NeXT, cc -E runs the code through the compiler's parser,
7402   # not just through cpp. "Syntax error" is here to catch this case.
7403   cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409 #ifdef __STDC__
7410 # include <limits.h>
7411 #else
7412 # include <assert.h>
7413 #endif
7414                      Syntax error
7415 _ACEOF
7416 if { (ac_try="$ac_cpp conftest.$ac_ext"
7417 case "(($ac_try" in
7418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419   *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7423   ac_status=$?
7424   grep -v '^ *+' conftest.er1 >conftest.err
7425   rm -f conftest.er1
7426   cat conftest.err >&5
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } >/dev/null && {
7429          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7430          test ! -s conftest.err
7431        }; then
7432   :
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437   # Broken: fails on valid input.
7438 continue
7439 fi
7440
7441 rm -f conftest.err conftest.$ac_ext
7442
7443   # OK, works on sane cases.  Now check whether nonexistent headers
7444   # can be detected and how.
7445   cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451 #include <ac_nonexistent.h>
7452 _ACEOF
7453 if { (ac_try="$ac_cpp conftest.$ac_ext"
7454 case "(($ac_try" in
7455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456   *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } >/dev/null && {
7466          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7467          test ! -s conftest.err
7468        }; then
7469   # Broken: success on invalid input.
7470 continue
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475   # Passes both tests.
7476 ac_preproc_ok=:
7477 break
7478 fi
7479
7480 rm -f conftest.err conftest.$ac_ext
7481
7482 done
7483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7484 rm -f conftest.err conftest.$ac_ext
7485 if $ac_preproc_ok; then
7486   :
7487 else
7488   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7489 See \`config.log' for more details." >&5
7490 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7491 See \`config.log' for more details." >&2;}
7492    { (exit 1); exit 1; }; }
7493 fi
7494
7495 ac_ext=cpp
7496 ac_cpp='$CXXCPP $CPPFLAGS'
7497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7500
7501 fi
7502
7503
7504 ac_ext=f
7505 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7506 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7508 if test -n "$ac_tool_prefix"; then
7509   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
7510   do
7511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_F77+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   if test -n "$F77"; then
7519   ac_cv_prog_F77="$F77" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 F77=$ac_cv_prog_F77
7539 if test -n "$F77"; then
7540   { echo "$as_me:$LINENO: result: $F77" >&5
7541 echo "${ECHO_T}$F77" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7546
7547
7548     test -n "$F77" && break
7549   done
7550 fi
7551 if test -z "$F77"; then
7552   ac_ct_F77=$F77
7553   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
7554 do
7555   # Extract the first word of "$ac_prog", so it can be a program name with args.
7556 set dummy $ac_prog; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   if test -n "$ac_ct_F77"; then
7563   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570   for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_ac_ct_F77="$ac_prog"
7573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7583 if test -n "$ac_ct_F77"; then
7584   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7585 echo "${ECHO_T}$ac_ct_F77" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591
7592   test -n "$ac_ct_F77" && break
7593 done
7594
7595   if test "x$ac_ct_F77" = x; then
7596     F77=""
7597   else
7598     case $cross_compiling:$ac_tool_warned in
7599 yes:)
7600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7601 whose name does not start with the host triplet.  If you think this
7602 configuration is useful to you, please write to autoconf@gnu.org." >&5
7603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7604 whose name does not start with the host triplet.  If you think this
7605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7606 ac_tool_warned=yes ;;
7607 esac
7608     F77=$ac_ct_F77
7609   fi
7610 fi
7611
7612
7613 # Provide some information about the compiler.
7614 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7615 ac_compiler=`set X $ac_compile; echo $2`
7616 { (ac_try="$ac_compiler --version >&5"
7617 case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622   (eval "$ac_compiler --version >&5") 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }
7626 { (ac_try="$ac_compiler -v >&5"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_compiler -v >&5") 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }
7636 { (ac_try="$ac_compiler -V >&5"
7637 case "(($ac_try" in
7638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639   *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642   (eval "$ac_compiler -V >&5") 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }
7646 rm -f a.out
7647
7648 # If we don't use `.F' as extension, the preprocessor is not run on the
7649 # input file.  (Note that this only needs to work for GNU compilers.)
7650 ac_save_ext=$ac_ext
7651 ac_ext=F
7652 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7653 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7654 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   cat >conftest.$ac_ext <<_ACEOF
7658       program main
7659 #ifndef __GNUC__
7660        choke me
7661 #endif
7662
7663       end
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672   (eval "$ac_compile") 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } && {
7679          test -z "$ac_f77_werror_flag" ||
7680          test ! -s conftest.err
7681        } && test -s conftest.$ac_objext; then
7682   ac_compiler_gnu=yes
7683 else
7684   echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687         ac_compiler_gnu=no
7688 fi
7689
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7695 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7696 ac_ext=$ac_save_ext
7697 ac_test_FFLAGS=${FFLAGS+set}
7698 ac_save_FFLAGS=$FFLAGS
7699 FFLAGS=
7700 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7701 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7702 if test "${ac_cv_prog_f77_g+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   FFLAGS=-g
7706 cat >conftest.$ac_ext <<_ACEOF
7707       program main
7708
7709       end
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718   (eval "$ac_compile") 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } && {
7725          test -z "$ac_f77_werror_flag" ||
7726          test ! -s conftest.err
7727        } && test -s conftest.$ac_objext; then
7728   ac_cv_prog_f77_g=yes
7729 else
7730   echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733         ac_cv_prog_f77_g=no
7734 fi
7735
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737
7738 fi
7739 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7740 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7741 if test "$ac_test_FFLAGS" = set; then
7742   FFLAGS=$ac_save_FFLAGS
7743 elif test $ac_cv_prog_f77_g = yes; then
7744   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7745     FFLAGS="-g -O2"
7746   else
7747     FFLAGS="-g"
7748   fi
7749 else
7750   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7751     FFLAGS="-O2"
7752   else
7753     FFLAGS=
7754   fi
7755 fi
7756
7757 G77=`test $ac_compiler_gnu = yes && echo yes`
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765
7766 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7767
7768 # find the maximum length of command line arguments
7769 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7770 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7771 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774     i=0
7775   teststring="ABCD"
7776
7777   case $build_os in
7778   msdosdjgpp*)
7779     # On DJGPP, this test can blow up pretty badly due to problems in libc
7780     # (any single argument exceeding 2000 bytes causes a buffer overrun
7781     # during glob expansion).  Even if it were fixed, the result of this
7782     # check would be larger than it should be.
7783     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7784     ;;
7785
7786   gnu*)
7787     # Under GNU Hurd, this test is not required because there is
7788     # no limit to the length of command line arguments.
7789     # Libtool will interpret -1 as no limit whatsoever
7790     lt_cv_sys_max_cmd_len=-1;
7791     ;;
7792
7793   cygwin* | mingw*)
7794     # On Win9x/ME, this test blows up -- it succeeds, but takes
7795     # about 5 minutes as the teststring grows exponentially.
7796     # Worse, since 9x/ME are not pre-emptively multitasking,
7797     # you end up with a "frozen" computer, even though with patience
7798     # the test eventually succeeds (with a max line length of 256k).
7799     # Instead, let's just punt: use the minimum linelength reported by
7800     # all of the supported platforms: 8192 (on NT/2K/XP).
7801     lt_cv_sys_max_cmd_len=8192;
7802     ;;
7803
7804   amigaos*)
7805     # On AmigaOS with pdksh, this test takes hours, literally.
7806     # So we just punt and use a minimum line length of 8192.
7807     lt_cv_sys_max_cmd_len=8192;
7808     ;;
7809
7810   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7811     # This has been around since 386BSD, at least.  Likely further.
7812     if test -x /sbin/sysctl; then
7813       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7814     elif test -x /usr/sbin/sysctl; then
7815       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7816     else
7817       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7818     fi
7819     # And add a safety zone
7820     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7821     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7822     ;;
7823
7824   interix*)
7825     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7826     lt_cv_sys_max_cmd_len=196608
7827     ;;
7828
7829   osf*)
7830     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7831     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7832     # nice to cause kernel panics so lets avoid the loop below.
7833     # First set a reasonable default.
7834     lt_cv_sys_max_cmd_len=16384
7835     #
7836     if test -x /sbin/sysconfig; then
7837       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7838         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7839       esac
7840     fi
7841     ;;
7842   sco3.2v5*)
7843     lt_cv_sys_max_cmd_len=102400
7844     ;;
7845   sysv5* | sco5v6* | sysv4.2uw2*)
7846     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7847     if test -n "$kargmax"; then
7848       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7849     else
7850       lt_cv_sys_max_cmd_len=32768
7851     fi
7852     ;;
7853   *)
7854     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7855     if test -n "$lt_cv_sys_max_cmd_len"; then
7856       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7857       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7858     else
7859       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7860       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7861                = "XX$teststring") >/dev/null 2>&1 &&
7862               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7863               lt_cv_sys_max_cmd_len=$new_result &&
7864               test $i != 17 # 1/2 MB should be enough
7865       do
7866         i=`expr $i + 1`
7867         teststring=$teststring$teststring
7868       done
7869       teststring=
7870       # Add a significant safety factor because C++ compilers can tack on massive
7871       # amounts of additional arguments before passing them to the linker.
7872       # It appears as though 1/2 is a usable value.
7873       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7874     fi
7875     ;;
7876   esac
7877
7878 fi
7879
7880 if test -n $lt_cv_sys_max_cmd_len ; then
7881   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7882 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7883 else
7884   { echo "$as_me:$LINENO: result: none" >&5
7885 echo "${ECHO_T}none" >&6; }
7886 fi
7887
7888
7889
7890
7891
7892 # Check for command to grab the raw symbol name followed by C symbol from nm.
7893 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7894 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898
7899 # These are sane defaults that work on at least a few old systems.
7900 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7901
7902 # Character class describing NM global symbol codes.
7903 symcode='[BCDEGRST]'
7904
7905 # Regexp to match symbols that can be accessed directly from C.
7906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7907
7908 # Transform an extracted symbol line into a proper C declaration
7909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7910
7911 # Transform an extracted symbol line into symbol name and symbol address
7912 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'"
7913
7914 # Define system-specific variables.
7915 case $host_os in
7916 aix*)
7917   symcode='[BCDT]'
7918   ;;
7919 cygwin* | mingw* | pw32*)
7920   symcode='[ABCDGISTW]'
7921   ;;
7922 hpux*) # Its linker distinguishes data from code symbols
7923   if test "$host_cpu" = ia64; then
7924     symcode='[ABCDEGRST]'
7925   fi
7926   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7927   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'"
7928   ;;
7929 linux* | k*bsd*-gnu)
7930   if test "$host_cpu" = ia64; then
7931     symcode='[ABCDGIRSTW]'
7932     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7933     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'"
7934   fi
7935   ;;
7936 irix* | nonstopux*)
7937   symcode='[BCDEGRST]'
7938   ;;
7939 osf*)
7940   symcode='[BCDEGQRST]'
7941   ;;
7942 solaris*)
7943   symcode='[BDRT]'
7944   ;;
7945 sco3.2v5*)
7946   symcode='[DT]'
7947   ;;
7948 sysv4.2uw2*)
7949   symcode='[DT]'
7950   ;;
7951 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7952   symcode='[ABDT]'
7953   ;;
7954 sysv4)
7955   symcode='[DFNSTU]'
7956   ;;
7957 esac
7958
7959 # Handle CRLF in mingw tool chain
7960 opt_cr=
7961 case $build_os in
7962 mingw*)
7963   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7964   ;;
7965 esac
7966
7967 # If we're using GNU nm, then use its standard symbol codes.
7968 case `$NM -V 2>&1` in
7969 *GNU* | *'with BFD'*)
7970   symcode='[ABCDGIRSTW]' ;;
7971 esac
7972
7973 # Try without a prefix undercore, then with it.
7974 for ac_symprfx in "" "_"; do
7975
7976   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7977   symxfrm="\\1 $ac_symprfx\\2 \\2"
7978
7979   # Write the raw and C identifiers.
7980   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7981
7982   # Check to see that the pipe works correctly.
7983   pipe_works=no
7984
7985   rm -f conftest*
7986   cat > conftest.$ac_ext <<EOF
7987 #ifdef __cplusplus
7988 extern "C" {
7989 #endif
7990 char nm_test_var;
7991 void nm_test_func(){}
7992 #ifdef __cplusplus
7993 }
7994 #endif
7995 int main(){nm_test_var='a';nm_test_func();return(0);}
7996 EOF
7997
7998   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7999   (eval $ac_compile) 2>&5
8000   ac_status=$?
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); }; then
8003     # Now try to grab the symbols.
8004     nlist=conftest.nm
8005     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8006   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } && test -s "$nlist"; then
8010       # Try sorting and uniquifying the output.
8011       if sort "$nlist" | uniq > "$nlist"T; then
8012         mv -f "$nlist"T "$nlist"
8013       else
8014         rm -f "$nlist"T
8015       fi
8016
8017       # Make sure that we snagged all the symbols we need.
8018       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8019         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8020           cat <<EOF > conftest.$ac_ext
8021 #ifdef __cplusplus
8022 extern "C" {
8023 #endif
8024
8025 EOF
8026           # Now generate the symbol file.
8027           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8028
8029           cat <<EOF >> conftest.$ac_ext
8030 #if defined (__STDC__) && __STDC__
8031 # define lt_ptr_t void *
8032 #else
8033 # define lt_ptr_t char *
8034 # define const
8035 #endif
8036
8037 /* The mapping between symbol names and symbols. */
8038 const struct {
8039   const char *name;
8040   lt_ptr_t address;
8041 }
8042 lt_preloaded_symbols[] =
8043 {
8044 EOF
8045           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8046           cat <<\EOF >> conftest.$ac_ext
8047   {0, (lt_ptr_t) 0}
8048 };
8049
8050 #ifdef __cplusplus
8051 }
8052 #endif
8053 EOF
8054           # Now try linking the two files.
8055           mv conftest.$ac_objext conftstm.$ac_objext
8056           lt_save_LIBS="$LIBS"
8057           lt_save_CFLAGS="$CFLAGS"
8058           LIBS="conftstm.$ac_objext"
8059           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8060           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061   (eval $ac_link) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8065             pipe_works=yes
8066           fi
8067           LIBS="$lt_save_LIBS"
8068           CFLAGS="$lt_save_CFLAGS"
8069         else
8070           echo "cannot find nm_test_func in $nlist" >&5
8071         fi
8072       else
8073         echo "cannot find nm_test_var in $nlist" >&5
8074       fi
8075     else
8076       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8077     fi
8078   else
8079     echo "$progname: failed program was:" >&5
8080     cat conftest.$ac_ext >&5
8081   fi
8082   rm -f conftest* conftst*
8083
8084   # Do not use the global_symbol_pipe unless it works.
8085   if test "$pipe_works" = yes; then
8086     break
8087   else
8088     lt_cv_sys_global_symbol_pipe=
8089   fi
8090 done
8091
8092 fi
8093
8094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8095   lt_cv_sys_global_symbol_to_cdecl=
8096 fi
8097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8098   { echo "$as_me:$LINENO: result: failed" >&5
8099 echo "${ECHO_T}failed" >&6; }
8100 else
8101   { echo "$as_me:$LINENO: result: ok" >&5
8102 echo "${ECHO_T}ok" >&6; }
8103 fi
8104
8105 { echo "$as_me:$LINENO: checking for objdir" >&5
8106 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8107 if test "${lt_cv_objdir+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   rm -f .libs 2>/dev/null
8111 mkdir .libs 2>/dev/null
8112 if test -d .libs; then
8113   lt_cv_objdir=.libs
8114 else
8115   # MS-DOS does not allow filenames that begin with a dot.
8116   lt_cv_objdir=_libs
8117 fi
8118 rmdir .libs 2>/dev/null
8119 fi
8120 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8121 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8122 objdir=$lt_cv_objdir
8123
8124
8125
8126
8127
8128 case $host_os in
8129 aix3*)
8130   # AIX sometimes has problems with the GCC collect2 program.  For some
8131   # reason, if we set the COLLECT_NAMES environment variable, the problems
8132   # vanish in a puff of smoke.
8133   if test "X${COLLECT_NAMES+set}" != Xset; then
8134     COLLECT_NAMES=
8135     export COLLECT_NAMES
8136   fi
8137   ;;
8138 esac
8139
8140 # Sed substitution that helps us do robust quoting.  It backslashifies
8141 # metacharacters that are still active within double-quoted strings.
8142 Xsed='sed -e 1s/^X//'
8143 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8144
8145 # Same as above, but do not quote variable references.
8146 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8147
8148 # Sed substitution to delay expansion of an escaped shell variable in a
8149 # double_quote_subst'ed string.
8150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8151
8152 # Sed substitution to avoid accidental globbing in evaled expressions
8153 no_glob_subst='s/\*/\\\*/g'
8154
8155 # Constants:
8156 rm="rm -f"
8157
8158 # Global variables:
8159 default_ofile=libtool
8160 can_build_shared=yes
8161
8162 # All known linkers require a `.a' archive for static linking (except MSVC,
8163 # which needs '.lib').
8164 libext=a
8165 ltmain="$ac_aux_dir/ltmain.sh"
8166 ofile="$default_ofile"
8167 with_gnu_ld="$lt_cv_prog_gnu_ld"
8168
8169 if test -n "$ac_tool_prefix"; then
8170   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}ar; ac_word=$2
8172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8174 if test "${ac_cv_prog_AR+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   if test -n "$AR"; then
8178   ac_cv_prog_AR="$AR" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183   IFS=$as_save_IFS
8184   test -z "$as_dir" && as_dir=.
8185   for ac_exec_ext in '' $ac_executable_extensions; do
8186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187     ac_cv_prog_AR="${ac_tool_prefix}ar"
8188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189     break 2
8190   fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 AR=$ac_cv_prog_AR
8198 if test -n "$AR"; then
8199   { echo "$as_me:$LINENO: result: $AR" >&5
8200 echo "${ECHO_T}$AR" >&6; }
8201 else
8202   { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8204 fi
8205
8206
8207 fi
8208 if test -z "$ac_cv_prog_AR"; then
8209   ac_ct_AR=$AR
8210   # Extract the first word of "ar", so it can be a program name with args.
8211 set dummy ar; ac_word=$2
8212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8215   echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217   if test -n "$ac_ct_AR"; then
8218   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223   IFS=$as_save_IFS
8224   test -z "$as_dir" && as_dir=.
8225   for ac_exec_ext in '' $ac_executable_extensions; do
8226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227     ac_cv_prog_ac_ct_AR="ar"
8228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229     break 2
8230   fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8238 if test -n "$ac_ct_AR"; then
8239   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8240 echo "${ECHO_T}$ac_ct_AR" >&6; }
8241 else
8242   { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8244 fi
8245
8246   if test "x$ac_ct_AR" = x; then
8247     AR="false"
8248   else
8249     case $cross_compiling:$ac_tool_warned in
8250 yes:)
8251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8252 whose name does not start with the host triplet.  If you think this
8253 configuration is useful to you, please write to autoconf@gnu.org." >&5
8254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8255 whose name does not start with the host triplet.  If you think this
8256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8257 ac_tool_warned=yes ;;
8258 esac
8259     AR=$ac_ct_AR
8260   fi
8261 else
8262   AR="$ac_cv_prog_AR"
8263 fi
8264
8265 if test -n "$ac_tool_prefix"; then
8266   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270 if test "${ac_cv_prog_RANLIB+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   if test -n "$RANLIB"; then
8274   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279   IFS=$as_save_IFS
8280   test -z "$as_dir" && as_dir=.
8281   for ac_exec_ext in '' $ac_executable_extensions; do
8282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285     break 2
8286   fi
8287 done
8288 done
8289 IFS=$as_save_IFS
8290
8291 fi
8292 fi
8293 RANLIB=$ac_cv_prog_RANLIB
8294 if test -n "$RANLIB"; then
8295   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8296 echo "${ECHO_T}$RANLIB" >&6; }
8297 else
8298   { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8300 fi
8301
8302
8303 fi
8304 if test -z "$ac_cv_prog_RANLIB"; then
8305   ac_ct_RANLIB=$RANLIB
8306   # Extract the first word of "ranlib", so it can be a program name with args.
8307 set dummy ranlib; ac_word=$2
8308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   if test -n "$ac_ct_RANLIB"; then
8314   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319   IFS=$as_save_IFS
8320   test -z "$as_dir" && as_dir=.
8321   for ac_exec_ext in '' $ac_executable_extensions; do
8322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323     ac_cv_prog_ac_ct_RANLIB="ranlib"
8324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325     break 2
8326   fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8334 if test -n "$ac_ct_RANLIB"; then
8335   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8336 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8337 else
8338   { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8340 fi
8341
8342   if test "x$ac_ct_RANLIB" = x; then
8343     RANLIB=":"
8344   else
8345     case $cross_compiling:$ac_tool_warned in
8346 yes:)
8347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8348 whose name does not start with the host triplet.  If you think this
8349 configuration is useful to you, please write to autoconf@gnu.org." >&5
8350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8351 whose name does not start with the host triplet.  If you think this
8352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8353 ac_tool_warned=yes ;;
8354 esac
8355     RANLIB=$ac_ct_RANLIB
8356   fi
8357 else
8358   RANLIB="$ac_cv_prog_RANLIB"
8359 fi
8360
8361 if test -n "$ac_tool_prefix"; then
8362   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8363 set dummy ${ac_tool_prefix}strip; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_prog_STRIP+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   if test -n "$STRIP"; then
8370   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8374 do
8375   IFS=$as_save_IFS
8376   test -z "$as_dir" && as_dir=.
8377   for ac_exec_ext in '' $ac_executable_extensions; do
8378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381     break 2
8382   fi
8383 done
8384 done
8385 IFS=$as_save_IFS
8386
8387 fi
8388 fi
8389 STRIP=$ac_cv_prog_STRIP
8390 if test -n "$STRIP"; then
8391   { echo "$as_me:$LINENO: result: $STRIP" >&5
8392 echo "${ECHO_T}$STRIP" >&6; }
8393 else
8394   { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8396 fi
8397
8398
8399 fi
8400 if test -z "$ac_cv_prog_STRIP"; then
8401   ac_ct_STRIP=$STRIP
8402   # Extract the first word of "strip", so it can be a program name with args.
8403 set dummy strip; ac_word=$2
8404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8406 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   if test -n "$ac_ct_STRIP"; then
8410   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415   IFS=$as_save_IFS
8416   test -z "$as_dir" && as_dir=.
8417   for ac_exec_ext in '' $ac_executable_extensions; do
8418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419     ac_cv_prog_ac_ct_STRIP="strip"
8420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421     break 2
8422   fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8430 if test -n "$ac_ct_STRIP"; then
8431   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8432 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8433 else
8434   { echo "$as_me:$LINENO: result: no" >&5
8435 echo "${ECHO_T}no" >&6; }
8436 fi
8437
8438   if test "x$ac_ct_STRIP" = x; then
8439     STRIP=":"
8440   else
8441     case $cross_compiling:$ac_tool_warned in
8442 yes:)
8443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8444 whose name does not start with the host triplet.  If you think this
8445 configuration is useful to you, please write to autoconf@gnu.org." >&5
8446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet.  If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451     STRIP=$ac_ct_STRIP
8452   fi
8453 else
8454   STRIP="$ac_cv_prog_STRIP"
8455 fi
8456
8457
8458 old_CC="$CC"
8459 old_CFLAGS="$CFLAGS"
8460
8461 # Set sane defaults for various variables
8462 test -z "$AR" && AR=ar
8463 test -z "$AR_FLAGS" && AR_FLAGS=cru
8464 test -z "$AS" && AS=as
8465 test -z "$CC" && CC=cc
8466 test -z "$LTCC" && LTCC=$CC
8467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8468 test -z "$DLLTOOL" && DLLTOOL=dlltool
8469 test -z "$LD" && LD=ld
8470 test -z "$LN_S" && LN_S="ln -s"
8471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8472 test -z "$NM" && NM=nm
8473 test -z "$SED" && SED=sed
8474 test -z "$OBJDUMP" && OBJDUMP=objdump
8475 test -z "$RANLIB" && RANLIB=:
8476 test -z "$STRIP" && STRIP=:
8477 test -z "$ac_objext" && ac_objext=o
8478
8479 # Determine commands to create old-style static archives.
8480 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8481 old_postinstall_cmds='chmod 644 $oldlib'
8482 old_postuninstall_cmds=
8483
8484 if test -n "$RANLIB"; then
8485   case $host_os in
8486   openbsd*)
8487     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8488     ;;
8489   *)
8490     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8491     ;;
8492   esac
8493   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8494 fi
8495
8496 for cc_temp in $compiler""; do
8497   case $cc_temp in
8498     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8500     \-*) ;;
8501     *) break;;
8502   esac
8503 done
8504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8505
8506
8507 # Only perform the check for file, if the check method requires it
8508 case $deplibs_check_method in
8509 file_magic*)
8510   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8511     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   case $MAGIC_CMD in
8517 [\\/*] |  ?:[\\/]*)
8518   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8519   ;;
8520 *)
8521   lt_save_MAGIC_CMD="$MAGIC_CMD"
8522   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8523   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8524   for ac_dir in $ac_dummy; do
8525     IFS="$lt_save_ifs"
8526     test -z "$ac_dir" && ac_dir=.
8527     if test -f $ac_dir/${ac_tool_prefix}file; then
8528       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8529       if test -n "$file_magic_test_file"; then
8530         case $deplibs_check_method in
8531         "file_magic "*)
8532           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8533           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8534           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8535             $EGREP "$file_magic_regex" > /dev/null; then
8536             :
8537           else
8538             cat <<EOF 1>&2
8539
8540 *** Warning: the command libtool uses to detect shared libraries,
8541 *** $file_magic_cmd, produces output that libtool cannot recognize.
8542 *** The result is that libtool may fail to recognize shared libraries
8543 *** as such.  This will affect the creation of libtool libraries that
8544 *** depend on shared libraries, but programs linked with such libtool
8545 *** libraries will work regardless of this problem.  Nevertheless, you
8546 *** may want to report the problem to your system manager and/or to
8547 *** bug-libtool@gnu.org
8548
8549 EOF
8550           fi ;;
8551         esac
8552       fi
8553       break
8554     fi
8555   done
8556   IFS="$lt_save_ifs"
8557   MAGIC_CMD="$lt_save_MAGIC_CMD"
8558   ;;
8559 esac
8560 fi
8561
8562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8563 if test -n "$MAGIC_CMD"; then
8564   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8565 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8566 else
8567   { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8569 fi
8570
8571 if test -z "$lt_cv_path_MAGIC_CMD"; then
8572   if test -n "$ac_tool_prefix"; then
8573     { echo "$as_me:$LINENO: checking for file" >&5
8574 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8575 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   case $MAGIC_CMD in
8579 [\\/*] |  ?:[\\/]*)
8580   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8581   ;;
8582 *)
8583   lt_save_MAGIC_CMD="$MAGIC_CMD"
8584   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8585   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8586   for ac_dir in $ac_dummy; do
8587     IFS="$lt_save_ifs"
8588     test -z "$ac_dir" && ac_dir=.
8589     if test -f $ac_dir/file; then
8590       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8591       if test -n "$file_magic_test_file"; then
8592         case $deplibs_check_method in
8593         "file_magic "*)
8594           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8595           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8597             $EGREP "$file_magic_regex" > /dev/null; then
8598             :
8599           else
8600             cat <<EOF 1>&2
8601
8602 *** Warning: the command libtool uses to detect shared libraries,
8603 *** $file_magic_cmd, produces output that libtool cannot recognize.
8604 *** The result is that libtool may fail to recognize shared libraries
8605 *** as such.  This will affect the creation of libtool libraries that
8606 *** depend on shared libraries, but programs linked with such libtool
8607 *** libraries will work regardless of this problem.  Nevertheless, you
8608 *** may want to report the problem to your system manager and/or to
8609 *** bug-libtool@gnu.org
8610
8611 EOF
8612           fi ;;
8613         esac
8614       fi
8615       break
8616     fi
8617   done
8618   IFS="$lt_save_ifs"
8619   MAGIC_CMD="$lt_save_MAGIC_CMD"
8620   ;;
8621 esac
8622 fi
8623
8624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625 if test -n "$MAGIC_CMD"; then
8626   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8627 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8628 else
8629   { echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6; }
8631 fi
8632
8633   else
8634     MAGIC_CMD=:
8635   fi
8636 fi
8637
8638   fi
8639   ;;
8640 esac
8641
8642 enable_dlopen=no
8643 enable_win32_dll=no
8644
8645 # Check whether --enable-libtool-lock was given.
8646 if test "${enable_libtool_lock+set}" = set; then
8647   enableval=$enable_libtool_lock;
8648 fi
8649
8650 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8651
8652
8653 # Check whether --with-pic was given.
8654 if test "${with_pic+set}" = set; then
8655   withval=$with_pic; pic_mode="$withval"
8656 else
8657   pic_mode=default
8658 fi
8659
8660 test -z "$pic_mode" && pic_mode=default
8661
8662 # Use C for the default configuration in the libtool script
8663 tagname=
8664 lt_save_CC="$CC"
8665 ac_ext=c
8666 ac_cpp='$CPP $CPPFLAGS'
8667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8670
8671
8672 # Source file extension for C test sources.
8673 ac_ext=c
8674
8675 # Object file extension for compiled C test sources.
8676 objext=o
8677 objext=$objext
8678
8679 # Code to be used in simple compile tests
8680 lt_simple_compile_test_code="int some_variable = 0;"
8681
8682 # Code to be used in simple link tests
8683 lt_simple_link_test_code='int main(){return(0);}'
8684
8685
8686 # If no C compiler was specified, use CC.
8687 LTCC=${LTCC-"$CC"}
8688
8689 # If no C compiler flags were specified, use CFLAGS.
8690 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8691
8692 # Allow CC to be a program name with arguments.
8693 compiler=$CC
8694
8695
8696 # save warnings/boilerplate of simple test code
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8699 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_compiler_boilerplate=`cat conftest.err`
8701 $rm conftest*
8702
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8705 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_linker_boilerplate=`cat conftest.err`
8707 $rm conftest*
8708
8709
8710
8711 lt_prog_compiler_no_builtin_flag=
8712
8713 if test "$GCC" = yes; then
8714   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8715
8716
8717 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722   lt_cv_prog_compiler_rtti_exceptions=no
8723   ac_outfile=conftest.$ac_objext
8724    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8725    lt_compiler_flag="-fno-rtti -fno-exceptions"
8726    # Insert the option either (1) after the last *FLAGS variable, or
8727    # (2) before a word containing "conftest.", or (3) at the end.
8728    # Note that $ac_compile itself does not contain backslashes and begins
8729    # with a dollar sign (not a hyphen), so the echo should work correctly.
8730    # The option is referenced via a variable to avoid confusing sed.
8731    lt_compile=`echo "$ac_compile" | $SED \
8732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8734    -e 's:$: $lt_compiler_flag:'`
8735    (eval echo "\"\$as_me:8735: $lt_compile\"" >&5)
8736    (eval "$lt_compile" 2>conftest.err)
8737    ac_status=$?
8738    cat conftest.err >&5
8739    echo "$as_me:8739: \$? = $ac_status" >&5
8740    if (exit $ac_status) && test -s "$ac_outfile"; then
8741      # The compiler can only warn and ignore the option if not recognized
8742      # So say no if there are warnings other than the usual output.
8743      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8744      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8745      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8746        lt_cv_prog_compiler_rtti_exceptions=yes
8747      fi
8748    fi
8749    $rm conftest*
8750
8751 fi
8752 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8754
8755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8756     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8757 else
8758     :
8759 fi
8760
8761 fi
8762
8763 lt_prog_compiler_wl=
8764 lt_prog_compiler_pic=
8765 lt_prog_compiler_static=
8766
8767 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8769
8770   if test "$GCC" = yes; then
8771     lt_prog_compiler_wl='-Wl,'
8772     lt_prog_compiler_static='-static'
8773
8774     case $host_os in
8775       aix*)
8776       # All AIX code is PIC.
8777       if test "$host_cpu" = ia64; then
8778         # AIX 5 now supports IA64 processor
8779         lt_prog_compiler_static='-Bstatic'
8780       fi
8781       ;;
8782
8783     amigaos*)
8784       # FIXME: we need at least 68020 code to build shared libraries, but
8785       # adding the `-m68020' flag to GCC prevents building anything better,
8786       # like `-m68040'.
8787       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8788       ;;
8789
8790     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791       # PIC is the default for these OSes.
8792       ;;
8793
8794     mingw* | cygwin* | pw32* | os2*)
8795       # This hack is so that the source file can tell whether it is being
8796       # built for inclusion in a dll (and should export symbols for example).
8797       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798       # (--disable-auto-import) libraries
8799       lt_prog_compiler_pic='-DDLL_EXPORT'
8800       ;;
8801
8802     darwin* | rhapsody*)
8803       # PIC is the default on this platform
8804       # Common symbols not allowed in MH_DYLIB files
8805       lt_prog_compiler_pic='-fno-common'
8806       ;;
8807
8808     interix[3-9]*)
8809       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8810       # Instead, we relocate shared libraries at runtime.
8811       ;;
8812
8813     msdosdjgpp*)
8814       # Just because we use GCC doesn't mean we suddenly get shared libraries
8815       # on systems that don't support them.
8816       lt_prog_compiler_can_build_shared=no
8817       enable_shared=no
8818       ;;
8819
8820     sysv4*MP*)
8821       if test -d /usr/nec; then
8822         lt_prog_compiler_pic=-Kconform_pic
8823       fi
8824       ;;
8825
8826     hpux*)
8827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8828       # not for PA HP-UX.
8829       case $host_cpu in
8830       hppa*64*|ia64*)
8831         # +Z the default
8832         ;;
8833       *)
8834         lt_prog_compiler_pic='-fPIC'
8835         ;;
8836       esac
8837       ;;
8838
8839     *)
8840       lt_prog_compiler_pic='-fPIC'
8841       ;;
8842     esac
8843   else
8844     # PORTME Check for flag to pass linker flags through the system compiler.
8845     case $host_os in
8846     aix*)
8847       lt_prog_compiler_wl='-Wl,'
8848       if test "$host_cpu" = ia64; then
8849         # AIX 5 now supports IA64 processor
8850         lt_prog_compiler_static='-Bstatic'
8851       else
8852         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8853       fi
8854       ;;
8855       darwin*)
8856         # PIC is the default on this platform
8857         # Common symbols not allowed in MH_DYLIB files
8858        case $cc_basename in
8859          xlc*)
8860          lt_prog_compiler_pic='-qnocommon'
8861          lt_prog_compiler_wl='-Wl,'
8862          ;;
8863        esac
8864        ;;
8865
8866     mingw* | cygwin* | pw32* | os2*)
8867       # This hack is so that the source file can tell whether it is being
8868       # built for inclusion in a dll (and should export symbols for example).
8869       lt_prog_compiler_pic='-DDLL_EXPORT'
8870       ;;
8871
8872     hpux9* | hpux10* | hpux11*)
8873       lt_prog_compiler_wl='-Wl,'
8874       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8875       # not for PA HP-UX.
8876       case $host_cpu in
8877       hppa*64*|ia64*)
8878         # +Z the default
8879         ;;
8880       *)
8881         lt_prog_compiler_pic='+Z'
8882         ;;
8883       esac
8884       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8885       lt_prog_compiler_static='${wl}-a ${wl}archive'
8886       ;;
8887
8888     irix5* | irix6* | nonstopux*)
8889       lt_prog_compiler_wl='-Wl,'
8890       # PIC (with -KPIC) is the default.
8891       lt_prog_compiler_static='-non_shared'
8892       ;;
8893
8894     newsos6)
8895       lt_prog_compiler_pic='-KPIC'
8896       lt_prog_compiler_static='-Bstatic'
8897       ;;
8898
8899     linux* | k*bsd*-gnu)
8900       case $cc_basename in
8901       icc* | ecc*)
8902         lt_prog_compiler_wl='-Wl,'
8903         lt_prog_compiler_pic='-KPIC'
8904         lt_prog_compiler_static='-static'
8905         ;;
8906       pgcc* | pgf77* | pgf90* | pgf95*)
8907         # Portland Group compilers (*not* the Pentium gcc compiler,
8908         # which looks to be a dead project)
8909         lt_prog_compiler_wl='-Wl,'
8910         lt_prog_compiler_pic='-fpic'
8911         lt_prog_compiler_static='-Bstatic'
8912         ;;
8913       ccc*)
8914         lt_prog_compiler_wl='-Wl,'
8915         # All Alpha code is PIC.
8916         lt_prog_compiler_static='-non_shared'
8917         ;;
8918       *)
8919         case `$CC -V 2>&1 | sed 5q` in
8920         *Sun\ C*)
8921           # Sun C 5.9
8922           lt_prog_compiler_pic='-KPIC'
8923           lt_prog_compiler_static='-Bstatic'
8924           lt_prog_compiler_wl='-Wl,'
8925           ;;
8926         *Sun\ F*)
8927           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8928           lt_prog_compiler_pic='-KPIC'
8929           lt_prog_compiler_static='-Bstatic'
8930           lt_prog_compiler_wl=''
8931           ;;
8932         esac
8933         ;;
8934       esac
8935       ;;
8936
8937     osf3* | osf4* | osf5*)
8938       lt_prog_compiler_wl='-Wl,'
8939       # All OSF/1 code is PIC.
8940       lt_prog_compiler_static='-non_shared'
8941       ;;
8942
8943     rdos*)
8944       lt_prog_compiler_static='-non_shared'
8945       ;;
8946
8947     solaris*)
8948       lt_prog_compiler_pic='-KPIC'
8949       lt_prog_compiler_static='-Bstatic'
8950       case $cc_basename in
8951       f77* | f90* | f95*)
8952         lt_prog_compiler_wl='-Qoption ld ';;
8953       *)
8954         lt_prog_compiler_wl='-Wl,';;
8955       esac
8956       ;;
8957
8958     sunos4*)
8959       lt_prog_compiler_wl='-Qoption ld '
8960       lt_prog_compiler_pic='-PIC'
8961       lt_prog_compiler_static='-Bstatic'
8962       ;;
8963
8964     sysv4 | sysv4.2uw2* | sysv4.3*)
8965       lt_prog_compiler_wl='-Wl,'
8966       lt_prog_compiler_pic='-KPIC'
8967       lt_prog_compiler_static='-Bstatic'
8968       ;;
8969
8970     sysv4*MP*)
8971       if test -d /usr/nec ;then
8972         lt_prog_compiler_pic='-Kconform_pic'
8973         lt_prog_compiler_static='-Bstatic'
8974       fi
8975       ;;
8976
8977     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8978       lt_prog_compiler_wl='-Wl,'
8979       lt_prog_compiler_pic='-KPIC'
8980       lt_prog_compiler_static='-Bstatic'
8981       ;;
8982
8983     unicos*)
8984       lt_prog_compiler_wl='-Wl,'
8985       lt_prog_compiler_can_build_shared=no
8986       ;;
8987
8988     uts4*)
8989       lt_prog_compiler_pic='-pic'
8990       lt_prog_compiler_static='-Bstatic'
8991       ;;
8992
8993     *)
8994       lt_prog_compiler_can_build_shared=no
8995       ;;
8996     esac
8997   fi
8998
8999 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9000 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9001
9002 #
9003 # Check to make sure the PIC flag actually works.
9004 #
9005 if test -n "$lt_prog_compiler_pic"; then
9006
9007 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9009 if test "${lt_prog_compiler_pic_works+set}" = set; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   lt_prog_compiler_pic_works=no
9013   ac_outfile=conftest.$ac_objext
9014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016    # Insert the option either (1) after the last *FLAGS variable, or
9017    # (2) before a word containing "conftest.", or (3) at the end.
9018    # Note that $ac_compile itself does not contain backslashes and begins
9019    # with a dollar sign (not a hyphen), so the echo should work correctly.
9020    # The option is referenced via a variable to avoid confusing sed.
9021    lt_compile=`echo "$ac_compile" | $SED \
9022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024    -e 's:$: $lt_compiler_flag:'`
9025    (eval echo "\"\$as_me:9025: $lt_compile\"" >&5)
9026    (eval "$lt_compile" 2>conftest.err)
9027    ac_status=$?
9028    cat conftest.err >&5
9029    echo "$as_me:9029: \$? = $ac_status" >&5
9030    if (exit $ac_status) && test -s "$ac_outfile"; then
9031      # The compiler can only warn and ignore the option if not recognized
9032      # So say no if there are warnings other than the usual output.
9033      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9034      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9036        lt_prog_compiler_pic_works=yes
9037      fi
9038    fi
9039    $rm conftest*
9040
9041 fi
9042 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9043 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9044
9045 if test x"$lt_prog_compiler_pic_works" = xyes; then
9046     case $lt_prog_compiler_pic in
9047      "" | " "*) ;;
9048      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049      esac
9050 else
9051     lt_prog_compiler_pic=
9052      lt_prog_compiler_can_build_shared=no
9053 fi
9054
9055 fi
9056 case $host_os in
9057   # For platforms which do not support PIC, -DPIC is meaningless:
9058   *djgpp*)
9059     lt_prog_compiler_pic=
9060     ;;
9061   *)
9062     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9063     ;;
9064 esac
9065
9066 #
9067 # Check to make sure the static flag actually works.
9068 #
9069 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9070 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9071 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9072 if test "${lt_prog_compiler_static_works+set}" = set; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075   lt_prog_compiler_static_works=no
9076    save_LDFLAGS="$LDFLAGS"
9077    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9078    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9079    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9080      # The linker can only warn and ignore the option if not recognized
9081      # So say no if there are warnings
9082      if test -s conftest.err; then
9083        # Append any errors to the config.log.
9084        cat conftest.err 1>&5
9085        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9086        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087        if diff conftest.exp conftest.er2 >/dev/null; then
9088          lt_prog_compiler_static_works=yes
9089        fi
9090      else
9091        lt_prog_compiler_static_works=yes
9092      fi
9093    fi
9094    $rm conftest*
9095    LDFLAGS="$save_LDFLAGS"
9096
9097 fi
9098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9099 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9100
9101 if test x"$lt_prog_compiler_static_works" = xyes; then
9102     :
9103 else
9104     lt_prog_compiler_static=
9105 fi
9106
9107
9108 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9110 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   lt_cv_prog_compiler_c_o=no
9114    $rm -r conftest 2>/dev/null
9115    mkdir conftest
9116    cd conftest
9117    mkdir out
9118    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119
9120    lt_compiler_flag="-o out/conftest2.$ac_objext"
9121    # Insert the option either (1) after the last *FLAGS variable, or
9122    # (2) before a word containing "conftest.", or (3) at the end.
9123    # Note that $ac_compile itself does not contain backslashes and begins
9124    # with a dollar sign (not a hyphen), so the echo should work correctly.
9125    lt_compile=`echo "$ac_compile" | $SED \
9126    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128    -e 's:$: $lt_compiler_flag:'`
9129    (eval echo "\"\$as_me:9129: $lt_compile\"" >&5)
9130    (eval "$lt_compile" 2>out/conftest.err)
9131    ac_status=$?
9132    cat out/conftest.err >&5
9133    echo "$as_me:9133: \$? = $ac_status" >&5
9134    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9135    then
9136      # The compiler can only warn and ignore the option if not recognized
9137      # So say no if there are warnings
9138      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9139      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141        lt_cv_prog_compiler_c_o=yes
9142      fi
9143    fi
9144    chmod u+w . 2>&5
9145    $rm conftest*
9146    # SGI C++ compiler will create directory out/ii_files/ for
9147    # template instantiation
9148    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9149    $rm out/* && rmdir out
9150    cd ..
9151    rmdir conftest
9152    $rm conftest*
9153
9154 fi
9155 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9157
9158
9159 hard_links="nottested"
9160 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9161   # do not overwrite the value of need_locks provided by the user
9162   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9164   hard_links=yes
9165   $rm conftest*
9166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9167   touch conftest.a
9168   ln conftest.a conftest.b 2>&5 || hard_links=no
9169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170   { echo "$as_me:$LINENO: result: $hard_links" >&5
9171 echo "${ECHO_T}$hard_links" >&6; }
9172   if test "$hard_links" = no; then
9173     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9175     need_locks=warn
9176   fi
9177 else
9178   need_locks=no
9179 fi
9180
9181 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9183
9184   runpath_var=
9185   allow_undefined_flag=
9186   enable_shared_with_static_runtimes=no
9187   archive_cmds=
9188   archive_expsym_cmds=
9189   old_archive_From_new_cmds=
9190   old_archive_from_expsyms_cmds=
9191   export_dynamic_flag_spec=
9192   whole_archive_flag_spec=
9193   thread_safe_flag_spec=
9194   hardcode_libdir_flag_spec=
9195   hardcode_libdir_flag_spec_ld=
9196   hardcode_libdir_separator=
9197   hardcode_direct=no
9198   hardcode_minus_L=no
9199   hardcode_shlibpath_var=unsupported
9200   link_all_deplibs=unknown
9201   hardcode_automatic=no
9202   module_cmds=
9203   module_expsym_cmds=
9204   always_export_symbols=no
9205   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9206   # include_expsyms should be a list of space-separated symbols to be *always*
9207   # included in the symbol list
9208   include_expsyms=
9209   # exclude_expsyms can be an extended regexp of symbols to exclude
9210   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9211   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9212   # as well as any symbol that contains `d'.
9213   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9214   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9215   # platforms (ab)use it in PIC code, but their linkers get confused if
9216   # the symbol is explicitly referenced.  Since portable code cannot
9217   # rely on this symbol name, it's probably fine to never include it in
9218   # preloaded symbol tables.
9219   extract_expsyms_cmds=
9220   # Just being paranoid about ensuring that cc_basename is set.
9221   for cc_temp in $compiler""; do
9222   case $cc_temp in
9223     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9224     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9225     \-*) ;;
9226     *) break;;
9227   esac
9228 done
9229 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9230
9231   case $host_os in
9232   cygwin* | mingw* | pw32*)
9233     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234     # When not using gcc, we currently assume that we are using
9235     # Microsoft Visual C++.
9236     if test "$GCC" != yes; then
9237       with_gnu_ld=no
9238     fi
9239     ;;
9240   interix*)
9241     # we just hope/assume this is gcc and not c89 (= MSVC++)
9242     with_gnu_ld=yes
9243     ;;
9244   openbsd*)
9245     with_gnu_ld=no
9246     ;;
9247   esac
9248
9249   ld_shlibs=yes
9250   if test "$with_gnu_ld" = yes; then
9251     # If archive_cmds runs LD, not CC, wlarc should be empty
9252     wlarc='${wl}'
9253
9254     # Set some defaults for GNU ld with shared library support. These
9255     # are reset later if shared libraries are not supported. Putting them
9256     # here allows them to be overridden if necessary.
9257     runpath_var=LD_RUN_PATH
9258     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9259     export_dynamic_flag_spec='${wl}--export-dynamic'
9260     # ancient GNU ld didn't support --whole-archive et. al.
9261     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9262         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9263       else
9264         whole_archive_flag_spec=
9265     fi
9266     supports_anon_versioning=no
9267     case `$LD -v 2>/dev/null` in
9268       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271       *\ 2.11.*) ;; # other 2.11 versions
9272       *) supports_anon_versioning=yes ;;
9273     esac
9274
9275     # See if GNU ld supports shared libraries.
9276     case $host_os in
9277     aix3* | aix4* | aix5*)
9278       # On AIX/PPC, the GNU linker is very broken
9279       if test "$host_cpu" != ia64; then
9280         ld_shlibs=no
9281         cat <<EOF 1>&2
9282
9283 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support.  If you
9286 *** really care for shared libraries, you may want to modify your PATH
9287 *** so that a non-GNU linker is found, and then restart.
9288
9289 EOF
9290       fi
9291       ;;
9292
9293     amigaos*)
9294       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)'
9295       hardcode_libdir_flag_spec='-L$libdir'
9296       hardcode_minus_L=yes
9297
9298       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9299       # that the semantics of dynamic libraries on AmigaOS, at least up
9300       # to version 4, is to share data among multiple programs linked
9301       # with the same dynamic library.  Since this doesn't match the
9302       # behavior of shared libraries on other platforms, we can't use
9303       # them.
9304       ld_shlibs=no
9305       ;;
9306
9307     beos*)
9308       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9309         allow_undefined_flag=unsupported
9310         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9311         # support --undefined.  This deserves some investigation.  FIXME
9312         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317
9318     cygwin* | mingw* | pw32*)
9319       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9320       # as there is no search path for DLLs.
9321       hardcode_libdir_flag_spec='-L$libdir'
9322       allow_undefined_flag=unsupported
9323       always_export_symbols=no
9324       enable_shared_with_static_runtimes=yes
9325       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9326
9327       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329         # If the export-symbols file already is a .def file (1st line
9330         # is EXPORTS), use it as is; otherwise, prepend...
9331         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9332           cp $export_symbols $output_objdir/$soname.def;
9333         else
9334           echo EXPORTS > $output_objdir/$soname.def;
9335           cat $export_symbols >> $output_objdir/$soname.def;
9336         fi~
9337         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     interix[3-9]*)
9344       hardcode_direct=no
9345       hardcode_shlibpath_var=no
9346       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347       export_dynamic_flag_spec='${wl}-E'
9348       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9349       # Instead, shared libraries are loaded at an image base (0x10000000 by
9350       # default) and relocated if they conflict, which is a slow very memory
9351       # consuming and fragmenting process.  To avoid this, we pick a random,
9352       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9353       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9354       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9355       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'
9356       ;;
9357
9358     gnu* | linux* | k*bsd*-gnu)
9359       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9360         tmp_addflag=
9361         case $cc_basename,$host_cpu in
9362         pgcc*)                          # Portland Group C compiler
9363           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'
9364           tmp_addflag=' $pic_flag'
9365           ;;
9366         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9367           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'
9368           tmp_addflag=' $pic_flag -Mnomain' ;;
9369         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9370           tmp_addflag=' -i_dynamic' ;;
9371         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9372           tmp_addflag=' -i_dynamic -nofor_main' ;;
9373         ifc* | ifort*)                  # Intel Fortran compiler
9374           tmp_addflag=' -nofor_main' ;;
9375         esac
9376         case `$CC -V 2>&1 | sed 5q` in
9377         *Sun\ C*)                       # Sun C 5.9
9378           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9379           tmp_sharedflag='-G' ;;
9380         *Sun\ F*)                       # Sun Fortran 8.3
9381           tmp_sharedflag='-G' ;;
9382         *)
9383           tmp_sharedflag='-shared' ;;
9384         esac
9385         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386
9387         if test $supports_anon_versioning = yes; then
9388           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9389   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9390   $echo "local: *; };" >> $output_objdir/$libname.ver~
9391           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9392         fi
9393         link_all_deplibs=no
9394       else
9395         ld_shlibs=no
9396       fi
9397       ;;
9398
9399     netbsd* | netbsdelf*-gnu)
9400       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9402         wlarc=
9403       else
9404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406       fi
9407       ;;
9408
9409     solaris*)
9410       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9411         ld_shlibs=no
9412         cat <<EOF 1>&2
9413
9414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9415 *** create shared libraries on Solaris systems.  Therefore, libtool
9416 *** is disabling shared libraries support.  We urge you to upgrade GNU
9417 *** binutils to release 2.9.1 or newer.  Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9420
9421 EOF
9422       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425       else
9426         ld_shlibs=no
9427       fi
9428       ;;
9429
9430     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9431       case `$LD -v 2>&1` in
9432         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9433         ld_shlibs=no
9434         cat <<_LT_EOF 1>&2
9435
9436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9437 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9438 *** is disabling shared libraries support.  We urge you to upgrade GNU
9439 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9440 *** your PATH or compiler configuration so that the native linker is
9441 *** used, and then restart.
9442
9443 _LT_EOF
9444         ;;
9445         *)
9446           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9447             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9449             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9450           else
9451             ld_shlibs=no
9452           fi
9453         ;;
9454       esac
9455       ;;
9456
9457     sunos4*)
9458       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459       wlarc=
9460       hardcode_direct=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     *)
9465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468       else
9469         ld_shlibs=no
9470       fi
9471       ;;
9472     esac
9473
9474     if test "$ld_shlibs" = no; then
9475       runpath_var=
9476       hardcode_libdir_flag_spec=
9477       export_dynamic_flag_spec=
9478       whole_archive_flag_spec=
9479     fi
9480   else
9481     # PORTME fill in a description of your system's linker (not GNU ld)
9482     case $host_os in
9483     aix3*)
9484       allow_undefined_flag=unsupported
9485       always_export_symbols=yes
9486       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'
9487       # Note: this linker hardcodes the directories in LIBPATH if there
9488       # are no directories specified by -L.
9489       hardcode_minus_L=yes
9490       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9491         # Neither direct hardcoding nor static linking is supported with a
9492         # broken collect2.
9493         hardcode_direct=unsupported
9494       fi
9495       ;;
9496
9497     aix4* | aix5*)
9498       if test "$host_cpu" = ia64; then
9499         # On IA64, the linker does run time linking by default, so we don't
9500         # have to do anything special.
9501         aix_use_runtimelinking=no
9502         exp_sym_flag='-Bexport'
9503         no_entry_flag=""
9504       else
9505         # If we're using GNU nm, then we don't want the "-C" option.
9506         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9507         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9508           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'
9509         else
9510           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'
9511         fi
9512         aix_use_runtimelinking=no
9513
9514         # Test if we are trying to use run time linking or normal
9515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516         # need to do runtime linking.
9517         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9518           for ld_flag in $LDFLAGS; do
9519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520             aix_use_runtimelinking=yes
9521             break
9522           fi
9523           done
9524           ;;
9525         esac
9526
9527         exp_sym_flag='-bexport'
9528         no_entry_flag='-bnoentry'
9529       fi
9530
9531       # When large executables or shared objects are built, AIX ld can
9532       # have problems creating the table of contents.  If linking a library
9533       # or program results in "error TOC overflow" add -mminimal-toc to
9534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536
9537       archive_cmds=''
9538       hardcode_direct=yes
9539       hardcode_libdir_separator=':'
9540       link_all_deplibs=yes
9541
9542       if test "$GCC" = yes; then
9543         case $host_os in aix4.[012]|aix4.[012].*)
9544         # We only want to do this on AIX 4.2 and lower, the check
9545         # below for broken collect2 doesn't work under 4.3+
9546           collect2name=`${CC} -print-prog-name=collect2`
9547           if test -f "$collect2name" && \
9548            strings "$collect2name" | grep resolve_lib_name >/dev/null
9549           then
9550           # We have reworked collect2
9551           :
9552           else
9553           # We have old collect2
9554           hardcode_direct=unsupported
9555           # It fails to find uninstalled libraries when the uninstalled
9556           # path is not listed in the libpath.  Setting hardcode_minus_L
9557           # to unsupported forces relinking
9558           hardcode_minus_L=yes
9559           hardcode_libdir_flag_spec='-L$libdir'
9560           hardcode_libdir_separator=
9561           fi
9562           ;;
9563         esac
9564         shared_flag='-shared'
9565         if test "$aix_use_runtimelinking" = yes; then
9566           shared_flag="$shared_flag "'${wl}-G'
9567         fi
9568       else
9569         # not using gcc
9570         if test "$host_cpu" = ia64; then
9571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9572         # chokes on -Wl,-G. The following line is correct:
9573           shared_flag='-G'
9574         else
9575           if test "$aix_use_runtimelinking" = yes; then
9576             shared_flag='${wl}-G'
9577           else
9578             shared_flag='${wl}-bM:SRE'
9579           fi
9580         fi
9581       fi
9582
9583       # It seems that -bexpall does not export symbols beginning with
9584       # underscore (_), so it is better to generate a list of symbols to export.
9585       always_export_symbols=yes
9586       if test "$aix_use_runtimelinking" = yes; then
9587         # Warning - without using the other runtime loading flags (-brtl),
9588         # -berok will link without error, but may produce a broken library.
9589         allow_undefined_flag='-berok'
9590        # Determine the default libpath from the value encoded in an empty executable.
9591        cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597
9598 int
9599 main ()
9600 {
9601
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613   (eval "$ac_link") 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } && {
9620          test -z "$ac_c_werror_flag" ||
9621          test ! -s conftest.err
9622        } && test -s conftest$ac_exeext &&
9623        $as_test_x conftest$ac_exeext; then
9624
9625 lt_aix_libpath_sed='
9626     /Import File Strings/,/^$/ {
9627         /^0/ {
9628             s/^0  *\(.*\)$/\1/
9629             p
9630         }
9631     }'
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then
9635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 fi
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645       conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9647
9648        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649         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"
9650        else
9651         if test "$host_cpu" = ia64; then
9652           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653           allow_undefined_flag="-z nodefs"
9654           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"
9655         else
9656          # Determine the default libpath from the value encoded in an empty executable.
9657          cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663
9664 int
9665 main ()
9666 {
9667
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest$ac_exeext &&
9689        $as_test_x conftest$ac_exeext; then
9690
9691 lt_aix_libpath_sed='
9692     /Import File Strings/,/^$/ {
9693         /^0/ {
9694             s/^0  *\(.*\)$/\1/
9695             p
9696         }
9697     }'
9698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$aix_libpath"; then
9701   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 fi
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707
9708 fi
9709
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711       conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9713
9714          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9715           # Warning - without using the other run time loading flags,
9716           # -berok will link without error, but may produce a broken library.
9717           no_undefined_flag=' ${wl}-bernotok'
9718           allow_undefined_flag=' ${wl}-berok'
9719           # Exported symbols can be pulled into shared objects from archives
9720           whole_archive_flag_spec='$convenience'
9721           archive_cmds_need_lc=yes
9722           # This is similar to how AIX traditionally builds its shared libraries.
9723           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'
9724         fi
9725       fi
9726       ;;
9727
9728     amigaos*)
9729       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)'
9730       hardcode_libdir_flag_spec='-L$libdir'
9731       hardcode_minus_L=yes
9732       # see comment about different semantics on the GNU ld section
9733       ld_shlibs=no
9734       ;;
9735
9736     bsdi[45]*)
9737       export_dynamic_flag_spec=-rdynamic
9738       ;;
9739
9740     cygwin* | mingw* | pw32*)
9741       # When not using gcc, we currently assume that we are using
9742       # Microsoft Visual C++.
9743       # hardcode_libdir_flag_spec is actually meaningless, as there is
9744       # no search path for DLLs.
9745       hardcode_libdir_flag_spec=' '
9746       allow_undefined_flag=unsupported
9747       # Tell ltmain to make .lib files, not .a files.
9748       libext=lib
9749       # Tell ltmain to make .dll files, not .so files.
9750       shrext_cmds=".dll"
9751       # FIXME: Setting linknames here is a bad hack.
9752       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9753       # The linker will automatically build a .lib file if we build a DLL.
9754       old_archive_From_new_cmds='true'
9755       # FIXME: Should let the user specify the lib program.
9756       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757       fix_srcfile_path='`cygpath -w "$srcfile"`'
9758       enable_shared_with_static_runtimes=yes
9759       ;;
9760
9761     darwin* | rhapsody*)
9762       case $host_os in
9763         rhapsody* | darwin1.[012])
9764          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9765          ;;
9766        *) # Darwin 1.3 on
9767          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9768            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9769          else
9770            case ${MACOSX_DEPLOYMENT_TARGET} in
9771              10.[012])
9772                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9773                ;;
9774              10.*)
9775                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9776                ;;
9777            esac
9778          fi
9779          ;;
9780       esac
9781       archive_cmds_need_lc=no
9782       hardcode_direct=no
9783       hardcode_automatic=yes
9784       hardcode_shlibpath_var=unsupported
9785       whole_archive_flag_spec=''
9786       link_all_deplibs=yes
9787     if test "$GCC" = yes ; then
9788         output_verbose_link_cmd='echo'
9789         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9790       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9791       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9792       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}'
9793       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}'
9794     else
9795       case $cc_basename in
9796         xlc*)
9797          output_verbose_link_cmd='echo'
9798          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9799          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9800           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9801          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9802           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}'
9803           ;;
9804        *)
9805          ld_shlibs=no
9806           ;;
9807       esac
9808     fi
9809       ;;
9810
9811     dgux*)
9812       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813       hardcode_libdir_flag_spec='-L$libdir'
9814       hardcode_shlibpath_var=no
9815       ;;
9816
9817     freebsd1*)
9818       ld_shlibs=no
9819       ;;
9820
9821     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9822     # support.  Future versions do this automatically, but an explicit c++rt0.o
9823     # does not break anything, and helps significantly (at the cost of a little
9824     # extra space).
9825     freebsd2.2*)
9826       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9827       hardcode_libdir_flag_spec='-R$libdir'
9828       hardcode_direct=yes
9829       hardcode_shlibpath_var=no
9830       ;;
9831
9832     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9833     freebsd2*)
9834       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835       hardcode_direct=yes
9836       hardcode_minus_L=yes
9837       hardcode_shlibpath_var=no
9838       ;;
9839
9840     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9841     freebsd* | dragonfly*)
9842       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9843       hardcode_libdir_flag_spec='-R$libdir'
9844       hardcode_direct=yes
9845       hardcode_shlibpath_var=no
9846       ;;
9847
9848     hpux9*)
9849       if test "$GCC" = yes; then
9850         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'
9851       else
9852         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'
9853       fi
9854       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855       hardcode_libdir_separator=:
9856       hardcode_direct=yes
9857
9858       # hardcode_minus_L: Not really in the search PATH,
9859       # but as the default location of the library.
9860       hardcode_minus_L=yes
9861       export_dynamic_flag_spec='${wl}-E'
9862       ;;
9863
9864     hpux10*)
9865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9866         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867       else
9868         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869       fi
9870       if test "$with_gnu_ld" = no; then
9871         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872         hardcode_libdir_separator=:
9873
9874         hardcode_direct=yes
9875         export_dynamic_flag_spec='${wl}-E'
9876
9877         # hardcode_minus_L: Not really in the search PATH,
9878         # but as the default location of the library.
9879         hardcode_minus_L=yes
9880       fi
9881       ;;
9882
9883     hpux11*)
9884       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9885         case $host_cpu in
9886         hppa*64*)
9887           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888           ;;
9889         ia64*)
9890           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891           ;;
9892         *)
9893           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894           ;;
9895         esac
9896       else
9897         case $host_cpu in
9898         hppa*64*)
9899           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900           ;;
9901         ia64*)
9902           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903           ;;
9904         *)
9905           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9906           ;;
9907         esac
9908       fi
9909       if test "$with_gnu_ld" = no; then
9910         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911         hardcode_libdir_separator=:
9912
9913         case $host_cpu in
9914         hppa*64*|ia64*)
9915           hardcode_libdir_flag_spec_ld='+b $libdir'
9916           hardcode_direct=no
9917           hardcode_shlibpath_var=no
9918           ;;
9919         *)
9920           hardcode_direct=yes
9921           export_dynamic_flag_spec='${wl}-E'
9922
9923           # hardcode_minus_L: Not really in the search PATH,
9924           # but as the default location of the library.
9925           hardcode_minus_L=yes
9926           ;;
9927         esac
9928       fi
9929       ;;
9930
9931     irix5* | irix6* | nonstopux*)
9932       if test "$GCC" = yes; then
9933         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'
9934       else
9935         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'
9936         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9937       fi
9938       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939       hardcode_libdir_separator=:
9940       link_all_deplibs=yes
9941       ;;
9942
9943     netbsd* | netbsdelf*-gnu)
9944       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9945         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9946       else
9947         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9948       fi
9949       hardcode_libdir_flag_spec='-R$libdir'
9950       hardcode_direct=yes
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     newsos6)
9955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956       hardcode_direct=yes
9957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       hardcode_libdir_separator=:
9959       hardcode_shlibpath_var=no
9960       ;;
9961
9962     openbsd*)
9963       if test -f /usr/libexec/ld.so; then
9964         hardcode_direct=yes
9965         hardcode_shlibpath_var=no
9966         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970           export_dynamic_flag_spec='${wl}-E'
9971         else
9972           case $host_os in
9973            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975              hardcode_libdir_flag_spec='-R$libdir'
9976              ;;
9977            *)
9978              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9980              ;;
9981           esac
9982         fi
9983       else
9984         ld_shlibs=no
9985       fi
9986       ;;
9987
9988     os2*)
9989       hardcode_libdir_flag_spec='-L$libdir'
9990       hardcode_minus_L=yes
9991       allow_undefined_flag=unsupported
9992       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'
9993       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9994       ;;
9995
9996     osf3*)
9997       if test "$GCC" = yes; then
9998         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999         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'
10000       else
10001         allow_undefined_flag=' -expect_unresolved \*'
10002         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'
10003       fi
10004       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005       hardcode_libdir_separator=:
10006       ;;
10007
10008     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10009       if test "$GCC" = yes; then
10010         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011         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'
10012         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013       else
10014         allow_undefined_flag=' -expect_unresolved \*'
10015         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'
10016         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10017         $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'
10018
10019         # Both c and cxx compiler support -rpath directly
10020         hardcode_libdir_flag_spec='-rpath $libdir'
10021       fi
10022       hardcode_libdir_separator=:
10023       ;;
10024
10025     solaris*)
10026       no_undefined_flag=' -z text'
10027       if test "$GCC" = yes; then
10028         wlarc='${wl}'
10029         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10032       else
10033         wlarc=''
10034         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10036         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10037       fi
10038       hardcode_libdir_flag_spec='-R$libdir'
10039       hardcode_shlibpath_var=no
10040       case $host_os in
10041       solaris2.[0-5] | solaris2.[0-5].*) ;;
10042       *)
10043         # The compiler driver will combine and reorder linker options,
10044         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10045         # but is careful enough not to reorder.
10046         # Supported since Solaris 2.6 (maybe 2.5.1?)
10047         if test "$GCC" = yes; then
10048           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10049         else
10050           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10051         fi
10052         ;;
10053       esac
10054       link_all_deplibs=yes
10055       ;;
10056
10057     sunos4*)
10058       if test "x$host_vendor" = xsequent; then
10059         # Use $CC to link under sequent, because it throws in some extra .o
10060         # files that make .init and .fini sections work.
10061         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10062       else
10063         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10064       fi
10065       hardcode_libdir_flag_spec='-L$libdir'
10066       hardcode_direct=yes
10067       hardcode_minus_L=yes
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     sysv4)
10072       case $host_vendor in
10073         sni)
10074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075           hardcode_direct=yes # is this really true???
10076         ;;
10077         siemens)
10078           ## LD is ld it makes a PLAMLIB
10079           ## CC just makes a GrossModule.
10080           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10081           reload_cmds='$CC -r -o $output$reload_objs'
10082           hardcode_direct=no
10083         ;;
10084         motorola)
10085           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10087         ;;
10088       esac
10089       runpath_var='LD_RUN_PATH'
10090       hardcode_shlibpath_var=no
10091       ;;
10092
10093     sysv4.3*)
10094       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095       hardcode_shlibpath_var=no
10096       export_dynamic_flag_spec='-Bexport'
10097       ;;
10098
10099     sysv4*MP*)
10100       if test -d /usr/nec; then
10101         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102         hardcode_shlibpath_var=no
10103         runpath_var=LD_RUN_PATH
10104         hardcode_runpath_var=yes
10105         ld_shlibs=yes
10106       fi
10107       ;;
10108
10109     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10110       no_undefined_flag='${wl}-z,text'
10111       archive_cmds_need_lc=no
10112       hardcode_shlibpath_var=no
10113       runpath_var='LD_RUN_PATH'
10114
10115       if test "$GCC" = yes; then
10116         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118       else
10119         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121       fi
10122       ;;
10123
10124     sysv5* | sco3.2v5* | sco5v6*)
10125       # Note: We can NOT use -z defs as we might desire, because we do not
10126       # link with -lc, and that would cause any symbols used from libc to
10127       # always be unresolved, which means just about no library would
10128       # ever link correctly.  If we're not using GNU ld we use -z text
10129       # though, which does catch some bad symbols but isn't as heavy-handed
10130       # as -z defs.
10131       no_undefined_flag='${wl}-z,text'
10132       allow_undefined_flag='${wl}-z,nodefs'
10133       archive_cmds_need_lc=no
10134       hardcode_shlibpath_var=no
10135       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10136       hardcode_libdir_separator=':'
10137       link_all_deplibs=yes
10138       export_dynamic_flag_spec='${wl}-Bexport'
10139       runpath_var='LD_RUN_PATH'
10140
10141       if test "$GCC" = yes; then
10142         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144       else
10145         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10147       fi
10148       ;;
10149
10150     uts4*)
10151       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152       hardcode_libdir_flag_spec='-L$libdir'
10153       hardcode_shlibpath_var=no
10154       ;;
10155
10156     *)
10157       ld_shlibs=no
10158       ;;
10159     esac
10160   fi
10161
10162 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10163 echo "${ECHO_T}$ld_shlibs" >&6; }
10164 test "$ld_shlibs" = no && can_build_shared=no
10165
10166 #
10167 # Do we need to explicitly link libc?
10168 #
10169 case "x$archive_cmds_need_lc" in
10170 x|xyes)
10171   # Assume -lc should be added
10172   archive_cmds_need_lc=yes
10173
10174   if test "$enable_shared" = yes && test "$GCC" = yes; then
10175     case $archive_cmds in
10176     *'~'*)
10177       # FIXME: we may have to deal with multi-command sequences.
10178       ;;
10179     '$CC '*)
10180       # Test whether the compiler implicitly links with -lc since on some
10181       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182       # to ld, don't add -lc before -lgcc.
10183       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10185       $rm conftest*
10186       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187
10188       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } 2>conftest.err; then
10193         soname=conftest
10194         lib=conftest
10195         libobjs=conftest.$ac_objext
10196         deplibs=
10197         wl=$lt_prog_compiler_wl
10198         pic_flag=$lt_prog_compiler_pic
10199         compiler_flags=-v
10200         linker_flags=-v
10201         verstring=
10202         output_objdir=.
10203         libname=conftest
10204         lt_save_allow_undefined_flag=$allow_undefined_flag
10205         allow_undefined_flag=
10206         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10207   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }
10211         then
10212           archive_cmds_need_lc=no
10213         else
10214           archive_cmds_need_lc=yes
10215         fi
10216         allow_undefined_flag=$lt_save_allow_undefined_flag
10217       else
10218         cat conftest.err 1>&5
10219       fi
10220       $rm conftest*
10221       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10222 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10223       ;;
10224     esac
10225   fi
10226   ;;
10227 esac
10228
10229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10231 library_names_spec=
10232 libname_spec='lib$name'
10233 soname_spec=
10234 shrext_cmds=".so"
10235 postinstall_cmds=
10236 postuninstall_cmds=
10237 finish_cmds=
10238 finish_eval=
10239 shlibpath_var=
10240 shlibpath_overrides_runpath=unknown
10241 version_type=none
10242 dynamic_linker="$host_os ld.so"
10243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10244
10245 if test "$GCC" = yes; then
10246   case $host_os in
10247     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10248     *) lt_awk_arg="/^libraries:/" ;;
10249   esac
10250   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10251   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10252     # if the path contains ";" then we assume it to be the separator
10253     # otherwise default to the standard path separator (i.e. ":") - it is
10254     # assumed that no part of a normal pathname contains ";" but that should
10255     # okay in the real world where ";" in dirpaths is itself problematic.
10256     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10257   else
10258     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10259   fi
10260   # Ok, now we have the path, separated by spaces, we can step through it
10261   # and add multilib dir if necessary.
10262   lt_tmp_lt_search_path_spec=
10263   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10264   for lt_sys_path in $lt_search_path_spec; do
10265     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10266       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10267     else
10268       test -d "$lt_sys_path" && \
10269         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10270     fi
10271   done
10272   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10273 BEGIN {RS=" "; FS="/|\n";} {
10274   lt_foo="";
10275   lt_count=0;
10276   for (lt_i = NF; lt_i > 0; lt_i--) {
10277     if ($lt_i != "" && $lt_i != ".") {
10278       if ($lt_i == "..") {
10279         lt_count++;
10280       } else {
10281         if (lt_count == 0) {
10282           lt_foo="/" $lt_i lt_foo;
10283         } else {
10284           lt_count--;
10285         }
10286       }
10287     }
10288   }
10289   if (lt_foo != "") { lt_freq[lt_foo]++; }
10290   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10291 }'`
10292   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10293 else
10294   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10295 fi
10296 need_lib_prefix=unknown
10297 hardcode_into_libs=no
10298
10299 # when you set need_version to no, make sure it does not cause -set_version
10300 # flags to be left without arguments
10301 need_version=unknown
10302
10303 case $host_os in
10304 aix3*)
10305   version_type=linux
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10307   shlibpath_var=LIBPATH
10308
10309   # AIX 3 has no versioning support, so we append a major version to the name.
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   ;;
10312
10313 aix4* | aix5*)
10314   version_type=linux
10315   need_lib_prefix=no
10316   need_version=no
10317   hardcode_into_libs=yes
10318   if test "$host_cpu" = ia64; then
10319     # AIX 5 supports IA64
10320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10321     shlibpath_var=LD_LIBRARY_PATH
10322   else
10323     # With GCC up to 2.95.x, collect2 would create an import file
10324     # for dependence libraries.  The import file would start with
10325     # the line `#! .'.  This would cause the generated library to
10326     # depend on `.', always an invalid library.  This was fixed in
10327     # development snapshots of GCC prior to 3.0.
10328     case $host_os in
10329       aix4 | aix4.[01] | aix4.[01].*)
10330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10331            echo ' yes '
10332            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10333         :
10334       else
10335         can_build_shared=no
10336       fi
10337       ;;
10338     esac
10339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10340     # soname into executable. Probably we can add versioning support to
10341     # collect2, so additional links can be useful in future.
10342     if test "$aix_use_runtimelinking" = yes; then
10343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10344       # instead of lib<name>.a to let people know that these are not
10345       # typical AIX shared libraries.
10346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347     else
10348       # We preserve .a as extension for shared libraries through AIX4.2
10349       # and later when we are not doing run time linking.
10350       library_names_spec='${libname}${release}.a $libname.a'
10351       soname_spec='${libname}${release}${shared_ext}$major'
10352     fi
10353     shlibpath_var=LIBPATH
10354   fi
10355   ;;
10356
10357 amigaos*)
10358   library_names_spec='$libname.ixlibrary $libname.a'
10359   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10360   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'
10361   ;;
10362
10363 beos*)
10364   library_names_spec='${libname}${shared_ext}'
10365   dynamic_linker="$host_os ld.so"
10366   shlibpath_var=LIBRARY_PATH
10367   ;;
10368
10369 bsdi[45]*)
10370   version_type=linux
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378   # the default ld.so.conf also contains /usr/contrib/lib and
10379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380   # libtool to hard-code these into programs
10381   ;;
10382
10383 cygwin* | mingw* | pw32*)
10384   version_type=windows
10385   shrext_cmds=".dll"
10386   need_version=no
10387   need_lib_prefix=no
10388
10389   case $GCC,$host_os in
10390   yes,cygwin* | yes,mingw* | yes,pw32*)
10391     library_names_spec='$libname.dll.a'
10392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393     postinstall_cmds='base_file=`basename \${file}`~
10394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10395       dldir=$destdir/`dirname \$dlpath`~
10396       test -d \$dldir || mkdir -p \$dldir~
10397       $install_prog $dir/$dlname \$dldir/$dlname~
10398       chmod a+x \$dldir/$dlname'
10399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400       dlpath=$dir/\$dldll~
10401        $rm \$dlpath'
10402     shlibpath_overrides_runpath=yes
10403
10404     case $host_os in
10405     cygwin*)
10406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10409       ;;
10410     mingw*)
10411       # MinGW DLLs use traditional 'lib' prefix
10412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10415         # It is most probably a Windows format PATH printed by
10416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10417         # path with ; separators, and with drive letters. We can handle the
10418         # drive letters (cygwin fileutils understands them), so leave them,
10419         # especially as we might pass files found there to a mingw objdump,
10420         # which wouldn't understand a cygwinified path. Ahh.
10421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10422       else
10423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10424       fi
10425       ;;
10426     pw32*)
10427       # pw32 DLLs use 'pw' prefix rather than 'lib'
10428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10429       ;;
10430     esac
10431     ;;
10432
10433   *)
10434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10435     ;;
10436   esac
10437   dynamic_linker='Win32 ld.exe'
10438   # FIXME: first we should search . and the directory the executable is in
10439   shlibpath_var=PATH
10440   ;;
10441
10442 darwin* | rhapsody*)
10443   dynamic_linker="$host_os dyld"
10444   version_type=darwin
10445   need_lib_prefix=no
10446   need_version=no
10447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10448   soname_spec='${libname}${release}${major}$shared_ext'
10449   shlibpath_overrides_runpath=yes
10450   shlibpath_var=DYLD_LIBRARY_PATH
10451   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10452
10453   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10455   ;;
10456
10457 dgux*)
10458   version_type=linux
10459   need_lib_prefix=no
10460   need_version=no
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   ;;
10465
10466 freebsd1*)
10467   dynamic_linker=no
10468   ;;
10469
10470 freebsd* | dragonfly*)
10471   # DragonFly does not have aout.  When/if they implement a new
10472   # versioning mechanism, adjust this.
10473   if test -x /usr/bin/objformat; then
10474     objformat=`/usr/bin/objformat`
10475   else
10476     case $host_os in
10477     freebsd[123]*) objformat=aout ;;
10478     *) objformat=elf ;;
10479     esac
10480   fi
10481   version_type=freebsd-$objformat
10482   case $version_type in
10483     freebsd-elf*)
10484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10485       need_version=no
10486       need_lib_prefix=no
10487       ;;
10488     freebsd-*)
10489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10490       need_version=yes
10491       ;;
10492   esac
10493   shlibpath_var=LD_LIBRARY_PATH
10494   case $host_os in
10495   freebsd2*)
10496     shlibpath_overrides_runpath=yes
10497     ;;
10498   freebsd3.[01]* | freebsdelf3.[01]*)
10499     shlibpath_overrides_runpath=yes
10500     hardcode_into_libs=yes
10501     ;;
10502   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10503   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10504     shlibpath_overrides_runpath=no
10505     hardcode_into_libs=yes
10506     ;;
10507   *) # from 4.6 on, and DragonFly
10508     shlibpath_overrides_runpath=yes
10509     hardcode_into_libs=yes
10510     ;;
10511   esac
10512   ;;
10513
10514 gnu*)
10515   version_type=linux
10516   need_lib_prefix=no
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   hardcode_into_libs=yes
10522   ;;
10523
10524 hpux9* | hpux10* | hpux11*)
10525   # Give a soname corresponding to the major version so that dld.sl refuses to
10526   # link against other versions.
10527   version_type=sunos
10528   need_lib_prefix=no
10529   need_version=no
10530   case $host_cpu in
10531   ia64*)
10532     shrext_cmds='.so'
10533     hardcode_into_libs=yes
10534     dynamic_linker="$host_os dld.so"
10535     shlibpath_var=LD_LIBRARY_PATH
10536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538     soname_spec='${libname}${release}${shared_ext}$major'
10539     if test "X$HPUX_IA64_MODE" = X32; then
10540       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10541     else
10542       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10543     fi
10544     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10545     ;;
10546    hppa*64*)
10547      shrext_cmds='.sl'
10548      hardcode_into_libs=yes
10549      dynamic_linker="$host_os dld.sl"
10550      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10551      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553      soname_spec='${libname}${release}${shared_ext}$major'
10554      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10555      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10556      ;;
10557    *)
10558     shrext_cmds='.sl'
10559     dynamic_linker="$host_os dld.sl"
10560     shlibpath_var=SHLIB_PATH
10561     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563     soname_spec='${libname}${release}${shared_ext}$major'
10564     ;;
10565   esac
10566   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10567   postinstall_cmds='chmod 555 $lib'
10568   ;;
10569
10570 interix[3-9]*)
10571   version_type=linux
10572   need_lib_prefix=no
10573   need_version=no
10574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575   soname_spec='${libname}${release}${shared_ext}$major'
10576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10577   shlibpath_var=LD_LIBRARY_PATH
10578   shlibpath_overrides_runpath=no
10579   hardcode_into_libs=yes
10580   ;;
10581
10582 irix5* | irix6* | nonstopux*)
10583   case $host_os in
10584     nonstopux*) version_type=nonstopux ;;
10585     *)
10586         if test "$lt_cv_prog_gnu_ld" = yes; then
10587                 version_type=linux
10588         else
10589                 version_type=irix
10590         fi ;;
10591   esac
10592   need_lib_prefix=no
10593   need_version=no
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10596   case $host_os in
10597   irix5* | nonstopux*)
10598     libsuff= shlibsuff=
10599     ;;
10600   *)
10601     case $LD in # libtool.m4 will add one of these switches to LD
10602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10603       libsuff= shlibsuff= libmagic=32-bit;;
10604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10605       libsuff=32 shlibsuff=N32 libmagic=N32;;
10606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10608     *) libsuff= shlibsuff= libmagic=never-match;;
10609     esac
10610     ;;
10611   esac
10612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10613   shlibpath_overrides_runpath=no
10614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10616   hardcode_into_libs=yes
10617   ;;
10618
10619 # No shared lib support for Linux oldld, aout, or coff.
10620 linux*oldld* | linux*aout* | linux*coff*)
10621   dynamic_linker=no
10622   ;;
10623
10624 # This must be Linux ELF.
10625 linux* | k*bsd*-gnu)
10626   version_type=linux
10627   need_lib_prefix=no
10628   need_version=no
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   soname_spec='${libname}${release}${shared_ext}$major'
10631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632   shlibpath_var=LD_LIBRARY_PATH
10633   shlibpath_overrides_runpath=no
10634   # This implies no fast_install, which is unacceptable.
10635   # Some rework will be needed to allow for fast_install
10636   # before this can be enabled.
10637   hardcode_into_libs=yes
10638
10639   # Append ld.so.conf contents to the search path
10640   if test -f /etc/ld.so.conf; then
10641     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10642     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10643   fi
10644
10645   # We used to test for /lib/ld.so.1 and disable shared libraries on
10646   # powerpc, because MkLinux only supported shared libraries with the
10647   # GNU dynamic linker.  Since this was broken with cross compilers,
10648   # most powerpc-linux boxes support dynamic linking these days and
10649   # people can always --disable-shared, the test was removed, and we
10650   # assume the GNU/Linux dynamic linker is in use.
10651   dynamic_linker='GNU/Linux ld.so'
10652   ;;
10653
10654 netbsdelf*-gnu)
10655   version_type=linux
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   shlibpath_overrides_runpath=no
10662   hardcode_into_libs=yes
10663   dynamic_linker='NetBSD ld.elf_so'
10664   ;;
10665
10666 netbsd*)
10667   version_type=sunos
10668   need_lib_prefix=no
10669   need_version=no
10670   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10673     dynamic_linker='NetBSD (a.out) ld.so'
10674   else
10675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10676     soname_spec='${libname}${release}${shared_ext}$major'
10677     dynamic_linker='NetBSD ld.elf_so'
10678   fi
10679   shlibpath_var=LD_LIBRARY_PATH
10680   shlibpath_overrides_runpath=yes
10681   hardcode_into_libs=yes
10682   ;;
10683
10684 newsos6)
10685   version_type=linux
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   shlibpath_overrides_runpath=yes
10689   ;;
10690
10691 nto-qnx*)
10692   version_type=linux
10693   need_lib_prefix=no
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   shlibpath_overrides_runpath=yes
10699   ;;
10700
10701 openbsd*)
10702   version_type=sunos
10703   sys_lib_dlsearch_path_spec="/usr/lib"
10704   need_lib_prefix=no
10705   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10706   case $host_os in
10707     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10708     *)                         need_version=no  ;;
10709   esac
10710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10714     case $host_os in
10715       openbsd2.[89] | openbsd2.[89].*)
10716         shlibpath_overrides_runpath=no
10717         ;;
10718       *)
10719         shlibpath_overrides_runpath=yes
10720         ;;
10721       esac
10722   else
10723     shlibpath_overrides_runpath=yes
10724   fi
10725   ;;
10726
10727 os2*)
10728   libname_spec='$name'
10729   shrext_cmds=".dll"
10730   need_lib_prefix=no
10731   library_names_spec='$libname${shared_ext} $libname.a'
10732   dynamic_linker='OS/2 ld.exe'
10733   shlibpath_var=LIBPATH
10734   ;;
10735
10736 osf3* | osf4* | osf5*)
10737   version_type=osf
10738   need_lib_prefix=no
10739   need_version=no
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10744   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10745   ;;
10746
10747 rdos*)
10748   dynamic_linker=no
10749   ;;
10750
10751 solaris*)
10752   version_type=linux
10753   need_lib_prefix=no
10754   need_version=no
10755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756   soname_spec='${libname}${release}${shared_ext}$major'
10757   shlibpath_var=LD_LIBRARY_PATH
10758   shlibpath_overrides_runpath=yes
10759   hardcode_into_libs=yes
10760   # ldd complains unless libraries are executable
10761   postinstall_cmds='chmod +x $lib'
10762   ;;
10763
10764 sunos4*)
10765   version_type=sunos
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10767   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10768   shlibpath_var=LD_LIBRARY_PATH
10769   shlibpath_overrides_runpath=yes
10770   if test "$with_gnu_ld" = yes; then
10771     need_lib_prefix=no
10772   fi
10773   need_version=yes
10774   ;;
10775
10776 sysv4 | sysv4.3*)
10777   version_type=linux
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779   soname_spec='${libname}${release}${shared_ext}$major'
10780   shlibpath_var=LD_LIBRARY_PATH
10781   case $host_vendor in
10782     sni)
10783       shlibpath_overrides_runpath=no
10784       need_lib_prefix=no
10785       export_dynamic_flag_spec='${wl}-Blargedynsym'
10786       runpath_var=LD_RUN_PATH
10787       ;;
10788     siemens)
10789       need_lib_prefix=no
10790       ;;
10791     motorola)
10792       need_lib_prefix=no
10793       need_version=no
10794       shlibpath_overrides_runpath=no
10795       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10796       ;;
10797   esac
10798   ;;
10799
10800 sysv4*MP*)
10801   if test -d /usr/nec ;then
10802     version_type=linux
10803     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10804     soname_spec='$libname${shared_ext}.$major'
10805     shlibpath_var=LD_LIBRARY_PATH
10806   fi
10807   ;;
10808
10809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10810   version_type=freebsd-elf
10811   need_lib_prefix=no
10812   need_version=no
10813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10814   soname_spec='${libname}${release}${shared_ext}$major'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   hardcode_into_libs=yes
10817   if test "$with_gnu_ld" = yes; then
10818     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10819     shlibpath_overrides_runpath=no
10820   else
10821     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10822     shlibpath_overrides_runpath=yes
10823     case $host_os in
10824       sco3.2v5*)
10825         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10826         ;;
10827     esac
10828   fi
10829   sys_lib_dlsearch_path_spec='/usr/lib'
10830   ;;
10831
10832 uts4*)
10833   version_type=linux
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835   soname_spec='${libname}${release}${shared_ext}$major'
10836   shlibpath_var=LD_LIBRARY_PATH
10837   ;;
10838
10839 *)
10840   dynamic_linker=no
10841   ;;
10842 esac
10843 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10844 echo "${ECHO_T}$dynamic_linker" >&6; }
10845 test "$dynamic_linker" = no && can_build_shared=no
10846
10847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10848 if test "$GCC" = yes; then
10849   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10850 fi
10851
10852 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10853 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10854 hardcode_action=
10855 if test -n "$hardcode_libdir_flag_spec" || \
10856    test -n "$runpath_var" || \
10857    test "X$hardcode_automatic" = "Xyes" ; then
10858
10859   # We can hardcode non-existant directories.
10860   if test "$hardcode_direct" != no &&
10861      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10862      # have to relink, otherwise we might link with an installed library
10863      # when we should be linking with a yet-to-be-installed one
10864      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10865      test "$hardcode_minus_L" != no; then
10866     # Linking always hardcodes the temporary library directory.
10867     hardcode_action=relink
10868   else
10869     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10870     hardcode_action=immediate
10871   fi
10872 else
10873   # We cannot hardcode anything, or else we can only hardcode existing
10874   # directories.
10875   hardcode_action=unsupported
10876 fi
10877 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10878 echo "${ECHO_T}$hardcode_action" >&6; }
10879
10880 if test "$hardcode_action" = relink; then
10881   # Fast installation is not supported
10882   enable_fast_install=no
10883 elif test "$shlibpath_overrides_runpath" = yes ||
10884      test "$enable_shared" = no; then
10885   # Fast installation is not necessary
10886   enable_fast_install=needless
10887 fi
10888
10889 striplib=
10890 old_striplib=
10891 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10892 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10893 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10894   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10895   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10896   { echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6; }
10898 else
10899 # FIXME - insert some real tests, host_os isn't really good enough
10900   case $host_os in
10901    darwin*)
10902        if test -n "$STRIP" ; then
10903          striplib="$STRIP -x"
10904          old_striplib="$STRIP -S"
10905          { echo "$as_me:$LINENO: result: yes" >&5
10906 echo "${ECHO_T}yes" >&6; }
10907        else
10908   { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10910 fi
10911        ;;
10912    *)
10913   { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10915     ;;
10916   esac
10917 fi
10918
10919 if test "x$enable_dlopen" != xyes; then
10920   enable_dlopen=unknown
10921   enable_dlopen_self=unknown
10922   enable_dlopen_self_static=unknown
10923 else
10924   lt_cv_dlopen=no
10925   lt_cv_dlopen_libs=
10926
10927   case $host_os in
10928   beos*)
10929     lt_cv_dlopen="load_add_on"
10930     lt_cv_dlopen_libs=
10931     lt_cv_dlopen_self=yes
10932     ;;
10933
10934   mingw* | pw32*)
10935     lt_cv_dlopen="LoadLibrary"
10936     lt_cv_dlopen_libs=
10937    ;;
10938
10939   cygwin*)
10940     lt_cv_dlopen="dlopen"
10941     lt_cv_dlopen_libs=
10942    ;;
10943
10944   darwin*)
10945   # if libdl is installed we need to link against it
10946     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10947 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10949   echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951   ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-ldl  $LIBS"
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h.  */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h.  */
10959
10960 /* Override any GCC internal prototype to avoid an error.
10961    Use char because int might match the return type of a GCC
10962    builtin and then its argument prototype would still apply.  */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10967 int
10968 main ()
10969 {
10970 return dlopen ();
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_link") 2>conftest.er1
10983   ac_status=$?
10984   grep -v '^ *+' conftest.er1 >conftest.err
10985   rm -f conftest.er1
10986   cat conftest.err >&5
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); } && {
10989          test -z "$ac_c_werror_flag" ||
10990          test ! -s conftest.err
10991        } && test -s conftest$ac_exeext &&
10992        $as_test_x conftest$ac_exeext; then
10993   ac_cv_lib_dl_dlopen=yes
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998         ac_cv_lib_dl_dlopen=no
10999 fi
11000
11001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002       conftest$ac_exeext conftest.$ac_ext
11003 LIBS=$ac_check_lib_save_LIBS
11004 fi
11005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11006 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11007 if test $ac_cv_lib_dl_dlopen = yes; then
11008   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11009 else
11010
11011     lt_cv_dlopen="dyld"
11012     lt_cv_dlopen_libs=
11013     lt_cv_dlopen_self=yes
11014
11015 fi
11016
11017    ;;
11018
11019   *)
11020     { echo "$as_me:$LINENO: checking for shl_load" >&5
11021 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11022 if test "${ac_cv_func_shl_load+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11033 #define shl_load innocuous_shl_load
11034
11035 /* System header to define __stub macros and hopefully few prototypes,
11036     which can conflict with char shl_load (); below.
11037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11038     <limits.h> exists even on freestanding compilers.  */
11039
11040 #ifdef __STDC__
11041 # include <limits.h>
11042 #else
11043 # include <assert.h>
11044 #endif
11045
11046 #undef shl_load
11047
11048 /* Override any GCC internal prototype to avoid an error.
11049    Use char because int might match the return type of a GCC
11050    builtin and then its argument prototype would still apply.  */
11051 #ifdef __cplusplus
11052 extern "C"
11053 #endif
11054 char shl_load ();
11055 /* The GNU C library defines this for functions which it implements
11056     to always fail with ENOSYS.  Some functions are actually named
11057     something starting with __ and the normal name is an alias.  */
11058 #if defined __stub_shl_load || defined __stub___shl_load
11059 choke me
11060 #endif
11061
11062 int
11063 main ()
11064 {
11065 return shl_load ();
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_link") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } && {
11084          test -z "$ac_c_werror_flag" ||
11085          test ! -s conftest.err
11086        } && test -s conftest$ac_exeext &&
11087        $as_test_x conftest$ac_exeext; then
11088   ac_cv_func_shl_load=yes
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093         ac_cv_func_shl_load=no
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097       conftest$ac_exeext conftest.$ac_ext
11098 fi
11099 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11100 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11101 if test $ac_cv_func_shl_load = yes; then
11102   lt_cv_dlopen="shl_load"
11103 else
11104   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11105 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11106 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11107   echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109   ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-ldld  $LIBS"
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h.  */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char shl_load ();
11125 int
11126 main ()
11127 {
11128 return shl_load ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_link") 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && {
11147          test -z "$ac_c_werror_flag" ||
11148          test ! -s conftest.err
11149        } && test -s conftest$ac_exeext &&
11150        $as_test_x conftest$ac_exeext; then
11151   ac_cv_lib_dld_shl_load=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156         ac_cv_lib_dld_shl_load=no
11157 fi
11158
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160       conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11164 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11165 if test $ac_cv_lib_dld_shl_load = yes; then
11166   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11167 else
11168   { echo "$as_me:$LINENO: checking for dlopen" >&5
11169 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11170 if test "${ac_cv_func_dlopen+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11181 #define dlopen innocuous_dlopen
11182
11183 /* System header to define __stub macros and hopefully few prototypes,
11184     which can conflict with char dlopen (); below.
11185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11186     <limits.h> exists even on freestanding compilers.  */
11187
11188 #ifdef __STDC__
11189 # include <limits.h>
11190 #else
11191 # include <assert.h>
11192 #endif
11193
11194 #undef dlopen
11195
11196 /* Override any GCC internal prototype to avoid an error.
11197    Use char because int might match the return type of a GCC
11198    builtin and then its argument prototype would still apply.  */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char dlopen ();
11203 /* The GNU C library defines this for functions which it implements
11204     to always fail with ENOSYS.  Some functions are actually named
11205     something starting with __ and the normal name is an alias.  */
11206 #if defined __stub_dlopen || defined __stub___dlopen
11207 choke me
11208 #endif
11209
11210 int
11211 main ()
11212 {
11213 return dlopen ();
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 rm -f conftest.$ac_objext conftest$ac_exeext
11219 if { (ac_try="$ac_link"
11220 case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_link") 2>conftest.er1
11226   ac_status=$?
11227   grep -v '^ *+' conftest.er1 >conftest.err
11228   rm -f conftest.er1
11229   cat conftest.err >&5
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } && {
11232          test -z "$ac_c_werror_flag" ||
11233          test ! -s conftest.err
11234        } && test -s conftest$ac_exeext &&
11235        $as_test_x conftest$ac_exeext; then
11236   ac_cv_func_dlopen=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241         ac_cv_func_dlopen=no
11242 fi
11243
11244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11245       conftest$ac_exeext conftest.$ac_ext
11246 fi
11247 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11248 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11249 if test $ac_cv_func_dlopen = yes; then
11250   lt_cv_dlopen="dlopen"
11251 else
11252   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11253 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldl  $LIBS"
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265
11266 /* Override any GCC internal prototype to avoid an error.
11267    Use char because int might match the return type of a GCC
11268    builtin and then its argument prototype would still apply.  */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char dlopen ();
11273 int
11274 main ()
11275 {
11276 return dlopen ();
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (ac_try="$ac_link"
11283 case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_link") 2>conftest.er1
11289   ac_status=$?
11290   grep -v '^ *+' conftest.er1 >conftest.err
11291   rm -f conftest.er1
11292   cat conftest.err >&5
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } && {
11295          test -z "$ac_c_werror_flag" ||
11296          test ! -s conftest.err
11297        } && test -s conftest$ac_exeext &&
11298        $as_test_x conftest$ac_exeext; then
11299   ac_cv_lib_dl_dlopen=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304         ac_cv_lib_dl_dlopen=no
11305 fi
11306
11307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11308       conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11310 fi
11311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11313 if test $ac_cv_lib_dl_dlopen = yes; then
11314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11315 else
11316   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11317 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11318 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   ac_check_lib_save_LIBS=$LIBS
11322 LIBS="-lsvld  $LIBS"
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h.  */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h.  */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331    Use char because int might match the return type of a GCC
11332    builtin and then its argument prototype would still apply.  */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char dlopen ();
11337 int
11338 main ()
11339 {
11340 return dlopen ();
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext conftest$ac_exeext
11346 if { (ac_try="$ac_link"
11347 case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_link") 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } && {
11359          test -z "$ac_c_werror_flag" ||
11360          test ! -s conftest.err
11361        } && test -s conftest$ac_exeext &&
11362        $as_test_x conftest$ac_exeext; then
11363   ac_cv_lib_svld_dlopen=yes
11364 else
11365   echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11367
11368         ac_cv_lib_svld_dlopen=no
11369 fi
11370
11371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11372       conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11374 fi
11375 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11377 if test $ac_cv_lib_svld_dlopen = yes; then
11378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11379 else
11380   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   ac_check_lib_save_LIBS=$LIBS
11386 LIBS="-ldld  $LIBS"
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395    Use char because int might match the return type of a GCC
11396    builtin and then its argument prototype would still apply.  */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dld_link ();
11401 int
11402 main ()
11403 {
11404 return dld_link ();
11405   ;
11406   return 0;
11407 }
11408 _ACEOF
11409 rm -f conftest.$ac_objext conftest$ac_exeext
11410 if { (ac_try="$ac_link"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_link") 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } && {
11423          test -z "$ac_c_werror_flag" ||
11424          test ! -s conftest.err
11425        } && test -s conftest$ac_exeext &&
11426        $as_test_x conftest$ac_exeext; then
11427   ac_cv_lib_dld_dld_link=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432         ac_cv_lib_dld_dld_link=no
11433 fi
11434
11435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11436       conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS
11438 fi
11439 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11440 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11441 if test $ac_cv_lib_dld_dld_link = yes; then
11442   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11443 fi
11444
11445
11446 fi
11447
11448
11449 fi
11450
11451
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460     ;;
11461   esac
11462
11463   if test "x$lt_cv_dlopen" != xno; then
11464     enable_dlopen=yes
11465   else
11466     enable_dlopen=no
11467   fi
11468
11469   case $lt_cv_dlopen in
11470   dlopen)
11471     save_CPPFLAGS="$CPPFLAGS"
11472     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11473
11474     save_LDFLAGS="$LDFLAGS"
11475     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11476
11477     save_LIBS="$LIBS"
11478     LIBS="$lt_cv_dlopen_libs $LIBS"
11479
11480     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11481 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11482 if test "${lt_cv_dlopen_self+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485           if test "$cross_compiling" = yes; then :
11486   lt_cv_dlopen_self=cross
11487 else
11488   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11489   lt_status=$lt_dlunknown
11490   cat > conftest.$ac_ext <<EOF
11491 #line 11491 "configure"
11492 #include "confdefs.h"
11493
11494 #if HAVE_DLFCN_H
11495 #include <dlfcn.h>
11496 #endif
11497
11498 #include <stdio.h>
11499
11500 #ifdef RTLD_GLOBAL
11501 #  define LT_DLGLOBAL           RTLD_GLOBAL
11502 #else
11503 #  ifdef DL_GLOBAL
11504 #    define LT_DLGLOBAL         DL_GLOBAL
11505 #  else
11506 #    define LT_DLGLOBAL         0
11507 #  endif
11508 #endif
11509
11510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11511    find out it does not work in some platform. */
11512 #ifndef LT_DLLAZY_OR_NOW
11513 #  ifdef RTLD_LAZY
11514 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11515 #  else
11516 #    ifdef DL_LAZY
11517 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11518 #    else
11519 #      ifdef RTLD_NOW
11520 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11521 #      else
11522 #        ifdef DL_NOW
11523 #          define LT_DLLAZY_OR_NOW      DL_NOW
11524 #        else
11525 #          define LT_DLLAZY_OR_NOW      0
11526 #        endif
11527 #      endif
11528 #    endif
11529 #  endif
11530 #endif
11531
11532 #ifdef __cplusplus
11533 extern "C" void exit (int);
11534 #endif
11535
11536 void fnord() { int i=42;}
11537 int main ()
11538 {
11539   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11540   int status = $lt_dlunknown;
11541
11542   if (self)
11543     {
11544       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11545       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11546       /* dlclose (self); */
11547     }
11548   else
11549     puts (dlerror ());
11550
11551     exit (status);
11552 }
11553 EOF
11554   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555   (eval $ac_link) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11559     (./conftest; exit; ) >&5 2>/dev/null
11560     lt_status=$?
11561     case x$lt_status in
11562       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11563       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11564       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11565     esac
11566   else :
11567     # compilation failed
11568     lt_cv_dlopen_self=no
11569   fi
11570 fi
11571 rm -fr conftest*
11572
11573
11574 fi
11575 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11577
11578     if test "x$lt_cv_dlopen_self" = xyes; then
11579       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11580       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11582 if test "${lt_cv_dlopen_self_static+set}" = set; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585           if test "$cross_compiling" = yes; then :
11586   lt_cv_dlopen_self_static=cross
11587 else
11588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11589   lt_status=$lt_dlunknown
11590   cat > conftest.$ac_ext <<EOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11593
11594 #if HAVE_DLFCN_H
11595 #include <dlfcn.h>
11596 #endif
11597
11598 #include <stdio.h>
11599
11600 #ifdef RTLD_GLOBAL
11601 #  define LT_DLGLOBAL           RTLD_GLOBAL
11602 #else
11603 #  ifdef DL_GLOBAL
11604 #    define LT_DLGLOBAL         DL_GLOBAL
11605 #  else
11606 #    define LT_DLGLOBAL         0
11607 #  endif
11608 #endif
11609
11610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11611    find out it does not work in some platform. */
11612 #ifndef LT_DLLAZY_OR_NOW
11613 #  ifdef RTLD_LAZY
11614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11615 #  else
11616 #    ifdef DL_LAZY
11617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11618 #    else
11619 #      ifdef RTLD_NOW
11620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11621 #      else
11622 #        ifdef DL_NOW
11623 #          define LT_DLLAZY_OR_NOW      DL_NOW
11624 #        else
11625 #          define LT_DLLAZY_OR_NOW      0
11626 #        endif
11627 #      endif
11628 #    endif
11629 #  endif
11630 #endif
11631
11632 #ifdef __cplusplus
11633 extern "C" void exit (int);
11634 #endif
11635
11636 void fnord() { int i=42;}
11637 int main ()
11638 {
11639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640   int status = $lt_dlunknown;
11641
11642   if (self)
11643     {
11644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11646       /* dlclose (self); */
11647     }
11648   else
11649     puts (dlerror ());
11650
11651     exit (status);
11652 }
11653 EOF
11654   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655   (eval $ac_link) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11659     (./conftest; exit; ) >&5 2>/dev/null
11660     lt_status=$?
11661     case x$lt_status in
11662       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11663       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11664       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11665     esac
11666   else :
11667     # compilation failed
11668     lt_cv_dlopen_self_static=no
11669   fi
11670 fi
11671 rm -fr conftest*
11672
11673
11674 fi
11675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11676 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11677     fi
11678
11679     CPPFLAGS="$save_CPPFLAGS"
11680     LDFLAGS="$save_LDFLAGS"
11681     LIBS="$save_LIBS"
11682     ;;
11683   esac
11684
11685   case $lt_cv_dlopen_self in
11686   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11687   *) enable_dlopen_self=unknown ;;
11688   esac
11689
11690   case $lt_cv_dlopen_self_static in
11691   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11692   *) enable_dlopen_self_static=unknown ;;
11693   esac
11694 fi
11695
11696
11697 # Report which library types will actually be built
11698 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11700 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701 echo "${ECHO_T}$can_build_shared" >&6; }
11702
11703 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11705 test "$can_build_shared" = "no" && enable_shared=no
11706
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11709 case $host_os in
11710 aix3*)
11711   test "$enable_shared" = yes && enable_static=no
11712   if test -n "$RANLIB"; then
11713     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714     postinstall_cmds='$RANLIB $lib'
11715   fi
11716   ;;
11717
11718 aix4* | aix5*)
11719   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720     test "$enable_shared" = yes && enable_static=no
11721   fi
11722     ;;
11723 esac
11724 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11725 echo "${ECHO_T}$enable_shared" >&6; }
11726
11727 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 { echo "$as_me:$LINENO: result: $enable_static" >&5
11732 echo "${ECHO_T}$enable_static" >&6; }
11733
11734 # The else clause should only fire when bootstrapping the
11735 # libtool distribution, otherwise you forgot to ship ltmain.sh
11736 # with your package, and you will get complaints that there are
11737 # no rules to generate ltmain.sh.
11738 if test -f "$ltmain"; then
11739   # See if we are running on zsh, and set the options which allow our commands through
11740   # without removal of \ escapes.
11741   if test -n "${ZSH_VERSION+set}" ; then
11742     setopt NO_GLOB_SUBST
11743   fi
11744   # Now quote all the things that may contain metacharacters while being
11745   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11746   # variables and quote the copies for generation of the libtool script.
11747   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11748     SED SHELL STRIP \
11749     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11750     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11751     deplibs_check_method reload_flag reload_cmds need_locks \
11752     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11753     lt_cv_sys_global_symbol_to_c_name_address \
11754     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11755     old_postinstall_cmds old_postuninstall_cmds \
11756     compiler \
11757     CC \
11758     LD \
11759     lt_prog_compiler_wl \
11760     lt_prog_compiler_pic \
11761     lt_prog_compiler_static \
11762     lt_prog_compiler_no_builtin_flag \
11763     export_dynamic_flag_spec \
11764     thread_safe_flag_spec \
11765     whole_archive_flag_spec \
11766     enable_shared_with_static_runtimes \
11767     old_archive_cmds \
11768     old_archive_from_new_cmds \
11769     predep_objects \
11770     postdep_objects \
11771     predeps \
11772     postdeps \
11773     compiler_lib_search_path \
11774     archive_cmds \
11775     archive_expsym_cmds \
11776     postinstall_cmds \
11777     postuninstall_cmds \
11778     old_archive_from_expsyms_cmds \
11779     allow_undefined_flag \
11780     no_undefined_flag \
11781     export_symbols_cmds \
11782     hardcode_libdir_flag_spec \
11783     hardcode_libdir_flag_spec_ld \
11784     hardcode_libdir_separator \
11785     hardcode_automatic \
11786     module_cmds \
11787     module_expsym_cmds \
11788     lt_cv_prog_compiler_c_o \
11789     fix_srcfile_path \
11790     exclude_expsyms \
11791     include_expsyms; do
11792
11793     case $var in
11794     old_archive_cmds | \
11795     old_archive_from_new_cmds | \
11796     archive_cmds | \
11797     archive_expsym_cmds | \
11798     module_cmds | \
11799     module_expsym_cmds | \
11800     old_archive_from_expsyms_cmds | \
11801     export_symbols_cmds | \
11802     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11803     postinstall_cmds | postuninstall_cmds | \
11804     old_postinstall_cmds | old_postuninstall_cmds | \
11805     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11806       # Double-quote double-evaled strings.
11807       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11808       ;;
11809     *)
11810       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11811       ;;
11812     esac
11813   done
11814
11815   case $lt_echo in
11816   *'\$0 --fallback-echo"')
11817     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11818     ;;
11819   esac
11820
11821 cfgfile="${ofile}T"
11822   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11823   $rm -f "$cfgfile"
11824   { echo "$as_me:$LINENO: creating $ofile" >&5
11825 echo "$as_me: creating $ofile" >&6;}
11826
11827   cat <<__EOF__ >> "$cfgfile"
11828 #! $SHELL
11829
11830 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11831 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11833 #
11834 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11835 # Free Software Foundation, Inc.
11836 #
11837 # This file is part of GNU Libtool:
11838 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11839 #
11840 # This program is free software; you can redistribute it and/or modify
11841 # it under the terms of the GNU General Public License as published by
11842 # the Free Software Foundation; either version 2 of the License, or
11843 # (at your option) any later version.
11844 #
11845 # This program is distributed in the hope that it will be useful, but
11846 # WITHOUT ANY WARRANTY; without even the implied warranty of
11847 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11848 # General Public License for more details.
11849 #
11850 # You should have received a copy of the GNU General Public License
11851 # along with this program; if not, write to the Free Software
11852 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11853 #
11854 # As a special exception to the GNU General Public License, if you
11855 # distribute this file as part of a program that contains a
11856 # configuration script generated by Autoconf, you may include it under
11857 # the same distribution terms that you use for the rest of that program.
11858
11859 # A sed program that does not truncate output.
11860 SED=$lt_SED
11861
11862 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11863 Xsed="$SED -e 1s/^X//"
11864
11865 # The HP-UX ksh and POSIX shell print the target directory to stdout
11866 # if CDPATH is set.
11867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11868
11869 # The names of the tagged configurations supported by this script.
11870 available_tags=
11871
11872 # ### BEGIN LIBTOOL CONFIG
11873
11874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11875
11876 # Shell to use when invoking shell scripts.
11877 SHELL=$lt_SHELL
11878
11879 # Whether or not to build shared libraries.
11880 build_libtool_libs=$enable_shared
11881
11882 # Whether or not to build static libraries.
11883 build_old_libs=$enable_static
11884
11885 # Whether or not to add -lc for building shared libraries.
11886 build_libtool_need_lc=$archive_cmds_need_lc
11887
11888 # Whether or not to disallow shared libs when runtime libs are static
11889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11890
11891 # Whether or not to optimize for fast installation.
11892 fast_install=$enable_fast_install
11893
11894 # The host system.
11895 host_alias=$host_alias
11896 host=$host
11897 host_os=$host_os
11898
11899 # The build system.
11900 build_alias=$build_alias
11901 build=$build
11902 build_os=$build_os
11903
11904 # An echo program that does not interpret backslashes.
11905 echo=$lt_echo
11906
11907 # The archiver.
11908 AR=$lt_AR
11909 AR_FLAGS=$lt_AR_FLAGS
11910
11911 # A C compiler.
11912 LTCC=$lt_LTCC
11913
11914 # LTCC compiler flags.
11915 LTCFLAGS=$lt_LTCFLAGS
11916
11917 # A language-specific compiler.
11918 CC=$lt_compiler
11919
11920 # Is the compiler the GNU C compiler?
11921 with_gcc=$GCC
11922
11923 # An ERE matcher.
11924 EGREP=$lt_EGREP
11925
11926 # The linker used to build libraries.
11927 LD=$lt_LD
11928
11929 # Whether we need hard or soft links.
11930 LN_S=$lt_LN_S
11931
11932 # A BSD-compatible nm program.
11933 NM=$lt_NM
11934
11935 # A symbol stripping program
11936 STRIP=$lt_STRIP
11937
11938 # Used to examine libraries when file_magic_cmd begins "file"
11939 MAGIC_CMD=$MAGIC_CMD
11940
11941 # Used on cygwin: DLL creation program.
11942 DLLTOOL="$DLLTOOL"
11943
11944 # Used on cygwin: object dumper.
11945 OBJDUMP="$OBJDUMP"
11946
11947 # Used on cygwin: assembler.
11948 AS="$AS"
11949
11950 # The name of the directory that contains temporary libtool files.
11951 objdir=$objdir
11952
11953 # How to create reloadable object files.
11954 reload_flag=$lt_reload_flag
11955 reload_cmds=$lt_reload_cmds
11956
11957 # How to pass a linker flag through the compiler.
11958 wl=$lt_lt_prog_compiler_wl
11959
11960 # Object file suffix (normally "o").
11961 objext="$ac_objext"
11962
11963 # Old archive suffix (normally "a").
11964 libext="$libext"
11965
11966 # Shared library suffix (normally ".so").
11967 shrext_cmds='$shrext_cmds'
11968
11969 # Executable file suffix (normally "").
11970 exeext="$exeext"
11971
11972 # Additional compiler flags for building library objects.
11973 pic_flag=$lt_lt_prog_compiler_pic
11974 pic_mode=$pic_mode
11975
11976 # What is the maximum length of a command?
11977 max_cmd_len=$lt_cv_sys_max_cmd_len
11978
11979 # Does compiler simultaneously support -c and -o options?
11980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11981
11982 # Must we lock files when doing compilation?
11983 need_locks=$lt_need_locks
11984
11985 # Do we need the lib prefix for modules?
11986 need_lib_prefix=$need_lib_prefix
11987
11988 # Do we need a version for libraries?
11989 need_version=$need_version
11990
11991 # Whether dlopen is supported.
11992 dlopen_support=$enable_dlopen
11993
11994 # Whether dlopen of programs is supported.
11995 dlopen_self=$enable_dlopen_self
11996
11997 # Whether dlopen of statically linked programs is supported.
11998 dlopen_self_static=$enable_dlopen_self_static
11999
12000 # Compiler flag to prevent dynamic linking.
12001 link_static_flag=$lt_lt_prog_compiler_static
12002
12003 # Compiler flag to turn off builtin functions.
12004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12005
12006 # Compiler flag to allow reflexive dlopens.
12007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12008
12009 # Compiler flag to generate shared objects directly from archives.
12010 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12011
12012 # Compiler flag to generate thread-safe objects.
12013 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12014
12015 # Library versioning type.
12016 version_type=$version_type
12017
12018 # Format of library name prefix.
12019 libname_spec=$lt_libname_spec
12020
12021 # List of archive names.  First name is the real one, the rest are links.
12022 # The last name is the one that the linker finds with -lNAME.
12023 library_names_spec=$lt_library_names_spec
12024
12025 # The coded name of the library, if different from the real name.
12026 soname_spec=$lt_soname_spec
12027
12028 # Commands used to build and install an old-style archive.
12029 RANLIB=$lt_RANLIB
12030 old_archive_cmds=$lt_old_archive_cmds
12031 old_postinstall_cmds=$lt_old_postinstall_cmds
12032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12033
12034 # Create an old-style archive from a shared archive.
12035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12036
12037 # Create a temporary old-style archive to link instead of a shared archive.
12038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12039
12040 # Commands used to build and install a shared archive.
12041 archive_cmds=$lt_archive_cmds
12042 archive_expsym_cmds=$lt_archive_expsym_cmds
12043 postinstall_cmds=$lt_postinstall_cmds
12044 postuninstall_cmds=$lt_postuninstall_cmds
12045
12046 # Commands used to build a loadable module (assumed same as above if empty)
12047 module_cmds=$lt_module_cmds
12048 module_expsym_cmds=$lt_module_expsym_cmds
12049
12050 # Commands to strip libraries.
12051 old_striplib=$lt_old_striplib
12052 striplib=$lt_striplib
12053
12054 # Dependencies to place before the objects being linked to create a
12055 # shared library.
12056 predep_objects=$lt_predep_objects
12057
12058 # Dependencies to place after the objects being linked to create a
12059 # shared library.
12060 postdep_objects=$lt_postdep_objects
12061
12062 # Dependencies to place before the objects being linked to create a
12063 # shared library.
12064 predeps=$lt_predeps
12065
12066 # Dependencies to place after the objects being linked to create a
12067 # shared library.
12068 postdeps=$lt_postdeps
12069
12070 # The library search path used internally by the compiler when linking
12071 # a shared library.
12072 compiler_lib_search_path=$lt_compiler_lib_search_path
12073
12074 # Method to check whether dependent libraries are shared objects.
12075 deplibs_check_method=$lt_deplibs_check_method
12076
12077 # Command to use when deplibs_check_method == file_magic.
12078 file_magic_cmd=$lt_file_magic_cmd
12079
12080 # Flag that allows shared libraries with undefined symbols to be built.
12081 allow_undefined_flag=$lt_allow_undefined_flag
12082
12083 # Flag that forces no undefined symbols.
12084 no_undefined_flag=$lt_no_undefined_flag
12085
12086 # Commands used to finish a libtool library installation in a directory.
12087 finish_cmds=$lt_finish_cmds
12088
12089 # Same as above, but a single script fragment to be evaled but not shown.
12090 finish_eval=$lt_finish_eval
12091
12092 # Take the output of nm and produce a listing of raw symbols and C names.
12093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12094
12095 # Transform the output of nm in a proper C declaration
12096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12097
12098 # Transform the output of nm in a C name address pair
12099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12100
12101 # This is the shared library runtime path variable.
12102 runpath_var=$runpath_var
12103
12104 # This is the shared library path variable.
12105 shlibpath_var=$shlibpath_var
12106
12107 # Is shlibpath searched before the hard-coded library search path?
12108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12109
12110 # How to hardcode a shared library path into an executable.
12111 hardcode_action=$hardcode_action
12112
12113 # Whether we should hardcode library paths into libraries.
12114 hardcode_into_libs=$hardcode_into_libs
12115
12116 # Flag to hardcode \$libdir into a binary during linking.
12117 # This must work even if \$libdir does not exist.
12118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12119
12120 # If ld is used when linking, flag to hardcode \$libdir into
12121 # a binary during linking. This must work even if \$libdir does
12122 # not exist.
12123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12124
12125 # Whether we need a single -rpath flag with a separated argument.
12126 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12127
12128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12129 # resulting binary.
12130 hardcode_direct=$hardcode_direct
12131
12132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12133 # resulting binary.
12134 hardcode_minus_L=$hardcode_minus_L
12135
12136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12137 # the resulting binary.
12138 hardcode_shlibpath_var=$hardcode_shlibpath_var
12139
12140 # Set to yes if building a shared library automatically hardcodes DIR into the library
12141 # and all subsequent libraries and executables linked against it.
12142 hardcode_automatic=$hardcode_automatic
12143
12144 # Variables whose values should be saved in libtool wrapper scripts and
12145 # restored at relink time.
12146 variables_saved_for_relink="$variables_saved_for_relink"
12147
12148 # Whether libtool must link a program against all its dependency libraries.
12149 link_all_deplibs=$link_all_deplibs
12150
12151 # Compile-time system search path for libraries
12152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12153
12154 # Run-time system search path for libraries
12155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12156
12157 # Fix the shell variable \$srcfile for the compiler.
12158 fix_srcfile_path=$lt_fix_srcfile_path
12159
12160 # Set to yes if exported symbols are required.
12161 always_export_symbols=$always_export_symbols
12162
12163 # The commands to list exported symbols.
12164 export_symbols_cmds=$lt_export_symbols_cmds
12165
12166 # The commands to extract the exported symbol list from a shared archive.
12167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12168
12169 # Symbols that should not be listed in the preloaded symbols.
12170 exclude_expsyms=$lt_exclude_expsyms
12171
12172 # Symbols that must always be exported.
12173 include_expsyms=$lt_include_expsyms
12174
12175 # ### END LIBTOOL CONFIG
12176
12177 __EOF__
12178
12179
12180   case $host_os in
12181   aix3*)
12182     cat <<\EOF >> "$cfgfile"
12183
12184 # AIX sometimes has problems with the GCC collect2 program.  For some
12185 # reason, if we set the COLLECT_NAMES environment variable, the problems
12186 # vanish in a puff of smoke.
12187 if test "X${COLLECT_NAMES+set}" != Xset; then
12188   COLLECT_NAMES=
12189   export COLLECT_NAMES
12190 fi
12191 EOF
12192     ;;
12193   esac
12194
12195   # We use sed instead of cat because bash on DJGPP gets confused if
12196   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12197   # text mode, it properly converts lines to CR/LF.  This bash problem
12198   # is reportedly fixed, but why not run on old versions too?
12199   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12200
12201   mv -f "$cfgfile" "$ofile" || \
12202     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12203   chmod +x "$ofile"
12204
12205 else
12206   # If there is no Makefile yet, we rely on a make rule to execute
12207   # `config.status --recheck' to rerun these tests and create the
12208   # libtool script then.
12209   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12210   if test -f "$ltmain_in"; then
12211     test -f Makefile && make "$ltmain"
12212   fi
12213 fi
12214
12215
12216 ac_ext=c
12217 ac_cpp='$CPP $CPPFLAGS'
12218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221
12222 CC="$lt_save_CC"
12223
12224
12225 # Check whether --with-tags was given.
12226 if test "${with_tags+set}" = set; then
12227   withval=$with_tags; tagnames="$withval"
12228 fi
12229
12230
12231 if test -f "$ltmain" && test -n "$tagnames"; then
12232   if test ! -f "${ofile}"; then
12233     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12234 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12235   fi
12236
12237   if test -z "$LTCC"; then
12238     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12239     if test -z "$LTCC"; then
12240       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12241 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12242     else
12243       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12244 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12245     fi
12246   fi
12247   if test -z "$LTCFLAGS"; then
12248     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12249   fi
12250
12251   # Extract list of available tagged configurations in $ofile.
12252   # Note that this assumes the entire list is on one line.
12253   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12254
12255   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256   for tagname in $tagnames; do
12257     IFS="$lt_save_ifs"
12258     # Check whether tagname contains only valid characters
12259     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12260     "") ;;
12261     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12262 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12263    { (exit 1); exit 1; }; }
12264         ;;
12265     esac
12266
12267     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12268     then
12269       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12270 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12271    { (exit 1); exit 1; }; }
12272     fi
12273
12274     # Update the list of available tags.
12275     if test -n "$tagname"; then
12276       echo appending configuration tag \"$tagname\" to $ofile
12277
12278       case $tagname in
12279       CXX)
12280         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12281             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12282             (test "X$CXX" != "Xg++"))) ; then
12283           ac_ext=cpp
12284 ac_cpp='$CXXCPP $CPPFLAGS'
12285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12288
12289
12290
12291
12292 archive_cmds_need_lc_CXX=no
12293 allow_undefined_flag_CXX=
12294 always_export_symbols_CXX=no
12295 archive_expsym_cmds_CXX=
12296 export_dynamic_flag_spec_CXX=
12297 hardcode_direct_CXX=no
12298 hardcode_libdir_flag_spec_CXX=
12299 hardcode_libdir_flag_spec_ld_CXX=
12300 hardcode_libdir_separator_CXX=
12301 hardcode_minus_L_CXX=no
12302 hardcode_shlibpath_var_CXX=unsupported
12303 hardcode_automatic_CXX=no
12304 module_cmds_CXX=
12305 module_expsym_cmds_CXX=
12306 link_all_deplibs_CXX=unknown
12307 old_archive_cmds_CXX=$old_archive_cmds
12308 no_undefined_flag_CXX=
12309 whole_archive_flag_spec_CXX=
12310 enable_shared_with_static_runtimes_CXX=no
12311
12312 # Dependencies to place before and after the object being linked:
12313 predep_objects_CXX=
12314 postdep_objects_CXX=
12315 predeps_CXX=
12316 postdeps_CXX=
12317 compiler_lib_search_path_CXX=
12318
12319 # Source file extension for C++ test sources.
12320 ac_ext=cpp
12321
12322 # Object file extension for compiled C++ test sources.
12323 objext=o
12324 objext_CXX=$objext
12325
12326 # Code to be used in simple compile tests
12327 lt_simple_compile_test_code="int some_variable = 0;"
12328
12329 # Code to be used in simple link tests
12330 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12331
12332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12333
12334 # If no C compiler was specified, use CC.
12335 LTCC=${LTCC-"$CC"}
12336
12337 # If no C compiler flags were specified, use CFLAGS.
12338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12339
12340 # Allow CC to be a program name with arguments.
12341 compiler=$CC
12342
12343
12344 # save warnings/boilerplate of simple test code
12345 ac_outfile=conftest.$ac_objext
12346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12348 _lt_compiler_boilerplate=`cat conftest.err`
12349 $rm conftest*
12350
12351 ac_outfile=conftest.$ac_objext
12352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12354 _lt_linker_boilerplate=`cat conftest.err`
12355 $rm conftest*
12356
12357
12358 # Allow CC to be a program name with arguments.
12359 lt_save_CC=$CC
12360 lt_save_LD=$LD
12361 lt_save_GCC=$GCC
12362 GCC=$GXX
12363 lt_save_with_gnu_ld=$with_gnu_ld
12364 lt_save_path_LD=$lt_cv_path_LD
12365 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12366   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12367 else
12368   $as_unset lt_cv_prog_gnu_ld
12369 fi
12370 if test -n "${lt_cv_path_LDCXX+set}"; then
12371   lt_cv_path_LD=$lt_cv_path_LDCXX
12372 else
12373   $as_unset lt_cv_path_LD
12374 fi
12375 test -z "${LDCXX+set}" || LD=$LDCXX
12376 CC=${CXX-"c++"}
12377 compiler=$CC
12378 compiler_CXX=$CC
12379 for cc_temp in $compiler""; do
12380   case $cc_temp in
12381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12383     \-*) ;;
12384     *) break;;
12385   esac
12386 done
12387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12388
12389
12390 # We don't want -fno-exception wen compiling C++ code, so set the
12391 # no_builtin_flag separately
12392 if test "$GXX" = yes; then
12393   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12394 else
12395   lt_prog_compiler_no_builtin_flag_CXX=
12396 fi
12397
12398 if test "$GXX" = yes; then
12399   # Set up default GNU C++ configuration
12400
12401
12402 # Check whether --with-gnu-ld was given.
12403 if test "${with_gnu_ld+set}" = set; then
12404   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12405 else
12406   with_gnu_ld=no
12407 fi
12408
12409 ac_prog=ld
12410 if test "$GCC" = yes; then
12411   # Check if gcc -print-prog-name=ld gives a path.
12412   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12413 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12414   case $host in
12415   *-*-mingw*)
12416     # gcc leaves a trailing carriage return which upsets mingw
12417     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12418   *)
12419     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12420   esac
12421   case $ac_prog in
12422     # Accept absolute paths.
12423     [\\/]* | ?:[\\/]*)
12424       re_direlt='/[^/][^/]*/\.\./'
12425       # Canonicalize the pathname of ld
12426       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12427       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12428         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12429       done
12430       test -z "$LD" && LD="$ac_prog"
12431       ;;
12432   "")
12433     # If it fails, then pretend we aren't using GCC.
12434     ac_prog=ld
12435     ;;
12436   *)
12437     # If it is relative, then search for the first ld in PATH.
12438     with_gnu_ld=unknown
12439     ;;
12440   esac
12441 elif test "$with_gnu_ld" = yes; then
12442   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12444 else
12445   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12447 fi
12448 if test "${lt_cv_path_LD+set}" = set; then
12449   echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451   if test -z "$LD"; then
12452   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12453   for ac_dir in $PATH; do
12454     IFS="$lt_save_ifs"
12455     test -z "$ac_dir" && ac_dir=.
12456     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12457       lt_cv_path_LD="$ac_dir/$ac_prog"
12458       # Check to see if the program is GNU ld.  I'd rather use --version,
12459       # but apparently some variants of GNU ld only accept -v.
12460       # Break only if it was the GNU/non-GNU ld that we prefer.
12461       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12462       *GNU* | *'with BFD'*)
12463         test "$with_gnu_ld" != no && break
12464         ;;
12465       *)
12466         test "$with_gnu_ld" != yes && break
12467         ;;
12468       esac
12469     fi
12470   done
12471   IFS="$lt_save_ifs"
12472 else
12473   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12474 fi
12475 fi
12476
12477 LD="$lt_cv_path_LD"
12478 if test -n "$LD"; then
12479   { echo "$as_me:$LINENO: result: $LD" >&5
12480 echo "${ECHO_T}$LD" >&6; }
12481 else
12482   { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12484 fi
12485 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12486 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12487    { (exit 1); exit 1; }; }
12488 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12489 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12490 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12491   echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12494 case `$LD -v 2>&1 </dev/null` in
12495 *GNU* | *'with BFD'*)
12496   lt_cv_prog_gnu_ld=yes
12497   ;;
12498 *)
12499   lt_cv_prog_gnu_ld=no
12500   ;;
12501 esac
12502 fi
12503 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12504 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12505 with_gnu_ld=$lt_cv_prog_gnu_ld
12506
12507
12508
12509   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12510   # archiving commands below assume that GNU ld is being used.
12511   if test "$with_gnu_ld" = yes; then
12512     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12513     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'
12514
12515     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12516     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12517
12518     # If archive_cmds runs LD, not CC, wlarc should be empty
12519     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12520     #     investigate it a little bit more. (MM)
12521     wlarc='${wl}'
12522
12523     # ancient GNU ld didn't support --whole-archive et. al.
12524     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12525         grep 'no-whole-archive' > /dev/null; then
12526       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12527     else
12528       whole_archive_flag_spec_CXX=
12529     fi
12530   else
12531     with_gnu_ld=no
12532     wlarc=
12533
12534     # A generic and very simple default shared library creation
12535     # command for GNU C++ for the case where it uses the native
12536     # linker, instead of GNU ld.  If possible, this setting should
12537     # overridden to take advantage of the native linker features on
12538     # the platform it is being used on.
12539     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12540   fi
12541
12542   # Commands to make compiler produce verbose output that lists
12543   # what "hidden" libraries, object files and flags are used when
12544   # linking a shared library.
12545   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12546
12547 else
12548   GXX=no
12549   with_gnu_ld=no
12550   wlarc=
12551 fi
12552
12553 # PORTME: fill in a description of your system's C++ link characteristics
12554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12556 ld_shlibs_CXX=yes
12557 case $host_os in
12558   aix3*)
12559     # FIXME: insert proper C++ library support
12560     ld_shlibs_CXX=no
12561     ;;
12562   aix4* | aix5*)
12563     if test "$host_cpu" = ia64; then
12564       # On IA64, the linker does run time linking by default, so we don't
12565       # have to do anything special.
12566       aix_use_runtimelinking=no
12567       exp_sym_flag='-Bexport'
12568       no_entry_flag=""
12569     else
12570       aix_use_runtimelinking=no
12571
12572       # Test if we are trying to use run time linking or normal
12573       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12574       # need to do runtime linking.
12575       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12576         for ld_flag in $LDFLAGS; do
12577           case $ld_flag in
12578           *-brtl*)
12579             aix_use_runtimelinking=yes
12580             break
12581             ;;
12582           esac
12583         done
12584         ;;
12585       esac
12586
12587       exp_sym_flag='-bexport'
12588       no_entry_flag='-bnoentry'
12589     fi
12590
12591     # When large executables or shared objects are built, AIX ld can
12592     # have problems creating the table of contents.  If linking a library
12593     # or program results in "error TOC overflow" add -mminimal-toc to
12594     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12595     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12596
12597     archive_cmds_CXX=''
12598     hardcode_direct_CXX=yes
12599     hardcode_libdir_separator_CXX=':'
12600     link_all_deplibs_CXX=yes
12601
12602     if test "$GXX" = yes; then
12603       case $host_os in aix4.[012]|aix4.[012].*)
12604       # We only want to do this on AIX 4.2 and lower, the check
12605       # below for broken collect2 doesn't work under 4.3+
12606         collect2name=`${CC} -print-prog-name=collect2`
12607         if test -f "$collect2name" && \
12608            strings "$collect2name" | grep resolve_lib_name >/dev/null
12609         then
12610           # We have reworked collect2
12611           :
12612         else
12613           # We have old collect2
12614           hardcode_direct_CXX=unsupported
12615           # It fails to find uninstalled libraries when the uninstalled
12616           # path is not listed in the libpath.  Setting hardcode_minus_L
12617           # to unsupported forces relinking
12618           hardcode_minus_L_CXX=yes
12619           hardcode_libdir_flag_spec_CXX='-L$libdir'
12620           hardcode_libdir_separator_CXX=
12621         fi
12622         ;;
12623       esac
12624       shared_flag='-shared'
12625       if test "$aix_use_runtimelinking" = yes; then
12626         shared_flag="$shared_flag "'${wl}-G'
12627       fi
12628     else
12629       # not using gcc
12630       if test "$host_cpu" = ia64; then
12631         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12632         # chokes on -Wl,-G. The following line is correct:
12633         shared_flag='-G'
12634       else
12635         if test "$aix_use_runtimelinking" = yes; then
12636           shared_flag='${wl}-G'
12637         else
12638           shared_flag='${wl}-bM:SRE'
12639         fi
12640       fi
12641     fi
12642
12643     # It seems that -bexpall does not export symbols beginning with
12644     # underscore (_), so it is better to generate a list of symbols to export.
12645     always_export_symbols_CXX=yes
12646     if test "$aix_use_runtimelinking" = yes; then
12647       # Warning - without using the other runtime loading flags (-brtl),
12648       # -berok will link without error, but may produce a broken library.
12649       allow_undefined_flag_CXX='-berok'
12650       # Determine the default libpath from the value encoded in an empty executable.
12651       cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657
12658 int
12659 main ()
12660 {
12661
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (ac_try="$ac_link"
12668 case "(($ac_try" in
12669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670   *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673   (eval "$ac_link") 2>conftest.er1
12674   ac_status=$?
12675   grep -v '^ *+' conftest.er1 >conftest.err
12676   rm -f conftest.er1
12677   cat conftest.err >&5
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } && {
12680          test -z "$ac_cxx_werror_flag" ||
12681          test ! -s conftest.err
12682        } && test -s conftest$ac_exeext &&
12683        $as_test_x conftest$ac_exeext; then
12684
12685 lt_aix_libpath_sed='
12686     /Import File Strings/,/^$/ {
12687         /^0/ {
12688             s/^0  *\(.*\)$/\1/
12689             p
12690         }
12691     }'
12692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12693 # Check for a 64-bit object if we didn't find anything.
12694 if test -z "$aix_libpath"; then
12695   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12696 fi
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701
12702 fi
12703
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705       conftest$ac_exeext conftest.$ac_ext
12706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12707
12708       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12709
12710       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"
12711      else
12712       if test "$host_cpu" = ia64; then
12713         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12714         allow_undefined_flag_CXX="-z nodefs"
12715         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"
12716       else
12717         # Determine the default libpath from the value encoded in an empty executable.
12718         cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724
12725 int
12726 main ()
12727 {
12728
12729   ;
12730   return 0;
12731 }
12732 _ACEOF
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_link") 2>conftest.er1
12741   ac_status=$?
12742   grep -v '^ *+' conftest.er1 >conftest.err
12743   rm -f conftest.er1
12744   cat conftest.err >&5
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } && {
12747          test -z "$ac_cxx_werror_flag" ||
12748          test ! -s conftest.err
12749        } && test -s conftest$ac_exeext &&
12750        $as_test_x conftest$ac_exeext; then
12751
12752 lt_aix_libpath_sed='
12753     /Import File Strings/,/^$/ {
12754         /^0/ {
12755             s/^0  *\(.*\)$/\1/
12756             p
12757         }
12758     }'
12759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12760 # Check for a 64-bit object if we didn't find anything.
12761 if test -z "$aix_libpath"; then
12762   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12763 fi
12764 else
12765   echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772       conftest$ac_exeext conftest.$ac_ext
12773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12774
12775         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12776         # Warning - without using the other run time loading flags,
12777         # -berok will link without error, but may produce a broken library.
12778         no_undefined_flag_CXX=' ${wl}-bernotok'
12779         allow_undefined_flag_CXX=' ${wl}-berok'
12780         # Exported symbols can be pulled into shared objects from archives
12781         whole_archive_flag_spec_CXX='$convenience'
12782         archive_cmds_need_lc_CXX=yes
12783         # This is similar to how AIX traditionally builds its shared libraries.
12784         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'
12785       fi
12786     fi
12787     ;;
12788
12789   beos*)
12790     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12791       allow_undefined_flag_CXX=unsupported
12792       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12793       # support --undefined.  This deserves some investigation.  FIXME
12794       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795     else
12796       ld_shlibs_CXX=no
12797     fi
12798     ;;
12799
12800   chorus*)
12801     case $cc_basename in
12802       *)
12803         # FIXME: insert proper C++ library support
12804         ld_shlibs_CXX=no
12805         ;;
12806     esac
12807     ;;
12808
12809   cygwin* | mingw* | pw32*)
12810     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12811     # as there is no search path for DLLs.
12812     hardcode_libdir_flag_spec_CXX='-L$libdir'
12813     allow_undefined_flag_CXX=unsupported
12814     always_export_symbols_CXX=no
12815     enable_shared_with_static_runtimes_CXX=yes
12816
12817     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12818       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'
12819       # If the export-symbols file already is a .def file (1st line
12820       # is EXPORTS), use it as is; otherwise, prepend...
12821       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12822         cp $export_symbols $output_objdir/$soname.def;
12823       else
12824         echo EXPORTS > $output_objdir/$soname.def;
12825         cat $export_symbols >> $output_objdir/$soname.def;
12826       fi~
12827       $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'
12828     else
12829       ld_shlibs_CXX=no
12830     fi
12831   ;;
12832       darwin* | rhapsody*)
12833         case $host_os in
12834         rhapsody* | darwin1.[012])
12835          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12836          ;;
12837        *) # Darwin 1.3 on
12838          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12839            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12840          else
12841            case ${MACOSX_DEPLOYMENT_TARGET} in
12842              10.[012])
12843                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12844                ;;
12845              10.*)
12846                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12847                ;;
12848            esac
12849          fi
12850          ;;
12851         esac
12852       archive_cmds_need_lc_CXX=no
12853       hardcode_direct_CXX=no
12854       hardcode_automatic_CXX=yes
12855       hardcode_shlibpath_var_CXX=unsupported
12856       whole_archive_flag_spec_CXX=''
12857       link_all_deplibs_CXX=yes
12858
12859     if test "$GXX" = yes ; then
12860       lt_int_apple_cc_single_mod=no
12861       output_verbose_link_cmd='echo'
12862       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12863        lt_int_apple_cc_single_mod=yes
12864       fi
12865       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12866        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12867       else
12868           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'
12869         fi
12870         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12871         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12872           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12873             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}'
12874           else
12875             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}'
12876           fi
12877             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}'
12878       else
12879       case $cc_basename in
12880         xlc*)
12881          output_verbose_link_cmd='echo'
12882           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12883           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12884           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12885           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12886           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}'
12887           ;;
12888        *)
12889          ld_shlibs_CXX=no
12890           ;;
12891       esac
12892       fi
12893         ;;
12894
12895   dgux*)
12896     case $cc_basename in
12897       ec++*)
12898         # FIXME: insert proper C++ library support
12899         ld_shlibs_CXX=no
12900         ;;
12901       ghcx*)
12902         # Green Hills C++ Compiler
12903         # FIXME: insert proper C++ library support
12904         ld_shlibs_CXX=no
12905         ;;
12906       *)
12907         # FIXME: insert proper C++ library support
12908         ld_shlibs_CXX=no
12909         ;;
12910     esac
12911     ;;
12912   freebsd[12]*)
12913     # C++ shared libraries reported to be fairly broken before switch to ELF
12914     ld_shlibs_CXX=no
12915     ;;
12916   freebsd-elf*)
12917     archive_cmds_need_lc_CXX=no
12918     ;;
12919   freebsd* | dragonfly*)
12920     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12921     # conventions
12922     ld_shlibs_CXX=yes
12923     ;;
12924   gnu*)
12925     ;;
12926   hpux9*)
12927     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12928     hardcode_libdir_separator_CXX=:
12929     export_dynamic_flag_spec_CXX='${wl}-E'
12930     hardcode_direct_CXX=yes
12931     hardcode_minus_L_CXX=yes # Not in the search PATH,
12932                                 # but as the default
12933                                 # location of the library.
12934
12935     case $cc_basename in
12936     CC*)
12937       # FIXME: insert proper C++ library support
12938       ld_shlibs_CXX=no
12939       ;;
12940     aCC*)
12941       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'
12942       # Commands to make compiler produce verbose output that lists
12943       # what "hidden" libraries, object files and flags are used when
12944       # linking a shared library.
12945       #
12946       # There doesn't appear to be a way to prevent this compiler from
12947       # explicitly linking system object files so we need to strip them
12948       # from the output so that they don't get included in the library
12949       # dependencies.
12950       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'
12951       ;;
12952     *)
12953       if test "$GXX" = yes; then
12954         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'
12955       else
12956         # FIXME: insert proper C++ library support
12957         ld_shlibs_CXX=no
12958       fi
12959       ;;
12960     esac
12961     ;;
12962   hpux10*|hpux11*)
12963     if test $with_gnu_ld = no; then
12964       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12965       hardcode_libdir_separator_CXX=:
12966
12967       case $host_cpu in
12968       hppa*64*|ia64*) ;;
12969       *)
12970         export_dynamic_flag_spec_CXX='${wl}-E'
12971         ;;
12972       esac
12973     fi
12974     case $host_cpu in
12975     hppa*64*|ia64*)
12976       hardcode_direct_CXX=no
12977       hardcode_shlibpath_var_CXX=no
12978       ;;
12979     *)
12980       hardcode_direct_CXX=yes
12981       hardcode_minus_L_CXX=yes # Not in the search PATH,
12982                                               # but as the default
12983                                               # location of the library.
12984       ;;
12985     esac
12986
12987     case $cc_basename in
12988       CC*)
12989         # FIXME: insert proper C++ library support
12990         ld_shlibs_CXX=no
12991         ;;
12992       aCC*)
12993         case $host_cpu in
12994         hppa*64*)
12995           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12996           ;;
12997         ia64*)
12998           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12999           ;;
13000         *)
13001           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13002           ;;
13003         esac
13004         # Commands to make compiler produce verbose output that lists
13005         # what "hidden" libraries, object files and flags are used when
13006         # linking a shared library.
13007         #
13008         # There doesn't appear to be a way to prevent this compiler from
13009         # explicitly linking system object files so we need to strip them
13010         # from the output so that they don't get included in the library
13011         # dependencies.
13012         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'
13013         ;;
13014       *)
13015         if test "$GXX" = yes; then
13016           if test $with_gnu_ld = no; then
13017             case $host_cpu in
13018             hppa*64*)
13019               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13020               ;;
13021             ia64*)
13022               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023               ;;
13024             *)
13025               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'
13026               ;;
13027             esac
13028           fi
13029         else
13030           # FIXME: insert proper C++ library support
13031           ld_shlibs_CXX=no
13032         fi
13033         ;;
13034     esac
13035     ;;
13036   interix[3-9]*)
13037     hardcode_direct_CXX=no
13038     hardcode_shlibpath_var_CXX=no
13039     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13040     export_dynamic_flag_spec_CXX='${wl}-E'
13041     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13042     # Instead, shared libraries are loaded at an image base (0x10000000 by
13043     # default) and relocated if they conflict, which is a slow very memory
13044     # consuming and fragmenting process.  To avoid this, we pick a random,
13045     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13046     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13047     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'
13048     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'
13049     ;;
13050   irix5* | irix6*)
13051     case $cc_basename in
13052       CC*)
13053         # SGI C++
13054         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'
13055
13056         # Archives containing C++ object files must be created using
13057         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13058         # necessary to make sure instantiated templates are included
13059         # in the archive.
13060         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13061         ;;
13062       *)
13063         if test "$GXX" = yes; then
13064           if test "$with_gnu_ld" = no; then
13065             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'
13066           else
13067             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'
13068           fi
13069         fi
13070         link_all_deplibs_CXX=yes
13071         ;;
13072     esac
13073     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13074     hardcode_libdir_separator_CXX=:
13075     ;;
13076   linux* | k*bsd*-gnu)
13077     case $cc_basename in
13078       KCC*)
13079         # Kuck and Associates, Inc. (KAI) C++ Compiler
13080
13081         # KCC will only create a shared library if the output file
13082         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13083         # to its proper name (with version) after linking.
13084         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'
13085         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'
13086         # Commands to make compiler produce verbose output that lists
13087         # what "hidden" libraries, object files and flags are used when
13088         # linking a shared library.
13089         #
13090         # There doesn't appear to be a way to prevent this compiler from
13091         # explicitly linking system object files so we need to strip them
13092         # from the output so that they don't get included in the library
13093         # dependencies.
13094         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'
13095
13096         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13097         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13098
13099         # Archives containing C++ object files must be created using
13100         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13101         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13102         ;;
13103       icpc*)
13104         # Intel C++
13105         with_gnu_ld=yes
13106         # version 8.0 and above of icpc choke on multiply defined symbols
13107         # if we add $predep_objects and $postdep_objects, however 7.1 and
13108         # earlier do not add the objects themselves.
13109         case `$CC -V 2>&1` in
13110         *"Version 7."*)
13111           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13112           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'
13113           ;;
13114         *)  # Version 8.0 or newer
13115           tmp_idyn=
13116           case $host_cpu in
13117             ia64*) tmp_idyn=' -i_dynamic';;
13118           esac
13119           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120           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'
13121           ;;
13122         esac
13123         archive_cmds_need_lc_CXX=no
13124         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13125         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13126         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13127         ;;
13128       pgCC*)
13129         # Portland Group C++ compiler
13130         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13131         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'
13132
13133         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13134         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13135         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'
13136         ;;
13137       cxx*)
13138         # Compaq C++
13139         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13141
13142         runpath_var=LD_RUN_PATH
13143         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13144         hardcode_libdir_separator_CXX=:
13145
13146         # Commands to make compiler produce verbose output that lists
13147         # what "hidden" libraries, object files and flags are used when
13148         # linking a shared library.
13149         #
13150         # There doesn't appear to be a way to prevent this compiler from
13151         # explicitly linking system object files so we need to strip them
13152         # from the output so that they don't get included in the library
13153         # dependencies.
13154         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'
13155         ;;
13156       *)
13157         case `$CC -V 2>&1 | sed 5q` in
13158         *Sun\ C*)
13159           # Sun C++ 5.9
13160           no_undefined_flag_CXX=' -zdefs'
13161           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13163           hardcode_libdir_flag_spec_CXX='-R$libdir'
13164           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13165
13166           # Not sure whether something based on
13167           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13168           # would be better.
13169           output_verbose_link_cmd='echo'
13170
13171           # Archives containing C++ object files must be created using
13172           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13173           # necessary to make sure instantiated templates are included
13174           # in the archive.
13175           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13176           ;;
13177         esac
13178         ;;
13179     esac
13180     ;;
13181   lynxos*)
13182     # FIXME: insert proper C++ library support
13183     ld_shlibs_CXX=no
13184     ;;
13185   m88k*)
13186     # FIXME: insert proper C++ library support
13187     ld_shlibs_CXX=no
13188     ;;
13189   mvs*)
13190     case $cc_basename in
13191       cxx*)
13192         # FIXME: insert proper C++ library support
13193         ld_shlibs_CXX=no
13194         ;;
13195       *)
13196         # FIXME: insert proper C++ library support
13197         ld_shlibs_CXX=no
13198         ;;
13199     esac
13200     ;;
13201   netbsd* | netbsdelf*-gnu)
13202     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13203       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13204       wlarc=
13205       hardcode_libdir_flag_spec_CXX='-R$libdir'
13206       hardcode_direct_CXX=yes
13207       hardcode_shlibpath_var_CXX=no
13208     fi
13209     # Workaround some broken pre-1.5 toolchains
13210     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13211     ;;
13212   openbsd2*)
13213     # C++ shared libraries are fairly broken
13214     ld_shlibs_CXX=no
13215     ;;
13216   openbsd*)
13217     if test -f /usr/libexec/ld.so; then
13218       hardcode_direct_CXX=yes
13219       hardcode_shlibpath_var_CXX=no
13220       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13221       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13222       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13223         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13224         export_dynamic_flag_spec_CXX='${wl}-E'
13225         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13226       fi
13227       output_verbose_link_cmd='echo'
13228     else
13229       ld_shlibs_CXX=no
13230     fi
13231     ;;
13232   osf3*)
13233     case $cc_basename in
13234       KCC*)
13235         # Kuck and Associates, Inc. (KAI) C++ Compiler
13236
13237         # KCC will only create a shared library if the output file
13238         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13239         # to its proper name (with version) after linking.
13240         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13241
13242         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13243         hardcode_libdir_separator_CXX=:
13244
13245         # Archives containing C++ object files must be created using
13246         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13247         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13248
13249         ;;
13250       RCC*)
13251         # Rational C++ 2.4.1
13252         # FIXME: insert proper C++ library support
13253         ld_shlibs_CXX=no
13254         ;;
13255       cxx*)
13256         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13257         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13258
13259         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260         hardcode_libdir_separator_CXX=:
13261
13262         # Commands to make compiler produce verbose output that lists
13263         # what "hidden" libraries, object files and flags are used when
13264         # linking a shared library.
13265         #
13266         # There doesn't appear to be a way to prevent this compiler from
13267         # explicitly linking system object files so we need to strip them
13268         # from the output so that they don't get included in the library
13269         # dependencies.
13270         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13271         ;;
13272       *)
13273         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13274           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13275           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13276
13277           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278           hardcode_libdir_separator_CXX=:
13279
13280           # Commands to make compiler produce verbose output that lists
13281           # what "hidden" libraries, object files and flags are used when
13282           # linking a shared library.
13283           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13284
13285         else
13286           # FIXME: insert proper C++ library support
13287           ld_shlibs_CXX=no
13288         fi
13289         ;;
13290     esac
13291     ;;
13292   osf4* | osf5*)
13293     case $cc_basename in
13294       KCC*)
13295         # Kuck and Associates, Inc. (KAI) C++ Compiler
13296
13297         # KCC will only create a shared library if the output file
13298         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13299         # to its proper name (with version) after linking.
13300         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13301
13302         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13303         hardcode_libdir_separator_CXX=:
13304
13305         # Archives containing C++ object files must be created using
13306         # the KAI C++ compiler.
13307         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13308         ;;
13309       RCC*)
13310         # Rational C++ 2.4.1
13311         # FIXME: insert proper C++ library support
13312         ld_shlibs_CXX=no
13313         ;;
13314       cxx*)
13315         allow_undefined_flag_CXX=' -expect_unresolved \*'
13316         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13317         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13318           echo "-hidden">> $lib.exp~
13319           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13320           $rm $lib.exp'
13321
13322         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13323         hardcode_libdir_separator_CXX=:
13324
13325         # Commands to make compiler produce verbose output that lists
13326         # what "hidden" libraries, object files and flags are used when
13327         # linking a shared library.
13328         #
13329         # There doesn't appear to be a way to prevent this compiler from
13330         # explicitly linking system object files so we need to strip them
13331         # from the output so that they don't get included in the library
13332         # dependencies.
13333         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13334         ;;
13335       *)
13336         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13337           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13338          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13339
13340           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13341           hardcode_libdir_separator_CXX=:
13342
13343           # Commands to make compiler produce verbose output that lists
13344           # what "hidden" libraries, object files and flags are used when
13345           # linking a shared library.
13346           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13347
13348         else
13349           # FIXME: insert proper C++ library support
13350           ld_shlibs_CXX=no
13351         fi
13352         ;;
13353     esac
13354     ;;
13355   psos*)
13356     # FIXME: insert proper C++ library support
13357     ld_shlibs_CXX=no
13358     ;;
13359   sunos4*)
13360     case $cc_basename in
13361       CC*)
13362         # Sun C++ 4.x
13363         # FIXME: insert proper C++ library support
13364         ld_shlibs_CXX=no
13365         ;;
13366       lcc*)
13367         # Lucid
13368         # FIXME: insert proper C++ library support
13369         ld_shlibs_CXX=no
13370         ;;
13371       *)
13372         # FIXME: insert proper C++ library support
13373         ld_shlibs_CXX=no
13374         ;;
13375     esac
13376     ;;
13377   solaris*)
13378     case $cc_basename in
13379       CC*)
13380         # Sun C++ 4.2, 5.x and Centerline C++
13381         archive_cmds_need_lc_CXX=yes
13382         no_undefined_flag_CXX=' -zdefs'
13383         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13384         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13385         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13386
13387         hardcode_libdir_flag_spec_CXX='-R$libdir'
13388         hardcode_shlibpath_var_CXX=no
13389         case $host_os in
13390           solaris2.[0-5] | solaris2.[0-5].*) ;;
13391           *)
13392             # The compiler driver will combine and reorder linker options,
13393             # but understands `-z linker_flag'.
13394             # Supported since Solaris 2.6 (maybe 2.5.1?)
13395             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13396             ;;
13397         esac
13398         link_all_deplibs_CXX=yes
13399
13400         output_verbose_link_cmd='echo'
13401
13402         # Archives containing C++ object files must be created using
13403         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13404         # necessary to make sure instantiated templates are included
13405         # in the archive.
13406         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13407         ;;
13408       gcx*)
13409         # Green Hills C++ Compiler
13410         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13411
13412         # The C++ compiler must be used to create the archive.
13413         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13414         ;;
13415       *)
13416         # GNU C++ compiler with Solaris linker
13417         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13418           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13419           if $CC --version | grep -v '^2\.7' > /dev/null; then
13420             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13421             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13422                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13423
13424             # Commands to make compiler produce verbose output that lists
13425             # what "hidden" libraries, object files and flags are used when
13426             # linking a shared library.
13427             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13428           else
13429             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13430             # platform.
13431             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13432             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13433                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13434
13435             # Commands to make compiler produce verbose output that lists
13436             # what "hidden" libraries, object files and flags are used when
13437             # linking a shared library.
13438             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13439           fi
13440
13441           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13442           case $host_os in
13443           solaris2.[0-5] | solaris2.[0-5].*) ;;
13444           *)
13445             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13446             ;;
13447           esac
13448         fi
13449         ;;
13450     esac
13451     ;;
13452   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13453     no_undefined_flag_CXX='${wl}-z,text'
13454     archive_cmds_need_lc_CXX=no
13455     hardcode_shlibpath_var_CXX=no
13456     runpath_var='LD_RUN_PATH'
13457
13458     case $cc_basename in
13459       CC*)
13460         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462         ;;
13463       *)
13464         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466         ;;
13467     esac
13468     ;;
13469   sysv5* | sco3.2v5* | sco5v6*)
13470     # Note: We can NOT use -z defs as we might desire, because we do not
13471     # link with -lc, and that would cause any symbols used from libc to
13472     # always be unresolved, which means just about no library would
13473     # ever link correctly.  If we're not using GNU ld we use -z text
13474     # though, which does catch some bad symbols but isn't as heavy-handed
13475     # as -z defs.
13476     # For security reasons, it is highly recommended that you always
13477     # use absolute paths for naming shared libraries, and exclude the
13478     # DT_RUNPATH tag from executables and libraries.  But doing so
13479     # requires that you compile everything twice, which is a pain.
13480     # So that behaviour is only enabled if SCOABSPATH is set to a
13481     # non-empty value in the environment.  Most likely only useful for
13482     # creating official distributions of packages.
13483     # This is a hack until libtool officially supports absolute path
13484     # names for shared libraries.
13485     no_undefined_flag_CXX='${wl}-z,text'
13486     allow_undefined_flag_CXX='${wl}-z,nodefs'
13487     archive_cmds_need_lc_CXX=no
13488     hardcode_shlibpath_var_CXX=no
13489     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13490     hardcode_libdir_separator_CXX=':'
13491     link_all_deplibs_CXX=yes
13492     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13493     runpath_var='LD_RUN_PATH'
13494
13495     case $cc_basename in
13496       CC*)
13497         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13499         ;;
13500       *)
13501         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13503         ;;
13504     esac
13505     ;;
13506   tandem*)
13507     case $cc_basename in
13508       NCC*)
13509         # NonStop-UX NCC 3.20
13510         # FIXME: insert proper C++ library support
13511         ld_shlibs_CXX=no
13512         ;;
13513       *)
13514         # FIXME: insert proper C++ library support
13515         ld_shlibs_CXX=no
13516         ;;
13517     esac
13518     ;;
13519   vxworks*)
13520     # FIXME: insert proper C++ library support
13521     ld_shlibs_CXX=no
13522     ;;
13523   *)
13524     # FIXME: insert proper C++ library support
13525     ld_shlibs_CXX=no
13526     ;;
13527 esac
13528 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13529 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13530 test "$ld_shlibs_CXX" = no && can_build_shared=no
13531
13532 GCC_CXX="$GXX"
13533 LD_CXX="$LD"
13534
13535
13536 cat > conftest.$ac_ext <<EOF
13537 class Foo
13538 {
13539 public:
13540   Foo (void) { a = 0; }
13541 private:
13542   int a;
13543 };
13544 EOF
13545
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547   (eval $ac_compile) 2>&5
13548   ac_status=$?
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); }; then
13551   # Parse the compiler output and extract the necessary
13552   # objects, libraries and library flags.
13553
13554   # Sentinel used to keep track of whether or not we are before
13555   # the conftest object file.
13556   pre_test_object_deps_done=no
13557
13558   # The `*' in the case matches for architectures that use `case' in
13559   # $output_verbose_cmd can trigger glob expansion during the loop
13560   # eval without this substitution.
13561   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13562
13563   for p in `eval $output_verbose_link_cmd`; do
13564     case $p in
13565
13566     -L* | -R* | -l*)
13567        # Some compilers place space between "-{L,R}" and the path.
13568        # Remove the space.
13569        if test $p = "-L" \
13570           || test $p = "-R"; then
13571          prev=$p
13572          continue
13573        else
13574          prev=
13575        fi
13576
13577        if test "$pre_test_object_deps_done" = no; then
13578          case $p in
13579          -L* | -R*)
13580            # Internal compiler library paths should come after those
13581            # provided the user.  The postdeps already come after the
13582            # user supplied libs so there is no need to process them.
13583            if test -z "$compiler_lib_search_path_CXX"; then
13584              compiler_lib_search_path_CXX="${prev}${p}"
13585            else
13586              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13587            fi
13588            ;;
13589          # The "-l" case would never come before the object being
13590          # linked, so don't bother handling this case.
13591          esac
13592        else
13593          if test -z "$postdeps_CXX"; then
13594            postdeps_CXX="${prev}${p}"
13595          else
13596            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13597          fi
13598        fi
13599        ;;
13600
13601     *.$objext)
13602        # This assumes that the test object file only shows up
13603        # once in the compiler output.
13604        if test "$p" = "conftest.$objext"; then
13605          pre_test_object_deps_done=yes
13606          continue
13607        fi
13608
13609        if test "$pre_test_object_deps_done" = no; then
13610          if test -z "$predep_objects_CXX"; then
13611            predep_objects_CXX="$p"
13612          else
13613            predep_objects_CXX="$predep_objects_CXX $p"
13614          fi
13615        else
13616          if test -z "$postdep_objects_CXX"; then
13617            postdep_objects_CXX="$p"
13618          else
13619            postdep_objects_CXX="$postdep_objects_CXX $p"
13620          fi
13621        fi
13622        ;;
13623
13624     *) ;; # Ignore the rest.
13625
13626     esac
13627   done
13628
13629   # Clean up.
13630   rm -f a.out a.exe
13631 else
13632   echo "libtool.m4: error: problem compiling CXX test program"
13633 fi
13634
13635 $rm -f confest.$objext
13636
13637 # PORTME: override above test on systems where it is broken
13638 case $host_os in
13639 interix[3-9]*)
13640   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13641   # hack all around it, let's just trust "g++" to DTRT.
13642   predep_objects_CXX=
13643   postdep_objects_CXX=
13644   postdeps_CXX=
13645   ;;
13646
13647 linux*)
13648   case `$CC -V 2>&1 | sed 5q` in
13649   *Sun\ C*)
13650     # Sun C++ 5.9
13651     #
13652     # The more standards-conforming stlport4 library is
13653     # incompatible with the Cstd library. Avoid specifying
13654     # it if it's in CXXFLAGS. Ignore libCrun as
13655     # -library=stlport4 depends on it.
13656     case " $CXX $CXXFLAGS " in
13657     *" -library=stlport4 "*)
13658       solaris_use_stlport4=yes
13659       ;;
13660     esac
13661     if test "$solaris_use_stlport4" != yes; then
13662       postdeps_CXX='-library=Cstd -library=Crun'
13663     fi
13664     ;;
13665   esac
13666   ;;
13667
13668 solaris*)
13669   case $cc_basename in
13670   CC*)
13671     # The more standards-conforming stlport4 library is
13672     # incompatible with the Cstd library. Avoid specifying
13673     # it if it's in CXXFLAGS. Ignore libCrun as
13674     # -library=stlport4 depends on it.
13675     case " $CXX $CXXFLAGS " in
13676     *" -library=stlport4 "*)
13677       solaris_use_stlport4=yes
13678       ;;
13679     esac
13680
13681     # Adding this requires a known-good setup of shared libraries for
13682     # Sun compiler versions before 5.6, else PIC objects from an old
13683     # archive will be linked into the output, leading to subtle bugs.
13684     if test "$solaris_use_stlport4" != yes; then
13685       postdeps_CXX='-library=Cstd -library=Crun'
13686     fi
13687     ;;
13688   esac
13689   ;;
13690 esac
13691
13692
13693 case " $postdeps_CXX " in
13694 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13695 esac
13696
13697 lt_prog_compiler_wl_CXX=
13698 lt_prog_compiler_pic_CXX=
13699 lt_prog_compiler_static_CXX=
13700
13701 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13703
13704   # C++ specific cases for pic, static, wl, etc.
13705   if test "$GXX" = yes; then
13706     lt_prog_compiler_wl_CXX='-Wl,'
13707     lt_prog_compiler_static_CXX='-static'
13708
13709     case $host_os in
13710     aix*)
13711       # All AIX code is PIC.
13712       if test "$host_cpu" = ia64; then
13713         # AIX 5 now supports IA64 processor
13714         lt_prog_compiler_static_CXX='-Bstatic'
13715       fi
13716       ;;
13717     amigaos*)
13718       # FIXME: we need at least 68020 code to build shared libraries, but
13719       # adding the `-m68020' flag to GCC prevents building anything better,
13720       # like `-m68040'.
13721       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13722       ;;
13723     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13724       # PIC is the default for these OSes.
13725       ;;
13726     mingw* | cygwin* | os2* | pw32*)
13727       # This hack is so that the source file can tell whether it is being
13728       # built for inclusion in a dll (and should export symbols for example).
13729       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13730       # (--disable-auto-import) libraries
13731       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13732       ;;
13733     darwin* | rhapsody*)
13734       # PIC is the default on this platform
13735       # Common symbols not allowed in MH_DYLIB files
13736       lt_prog_compiler_pic_CXX='-fno-common'
13737       ;;
13738     *djgpp*)
13739       # DJGPP does not support shared libraries at all
13740       lt_prog_compiler_pic_CXX=
13741       ;;
13742     interix[3-9]*)
13743       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13744       # Instead, we relocate shared libraries at runtime.
13745       ;;
13746     sysv4*MP*)
13747       if test -d /usr/nec; then
13748         lt_prog_compiler_pic_CXX=-Kconform_pic
13749       fi
13750       ;;
13751     hpux*)
13752       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13753       # not for PA HP-UX.
13754       case $host_cpu in
13755       hppa*64*|ia64*)
13756         ;;
13757       *)
13758         lt_prog_compiler_pic_CXX='-fPIC'
13759         ;;
13760       esac
13761       ;;
13762     *)
13763       lt_prog_compiler_pic_CXX='-fPIC'
13764       ;;
13765     esac
13766   else
13767     case $host_os in
13768       aix4* | aix5*)
13769         # All AIX code is PIC.
13770         if test "$host_cpu" = ia64; then
13771           # AIX 5 now supports IA64 processor
13772           lt_prog_compiler_static_CXX='-Bstatic'
13773         else
13774           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13775         fi
13776         ;;
13777       chorus*)
13778         case $cc_basename in
13779         cxch68*)
13780           # Green Hills C++ Compiler
13781           # _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"
13782           ;;
13783         esac
13784         ;;
13785        darwin*)
13786          # PIC is the default on this platform
13787          # Common symbols not allowed in MH_DYLIB files
13788          case $cc_basename in
13789            xlc*)
13790            lt_prog_compiler_pic_CXX='-qnocommon'
13791            lt_prog_compiler_wl_CXX='-Wl,'
13792            ;;
13793          esac
13794        ;;
13795       dgux*)
13796         case $cc_basename in
13797           ec++*)
13798             lt_prog_compiler_pic_CXX='-KPIC'
13799             ;;
13800           ghcx*)
13801             # Green Hills C++ Compiler
13802             lt_prog_compiler_pic_CXX='-pic'
13803             ;;
13804           *)
13805             ;;
13806         esac
13807         ;;
13808       freebsd* | dragonfly*)
13809         # FreeBSD uses GNU C++
13810         ;;
13811       hpux9* | hpux10* | hpux11*)
13812         case $cc_basename in
13813           CC*)
13814             lt_prog_compiler_wl_CXX='-Wl,'
13815             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13816             if test "$host_cpu" != ia64; then
13817               lt_prog_compiler_pic_CXX='+Z'
13818             fi
13819             ;;
13820           aCC*)
13821             lt_prog_compiler_wl_CXX='-Wl,'
13822             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13823             case $host_cpu in
13824             hppa*64*|ia64*)
13825               # +Z the default
13826               ;;
13827             *)
13828               lt_prog_compiler_pic_CXX='+Z'
13829               ;;
13830             esac
13831             ;;
13832           *)
13833             ;;
13834         esac
13835         ;;
13836       interix*)
13837         # This is c89, which is MS Visual C++ (no shared libs)
13838         # Anyone wants to do a port?
13839         ;;
13840       irix5* | irix6* | nonstopux*)
13841         case $cc_basename in
13842           CC*)
13843             lt_prog_compiler_wl_CXX='-Wl,'
13844             lt_prog_compiler_static_CXX='-non_shared'
13845             # CC pic flag -KPIC is the default.
13846             ;;
13847           *)
13848             ;;
13849         esac
13850         ;;
13851       linux* | k*bsd*-gnu)
13852         case $cc_basename in
13853           KCC*)
13854             # KAI C++ Compiler
13855             lt_prog_compiler_wl_CXX='--backend -Wl,'
13856             lt_prog_compiler_pic_CXX='-fPIC'
13857             ;;
13858           icpc* | ecpc*)
13859             # Intel C++
13860             lt_prog_compiler_wl_CXX='-Wl,'
13861             lt_prog_compiler_pic_CXX='-KPIC'
13862             lt_prog_compiler_static_CXX='-static'
13863             ;;
13864           pgCC*)
13865             # Portland Group C++ compiler.
13866             lt_prog_compiler_wl_CXX='-Wl,'
13867             lt_prog_compiler_pic_CXX='-fpic'
13868             lt_prog_compiler_static_CXX='-Bstatic'
13869             ;;
13870           cxx*)
13871             # Compaq C++
13872             # Make sure the PIC flag is empty.  It appears that all Alpha
13873             # Linux and Compaq Tru64 Unix objects are PIC.
13874             lt_prog_compiler_pic_CXX=
13875             lt_prog_compiler_static_CXX='-non_shared'
13876             ;;
13877           *)
13878             case `$CC -V 2>&1 | sed 5q` in
13879             *Sun\ C*)
13880               # Sun C++ 5.9
13881               lt_prog_compiler_pic_CXX='-KPIC'
13882               lt_prog_compiler_static_CXX='-Bstatic'
13883               lt_prog_compiler_wl_CXX='-Qoption ld '
13884               ;;
13885             esac
13886             ;;
13887         esac
13888         ;;
13889       lynxos*)
13890         ;;
13891       m88k*)
13892         ;;
13893       mvs*)
13894         case $cc_basename in
13895           cxx*)
13896             lt_prog_compiler_pic_CXX='-W c,exportall'
13897             ;;
13898           *)
13899             ;;
13900         esac
13901         ;;
13902       netbsd* | netbsdelf*-gnu)
13903         ;;
13904       osf3* | osf4* | osf5*)
13905         case $cc_basename in
13906           KCC*)
13907             lt_prog_compiler_wl_CXX='--backend -Wl,'
13908             ;;
13909           RCC*)
13910             # Rational C++ 2.4.1
13911             lt_prog_compiler_pic_CXX='-pic'
13912             ;;
13913           cxx*)
13914             # Digital/Compaq C++
13915             lt_prog_compiler_wl_CXX='-Wl,'
13916             # Make sure the PIC flag is empty.  It appears that all Alpha
13917             # Linux and Compaq Tru64 Unix objects are PIC.
13918             lt_prog_compiler_pic_CXX=
13919             lt_prog_compiler_static_CXX='-non_shared'
13920             ;;
13921           *)
13922             ;;
13923         esac
13924         ;;
13925       psos*)
13926         ;;
13927       solaris*)
13928         case $cc_basename in
13929           CC*)
13930             # Sun C++ 4.2, 5.x and Centerline C++
13931             lt_prog_compiler_pic_CXX='-KPIC'
13932             lt_prog_compiler_static_CXX='-Bstatic'
13933             lt_prog_compiler_wl_CXX='-Qoption ld '
13934             ;;
13935           gcx*)
13936             # Green Hills C++ Compiler
13937             lt_prog_compiler_pic_CXX='-PIC'
13938             ;;
13939           *)
13940             ;;
13941         esac
13942         ;;
13943       sunos4*)
13944         case $cc_basename in
13945           CC*)
13946             # Sun C++ 4.x
13947             lt_prog_compiler_pic_CXX='-pic'
13948             lt_prog_compiler_static_CXX='-Bstatic'
13949             ;;
13950           lcc*)
13951             # Lucid
13952             lt_prog_compiler_pic_CXX='-pic'
13953             ;;
13954           *)
13955             ;;
13956         esac
13957         ;;
13958       tandem*)
13959         case $cc_basename in
13960           NCC*)
13961             # NonStop-UX NCC 3.20
13962             lt_prog_compiler_pic_CXX='-KPIC'
13963             ;;
13964           *)
13965             ;;
13966         esac
13967         ;;
13968       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13969         case $cc_basename in
13970           CC*)
13971             lt_prog_compiler_wl_CXX='-Wl,'
13972             lt_prog_compiler_pic_CXX='-KPIC'
13973             lt_prog_compiler_static_CXX='-Bstatic'
13974             ;;
13975         esac
13976         ;;
13977       vxworks*)
13978         ;;
13979       *)
13980         lt_prog_compiler_can_build_shared_CXX=no
13981         ;;
13982     esac
13983   fi
13984
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13987
13988 #
13989 # Check to make sure the PIC flag actually works.
13990 #
13991 if test -n "$lt_prog_compiler_pic_CXX"; then
13992
13993 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13994 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13995 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   lt_prog_compiler_pic_works_CXX=no
13999   ac_outfile=conftest.$ac_objext
14000    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14001    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14002    # Insert the option either (1) after the last *FLAGS variable, or
14003    # (2) before a word containing "conftest.", or (3) at the end.
14004    # Note that $ac_compile itself does not contain backslashes and begins
14005    # with a dollar sign (not a hyphen), so the echo should work correctly.
14006    # The option is referenced via a variable to avoid confusing sed.
14007    lt_compile=`echo "$ac_compile" | $SED \
14008    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14010    -e 's:$: $lt_compiler_flag:'`
14011    (eval echo "\"\$as_me:14011: $lt_compile\"" >&5)
14012    (eval "$lt_compile" 2>conftest.err)
14013    ac_status=$?
14014    cat conftest.err >&5
14015    echo "$as_me:14015: \$? = $ac_status" >&5
14016    if (exit $ac_status) && test -s "$ac_outfile"; then
14017      # The compiler can only warn and ignore the option if not recognized
14018      # So say no if there are warnings other than the usual output.
14019      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14020      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14021      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14022        lt_prog_compiler_pic_works_CXX=yes
14023      fi
14024    fi
14025    $rm conftest*
14026
14027 fi
14028 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14029 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14030
14031 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14032     case $lt_prog_compiler_pic_CXX in
14033      "" | " "*) ;;
14034      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14035      esac
14036 else
14037     lt_prog_compiler_pic_CXX=
14038      lt_prog_compiler_can_build_shared_CXX=no
14039 fi
14040
14041 fi
14042 case $host_os in
14043   # For platforms which do not support PIC, -DPIC is meaningless:
14044   *djgpp*)
14045     lt_prog_compiler_pic_CXX=
14046     ;;
14047   *)
14048     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14049     ;;
14050 esac
14051
14052 #
14053 # Check to make sure the static flag actually works.
14054 #
14055 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14056 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14057 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14058 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   lt_prog_compiler_static_works_CXX=no
14062    save_LDFLAGS="$LDFLAGS"
14063    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14064    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14065    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14066      # The linker can only warn and ignore the option if not recognized
14067      # So say no if there are warnings
14068      if test -s conftest.err; then
14069        # Append any errors to the config.log.
14070        cat conftest.err 1>&5
14071        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14072        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14073        if diff conftest.exp conftest.er2 >/dev/null; then
14074          lt_prog_compiler_static_works_CXX=yes
14075        fi
14076      else
14077        lt_prog_compiler_static_works_CXX=yes
14078      fi
14079    fi
14080    $rm conftest*
14081    LDFLAGS="$save_LDFLAGS"
14082
14083 fi
14084 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14085 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14086
14087 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14088     :
14089 else
14090     lt_prog_compiler_static_CXX=
14091 fi
14092
14093
14094 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   lt_cv_prog_compiler_c_o_CXX=no
14100    $rm -r conftest 2>/dev/null
14101    mkdir conftest
14102    cd conftest
14103    mkdir out
14104    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106    lt_compiler_flag="-o out/conftest2.$ac_objext"
14107    # Insert the option either (1) after the last *FLAGS variable, or
14108    # (2) before a word containing "conftest.", or (3) at the end.
14109    # Note that $ac_compile itself does not contain backslashes and begins
14110    # with a dollar sign (not a hyphen), so the echo should work correctly.
14111    lt_compile=`echo "$ac_compile" | $SED \
14112    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114    -e 's:$: $lt_compiler_flag:'`
14115    (eval echo "\"\$as_me:14115: $lt_compile\"" >&5)
14116    (eval "$lt_compile" 2>out/conftest.err)
14117    ac_status=$?
14118    cat out/conftest.err >&5
14119    echo "$as_me:14119: \$? = $ac_status" >&5
14120    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14121    then
14122      # The compiler can only warn and ignore the option if not recognized
14123      # So say no if there are warnings
14124      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14125      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127        lt_cv_prog_compiler_c_o_CXX=yes
14128      fi
14129    fi
14130    chmod u+w . 2>&5
14131    $rm conftest*
14132    # SGI C++ compiler will create directory out/ii_files/ for
14133    # template instantiation
14134    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14135    $rm out/* && rmdir out
14136    cd ..
14137    rmdir conftest
14138    $rm conftest*
14139
14140 fi
14141 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14143
14144
14145 hard_links="nottested"
14146 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14147   # do not overwrite the value of need_locks provided by the user
14148   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14149 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14150   hard_links=yes
14151   $rm conftest*
14152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14153   touch conftest.a
14154   ln conftest.a conftest.b 2>&5 || hard_links=no
14155   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156   { echo "$as_me:$LINENO: result: $hard_links" >&5
14157 echo "${ECHO_T}$hard_links" >&6; }
14158   if test "$hard_links" = no; then
14159     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14160 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14161     need_locks=warn
14162   fi
14163 else
14164   need_locks=no
14165 fi
14166
14167 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14168 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14169
14170   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171   case $host_os in
14172   aix4* | aix5*)
14173     # If we're using GNU nm, then we don't want the "-C" option.
14174     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14175     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14176       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'
14177     else
14178       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'
14179     fi
14180     ;;
14181   pw32*)
14182     export_symbols_cmds_CXX="$ltdll_cmds"
14183   ;;
14184   cygwin* | mingw*)
14185     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'
14186   ;;
14187   linux* | k*bsd*-gnu)
14188     link_all_deplibs_CXX=no
14189   ;;
14190   *)
14191     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192   ;;
14193   esac
14194
14195 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14196 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14197 test "$ld_shlibs_CXX" = no && can_build_shared=no
14198
14199 #
14200 # Do we need to explicitly link libc?
14201 #
14202 case "x$archive_cmds_need_lc_CXX" in
14203 x|xyes)
14204   # Assume -lc should be added
14205   archive_cmds_need_lc_CXX=yes
14206
14207   if test "$enable_shared" = yes && test "$GCC" = yes; then
14208     case $archive_cmds_CXX in
14209     *'~'*)
14210       # FIXME: we may have to deal with multi-command sequences.
14211       ;;
14212     '$CC '*)
14213       # Test whether the compiler implicitly links with -lc since on some
14214       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14215       # to ld, don't add -lc before -lgcc.
14216       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14218       $rm conftest*
14219       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14220
14221       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14222   (eval $ac_compile) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); } 2>conftest.err; then
14226         soname=conftest
14227         lib=conftest
14228         libobjs=conftest.$ac_objext
14229         deplibs=
14230         wl=$lt_prog_compiler_wl_CXX
14231         pic_flag=$lt_prog_compiler_pic_CXX
14232         compiler_flags=-v
14233         linker_flags=-v
14234         verstring=
14235         output_objdir=.
14236         libname=conftest
14237         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14238         allow_undefined_flag_CXX=
14239         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }
14244         then
14245           archive_cmds_need_lc_CXX=no
14246         else
14247           archive_cmds_need_lc_CXX=yes
14248         fi
14249         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14250       else
14251         cat conftest.err 1>&5
14252       fi
14253       $rm conftest*
14254       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14255 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14256       ;;
14257     esac
14258   fi
14259   ;;
14260 esac
14261
14262 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14264 library_names_spec=
14265 libname_spec='lib$name'
14266 soname_spec=
14267 shrext_cmds=".so"
14268 postinstall_cmds=
14269 postuninstall_cmds=
14270 finish_cmds=
14271 finish_eval=
14272 shlibpath_var=
14273 shlibpath_overrides_runpath=unknown
14274 version_type=none
14275 dynamic_linker="$host_os ld.so"
14276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277
14278 need_lib_prefix=unknown
14279 hardcode_into_libs=no
14280
14281 # when you set need_version to no, make sure it does not cause -set_version
14282 # flags to be left without arguments
14283 need_version=unknown
14284
14285 case $host_os in
14286 aix3*)
14287   version_type=linux
14288   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14289   shlibpath_var=LIBPATH
14290
14291   # AIX 3 has no versioning support, so we append a major version to the name.
14292   soname_spec='${libname}${release}${shared_ext}$major'
14293   ;;
14294
14295 aix4* | aix5*)
14296   version_type=linux
14297   need_lib_prefix=no
14298   need_version=no
14299   hardcode_into_libs=yes
14300   if test "$host_cpu" = ia64; then
14301     # AIX 5 supports IA64
14302     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14303     shlibpath_var=LD_LIBRARY_PATH
14304   else
14305     # With GCC up to 2.95.x, collect2 would create an import file
14306     # for dependence libraries.  The import file would start with
14307     # the line `#! .'.  This would cause the generated library to
14308     # depend on `.', always an invalid library.  This was fixed in
14309     # development snapshots of GCC prior to 3.0.
14310     case $host_os in
14311       aix4 | aix4.[01] | aix4.[01].*)
14312       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14313            echo ' yes '
14314            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14315         :
14316       else
14317         can_build_shared=no
14318       fi
14319       ;;
14320     esac
14321     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14322     # soname into executable. Probably we can add versioning support to
14323     # collect2, so additional links can be useful in future.
14324     if test "$aix_use_runtimelinking" = yes; then
14325       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14326       # instead of lib<name>.a to let people know that these are not
14327       # typical AIX shared libraries.
14328       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14329     else
14330       # We preserve .a as extension for shared libraries through AIX4.2
14331       # and later when we are not doing run time linking.
14332       library_names_spec='${libname}${release}.a $libname.a'
14333       soname_spec='${libname}${release}${shared_ext}$major'
14334     fi
14335     shlibpath_var=LIBPATH
14336   fi
14337   ;;
14338
14339 amigaos*)
14340   library_names_spec='$libname.ixlibrary $libname.a'
14341   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14342   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'
14343   ;;
14344
14345 beos*)
14346   library_names_spec='${libname}${shared_ext}'
14347   dynamic_linker="$host_os ld.so"
14348   shlibpath_var=LIBRARY_PATH
14349   ;;
14350
14351 bsdi[45]*)
14352   version_type=linux
14353   need_version=no
14354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355   soname_spec='${libname}${release}${shared_ext}$major'
14356   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14357   shlibpath_var=LD_LIBRARY_PATH
14358   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14359   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14360   # the default ld.so.conf also contains /usr/contrib/lib and
14361   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14362   # libtool to hard-code these into programs
14363   ;;
14364
14365 cygwin* | mingw* | pw32*)
14366   version_type=windows
14367   shrext_cmds=".dll"
14368   need_version=no
14369   need_lib_prefix=no
14370
14371   case $GCC,$host_os in
14372   yes,cygwin* | yes,mingw* | yes,pw32*)
14373     library_names_spec='$libname.dll.a'
14374     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375     postinstall_cmds='base_file=`basename \${file}`~
14376       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14377       dldir=$destdir/`dirname \$dlpath`~
14378       test -d \$dldir || mkdir -p \$dldir~
14379       $install_prog $dir/$dlname \$dldir/$dlname~
14380       chmod a+x \$dldir/$dlname'
14381     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14382       dlpath=$dir/\$dldll~
14383        $rm \$dlpath'
14384     shlibpath_overrides_runpath=yes
14385
14386     case $host_os in
14387     cygwin*)
14388       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14389       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14390       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14391       ;;
14392     mingw*)
14393       # MinGW DLLs use traditional 'lib' prefix
14394       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14395       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14396       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14397         # It is most probably a Windows format PATH printed by
14398         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14399         # path with ; separators, and with drive letters. We can handle the
14400         # drive letters (cygwin fileutils understands them), so leave them,
14401         # especially as we might pass files found there to a mingw objdump,
14402         # which wouldn't understand a cygwinified path. Ahh.
14403         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14404       else
14405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14406       fi
14407       ;;
14408     pw32*)
14409       # pw32 DLLs use 'pw' prefix rather than 'lib'
14410       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411       ;;
14412     esac
14413     ;;
14414
14415   *)
14416     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14417     ;;
14418   esac
14419   dynamic_linker='Win32 ld.exe'
14420   # FIXME: first we should search . and the directory the executable is in
14421   shlibpath_var=PATH
14422   ;;
14423
14424 darwin* | rhapsody*)
14425   dynamic_linker="$host_os dyld"
14426   version_type=darwin
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14430   soname_spec='${libname}${release}${major}$shared_ext'
14431   shlibpath_overrides_runpath=yes
14432   shlibpath_var=DYLD_LIBRARY_PATH
14433   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14434
14435   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14436   ;;
14437
14438 dgux*)
14439   version_type=linux
14440   need_lib_prefix=no
14441   need_version=no
14442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14443   soname_spec='${libname}${release}${shared_ext}$major'
14444   shlibpath_var=LD_LIBRARY_PATH
14445   ;;
14446
14447 freebsd1*)
14448   dynamic_linker=no
14449   ;;
14450
14451 freebsd* | dragonfly*)
14452   # DragonFly does not have aout.  When/if they implement a new
14453   # versioning mechanism, adjust this.
14454   if test -x /usr/bin/objformat; then
14455     objformat=`/usr/bin/objformat`
14456   else
14457     case $host_os in
14458     freebsd[123]*) objformat=aout ;;
14459     *) objformat=elf ;;
14460     esac
14461   fi
14462   version_type=freebsd-$objformat
14463   case $version_type in
14464     freebsd-elf*)
14465       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14466       need_version=no
14467       need_lib_prefix=no
14468       ;;
14469     freebsd-*)
14470       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14471       need_version=yes
14472       ;;
14473   esac
14474   shlibpath_var=LD_LIBRARY_PATH
14475   case $host_os in
14476   freebsd2*)
14477     shlibpath_overrides_runpath=yes
14478     ;;
14479   freebsd3.[01]* | freebsdelf3.[01]*)
14480     shlibpath_overrides_runpath=yes
14481     hardcode_into_libs=yes
14482     ;;
14483   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14484   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14485     shlibpath_overrides_runpath=no
14486     hardcode_into_libs=yes
14487     ;;
14488   *) # from 4.6 on, and DragonFly
14489     shlibpath_overrides_runpath=yes
14490     hardcode_into_libs=yes
14491     ;;
14492   esac
14493   ;;
14494
14495 gnu*)
14496   version_type=linux
14497   need_lib_prefix=no
14498   need_version=no
14499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14500   soname_spec='${libname}${release}${shared_ext}$major'
14501   shlibpath_var=LD_LIBRARY_PATH
14502   hardcode_into_libs=yes
14503   ;;
14504
14505 hpux9* | hpux10* | hpux11*)
14506   # Give a soname corresponding to the major version so that dld.sl refuses to
14507   # link against other versions.
14508   version_type=sunos
14509   need_lib_prefix=no
14510   need_version=no
14511   case $host_cpu in
14512   ia64*)
14513     shrext_cmds='.so'
14514     hardcode_into_libs=yes
14515     dynamic_linker="$host_os dld.so"
14516     shlibpath_var=LD_LIBRARY_PATH
14517     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519     soname_spec='${libname}${release}${shared_ext}$major'
14520     if test "X$HPUX_IA64_MODE" = X32; then
14521       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14522     else
14523       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14524     fi
14525     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14526     ;;
14527    hppa*64*)
14528      shrext_cmds='.sl'
14529      hardcode_into_libs=yes
14530      dynamic_linker="$host_os dld.sl"
14531      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14532      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534      soname_spec='${libname}${release}${shared_ext}$major'
14535      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14536      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14537      ;;
14538    *)
14539     shrext_cmds='.sl'
14540     dynamic_linker="$host_os dld.sl"
14541     shlibpath_var=SHLIB_PATH
14542     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544     soname_spec='${libname}${release}${shared_ext}$major'
14545     ;;
14546   esac
14547   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14548   postinstall_cmds='chmod 555 $lib'
14549   ;;
14550
14551 interix[3-9]*)
14552   version_type=linux
14553   need_lib_prefix=no
14554   need_version=no
14555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14556   soname_spec='${libname}${release}${shared_ext}$major'
14557   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14558   shlibpath_var=LD_LIBRARY_PATH
14559   shlibpath_overrides_runpath=no
14560   hardcode_into_libs=yes
14561   ;;
14562
14563 irix5* | irix6* | nonstopux*)
14564   case $host_os in
14565     nonstopux*) version_type=nonstopux ;;
14566     *)
14567         if test "$lt_cv_prog_gnu_ld" = yes; then
14568                 version_type=linux
14569         else
14570                 version_type=irix
14571         fi ;;
14572   esac
14573   need_lib_prefix=no
14574   need_version=no
14575   soname_spec='${libname}${release}${shared_ext}$major'
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14577   case $host_os in
14578   irix5* | nonstopux*)
14579     libsuff= shlibsuff=
14580     ;;
14581   *)
14582     case $LD in # libtool.m4 will add one of these switches to LD
14583     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14584       libsuff= shlibsuff= libmagic=32-bit;;
14585     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14586       libsuff=32 shlibsuff=N32 libmagic=N32;;
14587     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14588       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14589     *) libsuff= shlibsuff= libmagic=never-match;;
14590     esac
14591     ;;
14592   esac
14593   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14594   shlibpath_overrides_runpath=no
14595   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14596   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14597   hardcode_into_libs=yes
14598   ;;
14599
14600 # No shared lib support for Linux oldld, aout, or coff.
14601 linux*oldld* | linux*aout* | linux*coff*)
14602   dynamic_linker=no
14603   ;;
14604
14605 # This must be Linux ELF.
14606 linux* | k*bsd*-gnu)
14607   version_type=linux
14608   need_lib_prefix=no
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   shlibpath_overrides_runpath=no
14615   # This implies no fast_install, which is unacceptable.
14616   # Some rework will be needed to allow for fast_install
14617   # before this can be enabled.
14618   hardcode_into_libs=yes
14619
14620   # Append ld.so.conf contents to the search path
14621   if test -f /etc/ld.so.conf; then
14622     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14623     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14624   fi
14625
14626   # We used to test for /lib/ld.so.1 and disable shared libraries on
14627   # powerpc, because MkLinux only supported shared libraries with the
14628   # GNU dynamic linker.  Since this was broken with cross compilers,
14629   # most powerpc-linux boxes support dynamic linking these days and
14630   # people can always --disable-shared, the test was removed, and we
14631   # assume the GNU/Linux dynamic linker is in use.
14632   dynamic_linker='GNU/Linux ld.so'
14633   ;;
14634
14635 netbsdelf*-gnu)
14636   version_type=linux
14637   need_lib_prefix=no
14638   need_version=no
14639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   shlibpath_var=LD_LIBRARY_PATH
14642   shlibpath_overrides_runpath=no
14643   hardcode_into_libs=yes
14644   dynamic_linker='NetBSD ld.elf_so'
14645   ;;
14646
14647 netbsd*)
14648   version_type=sunos
14649   need_lib_prefix=no
14650   need_version=no
14651   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654     dynamic_linker='NetBSD (a.out) ld.so'
14655   else
14656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14657     soname_spec='${libname}${release}${shared_ext}$major'
14658     dynamic_linker='NetBSD ld.elf_so'
14659   fi
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=yes
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 newsos6)
14666   version_type=linux
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   shlibpath_overrides_runpath=yes
14670   ;;
14671
14672 nto-qnx*)
14673   version_type=linux
14674   need_lib_prefix=no
14675   need_version=no
14676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677   soname_spec='${libname}${release}${shared_ext}$major'
14678   shlibpath_var=LD_LIBRARY_PATH
14679   shlibpath_overrides_runpath=yes
14680   ;;
14681
14682 openbsd*)
14683   version_type=sunos
14684   sys_lib_dlsearch_path_spec="/usr/lib"
14685   need_lib_prefix=no
14686   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14687   case $host_os in
14688     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14689     *)                         need_version=no  ;;
14690   esac
14691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14693   shlibpath_var=LD_LIBRARY_PATH
14694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14695     case $host_os in
14696       openbsd2.[89] | openbsd2.[89].*)
14697         shlibpath_overrides_runpath=no
14698         ;;
14699       *)
14700         shlibpath_overrides_runpath=yes
14701         ;;
14702       esac
14703   else
14704     shlibpath_overrides_runpath=yes
14705   fi
14706   ;;
14707
14708 os2*)
14709   libname_spec='$name'
14710   shrext_cmds=".dll"
14711   need_lib_prefix=no
14712   library_names_spec='$libname${shared_ext} $libname.a'
14713   dynamic_linker='OS/2 ld.exe'
14714   shlibpath_var=LIBPATH
14715   ;;
14716
14717 osf3* | osf4* | osf5*)
14718   version_type=osf
14719   need_lib_prefix=no
14720   need_version=no
14721   soname_spec='${libname}${release}${shared_ext}$major'
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14726   ;;
14727
14728 rdos*)
14729   dynamic_linker=no
14730   ;;
14731
14732 solaris*)
14733   version_type=linux
14734   need_lib_prefix=no
14735   need_version=no
14736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737   soname_spec='${libname}${release}${shared_ext}$major'
14738   shlibpath_var=LD_LIBRARY_PATH
14739   shlibpath_overrides_runpath=yes
14740   hardcode_into_libs=yes
14741   # ldd complains unless libraries are executable
14742   postinstall_cmds='chmod +x $lib'
14743   ;;
14744
14745 sunos4*)
14746   version_type=sunos
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14748   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=yes
14751   if test "$with_gnu_ld" = yes; then
14752     need_lib_prefix=no
14753   fi
14754   need_version=yes
14755   ;;
14756
14757 sysv4 | sysv4.3*)
14758   version_type=linux
14759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760   soname_spec='${libname}${release}${shared_ext}$major'
14761   shlibpath_var=LD_LIBRARY_PATH
14762   case $host_vendor in
14763     sni)
14764       shlibpath_overrides_runpath=no
14765       need_lib_prefix=no
14766       export_dynamic_flag_spec='${wl}-Blargedynsym'
14767       runpath_var=LD_RUN_PATH
14768       ;;
14769     siemens)
14770       need_lib_prefix=no
14771       ;;
14772     motorola)
14773       need_lib_prefix=no
14774       need_version=no
14775       shlibpath_overrides_runpath=no
14776       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14777       ;;
14778   esac
14779   ;;
14780
14781 sysv4*MP*)
14782   if test -d /usr/nec ;then
14783     version_type=linux
14784     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14785     soname_spec='$libname${shared_ext}.$major'
14786     shlibpath_var=LD_LIBRARY_PATH
14787   fi
14788   ;;
14789
14790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14791   version_type=freebsd-elf
14792   need_lib_prefix=no
14793   need_version=no
14794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14795   soname_spec='${libname}${release}${shared_ext}$major'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   hardcode_into_libs=yes
14798   if test "$with_gnu_ld" = yes; then
14799     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14800     shlibpath_overrides_runpath=no
14801   else
14802     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14803     shlibpath_overrides_runpath=yes
14804     case $host_os in
14805       sco3.2v5*)
14806         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14807         ;;
14808     esac
14809   fi
14810   sys_lib_dlsearch_path_spec='/usr/lib'
14811   ;;
14812
14813 uts4*)
14814   version_type=linux
14815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816   soname_spec='${libname}${release}${shared_ext}$major'
14817   shlibpath_var=LD_LIBRARY_PATH
14818   ;;
14819
14820 *)
14821   dynamic_linker=no
14822   ;;
14823 esac
14824 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14825 echo "${ECHO_T}$dynamic_linker" >&6; }
14826 test "$dynamic_linker" = no && can_build_shared=no
14827
14828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14829 if test "$GCC" = yes; then
14830   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14831 fi
14832
14833 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14835 hardcode_action_CXX=
14836 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14837    test -n "$runpath_var_CXX" || \
14838    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14839
14840   # We can hardcode non-existant directories.
14841   if test "$hardcode_direct_CXX" != no &&
14842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14843      # have to relink, otherwise we might link with an installed library
14844      # when we should be linking with a yet-to-be-installed one
14845      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14846      test "$hardcode_minus_L_CXX" != no; then
14847     # Linking always hardcodes the temporary library directory.
14848     hardcode_action_CXX=relink
14849   else
14850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14851     hardcode_action_CXX=immediate
14852   fi
14853 else
14854   # We cannot hardcode anything, or else we can only hardcode existing
14855   # directories.
14856   hardcode_action_CXX=unsupported
14857 fi
14858 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14859 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14860
14861 if test "$hardcode_action_CXX" = relink; then
14862   # Fast installation is not supported
14863   enable_fast_install=no
14864 elif test "$shlibpath_overrides_runpath" = yes ||
14865      test "$enable_shared" = no; then
14866   # Fast installation is not necessary
14867   enable_fast_install=needless
14868 fi
14869
14870
14871 # The else clause should only fire when bootstrapping the
14872 # libtool distribution, otherwise you forgot to ship ltmain.sh
14873 # with your package, and you will get complaints that there are
14874 # no rules to generate ltmain.sh.
14875 if test -f "$ltmain"; then
14876   # See if we are running on zsh, and set the options which allow our commands through
14877   # without removal of \ escapes.
14878   if test -n "${ZSH_VERSION+set}" ; then
14879     setopt NO_GLOB_SUBST
14880   fi
14881   # Now quote all the things that may contain metacharacters while being
14882   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14883   # variables and quote the copies for generation of the libtool script.
14884   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14885     SED SHELL STRIP \
14886     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14887     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14888     deplibs_check_method reload_flag reload_cmds need_locks \
14889     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14890     lt_cv_sys_global_symbol_to_c_name_address \
14891     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14892     old_postinstall_cmds old_postuninstall_cmds \
14893     compiler_CXX \
14894     CC_CXX \
14895     LD_CXX \
14896     lt_prog_compiler_wl_CXX \
14897     lt_prog_compiler_pic_CXX \
14898     lt_prog_compiler_static_CXX \
14899     lt_prog_compiler_no_builtin_flag_CXX \
14900     export_dynamic_flag_spec_CXX \
14901     thread_safe_flag_spec_CXX \
14902     whole_archive_flag_spec_CXX \
14903     enable_shared_with_static_runtimes_CXX \
14904     old_archive_cmds_CXX \
14905     old_archive_from_new_cmds_CXX \
14906     predep_objects_CXX \
14907     postdep_objects_CXX \
14908     predeps_CXX \
14909     postdeps_CXX \
14910     compiler_lib_search_path_CXX \
14911     archive_cmds_CXX \
14912     archive_expsym_cmds_CXX \
14913     postinstall_cmds_CXX \
14914     postuninstall_cmds_CXX \
14915     old_archive_from_expsyms_cmds_CXX \
14916     allow_undefined_flag_CXX \
14917     no_undefined_flag_CXX \
14918     export_symbols_cmds_CXX \
14919     hardcode_libdir_flag_spec_CXX \
14920     hardcode_libdir_flag_spec_ld_CXX \
14921     hardcode_libdir_separator_CXX \
14922     hardcode_automatic_CXX \
14923     module_cmds_CXX \
14924     module_expsym_cmds_CXX \
14925     lt_cv_prog_compiler_c_o_CXX \
14926     fix_srcfile_path_CXX \
14927     exclude_expsyms_CXX \
14928     include_expsyms_CXX; do
14929
14930     case $var in
14931     old_archive_cmds_CXX | \
14932     old_archive_from_new_cmds_CXX | \
14933     archive_cmds_CXX | \
14934     archive_expsym_cmds_CXX | \
14935     module_cmds_CXX | \
14936     module_expsym_cmds_CXX | \
14937     old_archive_from_expsyms_cmds_CXX | \
14938     export_symbols_cmds_CXX | \
14939     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14940     postinstall_cmds | postuninstall_cmds | \
14941     old_postinstall_cmds | old_postuninstall_cmds | \
14942     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14943       # Double-quote double-evaled strings.
14944       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14945       ;;
14946     *)
14947       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14948       ;;
14949     esac
14950   done
14951
14952   case $lt_echo in
14953   *'\$0 --fallback-echo"')
14954     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14955     ;;
14956   esac
14957
14958 cfgfile="$ofile"
14959
14960   cat <<__EOF__ >> "$cfgfile"
14961 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14962
14963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14964
14965 # Shell to use when invoking shell scripts.
14966 SHELL=$lt_SHELL
14967
14968 # Whether or not to build shared libraries.
14969 build_libtool_libs=$enable_shared
14970
14971 # Whether or not to build static libraries.
14972 build_old_libs=$enable_static
14973
14974 # Whether or not to add -lc for building shared libraries.
14975 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14976
14977 # Whether or not to disallow shared libs when runtime libs are static
14978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14979
14980 # Whether or not to optimize for fast installation.
14981 fast_install=$enable_fast_install
14982
14983 # The host system.
14984 host_alias=$host_alias
14985 host=$host
14986 host_os=$host_os
14987
14988 # The build system.
14989 build_alias=$build_alias
14990 build=$build
14991 build_os=$build_os
14992
14993 # An echo program that does not interpret backslashes.
14994 echo=$lt_echo
14995
14996 # The archiver.
14997 AR=$lt_AR
14998 AR_FLAGS=$lt_AR_FLAGS
14999
15000 # A C compiler.
15001 LTCC=$lt_LTCC
15002
15003 # LTCC compiler flags.
15004 LTCFLAGS=$lt_LTCFLAGS
15005
15006 # A language-specific compiler.
15007 CC=$lt_compiler_CXX
15008
15009 # Is the compiler the GNU C compiler?
15010 with_gcc=$GCC_CXX
15011
15012 # An ERE matcher.
15013 EGREP=$lt_EGREP
15014
15015 # The linker used to build libraries.
15016 LD=$lt_LD_CXX
15017
15018 # Whether we need hard or soft links.
15019 LN_S=$lt_LN_S
15020
15021 # A BSD-compatible nm program.
15022 NM=$lt_NM
15023
15024 # A symbol stripping program
15025 STRIP=$lt_STRIP
15026
15027 # Used to examine libraries when file_magic_cmd begins "file"
15028 MAGIC_CMD=$MAGIC_CMD
15029
15030 # Used on cygwin: DLL creation program.
15031 DLLTOOL="$DLLTOOL"
15032
15033 # Used on cygwin: object dumper.
15034 OBJDUMP="$OBJDUMP"
15035
15036 # Used on cygwin: assembler.
15037 AS="$AS"
15038
15039 # The name of the directory that contains temporary libtool files.
15040 objdir=$objdir
15041
15042 # How to create reloadable object files.
15043 reload_flag=$lt_reload_flag
15044 reload_cmds=$lt_reload_cmds
15045
15046 # How to pass a linker flag through the compiler.
15047 wl=$lt_lt_prog_compiler_wl_CXX
15048
15049 # Object file suffix (normally "o").
15050 objext="$ac_objext"
15051
15052 # Old archive suffix (normally "a").
15053 libext="$libext"
15054
15055 # Shared library suffix (normally ".so").
15056 shrext_cmds='$shrext_cmds'
15057
15058 # Executable file suffix (normally "").
15059 exeext="$exeext"
15060
15061 # Additional compiler flags for building library objects.
15062 pic_flag=$lt_lt_prog_compiler_pic_CXX
15063 pic_mode=$pic_mode
15064
15065 # What is the maximum length of a command?
15066 max_cmd_len=$lt_cv_sys_max_cmd_len
15067
15068 # Does compiler simultaneously support -c and -o options?
15069 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15070
15071 # Must we lock files when doing compilation?
15072 need_locks=$lt_need_locks
15073
15074 # Do we need the lib prefix for modules?
15075 need_lib_prefix=$need_lib_prefix
15076
15077 # Do we need a version for libraries?
15078 need_version=$need_version
15079
15080 # Whether dlopen is supported.
15081 dlopen_support=$enable_dlopen
15082
15083 # Whether dlopen of programs is supported.
15084 dlopen_self=$enable_dlopen_self
15085
15086 # Whether dlopen of statically linked programs is supported.
15087 dlopen_self_static=$enable_dlopen_self_static
15088
15089 # Compiler flag to prevent dynamic linking.
15090 link_static_flag=$lt_lt_prog_compiler_static_CXX
15091
15092 # Compiler flag to turn off builtin functions.
15093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15094
15095 # Compiler flag to allow reflexive dlopens.
15096 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15097
15098 # Compiler flag to generate shared objects directly from archives.
15099 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15100
15101 # Compiler flag to generate thread-safe objects.
15102 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15103
15104 # Library versioning type.
15105 version_type=$version_type
15106
15107 # Format of library name prefix.
15108 libname_spec=$lt_libname_spec
15109
15110 # List of archive names.  First name is the real one, the rest are links.
15111 # The last name is the one that the linker finds with -lNAME.
15112 library_names_spec=$lt_library_names_spec
15113
15114 # The coded name of the library, if different from the real name.
15115 soname_spec=$lt_soname_spec
15116
15117 # Commands used to build and install an old-style archive.
15118 RANLIB=$lt_RANLIB
15119 old_archive_cmds=$lt_old_archive_cmds_CXX
15120 old_postinstall_cmds=$lt_old_postinstall_cmds
15121 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15122
15123 # Create an old-style archive from a shared archive.
15124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15125
15126 # Create a temporary old-style archive to link instead of a shared archive.
15127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15128
15129 # Commands used to build and install a shared archive.
15130 archive_cmds=$lt_archive_cmds_CXX
15131 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15132 postinstall_cmds=$lt_postinstall_cmds
15133 postuninstall_cmds=$lt_postuninstall_cmds
15134
15135 # Commands used to build a loadable module (assumed same as above if empty)
15136 module_cmds=$lt_module_cmds_CXX
15137 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15138
15139 # Commands to strip libraries.
15140 old_striplib=$lt_old_striplib
15141 striplib=$lt_striplib
15142
15143 # Dependencies to place before the objects being linked to create a
15144 # shared library.
15145 predep_objects=$lt_predep_objects_CXX
15146
15147 # Dependencies to place after the objects being linked to create a
15148 # shared library.
15149 postdep_objects=$lt_postdep_objects_CXX
15150
15151 # Dependencies to place before the objects being linked to create a
15152 # shared library.
15153 predeps=$lt_predeps_CXX
15154
15155 # Dependencies to place after the objects being linked to create a
15156 # shared library.
15157 postdeps=$lt_postdeps_CXX
15158
15159 # The library search path used internally by the compiler when linking
15160 # a shared library.
15161 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15162
15163 # Method to check whether dependent libraries are shared objects.
15164 deplibs_check_method=$lt_deplibs_check_method
15165
15166 # Command to use when deplibs_check_method == file_magic.
15167 file_magic_cmd=$lt_file_magic_cmd
15168
15169 # Flag that allows shared libraries with undefined symbols to be built.
15170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15171
15172 # Flag that forces no undefined symbols.
15173 no_undefined_flag=$lt_no_undefined_flag_CXX
15174
15175 # Commands used to finish a libtool library installation in a directory.
15176 finish_cmds=$lt_finish_cmds
15177
15178 # Same as above, but a single script fragment to be evaled but not shown.
15179 finish_eval=$lt_finish_eval
15180
15181 # Take the output of nm and produce a listing of raw symbols and C names.
15182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15183
15184 # Transform the output of nm in a proper C declaration
15185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15186
15187 # Transform the output of nm in a C name address pair
15188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15189
15190 # This is the shared library runtime path variable.
15191 runpath_var=$runpath_var
15192
15193 # This is the shared library path variable.
15194 shlibpath_var=$shlibpath_var
15195
15196 # Is shlibpath searched before the hard-coded library search path?
15197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15198
15199 # How to hardcode a shared library path into an executable.
15200 hardcode_action=$hardcode_action_CXX
15201
15202 # Whether we should hardcode library paths into libraries.
15203 hardcode_into_libs=$hardcode_into_libs
15204
15205 # Flag to hardcode \$libdir into a binary during linking.
15206 # This must work even if \$libdir does not exist.
15207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15208
15209 # If ld is used when linking, flag to hardcode \$libdir into
15210 # a binary during linking. This must work even if \$libdir does
15211 # not exist.
15212 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15213
15214 # Whether we need a single -rpath flag with a separated argument.
15215 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15216
15217 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15218 # resulting binary.
15219 hardcode_direct=$hardcode_direct_CXX
15220
15221 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15222 # resulting binary.
15223 hardcode_minus_L=$hardcode_minus_L_CXX
15224
15225 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15226 # the resulting binary.
15227 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15228
15229 # Set to yes if building a shared library automatically hardcodes DIR into the library
15230 # and all subsequent libraries and executables linked against it.
15231 hardcode_automatic=$hardcode_automatic_CXX
15232
15233 # Variables whose values should be saved in libtool wrapper scripts and
15234 # restored at relink time.
15235 variables_saved_for_relink="$variables_saved_for_relink"
15236
15237 # Whether libtool must link a program against all its dependency libraries.
15238 link_all_deplibs=$link_all_deplibs_CXX
15239
15240 # Compile-time system search path for libraries
15241 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15242
15243 # Run-time system search path for libraries
15244 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15245
15246 # Fix the shell variable \$srcfile for the compiler.
15247 fix_srcfile_path=$lt_fix_srcfile_path
15248
15249 # Set to yes if exported symbols are required.
15250 always_export_symbols=$always_export_symbols_CXX
15251
15252 # The commands to list exported symbols.
15253 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15254
15255 # The commands to extract the exported symbol list from a shared archive.
15256 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15257
15258 # Symbols that should not be listed in the preloaded symbols.
15259 exclude_expsyms=$lt_exclude_expsyms_CXX
15260
15261 # Symbols that must always be exported.
15262 include_expsyms=$lt_include_expsyms_CXX
15263
15264 # ### END LIBTOOL TAG CONFIG: $tagname
15265
15266 __EOF__
15267
15268
15269 else
15270   # If there is no Makefile yet, we rely on a make rule to execute
15271   # `config.status --recheck' to rerun these tests and create the
15272   # libtool script then.
15273   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15274   if test -f "$ltmain_in"; then
15275     test -f Makefile && make "$ltmain"
15276   fi
15277 fi
15278
15279
15280 ac_ext=c
15281 ac_cpp='$CPP $CPPFLAGS'
15282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15285
15286 CC=$lt_save_CC
15287 LDCXX=$LD
15288 LD=$lt_save_LD
15289 GCC=$lt_save_GCC
15290 with_gnu_ldcxx=$with_gnu_ld
15291 with_gnu_ld=$lt_save_with_gnu_ld
15292 lt_cv_path_LDCXX=$lt_cv_path_LD
15293 lt_cv_path_LD=$lt_save_path_LD
15294 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15295 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15296
15297         else
15298           tagname=""
15299         fi
15300         ;;
15301
15302       F77)
15303         if test -n "$F77" && test "X$F77" != "Xno"; then
15304
15305 ac_ext=f
15306 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15307 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15308 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15309
15310
15311 archive_cmds_need_lc_F77=no
15312 allow_undefined_flag_F77=
15313 always_export_symbols_F77=no
15314 archive_expsym_cmds_F77=
15315 export_dynamic_flag_spec_F77=
15316 hardcode_direct_F77=no
15317 hardcode_libdir_flag_spec_F77=
15318 hardcode_libdir_flag_spec_ld_F77=
15319 hardcode_libdir_separator_F77=
15320 hardcode_minus_L_F77=no
15321 hardcode_automatic_F77=no
15322 module_cmds_F77=
15323 module_expsym_cmds_F77=
15324 link_all_deplibs_F77=unknown
15325 old_archive_cmds_F77=$old_archive_cmds
15326 no_undefined_flag_F77=
15327 whole_archive_flag_spec_F77=
15328 enable_shared_with_static_runtimes_F77=no
15329
15330 # Source file extension for f77 test sources.
15331 ac_ext=f
15332
15333 # Object file extension for compiled f77 test sources.
15334 objext=o
15335 objext_F77=$objext
15336
15337 # Code to be used in simple compile tests
15338 lt_simple_compile_test_code="\
15339       subroutine t
15340       return
15341       end
15342 "
15343
15344 # Code to be used in simple link tests
15345 lt_simple_link_test_code="\
15346       program t
15347       end
15348 "
15349
15350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15351
15352 # If no C compiler was specified, use CC.
15353 LTCC=${LTCC-"$CC"}
15354
15355 # If no C compiler flags were specified, use CFLAGS.
15356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15357
15358 # Allow CC to be a program name with arguments.
15359 compiler=$CC
15360
15361
15362 # save warnings/boilerplate of simple test code
15363 ac_outfile=conftest.$ac_objext
15364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15366 _lt_compiler_boilerplate=`cat conftest.err`
15367 $rm conftest*
15368
15369 ac_outfile=conftest.$ac_objext
15370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15372 _lt_linker_boilerplate=`cat conftest.err`
15373 $rm conftest*
15374
15375
15376 # Allow CC to be a program name with arguments.
15377 lt_save_CC="$CC"
15378 CC=${F77-"f77"}
15379 compiler=$CC
15380 compiler_F77=$CC
15381 for cc_temp in $compiler""; do
15382   case $cc_temp in
15383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15385     \-*) ;;
15386     *) break;;
15387   esac
15388 done
15389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15390
15391
15392 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15393 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15394 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15395 echo "${ECHO_T}$can_build_shared" >&6; }
15396
15397 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15398 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15399 test "$can_build_shared" = "no" && enable_shared=no
15400
15401 # On AIX, shared libraries and static libraries use the same namespace, and
15402 # are all built from PIC.
15403 case $host_os in
15404 aix3*)
15405   test "$enable_shared" = yes && enable_static=no
15406   if test -n "$RANLIB"; then
15407     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15408     postinstall_cmds='$RANLIB $lib'
15409   fi
15410   ;;
15411 aix4* | aix5*)
15412   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15413     test "$enable_shared" = yes && enable_static=no
15414   fi
15415   ;;
15416 esac
15417 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15418 echo "${ECHO_T}$enable_shared" >&6; }
15419
15420 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15421 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15422 # Make sure either enable_shared or enable_static is yes.
15423 test "$enable_shared" = yes || enable_static=yes
15424 { echo "$as_me:$LINENO: result: $enable_static" >&5
15425 echo "${ECHO_T}$enable_static" >&6; }
15426
15427 GCC_F77="$G77"
15428 LD_F77="$LD"
15429
15430 lt_prog_compiler_wl_F77=
15431 lt_prog_compiler_pic_F77=
15432 lt_prog_compiler_static_F77=
15433
15434 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15435 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15436
15437   if test "$GCC" = yes; then
15438     lt_prog_compiler_wl_F77='-Wl,'
15439     lt_prog_compiler_static_F77='-static'
15440
15441     case $host_os in
15442       aix*)
15443       # All AIX code is PIC.
15444       if test "$host_cpu" = ia64; then
15445         # AIX 5 now supports IA64 processor
15446         lt_prog_compiler_static_F77='-Bstatic'
15447       fi
15448       ;;
15449
15450     amigaos*)
15451       # FIXME: we need at least 68020 code to build shared libraries, but
15452       # adding the `-m68020' flag to GCC prevents building anything better,
15453       # like `-m68040'.
15454       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15455       ;;
15456
15457     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15458       # PIC is the default for these OSes.
15459       ;;
15460
15461     mingw* | cygwin* | pw32* | os2*)
15462       # This hack is so that the source file can tell whether it is being
15463       # built for inclusion in a dll (and should export symbols for example).
15464       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15465       # (--disable-auto-import) libraries
15466       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15467       ;;
15468
15469     darwin* | rhapsody*)
15470       # PIC is the default on this platform
15471       # Common symbols not allowed in MH_DYLIB files
15472       lt_prog_compiler_pic_F77='-fno-common'
15473       ;;
15474
15475     interix[3-9]*)
15476       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15477       # Instead, we relocate shared libraries at runtime.
15478       ;;
15479
15480     msdosdjgpp*)
15481       # Just because we use GCC doesn't mean we suddenly get shared libraries
15482       # on systems that don't support them.
15483       lt_prog_compiler_can_build_shared_F77=no
15484       enable_shared=no
15485       ;;
15486
15487     sysv4*MP*)
15488       if test -d /usr/nec; then
15489         lt_prog_compiler_pic_F77=-Kconform_pic
15490       fi
15491       ;;
15492
15493     hpux*)
15494       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15495       # not for PA HP-UX.
15496       case $host_cpu in
15497       hppa*64*|ia64*)
15498         # +Z the default
15499         ;;
15500       *)
15501         lt_prog_compiler_pic_F77='-fPIC'
15502         ;;
15503       esac
15504       ;;
15505
15506     *)
15507       lt_prog_compiler_pic_F77='-fPIC'
15508       ;;
15509     esac
15510   else
15511     # PORTME Check for flag to pass linker flags through the system compiler.
15512     case $host_os in
15513     aix*)
15514       lt_prog_compiler_wl_F77='-Wl,'
15515       if test "$host_cpu" = ia64; then
15516         # AIX 5 now supports IA64 processor
15517         lt_prog_compiler_static_F77='-Bstatic'
15518       else
15519         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15520       fi
15521       ;;
15522       darwin*)
15523         # PIC is the default on this platform
15524         # Common symbols not allowed in MH_DYLIB files
15525        case $cc_basename in
15526          xlc*)
15527          lt_prog_compiler_pic_F77='-qnocommon'
15528          lt_prog_compiler_wl_F77='-Wl,'
15529          ;;
15530        esac
15531        ;;
15532
15533     mingw* | cygwin* | pw32* | os2*)
15534       # This hack is so that the source file can tell whether it is being
15535       # built for inclusion in a dll (and should export symbols for example).
15536       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15537       ;;
15538
15539     hpux9* | hpux10* | hpux11*)
15540       lt_prog_compiler_wl_F77='-Wl,'
15541       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15542       # not for PA HP-UX.
15543       case $host_cpu in
15544       hppa*64*|ia64*)
15545         # +Z the default
15546         ;;
15547       *)
15548         lt_prog_compiler_pic_F77='+Z'
15549         ;;
15550       esac
15551       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15552       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15553       ;;
15554
15555     irix5* | irix6* | nonstopux*)
15556       lt_prog_compiler_wl_F77='-Wl,'
15557       # PIC (with -KPIC) is the default.
15558       lt_prog_compiler_static_F77='-non_shared'
15559       ;;
15560
15561     newsos6)
15562       lt_prog_compiler_pic_F77='-KPIC'
15563       lt_prog_compiler_static_F77='-Bstatic'
15564       ;;
15565
15566     linux* | k*bsd*-gnu)
15567       case $cc_basename in
15568       icc* | ecc*)
15569         lt_prog_compiler_wl_F77='-Wl,'
15570         lt_prog_compiler_pic_F77='-KPIC'
15571         lt_prog_compiler_static_F77='-static'
15572         ;;
15573       pgcc* | pgf77* | pgf90* | pgf95*)
15574         # Portland Group compilers (*not* the Pentium gcc compiler,
15575         # which looks to be a dead project)
15576         lt_prog_compiler_wl_F77='-Wl,'
15577         lt_prog_compiler_pic_F77='-fpic'
15578         lt_prog_compiler_static_F77='-Bstatic'
15579         ;;
15580       ccc*)
15581         lt_prog_compiler_wl_F77='-Wl,'
15582         # All Alpha code is PIC.
15583         lt_prog_compiler_static_F77='-non_shared'
15584         ;;
15585       *)
15586         case `$CC -V 2>&1 | sed 5q` in
15587         *Sun\ C*)
15588           # Sun C 5.9
15589           lt_prog_compiler_pic_F77='-KPIC'
15590           lt_prog_compiler_static_F77='-Bstatic'
15591           lt_prog_compiler_wl_F77='-Wl,'
15592           ;;
15593         *Sun\ F*)
15594           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15595           lt_prog_compiler_pic_F77='-KPIC'
15596           lt_prog_compiler_static_F77='-Bstatic'
15597           lt_prog_compiler_wl_F77=''
15598           ;;
15599         esac
15600         ;;
15601       esac
15602       ;;
15603
15604     osf3* | osf4* | osf5*)
15605       lt_prog_compiler_wl_F77='-Wl,'
15606       # All OSF/1 code is PIC.
15607       lt_prog_compiler_static_F77='-non_shared'
15608       ;;
15609
15610     rdos*)
15611       lt_prog_compiler_static_F77='-non_shared'
15612       ;;
15613
15614     solaris*)
15615       lt_prog_compiler_pic_F77='-KPIC'
15616       lt_prog_compiler_static_F77='-Bstatic'
15617       case $cc_basename in
15618       f77* | f90* | f95*)
15619         lt_prog_compiler_wl_F77='-Qoption ld ';;
15620       *)
15621         lt_prog_compiler_wl_F77='-Wl,';;
15622       esac
15623       ;;
15624
15625     sunos4*)
15626       lt_prog_compiler_wl_F77='-Qoption ld '
15627       lt_prog_compiler_pic_F77='-PIC'
15628       lt_prog_compiler_static_F77='-Bstatic'
15629       ;;
15630
15631     sysv4 | sysv4.2uw2* | sysv4.3*)
15632       lt_prog_compiler_wl_F77='-Wl,'
15633       lt_prog_compiler_pic_F77='-KPIC'
15634       lt_prog_compiler_static_F77='-Bstatic'
15635       ;;
15636
15637     sysv4*MP*)
15638       if test -d /usr/nec ;then
15639         lt_prog_compiler_pic_F77='-Kconform_pic'
15640         lt_prog_compiler_static_F77='-Bstatic'
15641       fi
15642       ;;
15643
15644     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15645       lt_prog_compiler_wl_F77='-Wl,'
15646       lt_prog_compiler_pic_F77='-KPIC'
15647       lt_prog_compiler_static_F77='-Bstatic'
15648       ;;
15649
15650     unicos*)
15651       lt_prog_compiler_wl_F77='-Wl,'
15652       lt_prog_compiler_can_build_shared_F77=no
15653       ;;
15654
15655     uts4*)
15656       lt_prog_compiler_pic_F77='-pic'
15657       lt_prog_compiler_static_F77='-Bstatic'
15658       ;;
15659
15660     *)
15661       lt_prog_compiler_can_build_shared_F77=no
15662       ;;
15663     esac
15664   fi
15665
15666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15667 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15668
15669 #
15670 # Check to make sure the PIC flag actually works.
15671 #
15672 if test -n "$lt_prog_compiler_pic_F77"; then
15673
15674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15676 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15677   echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679   lt_prog_compiler_pic_works_F77=no
15680   ac_outfile=conftest.$ac_objext
15681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15682    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15683    # Insert the option either (1) after the last *FLAGS variable, or
15684    # (2) before a word containing "conftest.", or (3) at the end.
15685    # Note that $ac_compile itself does not contain backslashes and begins
15686    # with a dollar sign (not a hyphen), so the echo should work correctly.
15687    # The option is referenced via a variable to avoid confusing sed.
15688    lt_compile=`echo "$ac_compile" | $SED \
15689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15691    -e 's:$: $lt_compiler_flag:'`
15692    (eval echo "\"\$as_me:15692: $lt_compile\"" >&5)
15693    (eval "$lt_compile" 2>conftest.err)
15694    ac_status=$?
15695    cat conftest.err >&5
15696    echo "$as_me:15696: \$? = $ac_status" >&5
15697    if (exit $ac_status) && test -s "$ac_outfile"; then
15698      # The compiler can only warn and ignore the option if not recognized
15699      # So say no if there are warnings other than the usual output.
15700      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15703        lt_prog_compiler_pic_works_F77=yes
15704      fi
15705    fi
15706    $rm conftest*
15707
15708 fi
15709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15710 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15711
15712 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15713     case $lt_prog_compiler_pic_F77 in
15714      "" | " "*) ;;
15715      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15716      esac
15717 else
15718     lt_prog_compiler_pic_F77=
15719      lt_prog_compiler_can_build_shared_F77=no
15720 fi
15721
15722 fi
15723 case $host_os in
15724   # For platforms which do not support PIC, -DPIC is meaningless:
15725   *djgpp*)
15726     lt_prog_compiler_pic_F77=
15727     ;;
15728   *)
15729     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15730     ;;
15731 esac
15732
15733 #
15734 # Check to make sure the static flag actually works.
15735 #
15736 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15739 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   lt_prog_compiler_static_works_F77=no
15743    save_LDFLAGS="$LDFLAGS"
15744    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15745    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15747      # The linker can only warn and ignore the option if not recognized
15748      # So say no if there are warnings
15749      if test -s conftest.err; then
15750        # Append any errors to the config.log.
15751        cat conftest.err 1>&5
15752        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15753        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754        if diff conftest.exp conftest.er2 >/dev/null; then
15755          lt_prog_compiler_static_works_F77=yes
15756        fi
15757      else
15758        lt_prog_compiler_static_works_F77=yes
15759      fi
15760    fi
15761    $rm conftest*
15762    LDFLAGS="$save_LDFLAGS"
15763
15764 fi
15765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15766 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15767
15768 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15769     :
15770 else
15771     lt_prog_compiler_static_F77=
15772 fi
15773
15774
15775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15777 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15778   echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780   lt_cv_prog_compiler_c_o_F77=no
15781    $rm -r conftest 2>/dev/null
15782    mkdir conftest
15783    cd conftest
15784    mkdir out
15785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15786
15787    lt_compiler_flag="-o out/conftest2.$ac_objext"
15788    # Insert the option either (1) after the last *FLAGS variable, or
15789    # (2) before a word containing "conftest.", or (3) at the end.
15790    # Note that $ac_compile itself does not contain backslashes and begins
15791    # with a dollar sign (not a hyphen), so the echo should work correctly.
15792    lt_compile=`echo "$ac_compile" | $SED \
15793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15795    -e 's:$: $lt_compiler_flag:'`
15796    (eval echo "\"\$as_me:15796: $lt_compile\"" >&5)
15797    (eval "$lt_compile" 2>out/conftest.err)
15798    ac_status=$?
15799    cat out/conftest.err >&5
15800    echo "$as_me:15800: \$? = $ac_status" >&5
15801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15802    then
15803      # The compiler can only warn and ignore the option if not recognized
15804      # So say no if there are warnings
15805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15808        lt_cv_prog_compiler_c_o_F77=yes
15809      fi
15810    fi
15811    chmod u+w . 2>&5
15812    $rm conftest*
15813    # SGI C++ compiler will create directory out/ii_files/ for
15814    # template instantiation
15815    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15816    $rm out/* && rmdir out
15817    cd ..
15818    rmdir conftest
15819    $rm conftest*
15820
15821 fi
15822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15824
15825
15826 hard_links="nottested"
15827 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15828   # do not overwrite the value of need_locks provided by the user
15829   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15831   hard_links=yes
15832   $rm conftest*
15833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15834   touch conftest.a
15835   ln conftest.a conftest.b 2>&5 || hard_links=no
15836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15837   { echo "$as_me:$LINENO: result: $hard_links" >&5
15838 echo "${ECHO_T}$hard_links" >&6; }
15839   if test "$hard_links" = no; then
15840     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15842     need_locks=warn
15843   fi
15844 else
15845   need_locks=no
15846 fi
15847
15848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15850
15851   runpath_var=
15852   allow_undefined_flag_F77=
15853   enable_shared_with_static_runtimes_F77=no
15854   archive_cmds_F77=
15855   archive_expsym_cmds_F77=
15856   old_archive_From_new_cmds_F77=
15857   old_archive_from_expsyms_cmds_F77=
15858   export_dynamic_flag_spec_F77=
15859   whole_archive_flag_spec_F77=
15860   thread_safe_flag_spec_F77=
15861   hardcode_libdir_flag_spec_F77=
15862   hardcode_libdir_flag_spec_ld_F77=
15863   hardcode_libdir_separator_F77=
15864   hardcode_direct_F77=no
15865   hardcode_minus_L_F77=no
15866   hardcode_shlibpath_var_F77=unsupported
15867   link_all_deplibs_F77=unknown
15868   hardcode_automatic_F77=no
15869   module_cmds_F77=
15870   module_expsym_cmds_F77=
15871   always_export_symbols_F77=no
15872   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15873   # include_expsyms should be a list of space-separated symbols to be *always*
15874   # included in the symbol list
15875   include_expsyms_F77=
15876   # exclude_expsyms can be an extended regexp of symbols to exclude
15877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15879   # as well as any symbol that contains `d'.
15880   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15882   # platforms (ab)use it in PIC code, but their linkers get confused if
15883   # the symbol is explicitly referenced.  Since portable code cannot
15884   # rely on this symbol name, it's probably fine to never include it in
15885   # preloaded symbol tables.
15886   extract_expsyms_cmds=
15887   # Just being paranoid about ensuring that cc_basename is set.
15888   for cc_temp in $compiler""; do
15889   case $cc_temp in
15890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15892     \-*) ;;
15893     *) break;;
15894   esac
15895 done
15896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15897
15898   case $host_os in
15899   cygwin* | mingw* | pw32*)
15900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15901     # When not using gcc, we currently assume that we are using
15902     # Microsoft Visual C++.
15903     if test "$GCC" != yes; then
15904       with_gnu_ld=no
15905     fi
15906     ;;
15907   interix*)
15908     # we just hope/assume this is gcc and not c89 (= MSVC++)
15909     with_gnu_ld=yes
15910     ;;
15911   openbsd*)
15912     with_gnu_ld=no
15913     ;;
15914   esac
15915
15916   ld_shlibs_F77=yes
15917   if test "$with_gnu_ld" = yes; then
15918     # If archive_cmds runs LD, not CC, wlarc should be empty
15919     wlarc='${wl}'
15920
15921     # Set some defaults for GNU ld with shared library support. These
15922     # are reset later if shared libraries are not supported. Putting them
15923     # here allows them to be overridden if necessary.
15924     runpath_var=LD_RUN_PATH
15925     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15926     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15927     # ancient GNU ld didn't support --whole-archive et. al.
15928     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15929         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15930       else
15931         whole_archive_flag_spec_F77=
15932     fi
15933     supports_anon_versioning=no
15934     case `$LD -v 2>/dev/null` in
15935       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15936       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15937       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15938       *\ 2.11.*) ;; # other 2.11 versions
15939       *) supports_anon_versioning=yes ;;
15940     esac
15941
15942     # See if GNU ld supports shared libraries.
15943     case $host_os in
15944     aix3* | aix4* | aix5*)
15945       # On AIX/PPC, the GNU linker is very broken
15946       if test "$host_cpu" != ia64; then
15947         ld_shlibs_F77=no
15948         cat <<EOF 1>&2
15949
15950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15951 *** to be unable to reliably create shared libraries on AIX.
15952 *** Therefore, libtool is disabling shared libraries support.  If you
15953 *** really care for shared libraries, you may want to modify your PATH
15954 *** so that a non-GNU linker is found, and then restart.
15955
15956 EOF
15957       fi
15958       ;;
15959
15960     amigaos*)
15961       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)'
15962       hardcode_libdir_flag_spec_F77='-L$libdir'
15963       hardcode_minus_L_F77=yes
15964
15965       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15966       # that the semantics of dynamic libraries on AmigaOS, at least up
15967       # to version 4, is to share data among multiple programs linked
15968       # with the same dynamic library.  Since this doesn't match the
15969       # behavior of shared libraries on other platforms, we can't use
15970       # them.
15971       ld_shlibs_F77=no
15972       ;;
15973
15974     beos*)
15975       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15976         allow_undefined_flag_F77=unsupported
15977         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15978         # support --undefined.  This deserves some investigation.  FIXME
15979         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15980       else
15981         ld_shlibs_F77=no
15982       fi
15983       ;;
15984
15985     cygwin* | mingw* | pw32*)
15986       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15987       # as there is no search path for DLLs.
15988       hardcode_libdir_flag_spec_F77='-L$libdir'
15989       allow_undefined_flag_F77=unsupported
15990       always_export_symbols_F77=no
15991       enable_shared_with_static_runtimes_F77=yes
15992       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15993
15994       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15995         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15996         # If the export-symbols file already is a .def file (1st line
15997         # is EXPORTS), use it as is; otherwise, prepend...
15998         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15999           cp $export_symbols $output_objdir/$soname.def;
16000         else
16001           echo EXPORTS > $output_objdir/$soname.def;
16002           cat $export_symbols >> $output_objdir/$soname.def;
16003         fi~
16004         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16005       else
16006         ld_shlibs_F77=no
16007       fi
16008       ;;
16009
16010     interix[3-9]*)
16011       hardcode_direct_F77=no
16012       hardcode_shlibpath_var_F77=no
16013       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16014       export_dynamic_flag_spec_F77='${wl}-E'
16015       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16016       # Instead, shared libraries are loaded at an image base (0x10000000 by
16017       # default) and relocated if they conflict, which is a slow very memory
16018       # consuming and fragmenting process.  To avoid this, we pick a random,
16019       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16020       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16021       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'
16022       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'
16023       ;;
16024
16025     gnu* | linux* | k*bsd*-gnu)
16026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16027         tmp_addflag=
16028         case $cc_basename,$host_cpu in
16029         pgcc*)                          # Portland Group C compiler
16030           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'
16031           tmp_addflag=' $pic_flag'
16032           ;;
16033         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16034           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'
16035           tmp_addflag=' $pic_flag -Mnomain' ;;
16036         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16037           tmp_addflag=' -i_dynamic' ;;
16038         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16039           tmp_addflag=' -i_dynamic -nofor_main' ;;
16040         ifc* | ifort*)                  # Intel Fortran compiler
16041           tmp_addflag=' -nofor_main' ;;
16042         esac
16043         case `$CC -V 2>&1 | sed 5q` in
16044         *Sun\ C*)                       # Sun C 5.9
16045           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16046           tmp_sharedflag='-G' ;;
16047         *Sun\ F*)                       # Sun Fortran 8.3
16048           tmp_sharedflag='-G' ;;
16049         *)
16050           tmp_sharedflag='-shared' ;;
16051         esac
16052         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16053
16054         if test $supports_anon_versioning = yes; then
16055           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16056   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16057   $echo "local: *; };" >> $output_objdir/$libname.ver~
16058           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16059         fi
16060         link_all_deplibs_F77=no
16061       else
16062         ld_shlibs_F77=no
16063       fi
16064       ;;
16065
16066     netbsd* | netbsdelf*-gnu)
16067       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16069         wlarc=
16070       else
16071         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16072         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073       fi
16074       ;;
16075
16076     solaris*)
16077       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16078         ld_shlibs_F77=no
16079         cat <<EOF 1>&2
16080
16081 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16082 *** create shared libraries on Solaris systems.  Therefore, libtool
16083 *** is disabling shared libraries support.  We urge you to upgrade GNU
16084 *** binutils to release 2.9.1 or newer.  Another option is to modify
16085 *** your PATH or compiler configuration so that the native linker is
16086 *** used, and then restart.
16087
16088 EOF
16089       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16091         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16092       else
16093         ld_shlibs_F77=no
16094       fi
16095       ;;
16096
16097     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16098       case `$LD -v 2>&1` in
16099         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16100         ld_shlibs_F77=no
16101         cat <<_LT_EOF 1>&2
16102
16103 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16104 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16105 *** is disabling shared libraries support.  We urge you to upgrade GNU
16106 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16107 *** your PATH or compiler configuration so that the native linker is
16108 *** used, and then restart.
16109
16110 _LT_EOF
16111         ;;
16112         *)
16113           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16114             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16115             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16116             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16117           else
16118             ld_shlibs_F77=no
16119           fi
16120         ;;
16121       esac
16122       ;;
16123
16124     sunos4*)
16125       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126       wlarc=
16127       hardcode_direct_F77=yes
16128       hardcode_shlibpath_var_F77=no
16129       ;;
16130
16131     *)
16132       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16135       else
16136         ld_shlibs_F77=no
16137       fi
16138       ;;
16139     esac
16140
16141     if test "$ld_shlibs_F77" = no; then
16142       runpath_var=
16143       hardcode_libdir_flag_spec_F77=
16144       export_dynamic_flag_spec_F77=
16145       whole_archive_flag_spec_F77=
16146     fi
16147   else
16148     # PORTME fill in a description of your system's linker (not GNU ld)
16149     case $host_os in
16150     aix3*)
16151       allow_undefined_flag_F77=unsupported
16152       always_export_symbols_F77=yes
16153       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'
16154       # Note: this linker hardcodes the directories in LIBPATH if there
16155       # are no directories specified by -L.
16156       hardcode_minus_L_F77=yes
16157       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16158         # Neither direct hardcoding nor static linking is supported with a
16159         # broken collect2.
16160         hardcode_direct_F77=unsupported
16161       fi
16162       ;;
16163
16164     aix4* | aix5*)
16165       if test "$host_cpu" = ia64; then
16166         # On IA64, the linker does run time linking by default, so we don't
16167         # have to do anything special.
16168         aix_use_runtimelinking=no
16169         exp_sym_flag='-Bexport'
16170         no_entry_flag=""
16171       else
16172         # If we're using GNU nm, then we don't want the "-C" option.
16173         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16174         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16175           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'
16176         else
16177           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'
16178         fi
16179         aix_use_runtimelinking=no
16180
16181         # Test if we are trying to use run time linking or normal
16182         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16183         # need to do runtime linking.
16184         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16185           for ld_flag in $LDFLAGS; do
16186           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16187             aix_use_runtimelinking=yes
16188             break
16189           fi
16190           done
16191           ;;
16192         esac
16193
16194         exp_sym_flag='-bexport'
16195         no_entry_flag='-bnoentry'
16196       fi
16197
16198       # When large executables or shared objects are built, AIX ld can
16199       # have problems creating the table of contents.  If linking a library
16200       # or program results in "error TOC overflow" add -mminimal-toc to
16201       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16202       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16203
16204       archive_cmds_F77=''
16205       hardcode_direct_F77=yes
16206       hardcode_libdir_separator_F77=':'
16207       link_all_deplibs_F77=yes
16208
16209       if test "$GCC" = yes; then
16210         case $host_os in aix4.[012]|aix4.[012].*)
16211         # We only want to do this on AIX 4.2 and lower, the check
16212         # below for broken collect2 doesn't work under 4.3+
16213           collect2name=`${CC} -print-prog-name=collect2`
16214           if test -f "$collect2name" && \
16215            strings "$collect2name" | grep resolve_lib_name >/dev/null
16216           then
16217           # We have reworked collect2
16218           :
16219           else
16220           # We have old collect2
16221           hardcode_direct_F77=unsupported
16222           # It fails to find uninstalled libraries when the uninstalled
16223           # path is not listed in the libpath.  Setting hardcode_minus_L
16224           # to unsupported forces relinking
16225           hardcode_minus_L_F77=yes
16226           hardcode_libdir_flag_spec_F77='-L$libdir'
16227           hardcode_libdir_separator_F77=
16228           fi
16229           ;;
16230         esac
16231         shared_flag='-shared'
16232         if test "$aix_use_runtimelinking" = yes; then
16233           shared_flag="$shared_flag "'${wl}-G'
16234         fi
16235       else
16236         # not using gcc
16237         if test "$host_cpu" = ia64; then
16238         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16239         # chokes on -Wl,-G. The following line is correct:
16240           shared_flag='-G'
16241         else
16242           if test "$aix_use_runtimelinking" = yes; then
16243             shared_flag='${wl}-G'
16244           else
16245             shared_flag='${wl}-bM:SRE'
16246           fi
16247         fi
16248       fi
16249
16250       # It seems that -bexpall does not export symbols beginning with
16251       # underscore (_), so it is better to generate a list of symbols to export.
16252       always_export_symbols_F77=yes
16253       if test "$aix_use_runtimelinking" = yes; then
16254         # Warning - without using the other runtime loading flags (-brtl),
16255         # -berok will link without error, but may produce a broken library.
16256         allow_undefined_flag_F77='-berok'
16257        # Determine the default libpath from the value encoded in an empty executable.
16258        cat >conftest.$ac_ext <<_ACEOF
16259       program main
16260
16261       end
16262 _ACEOF
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (ac_try="$ac_link"
16265 case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_link") 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } && {
16277          test -z "$ac_f77_werror_flag" ||
16278          test ! -s conftest.err
16279        } && test -s conftest$ac_exeext &&
16280        $as_test_x conftest$ac_exeext; then
16281
16282 lt_aix_libpath_sed='
16283     /Import File Strings/,/^$/ {
16284         /^0/ {
16285             s/^0  *\(.*\)$/\1/
16286             p
16287         }
16288     }'
16289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16290 # Check for a 64-bit object if we didn't find anything.
16291 if test -z "$aix_libpath"; then
16292   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16293 fi
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298
16299 fi
16300
16301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16302       conftest$ac_exeext conftest.$ac_ext
16303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16304
16305        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16306         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"
16307        else
16308         if test "$host_cpu" = ia64; then
16309           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16310           allow_undefined_flag_F77="-z nodefs"
16311           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"
16312         else
16313          # Determine the default libpath from the value encoded in an empty executable.
16314          cat >conftest.$ac_ext <<_ACEOF
16315       program main
16316
16317       end
16318 _ACEOF
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323   *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326   (eval "$ac_link") 2>conftest.er1
16327   ac_status=$?
16328   grep -v '^ *+' conftest.er1 >conftest.err
16329   rm -f conftest.er1
16330   cat conftest.err >&5
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } && {
16333          test -z "$ac_f77_werror_flag" ||
16334          test ! -s conftest.err
16335        } && test -s conftest$ac_exeext &&
16336        $as_test_x conftest$ac_exeext; then
16337
16338 lt_aix_libpath_sed='
16339     /Import File Strings/,/^$/ {
16340         /^0/ {
16341             s/^0  *\(.*\)$/\1/
16342             p
16343         }
16344     }'
16345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16346 # Check for a 64-bit object if we didn't find anything.
16347 if test -z "$aix_libpath"; then
16348   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16349 fi
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354
16355 fi
16356
16357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16358       conftest$ac_exeext conftest.$ac_ext
16359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16360
16361          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16362           # Warning - without using the other run time loading flags,
16363           # -berok will link without error, but may produce a broken library.
16364           no_undefined_flag_F77=' ${wl}-bernotok'
16365           allow_undefined_flag_F77=' ${wl}-berok'
16366           # Exported symbols can be pulled into shared objects from archives
16367           whole_archive_flag_spec_F77='$convenience'
16368           archive_cmds_need_lc_F77=yes
16369           # This is similar to how AIX traditionally builds its shared libraries.
16370           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'
16371         fi
16372       fi
16373       ;;
16374
16375     amigaos*)
16376       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)'
16377       hardcode_libdir_flag_spec_F77='-L$libdir'
16378       hardcode_minus_L_F77=yes
16379       # see comment about different semantics on the GNU ld section
16380       ld_shlibs_F77=no
16381       ;;
16382
16383     bsdi[45]*)
16384       export_dynamic_flag_spec_F77=-rdynamic
16385       ;;
16386
16387     cygwin* | mingw* | pw32*)
16388       # When not using gcc, we currently assume that we are using
16389       # Microsoft Visual C++.
16390       # hardcode_libdir_flag_spec is actually meaningless, as there is
16391       # no search path for DLLs.
16392       hardcode_libdir_flag_spec_F77=' '
16393       allow_undefined_flag_F77=unsupported
16394       # Tell ltmain to make .lib files, not .a files.
16395       libext=lib
16396       # Tell ltmain to make .dll files, not .so files.
16397       shrext_cmds=".dll"
16398       # FIXME: Setting linknames here is a bad hack.
16399       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16400       # The linker will automatically build a .lib file if we build a DLL.
16401       old_archive_From_new_cmds_F77='true'
16402       # FIXME: Should let the user specify the lib program.
16403       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16404       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16405       enable_shared_with_static_runtimes_F77=yes
16406       ;;
16407
16408     darwin* | rhapsody*)
16409       case $host_os in
16410         rhapsody* | darwin1.[012])
16411          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16412          ;;
16413        *) # Darwin 1.3 on
16414          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16415            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16416          else
16417            case ${MACOSX_DEPLOYMENT_TARGET} in
16418              10.[012])
16419                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16420                ;;
16421              10.*)
16422                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16423                ;;
16424            esac
16425          fi
16426          ;;
16427       esac
16428       archive_cmds_need_lc_F77=no
16429       hardcode_direct_F77=no
16430       hardcode_automatic_F77=yes
16431       hardcode_shlibpath_var_F77=unsupported
16432       whole_archive_flag_spec_F77=''
16433       link_all_deplibs_F77=yes
16434     if test "$GCC" = yes ; then
16435         output_verbose_link_cmd='echo'
16436         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16437       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16438       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16439       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}'
16440       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}'
16441     else
16442       case $cc_basename in
16443         xlc*)
16444          output_verbose_link_cmd='echo'
16445          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16446          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16447           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16448          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16449           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}'
16450           ;;
16451        *)
16452          ld_shlibs_F77=no
16453           ;;
16454       esac
16455     fi
16456       ;;
16457
16458     dgux*)
16459       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460       hardcode_libdir_flag_spec_F77='-L$libdir'
16461       hardcode_shlibpath_var_F77=no
16462       ;;
16463
16464     freebsd1*)
16465       ld_shlibs_F77=no
16466       ;;
16467
16468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16469     # support.  Future versions do this automatically, but an explicit c++rt0.o
16470     # does not break anything, and helps significantly (at the cost of a little
16471     # extra space).
16472     freebsd2.2*)
16473       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16474       hardcode_libdir_flag_spec_F77='-R$libdir'
16475       hardcode_direct_F77=yes
16476       hardcode_shlibpath_var_F77=no
16477       ;;
16478
16479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16480     freebsd2*)
16481       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16482       hardcode_direct_F77=yes
16483       hardcode_minus_L_F77=yes
16484       hardcode_shlibpath_var_F77=no
16485       ;;
16486
16487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16488     freebsd* | dragonfly*)
16489       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16490       hardcode_libdir_flag_spec_F77='-R$libdir'
16491       hardcode_direct_F77=yes
16492       hardcode_shlibpath_var_F77=no
16493       ;;
16494
16495     hpux9*)
16496       if test "$GCC" = yes; then
16497         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'
16498       else
16499         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'
16500       fi
16501       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16502       hardcode_libdir_separator_F77=:
16503       hardcode_direct_F77=yes
16504
16505       # hardcode_minus_L: Not really in the search PATH,
16506       # but as the default location of the library.
16507       hardcode_minus_L_F77=yes
16508       export_dynamic_flag_spec_F77='${wl}-E'
16509       ;;
16510
16511     hpux10*)
16512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16513         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16514       else
16515         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16516       fi
16517       if test "$with_gnu_ld" = no; then
16518         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16519         hardcode_libdir_separator_F77=:
16520
16521         hardcode_direct_F77=yes
16522         export_dynamic_flag_spec_F77='${wl}-E'
16523
16524         # hardcode_minus_L: Not really in the search PATH,
16525         # but as the default location of the library.
16526         hardcode_minus_L_F77=yes
16527       fi
16528       ;;
16529
16530     hpux11*)
16531       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16532         case $host_cpu in
16533         hppa*64*)
16534           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16535           ;;
16536         ia64*)
16537           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16538           ;;
16539         *)
16540           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16541           ;;
16542         esac
16543       else
16544         case $host_cpu in
16545         hppa*64*)
16546           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16547           ;;
16548         ia64*)
16549           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16550           ;;
16551         *)
16552           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16553           ;;
16554         esac
16555       fi
16556       if test "$with_gnu_ld" = no; then
16557         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16558         hardcode_libdir_separator_F77=:
16559
16560         case $host_cpu in
16561         hppa*64*|ia64*)
16562           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16563           hardcode_direct_F77=no
16564           hardcode_shlibpath_var_F77=no
16565           ;;
16566         *)
16567           hardcode_direct_F77=yes
16568           export_dynamic_flag_spec_F77='${wl}-E'
16569
16570           # hardcode_minus_L: Not really in the search PATH,
16571           # but as the default location of the library.
16572           hardcode_minus_L_F77=yes
16573           ;;
16574         esac
16575       fi
16576       ;;
16577
16578     irix5* | irix6* | nonstopux*)
16579       if test "$GCC" = yes; then
16580         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'
16581       else
16582         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'
16583         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16584       fi
16585       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16586       hardcode_libdir_separator_F77=:
16587       link_all_deplibs_F77=yes
16588       ;;
16589
16590     netbsd* | netbsdelf*-gnu)
16591       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16592         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16593       else
16594         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16595       fi
16596       hardcode_libdir_flag_spec_F77='-R$libdir'
16597       hardcode_direct_F77=yes
16598       hardcode_shlibpath_var_F77=no
16599       ;;
16600
16601     newsos6)
16602       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603       hardcode_direct_F77=yes
16604       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16605       hardcode_libdir_separator_F77=:
16606       hardcode_shlibpath_var_F77=no
16607       ;;
16608
16609     openbsd*)
16610       if test -f /usr/libexec/ld.so; then
16611         hardcode_direct_F77=yes
16612         hardcode_shlibpath_var_F77=no
16613         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16614           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16615           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16616           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16617           export_dynamic_flag_spec_F77='${wl}-E'
16618         else
16619           case $host_os in
16620            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16621              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16622              hardcode_libdir_flag_spec_F77='-R$libdir'
16623              ;;
16624            *)
16625              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16626              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16627              ;;
16628           esac
16629         fi
16630       else
16631         ld_shlibs_F77=no
16632       fi
16633       ;;
16634
16635     os2*)
16636       hardcode_libdir_flag_spec_F77='-L$libdir'
16637       hardcode_minus_L_F77=yes
16638       allow_undefined_flag_F77=unsupported
16639       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'
16640       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16641       ;;
16642
16643     osf3*)
16644       if test "$GCC" = yes; then
16645         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16646         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'
16647       else
16648         allow_undefined_flag_F77=' -expect_unresolved \*'
16649         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'
16650       fi
16651       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16652       hardcode_libdir_separator_F77=:
16653       ;;
16654
16655     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16656       if test "$GCC" = yes; then
16657         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16658         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'
16659         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16660       else
16661         allow_undefined_flag_F77=' -expect_unresolved \*'
16662         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'
16663         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~
16664         $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'
16665
16666         # Both c and cxx compiler support -rpath directly
16667         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16668       fi
16669       hardcode_libdir_separator_F77=:
16670       ;;
16671
16672     solaris*)
16673       no_undefined_flag_F77=' -z text'
16674       if test "$GCC" = yes; then
16675         wlarc='${wl}'
16676         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16678           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16679       else
16680         wlarc=''
16681         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16683         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16684       fi
16685       hardcode_libdir_flag_spec_F77='-R$libdir'
16686       hardcode_shlibpath_var_F77=no
16687       case $host_os in
16688       solaris2.[0-5] | solaris2.[0-5].*) ;;
16689       *)
16690         # The compiler driver will combine and reorder linker options,
16691         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16692         # but is careful enough not to reorder.
16693         # Supported since Solaris 2.6 (maybe 2.5.1?)
16694         if test "$GCC" = yes; then
16695           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16696         else
16697           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16698         fi
16699         ;;
16700       esac
16701       link_all_deplibs_F77=yes
16702       ;;
16703
16704     sunos4*)
16705       if test "x$host_vendor" = xsequent; then
16706         # Use $CC to link under sequent, because it throws in some extra .o
16707         # files that make .init and .fini sections work.
16708         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16709       else
16710         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16711       fi
16712       hardcode_libdir_flag_spec_F77='-L$libdir'
16713       hardcode_direct_F77=yes
16714       hardcode_minus_L_F77=yes
16715       hardcode_shlibpath_var_F77=no
16716       ;;
16717
16718     sysv4)
16719       case $host_vendor in
16720         sni)
16721           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16722           hardcode_direct_F77=yes # is this really true???
16723         ;;
16724         siemens)
16725           ## LD is ld it makes a PLAMLIB
16726           ## CC just makes a GrossModule.
16727           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16728           reload_cmds_F77='$CC -r -o $output$reload_objs'
16729           hardcode_direct_F77=no
16730         ;;
16731         motorola)
16732           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16733           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16734         ;;
16735       esac
16736       runpath_var='LD_RUN_PATH'
16737       hardcode_shlibpath_var_F77=no
16738       ;;
16739
16740     sysv4.3*)
16741       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742       hardcode_shlibpath_var_F77=no
16743       export_dynamic_flag_spec_F77='-Bexport'
16744       ;;
16745
16746     sysv4*MP*)
16747       if test -d /usr/nec; then
16748         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749         hardcode_shlibpath_var_F77=no
16750         runpath_var=LD_RUN_PATH
16751         hardcode_runpath_var=yes
16752         ld_shlibs_F77=yes
16753       fi
16754       ;;
16755
16756     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16757       no_undefined_flag_F77='${wl}-z,text'
16758       archive_cmds_need_lc_F77=no
16759       hardcode_shlibpath_var_F77=no
16760       runpath_var='LD_RUN_PATH'
16761
16762       if test "$GCC" = yes; then
16763         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16764         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16765       else
16766         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768       fi
16769       ;;
16770
16771     sysv5* | sco3.2v5* | sco5v6*)
16772       # Note: We can NOT use -z defs as we might desire, because we do not
16773       # link with -lc, and that would cause any symbols used from libc to
16774       # always be unresolved, which means just about no library would
16775       # ever link correctly.  If we're not using GNU ld we use -z text
16776       # though, which does catch some bad symbols but isn't as heavy-handed
16777       # as -z defs.
16778       no_undefined_flag_F77='${wl}-z,text'
16779       allow_undefined_flag_F77='${wl}-z,nodefs'
16780       archive_cmds_need_lc_F77=no
16781       hardcode_shlibpath_var_F77=no
16782       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16783       hardcode_libdir_separator_F77=':'
16784       link_all_deplibs_F77=yes
16785       export_dynamic_flag_spec_F77='${wl}-Bexport'
16786       runpath_var='LD_RUN_PATH'
16787
16788       if test "$GCC" = yes; then
16789         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16790         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16791       else
16792         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16794       fi
16795       ;;
16796
16797     uts4*)
16798       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799       hardcode_libdir_flag_spec_F77='-L$libdir'
16800       hardcode_shlibpath_var_F77=no
16801       ;;
16802
16803     *)
16804       ld_shlibs_F77=no
16805       ;;
16806     esac
16807   fi
16808
16809 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16810 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16811 test "$ld_shlibs_F77" = no && can_build_shared=no
16812
16813 #
16814 # Do we need to explicitly link libc?
16815 #
16816 case "x$archive_cmds_need_lc_F77" in
16817 x|xyes)
16818   # Assume -lc should be added
16819   archive_cmds_need_lc_F77=yes
16820
16821   if test "$enable_shared" = yes && test "$GCC" = yes; then
16822     case $archive_cmds_F77 in
16823     *'~'*)
16824       # FIXME: we may have to deal with multi-command sequences.
16825       ;;
16826     '$CC '*)
16827       # Test whether the compiler implicitly links with -lc since on some
16828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16829       # to ld, don't add -lc before -lgcc.
16830       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16832       $rm conftest*
16833       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16834
16835       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16836   (eval $ac_compile) 2>&5
16837   ac_status=$?
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } 2>conftest.err; then
16840         soname=conftest
16841         lib=conftest
16842         libobjs=conftest.$ac_objext
16843         deplibs=
16844         wl=$lt_prog_compiler_wl_F77
16845         pic_flag=$lt_prog_compiler_pic_F77
16846         compiler_flags=-v
16847         linker_flags=-v
16848         verstring=
16849         output_objdir=.
16850         libname=conftest
16851         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16852         allow_undefined_flag_F77=
16853         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16854   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }
16858         then
16859           archive_cmds_need_lc_F77=no
16860         else
16861           archive_cmds_need_lc_F77=yes
16862         fi
16863         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16864       else
16865         cat conftest.err 1>&5
16866       fi
16867       $rm conftest*
16868       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16869 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16870       ;;
16871     esac
16872   fi
16873   ;;
16874 esac
16875
16876 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16877 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16878 library_names_spec=
16879 libname_spec='lib$name'
16880 soname_spec=
16881 shrext_cmds=".so"
16882 postinstall_cmds=
16883 postuninstall_cmds=
16884 finish_cmds=
16885 finish_eval=
16886 shlibpath_var=
16887 shlibpath_overrides_runpath=unknown
16888 version_type=none
16889 dynamic_linker="$host_os ld.so"
16890 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16891
16892 need_lib_prefix=unknown
16893 hardcode_into_libs=no
16894
16895 # when you set need_version to no, make sure it does not cause -set_version
16896 # flags to be left without arguments
16897 need_version=unknown
16898
16899 case $host_os in
16900 aix3*)
16901   version_type=linux
16902   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16903   shlibpath_var=LIBPATH
16904
16905   # AIX 3 has no versioning support, so we append a major version to the name.
16906   soname_spec='${libname}${release}${shared_ext}$major'
16907   ;;
16908
16909 aix4* | aix5*)
16910   version_type=linux
16911   need_lib_prefix=no
16912   need_version=no
16913   hardcode_into_libs=yes
16914   if test "$host_cpu" = ia64; then
16915     # AIX 5 supports IA64
16916     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16917     shlibpath_var=LD_LIBRARY_PATH
16918   else
16919     # With GCC up to 2.95.x, collect2 would create an import file
16920     # for dependence libraries.  The import file would start with
16921     # the line `#! .'.  This would cause the generated library to
16922     # depend on `.', always an invalid library.  This was fixed in
16923     # development snapshots of GCC prior to 3.0.
16924     case $host_os in
16925       aix4 | aix4.[01] | aix4.[01].*)
16926       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16927            echo ' yes '
16928            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16929         :
16930       else
16931         can_build_shared=no
16932       fi
16933       ;;
16934     esac
16935     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16936     # soname into executable. Probably we can add versioning support to
16937     # collect2, so additional links can be useful in future.
16938     if test "$aix_use_runtimelinking" = yes; then
16939       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16940       # instead of lib<name>.a to let people know that these are not
16941       # typical AIX shared libraries.
16942       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943     else
16944       # We preserve .a as extension for shared libraries through AIX4.2
16945       # and later when we are not doing run time linking.
16946       library_names_spec='${libname}${release}.a $libname.a'
16947       soname_spec='${libname}${release}${shared_ext}$major'
16948     fi
16949     shlibpath_var=LIBPATH
16950   fi
16951   ;;
16952
16953 amigaos*)
16954   library_names_spec='$libname.ixlibrary $libname.a'
16955   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16956   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'
16957   ;;
16958
16959 beos*)
16960   library_names_spec='${libname}${shared_ext}'
16961   dynamic_linker="$host_os ld.so"
16962   shlibpath_var=LIBRARY_PATH
16963   ;;
16964
16965 bsdi[45]*)
16966   version_type=linux
16967   need_version=no
16968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16973   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16974   # the default ld.so.conf also contains /usr/contrib/lib and
16975   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16976   # libtool to hard-code these into programs
16977   ;;
16978
16979 cygwin* | mingw* | pw32*)
16980   version_type=windows
16981   shrext_cmds=".dll"
16982   need_version=no
16983   need_lib_prefix=no
16984
16985   case $GCC,$host_os in
16986   yes,cygwin* | yes,mingw* | yes,pw32*)
16987     library_names_spec='$libname.dll.a'
16988     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16989     postinstall_cmds='base_file=`basename \${file}`~
16990       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16991       dldir=$destdir/`dirname \$dlpath`~
16992       test -d \$dldir || mkdir -p \$dldir~
16993       $install_prog $dir/$dlname \$dldir/$dlname~
16994       chmod a+x \$dldir/$dlname'
16995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16996       dlpath=$dir/\$dldll~
16997        $rm \$dlpath'
16998     shlibpath_overrides_runpath=yes
16999
17000     case $host_os in
17001     cygwin*)
17002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17003       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17005       ;;
17006     mingw*)
17007       # MinGW DLLs use traditional 'lib' prefix
17008       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17009       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17010       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17011         # It is most probably a Windows format PATH printed by
17012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17013         # path with ; separators, and with drive letters. We can handle the
17014         # drive letters (cygwin fileutils understands them), so leave them,
17015         # especially as we might pass files found there to a mingw objdump,
17016         # which wouldn't understand a cygwinified path. Ahh.
17017         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17018       else
17019         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17020       fi
17021       ;;
17022     pw32*)
17023       # pw32 DLLs use 'pw' prefix rather than 'lib'
17024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025       ;;
17026     esac
17027     ;;
17028
17029   *)
17030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17031     ;;
17032   esac
17033   dynamic_linker='Win32 ld.exe'
17034   # FIXME: first we should search . and the directory the executable is in
17035   shlibpath_var=PATH
17036   ;;
17037
17038 darwin* | rhapsody*)
17039   dynamic_linker="$host_os dyld"
17040   version_type=darwin
17041   need_lib_prefix=no
17042   need_version=no
17043   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17044   soname_spec='${libname}${release}${major}$shared_ext'
17045   shlibpath_overrides_runpath=yes
17046   shlibpath_var=DYLD_LIBRARY_PATH
17047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17048
17049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050   ;;
17051
17052 dgux*)
17053   version_type=linux
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   ;;
17060
17061 freebsd1*)
17062   dynamic_linker=no
17063   ;;
17064
17065 freebsd* | dragonfly*)
17066   # DragonFly does not have aout.  When/if they implement a new
17067   # versioning mechanism, adjust this.
17068   if test -x /usr/bin/objformat; then
17069     objformat=`/usr/bin/objformat`
17070   else
17071     case $host_os in
17072     freebsd[123]*) objformat=aout ;;
17073     *) objformat=elf ;;
17074     esac
17075   fi
17076   version_type=freebsd-$objformat
17077   case $version_type in
17078     freebsd-elf*)
17079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17080       need_version=no
17081       need_lib_prefix=no
17082       ;;
17083     freebsd-*)
17084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17085       need_version=yes
17086       ;;
17087   esac
17088   shlibpath_var=LD_LIBRARY_PATH
17089   case $host_os in
17090   freebsd2*)
17091     shlibpath_overrides_runpath=yes
17092     ;;
17093   freebsd3.[01]* | freebsdelf3.[01]*)
17094     shlibpath_overrides_runpath=yes
17095     hardcode_into_libs=yes
17096     ;;
17097   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17098   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17099     shlibpath_overrides_runpath=no
17100     hardcode_into_libs=yes
17101     ;;
17102   *) # from 4.6 on, and DragonFly
17103     shlibpath_overrides_runpath=yes
17104     hardcode_into_libs=yes
17105     ;;
17106   esac
17107   ;;
17108
17109 gnu*)
17110   version_type=linux
17111   need_lib_prefix=no
17112   need_version=no
17113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114   soname_spec='${libname}${release}${shared_ext}$major'
17115   shlibpath_var=LD_LIBRARY_PATH
17116   hardcode_into_libs=yes
17117   ;;
17118
17119 hpux9* | hpux10* | hpux11*)
17120   # Give a soname corresponding to the major version so that dld.sl refuses to
17121   # link against other versions.
17122   version_type=sunos
17123   need_lib_prefix=no
17124   need_version=no
17125   case $host_cpu in
17126   ia64*)
17127     shrext_cmds='.so'
17128     hardcode_into_libs=yes
17129     dynamic_linker="$host_os dld.so"
17130     shlibpath_var=LD_LIBRARY_PATH
17131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     soname_spec='${libname}${release}${shared_ext}$major'
17134     if test "X$HPUX_IA64_MODE" = X32; then
17135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17136     else
17137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17138     fi
17139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17140     ;;
17141    hppa*64*)
17142      shrext_cmds='.sl'
17143      hardcode_into_libs=yes
17144      dynamic_linker="$host_os dld.sl"
17145      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17146      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148      soname_spec='${libname}${release}${shared_ext}$major'
17149      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17150      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151      ;;
17152    *)
17153     shrext_cmds='.sl'
17154     dynamic_linker="$host_os dld.sl"
17155     shlibpath_var=SHLIB_PATH
17156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158     soname_spec='${libname}${release}${shared_ext}$major'
17159     ;;
17160   esac
17161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17162   postinstall_cmds='chmod 555 $lib'
17163   ;;
17164
17165 interix[3-9]*)
17166   version_type=linux
17167   need_lib_prefix=no
17168   need_version=no
17169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17170   soname_spec='${libname}${release}${shared_ext}$major'
17171   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=no
17174   hardcode_into_libs=yes
17175   ;;
17176
17177 irix5* | irix6* | nonstopux*)
17178   case $host_os in
17179     nonstopux*) version_type=nonstopux ;;
17180     *)
17181         if test "$lt_cv_prog_gnu_ld" = yes; then
17182                 version_type=linux
17183         else
17184                 version_type=irix
17185         fi ;;
17186   esac
17187   need_lib_prefix=no
17188   need_version=no
17189   soname_spec='${libname}${release}${shared_ext}$major'
17190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17191   case $host_os in
17192   irix5* | nonstopux*)
17193     libsuff= shlibsuff=
17194     ;;
17195   *)
17196     case $LD in # libtool.m4 will add one of these switches to LD
17197     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17198       libsuff= shlibsuff= libmagic=32-bit;;
17199     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17200       libsuff=32 shlibsuff=N32 libmagic=N32;;
17201     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17202       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17203     *) libsuff= shlibsuff= libmagic=never-match;;
17204     esac
17205     ;;
17206   esac
17207   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17208   shlibpath_overrides_runpath=no
17209   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17210   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17211   hardcode_into_libs=yes
17212   ;;
17213
17214 # No shared lib support for Linux oldld, aout, or coff.
17215 linux*oldld* | linux*aout* | linux*coff*)
17216   dynamic_linker=no
17217   ;;
17218
17219 # This must be Linux ELF.
17220 linux* | k*bsd*-gnu)
17221   version_type=linux
17222   need_lib_prefix=no
17223   need_version=no
17224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225   soname_spec='${libname}${release}${shared_ext}$major'
17226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17227   shlibpath_var=LD_LIBRARY_PATH
17228   shlibpath_overrides_runpath=no
17229   # This implies no fast_install, which is unacceptable.
17230   # Some rework will be needed to allow for fast_install
17231   # before this can be enabled.
17232   hardcode_into_libs=yes
17233
17234   # Append ld.so.conf contents to the search path
17235   if test -f /etc/ld.so.conf; then
17236     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17237     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17238   fi
17239
17240   # We used to test for /lib/ld.so.1 and disable shared libraries on
17241   # powerpc, because MkLinux only supported shared libraries with the
17242   # GNU dynamic linker.  Since this was broken with cross compilers,
17243   # most powerpc-linux boxes support dynamic linking these days and
17244   # people can always --disable-shared, the test was removed, and we
17245   # assume the GNU/Linux dynamic linker is in use.
17246   dynamic_linker='GNU/Linux ld.so'
17247   ;;
17248
17249 netbsdelf*-gnu)
17250   version_type=linux
17251   need_lib_prefix=no
17252   need_version=no
17253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17254   soname_spec='${libname}${release}${shared_ext}$major'
17255   shlibpath_var=LD_LIBRARY_PATH
17256   shlibpath_overrides_runpath=no
17257   hardcode_into_libs=yes
17258   dynamic_linker='NetBSD ld.elf_so'
17259   ;;
17260
17261 netbsd*)
17262   version_type=sunos
17263   need_lib_prefix=no
17264   need_version=no
17265   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17268     dynamic_linker='NetBSD (a.out) ld.so'
17269   else
17270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17271     soname_spec='${libname}${release}${shared_ext}$major'
17272     dynamic_linker='NetBSD ld.elf_so'
17273   fi
17274   shlibpath_var=LD_LIBRARY_PATH
17275   shlibpath_overrides_runpath=yes
17276   hardcode_into_libs=yes
17277   ;;
17278
17279 newsos6)
17280   version_type=linux
17281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282   shlibpath_var=LD_LIBRARY_PATH
17283   shlibpath_overrides_runpath=yes
17284   ;;
17285
17286 nto-qnx*)
17287   version_type=linux
17288   need_lib_prefix=no
17289   need_version=no
17290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291   soname_spec='${libname}${release}${shared_ext}$major'
17292   shlibpath_var=LD_LIBRARY_PATH
17293   shlibpath_overrides_runpath=yes
17294   ;;
17295
17296 openbsd*)
17297   version_type=sunos
17298   sys_lib_dlsearch_path_spec="/usr/lib"
17299   need_lib_prefix=no
17300   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17301   case $host_os in
17302     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17303     *)                         need_version=no  ;;
17304   esac
17305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17307   shlibpath_var=LD_LIBRARY_PATH
17308   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17309     case $host_os in
17310       openbsd2.[89] | openbsd2.[89].*)
17311         shlibpath_overrides_runpath=no
17312         ;;
17313       *)
17314         shlibpath_overrides_runpath=yes
17315         ;;
17316       esac
17317   else
17318     shlibpath_overrides_runpath=yes
17319   fi
17320   ;;
17321
17322 os2*)
17323   libname_spec='$name'
17324   shrext_cmds=".dll"
17325   need_lib_prefix=no
17326   library_names_spec='$libname${shared_ext} $libname.a'
17327   dynamic_linker='OS/2 ld.exe'
17328   shlibpath_var=LIBPATH
17329   ;;
17330
17331 osf3* | osf4* | osf5*)
17332   version_type=osf
17333   need_lib_prefix=no
17334   need_version=no
17335   soname_spec='${libname}${release}${shared_ext}$major'
17336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337   shlibpath_var=LD_LIBRARY_PATH
17338   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17339   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17340   ;;
17341
17342 rdos*)
17343   dynamic_linker=no
17344   ;;
17345
17346 solaris*)
17347   version_type=linux
17348   need_lib_prefix=no
17349   need_version=no
17350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351   soname_spec='${libname}${release}${shared_ext}$major'
17352   shlibpath_var=LD_LIBRARY_PATH
17353   shlibpath_overrides_runpath=yes
17354   hardcode_into_libs=yes
17355   # ldd complains unless libraries are executable
17356   postinstall_cmds='chmod +x $lib'
17357   ;;
17358
17359 sunos4*)
17360   version_type=sunos
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17362   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17363   shlibpath_var=LD_LIBRARY_PATH
17364   shlibpath_overrides_runpath=yes
17365   if test "$with_gnu_ld" = yes; then
17366     need_lib_prefix=no
17367   fi
17368   need_version=yes
17369   ;;
17370
17371 sysv4 | sysv4.3*)
17372   version_type=linux
17373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374   soname_spec='${libname}${release}${shared_ext}$major'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   case $host_vendor in
17377     sni)
17378       shlibpath_overrides_runpath=no
17379       need_lib_prefix=no
17380       export_dynamic_flag_spec='${wl}-Blargedynsym'
17381       runpath_var=LD_RUN_PATH
17382       ;;
17383     siemens)
17384       need_lib_prefix=no
17385       ;;
17386     motorola)
17387       need_lib_prefix=no
17388       need_version=no
17389       shlibpath_overrides_runpath=no
17390       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17391       ;;
17392   esac
17393   ;;
17394
17395 sysv4*MP*)
17396   if test -d /usr/nec ;then
17397     version_type=linux
17398     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17399     soname_spec='$libname${shared_ext}.$major'
17400     shlibpath_var=LD_LIBRARY_PATH
17401   fi
17402   ;;
17403
17404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17405   version_type=freebsd-elf
17406   need_lib_prefix=no
17407   need_version=no
17408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17409   soname_spec='${libname}${release}${shared_ext}$major'
17410   shlibpath_var=LD_LIBRARY_PATH
17411   hardcode_into_libs=yes
17412   if test "$with_gnu_ld" = yes; then
17413     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17414     shlibpath_overrides_runpath=no
17415   else
17416     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17417     shlibpath_overrides_runpath=yes
17418     case $host_os in
17419       sco3.2v5*)
17420         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17421         ;;
17422     esac
17423   fi
17424   sys_lib_dlsearch_path_spec='/usr/lib'
17425   ;;
17426
17427 uts4*)
17428   version_type=linux
17429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   shlibpath_var=LD_LIBRARY_PATH
17432   ;;
17433
17434 *)
17435   dynamic_linker=no
17436   ;;
17437 esac
17438 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439 echo "${ECHO_T}$dynamic_linker" >&6; }
17440 test "$dynamic_linker" = no && can_build_shared=no
17441
17442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17443 if test "$GCC" = yes; then
17444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17445 fi
17446
17447 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17448 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17449 hardcode_action_F77=
17450 if test -n "$hardcode_libdir_flag_spec_F77" || \
17451    test -n "$runpath_var_F77" || \
17452    test "X$hardcode_automatic_F77" = "Xyes" ; then
17453
17454   # We can hardcode non-existant directories.
17455   if test "$hardcode_direct_F77" != no &&
17456      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17457      # have to relink, otherwise we might link with an installed library
17458      # when we should be linking with a yet-to-be-installed one
17459      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17460      test "$hardcode_minus_L_F77" != no; then
17461     # Linking always hardcodes the temporary library directory.
17462     hardcode_action_F77=relink
17463   else
17464     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17465     hardcode_action_F77=immediate
17466   fi
17467 else
17468   # We cannot hardcode anything, or else we can only hardcode existing
17469   # directories.
17470   hardcode_action_F77=unsupported
17471 fi
17472 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17473 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17474
17475 if test "$hardcode_action_F77" = relink; then
17476   # Fast installation is not supported
17477   enable_fast_install=no
17478 elif test "$shlibpath_overrides_runpath" = yes ||
17479      test "$enable_shared" = no; then
17480   # Fast installation is not necessary
17481   enable_fast_install=needless
17482 fi
17483
17484
17485 # The else clause should only fire when bootstrapping the
17486 # libtool distribution, otherwise you forgot to ship ltmain.sh
17487 # with your package, and you will get complaints that there are
17488 # no rules to generate ltmain.sh.
17489 if test -f "$ltmain"; then
17490   # See if we are running on zsh, and set the options which allow our commands through
17491   # without removal of \ escapes.
17492   if test -n "${ZSH_VERSION+set}" ; then
17493     setopt NO_GLOB_SUBST
17494   fi
17495   # Now quote all the things that may contain metacharacters while being
17496   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17497   # variables and quote the copies for generation of the libtool script.
17498   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17499     SED SHELL STRIP \
17500     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17501     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17502     deplibs_check_method reload_flag reload_cmds need_locks \
17503     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17504     lt_cv_sys_global_symbol_to_c_name_address \
17505     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17506     old_postinstall_cmds old_postuninstall_cmds \
17507     compiler_F77 \
17508     CC_F77 \
17509     LD_F77 \
17510     lt_prog_compiler_wl_F77 \
17511     lt_prog_compiler_pic_F77 \
17512     lt_prog_compiler_static_F77 \
17513     lt_prog_compiler_no_builtin_flag_F77 \
17514     export_dynamic_flag_spec_F77 \
17515     thread_safe_flag_spec_F77 \
17516     whole_archive_flag_spec_F77 \
17517     enable_shared_with_static_runtimes_F77 \
17518     old_archive_cmds_F77 \
17519     old_archive_from_new_cmds_F77 \
17520     predep_objects_F77 \
17521     postdep_objects_F77 \
17522     predeps_F77 \
17523     postdeps_F77 \
17524     compiler_lib_search_path_F77 \
17525     archive_cmds_F77 \
17526     archive_expsym_cmds_F77 \
17527     postinstall_cmds_F77 \
17528     postuninstall_cmds_F77 \
17529     old_archive_from_expsyms_cmds_F77 \
17530     allow_undefined_flag_F77 \
17531     no_undefined_flag_F77 \
17532     export_symbols_cmds_F77 \
17533     hardcode_libdir_flag_spec_F77 \
17534     hardcode_libdir_flag_spec_ld_F77 \
17535     hardcode_libdir_separator_F77 \
17536     hardcode_automatic_F77 \
17537     module_cmds_F77 \
17538     module_expsym_cmds_F77 \
17539     lt_cv_prog_compiler_c_o_F77 \
17540     fix_srcfile_path_F77 \
17541     exclude_expsyms_F77 \
17542     include_expsyms_F77; do
17543
17544     case $var in
17545     old_archive_cmds_F77 | \
17546     old_archive_from_new_cmds_F77 | \
17547     archive_cmds_F77 | \
17548     archive_expsym_cmds_F77 | \
17549     module_cmds_F77 | \
17550     module_expsym_cmds_F77 | \
17551     old_archive_from_expsyms_cmds_F77 | \
17552     export_symbols_cmds_F77 | \
17553     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17554     postinstall_cmds | postuninstall_cmds | \
17555     old_postinstall_cmds | old_postuninstall_cmds | \
17556     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17557       # Double-quote double-evaled strings.
17558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17559       ;;
17560     *)
17561       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17562       ;;
17563     esac
17564   done
17565
17566   case $lt_echo in
17567   *'\$0 --fallback-echo"')
17568     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17569     ;;
17570   esac
17571
17572 cfgfile="$ofile"
17573
17574   cat <<__EOF__ >> "$cfgfile"
17575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17576
17577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17578
17579 # Shell to use when invoking shell scripts.
17580 SHELL=$lt_SHELL
17581
17582 # Whether or not to build shared libraries.
17583 build_libtool_libs=$enable_shared
17584
17585 # Whether or not to build static libraries.
17586 build_old_libs=$enable_static
17587
17588 # Whether or not to add -lc for building shared libraries.
17589 build_libtool_need_lc=$archive_cmds_need_lc_F77
17590
17591 # Whether or not to disallow shared libs when runtime libs are static
17592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17593
17594 # Whether or not to optimize for fast installation.
17595 fast_install=$enable_fast_install
17596
17597 # The host system.
17598 host_alias=$host_alias
17599 host=$host
17600 host_os=$host_os
17601
17602 # The build system.
17603 build_alias=$build_alias
17604 build=$build
17605 build_os=$build_os
17606
17607 # An echo program that does not interpret backslashes.
17608 echo=$lt_echo
17609
17610 # The archiver.
17611 AR=$lt_AR
17612 AR_FLAGS=$lt_AR_FLAGS
17613
17614 # A C compiler.
17615 LTCC=$lt_LTCC
17616
17617 # LTCC compiler flags.
17618 LTCFLAGS=$lt_LTCFLAGS
17619
17620 # A language-specific compiler.
17621 CC=$lt_compiler_F77
17622
17623 # Is the compiler the GNU C compiler?
17624 with_gcc=$GCC_F77
17625
17626 # An ERE matcher.
17627 EGREP=$lt_EGREP
17628
17629 # The linker used to build libraries.
17630 LD=$lt_LD_F77
17631
17632 # Whether we need hard or soft links.
17633 LN_S=$lt_LN_S
17634
17635 # A BSD-compatible nm program.
17636 NM=$lt_NM
17637
17638 # A symbol stripping program
17639 STRIP=$lt_STRIP
17640
17641 # Used to examine libraries when file_magic_cmd begins "file"
17642 MAGIC_CMD=$MAGIC_CMD
17643
17644 # Used on cygwin: DLL creation program.
17645 DLLTOOL="$DLLTOOL"
17646
17647 # Used on cygwin: object dumper.
17648 OBJDUMP="$OBJDUMP"
17649
17650 # Used on cygwin: assembler.
17651 AS="$AS"
17652
17653 # The name of the directory that contains temporary libtool files.
17654 objdir=$objdir
17655
17656 # How to create reloadable object files.
17657 reload_flag=$lt_reload_flag
17658 reload_cmds=$lt_reload_cmds
17659
17660 # How to pass a linker flag through the compiler.
17661 wl=$lt_lt_prog_compiler_wl_F77
17662
17663 # Object file suffix (normally "o").
17664 objext="$ac_objext"
17665
17666 # Old archive suffix (normally "a").
17667 libext="$libext"
17668
17669 # Shared library suffix (normally ".so").
17670 shrext_cmds='$shrext_cmds'
17671
17672 # Executable file suffix (normally "").
17673 exeext="$exeext"
17674
17675 # Additional compiler flags for building library objects.
17676 pic_flag=$lt_lt_prog_compiler_pic_F77
17677 pic_mode=$pic_mode
17678
17679 # What is the maximum length of a command?
17680 max_cmd_len=$lt_cv_sys_max_cmd_len
17681
17682 # Does compiler simultaneously support -c and -o options?
17683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17684
17685 # Must we lock files when doing compilation?
17686 need_locks=$lt_need_locks
17687
17688 # Do we need the lib prefix for modules?
17689 need_lib_prefix=$need_lib_prefix
17690
17691 # Do we need a version for libraries?
17692 need_version=$need_version
17693
17694 # Whether dlopen is supported.
17695 dlopen_support=$enable_dlopen
17696
17697 # Whether dlopen of programs is supported.
17698 dlopen_self=$enable_dlopen_self
17699
17700 # Whether dlopen of statically linked programs is supported.
17701 dlopen_self_static=$enable_dlopen_self_static
17702
17703 # Compiler flag to prevent dynamic linking.
17704 link_static_flag=$lt_lt_prog_compiler_static_F77
17705
17706 # Compiler flag to turn off builtin functions.
17707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17708
17709 # Compiler flag to allow reflexive dlopens.
17710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17711
17712 # Compiler flag to generate shared objects directly from archives.
17713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17714
17715 # Compiler flag to generate thread-safe objects.
17716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17717
17718 # Library versioning type.
17719 version_type=$version_type
17720
17721 # Format of library name prefix.
17722 libname_spec=$lt_libname_spec
17723
17724 # List of archive names.  First name is the real one, the rest are links.
17725 # The last name is the one that the linker finds with -lNAME.
17726 library_names_spec=$lt_library_names_spec
17727
17728 # The coded name of the library, if different from the real name.
17729 soname_spec=$lt_soname_spec
17730
17731 # Commands used to build and install an old-style archive.
17732 RANLIB=$lt_RANLIB
17733 old_archive_cmds=$lt_old_archive_cmds_F77
17734 old_postinstall_cmds=$lt_old_postinstall_cmds
17735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736
17737 # Create an old-style archive from a shared archive.
17738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17739
17740 # Create a temporary old-style archive to link instead of a shared archive.
17741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17742
17743 # Commands used to build and install a shared archive.
17744 archive_cmds=$lt_archive_cmds_F77
17745 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17746 postinstall_cmds=$lt_postinstall_cmds
17747 postuninstall_cmds=$lt_postuninstall_cmds
17748
17749 # Commands used to build a loadable module (assumed same as above if empty)
17750 module_cmds=$lt_module_cmds_F77
17751 module_expsym_cmds=$lt_module_expsym_cmds_F77
17752
17753 # Commands to strip libraries.
17754 old_striplib=$lt_old_striplib
17755 striplib=$lt_striplib
17756
17757 # Dependencies to place before the objects being linked to create a
17758 # shared library.
17759 predep_objects=$lt_predep_objects_F77
17760
17761 # Dependencies to place after the objects being linked to create a
17762 # shared library.
17763 postdep_objects=$lt_postdep_objects_F77
17764
17765 # Dependencies to place before the objects being linked to create a
17766 # shared library.
17767 predeps=$lt_predeps_F77
17768
17769 # Dependencies to place after the objects being linked to create a
17770 # shared library.
17771 postdeps=$lt_postdeps_F77
17772
17773 # The library search path used internally by the compiler when linking
17774 # a shared library.
17775 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17776
17777 # Method to check whether dependent libraries are shared objects.
17778 deplibs_check_method=$lt_deplibs_check_method
17779
17780 # Command to use when deplibs_check_method == file_magic.
17781 file_magic_cmd=$lt_file_magic_cmd
17782
17783 # Flag that allows shared libraries with undefined symbols to be built.
17784 allow_undefined_flag=$lt_allow_undefined_flag_F77
17785
17786 # Flag that forces no undefined symbols.
17787 no_undefined_flag=$lt_no_undefined_flag_F77
17788
17789 # Commands used to finish a libtool library installation in a directory.
17790 finish_cmds=$lt_finish_cmds
17791
17792 # Same as above, but a single script fragment to be evaled but not shown.
17793 finish_eval=$lt_finish_eval
17794
17795 # Take the output of nm and produce a listing of raw symbols and C names.
17796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797
17798 # Transform the output of nm in a proper C declaration
17799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800
17801 # Transform the output of nm in a C name address pair
17802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803
17804 # This is the shared library runtime path variable.
17805 runpath_var=$runpath_var
17806
17807 # This is the shared library path variable.
17808 shlibpath_var=$shlibpath_var
17809
17810 # Is shlibpath searched before the hard-coded library search path?
17811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812
17813 # How to hardcode a shared library path into an executable.
17814 hardcode_action=$hardcode_action_F77
17815
17816 # Whether we should hardcode library paths into libraries.
17817 hardcode_into_libs=$hardcode_into_libs
17818
17819 # Flag to hardcode \$libdir into a binary during linking.
17820 # This must work even if \$libdir does not exist.
17821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17822
17823 # If ld is used when linking, flag to hardcode \$libdir into
17824 # a binary during linking. This must work even if \$libdir does
17825 # not exist.
17826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17827
17828 # Whether we need a single -rpath flag with a separated argument.
17829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17830
17831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17832 # resulting binary.
17833 hardcode_direct=$hardcode_direct_F77
17834
17835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17836 # resulting binary.
17837 hardcode_minus_L=$hardcode_minus_L_F77
17838
17839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17840 # the resulting binary.
17841 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17842
17843 # Set to yes if building a shared library automatically hardcodes DIR into the library
17844 # and all subsequent libraries and executables linked against it.
17845 hardcode_automatic=$hardcode_automatic_F77
17846
17847 # Variables whose values should be saved in libtool wrapper scripts and
17848 # restored at relink time.
17849 variables_saved_for_relink="$variables_saved_for_relink"
17850
17851 # Whether libtool must link a program against all its dependency libraries.
17852 link_all_deplibs=$link_all_deplibs_F77
17853
17854 # Compile-time system search path for libraries
17855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856
17857 # Run-time system search path for libraries
17858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859
17860 # Fix the shell variable \$srcfile for the compiler.
17861 fix_srcfile_path=$lt_fix_srcfile_path
17862
17863 # Set to yes if exported symbols are required.
17864 always_export_symbols=$always_export_symbols_F77
17865
17866 # The commands to list exported symbols.
17867 export_symbols_cmds=$lt_export_symbols_cmds_F77
17868
17869 # The commands to extract the exported symbol list from a shared archive.
17870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871
17872 # Symbols that should not be listed in the preloaded symbols.
17873 exclude_expsyms=$lt_exclude_expsyms_F77
17874
17875 # Symbols that must always be exported.
17876 include_expsyms=$lt_include_expsyms_F77
17877
17878 # ### END LIBTOOL TAG CONFIG: $tagname
17879
17880 __EOF__
17881
17882
17883 else
17884   # If there is no Makefile yet, we rely on a make rule to execute
17885   # `config.status --recheck' to rerun these tests and create the
17886   # libtool script then.
17887   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17888   if test -f "$ltmain_in"; then
17889     test -f Makefile && make "$ltmain"
17890   fi
17891 fi
17892
17893
17894 ac_ext=c
17895 ac_cpp='$CPP $CPPFLAGS'
17896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17899
17900 CC="$lt_save_CC"
17901
17902         else
17903           tagname=""
17904         fi
17905         ;;
17906
17907       GCJ)
17908         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17909
17910
17911 # Source file extension for Java test sources.
17912 ac_ext=java
17913
17914 # Object file extension for compiled Java test sources.
17915 objext=o
17916 objext_GCJ=$objext
17917
17918 # Code to be used in simple compile tests
17919 lt_simple_compile_test_code="class foo {}"
17920
17921 # Code to be used in simple link tests
17922 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17923
17924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17925
17926 # If no C compiler was specified, use CC.
17927 LTCC=${LTCC-"$CC"}
17928
17929 # If no C compiler flags were specified, use CFLAGS.
17930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17931
17932 # Allow CC to be a program name with arguments.
17933 compiler=$CC
17934
17935
17936 # save warnings/boilerplate of simple test code
17937 ac_outfile=conftest.$ac_objext
17938 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17939 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17940 _lt_compiler_boilerplate=`cat conftest.err`
17941 $rm conftest*
17942
17943 ac_outfile=conftest.$ac_objext
17944 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17945 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17946 _lt_linker_boilerplate=`cat conftest.err`
17947 $rm conftest*
17948
17949
17950 # Allow CC to be a program name with arguments.
17951 lt_save_CC="$CC"
17952 CC=${GCJ-"gcj"}
17953 compiler=$CC
17954 compiler_GCJ=$CC
17955 for cc_temp in $compiler""; do
17956   case $cc_temp in
17957     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17958     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17959     \-*) ;;
17960     *) break;;
17961   esac
17962 done
17963 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17964
17965
17966 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17967 archive_cmds_need_lc_GCJ=no
17968
17969 old_archive_cmds_GCJ=$old_archive_cmds
17970
17971
17972 lt_prog_compiler_no_builtin_flag_GCJ=
17973
17974 if test "$GCC" = yes; then
17975   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17976
17977
17978 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17979 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17980 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983   lt_cv_prog_compiler_rtti_exceptions=no
17984   ac_outfile=conftest.$ac_objext
17985    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17986    lt_compiler_flag="-fno-rtti -fno-exceptions"
17987    # Insert the option either (1) after the last *FLAGS variable, or
17988    # (2) before a word containing "conftest.", or (3) at the end.
17989    # Note that $ac_compile itself does not contain backslashes and begins
17990    # with a dollar sign (not a hyphen), so the echo should work correctly.
17991    # The option is referenced via a variable to avoid confusing sed.
17992    lt_compile=`echo "$ac_compile" | $SED \
17993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17995    -e 's:$: $lt_compiler_flag:'`
17996    (eval echo "\"\$as_me:17996: $lt_compile\"" >&5)
17997    (eval "$lt_compile" 2>conftest.err)
17998    ac_status=$?
17999    cat conftest.err >&5
18000    echo "$as_me:18000: \$? = $ac_status" >&5
18001    if (exit $ac_status) && test -s "$ac_outfile"; then
18002      # The compiler can only warn and ignore the option if not recognized
18003      # So say no if there are warnings other than the usual output.
18004      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18005      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18006      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18007        lt_cv_prog_compiler_rtti_exceptions=yes
18008      fi
18009    fi
18010    $rm conftest*
18011
18012 fi
18013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18014 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18015
18016 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18017     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18018 else
18019     :
18020 fi
18021
18022 fi
18023
18024 lt_prog_compiler_wl_GCJ=
18025 lt_prog_compiler_pic_GCJ=
18026 lt_prog_compiler_static_GCJ=
18027
18028 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18029 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18030
18031   if test "$GCC" = yes; then
18032     lt_prog_compiler_wl_GCJ='-Wl,'
18033     lt_prog_compiler_static_GCJ='-static'
18034
18035     case $host_os in
18036       aix*)
18037       # All AIX code is PIC.
18038       if test "$host_cpu" = ia64; then
18039         # AIX 5 now supports IA64 processor
18040         lt_prog_compiler_static_GCJ='-Bstatic'
18041       fi
18042       ;;
18043
18044     amigaos*)
18045       # FIXME: we need at least 68020 code to build shared libraries, but
18046       # adding the `-m68020' flag to GCC prevents building anything better,
18047       # like `-m68040'.
18048       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18049       ;;
18050
18051     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18052       # PIC is the default for these OSes.
18053       ;;
18054
18055     mingw* | cygwin* | pw32* | os2*)
18056       # This hack is so that the source file can tell whether it is being
18057       # built for inclusion in a dll (and should export symbols for example).
18058       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18059       # (--disable-auto-import) libraries
18060       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18061       ;;
18062
18063     darwin* | rhapsody*)
18064       # PIC is the default on this platform
18065       # Common symbols not allowed in MH_DYLIB files
18066       lt_prog_compiler_pic_GCJ='-fno-common'
18067       ;;
18068
18069     interix[3-9]*)
18070       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18071       # Instead, we relocate shared libraries at runtime.
18072       ;;
18073
18074     msdosdjgpp*)
18075       # Just because we use GCC doesn't mean we suddenly get shared libraries
18076       # on systems that don't support them.
18077       lt_prog_compiler_can_build_shared_GCJ=no
18078       enable_shared=no
18079       ;;
18080
18081     sysv4*MP*)
18082       if test -d /usr/nec; then
18083         lt_prog_compiler_pic_GCJ=-Kconform_pic
18084       fi
18085       ;;
18086
18087     hpux*)
18088       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18089       # not for PA HP-UX.
18090       case $host_cpu in
18091       hppa*64*|ia64*)
18092         # +Z the default
18093         ;;
18094       *)
18095         lt_prog_compiler_pic_GCJ='-fPIC'
18096         ;;
18097       esac
18098       ;;
18099
18100     *)
18101       lt_prog_compiler_pic_GCJ='-fPIC'
18102       ;;
18103     esac
18104   else
18105     # PORTME Check for flag to pass linker flags through the system compiler.
18106     case $host_os in
18107     aix*)
18108       lt_prog_compiler_wl_GCJ='-Wl,'
18109       if test "$host_cpu" = ia64; then
18110         # AIX 5 now supports IA64 processor
18111         lt_prog_compiler_static_GCJ='-Bstatic'
18112       else
18113         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18114       fi
18115       ;;
18116       darwin*)
18117         # PIC is the default on this platform
18118         # Common symbols not allowed in MH_DYLIB files
18119        case $cc_basename in
18120          xlc*)
18121          lt_prog_compiler_pic_GCJ='-qnocommon'
18122          lt_prog_compiler_wl_GCJ='-Wl,'
18123          ;;
18124        esac
18125        ;;
18126
18127     mingw* | cygwin* | pw32* | os2*)
18128       # This hack is so that the source file can tell whether it is being
18129       # built for inclusion in a dll (and should export symbols for example).
18130       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18131       ;;
18132
18133     hpux9* | hpux10* | hpux11*)
18134       lt_prog_compiler_wl_GCJ='-Wl,'
18135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18136       # not for PA HP-UX.
18137       case $host_cpu in
18138       hppa*64*|ia64*)
18139         # +Z the default
18140         ;;
18141       *)
18142         lt_prog_compiler_pic_GCJ='+Z'
18143         ;;
18144       esac
18145       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18146       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18147       ;;
18148
18149     irix5* | irix6* | nonstopux*)
18150       lt_prog_compiler_wl_GCJ='-Wl,'
18151       # PIC (with -KPIC) is the default.
18152       lt_prog_compiler_static_GCJ='-non_shared'
18153       ;;
18154
18155     newsos6)
18156       lt_prog_compiler_pic_GCJ='-KPIC'
18157       lt_prog_compiler_static_GCJ='-Bstatic'
18158       ;;
18159
18160     linux* | k*bsd*-gnu)
18161       case $cc_basename in
18162       icc* | ecc*)
18163         lt_prog_compiler_wl_GCJ='-Wl,'
18164         lt_prog_compiler_pic_GCJ='-KPIC'
18165         lt_prog_compiler_static_GCJ='-static'
18166         ;;
18167       pgcc* | pgf77* | pgf90* | pgf95*)
18168         # Portland Group compilers (*not* the Pentium gcc compiler,
18169         # which looks to be a dead project)
18170         lt_prog_compiler_wl_GCJ='-Wl,'
18171         lt_prog_compiler_pic_GCJ='-fpic'
18172         lt_prog_compiler_static_GCJ='-Bstatic'
18173         ;;
18174       ccc*)
18175         lt_prog_compiler_wl_GCJ='-Wl,'
18176         # All Alpha code is PIC.
18177         lt_prog_compiler_static_GCJ='-non_shared'
18178         ;;
18179       *)
18180         case `$CC -V 2>&1 | sed 5q` in
18181         *Sun\ C*)
18182           # Sun C 5.9
18183           lt_prog_compiler_pic_GCJ='-KPIC'
18184           lt_prog_compiler_static_GCJ='-Bstatic'
18185           lt_prog_compiler_wl_GCJ='-Wl,'
18186           ;;
18187         *Sun\ F*)
18188           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18189           lt_prog_compiler_pic_GCJ='-KPIC'
18190           lt_prog_compiler_static_GCJ='-Bstatic'
18191           lt_prog_compiler_wl_GCJ=''
18192           ;;
18193         esac
18194         ;;
18195       esac
18196       ;;
18197
18198     osf3* | osf4* | osf5*)
18199       lt_prog_compiler_wl_GCJ='-Wl,'
18200       # All OSF/1 code is PIC.
18201       lt_prog_compiler_static_GCJ='-non_shared'
18202       ;;
18203
18204     rdos*)
18205       lt_prog_compiler_static_GCJ='-non_shared'
18206       ;;
18207
18208     solaris*)
18209       lt_prog_compiler_pic_GCJ='-KPIC'
18210       lt_prog_compiler_static_GCJ='-Bstatic'
18211       case $cc_basename in
18212       f77* | f90* | f95*)
18213         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18214       *)
18215         lt_prog_compiler_wl_GCJ='-Wl,';;
18216       esac
18217       ;;
18218
18219     sunos4*)
18220       lt_prog_compiler_wl_GCJ='-Qoption ld '
18221       lt_prog_compiler_pic_GCJ='-PIC'
18222       lt_prog_compiler_static_GCJ='-Bstatic'
18223       ;;
18224
18225     sysv4 | sysv4.2uw2* | sysv4.3*)
18226       lt_prog_compiler_wl_GCJ='-Wl,'
18227       lt_prog_compiler_pic_GCJ='-KPIC'
18228       lt_prog_compiler_static_GCJ='-Bstatic'
18229       ;;
18230
18231     sysv4*MP*)
18232       if test -d /usr/nec ;then
18233         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18234         lt_prog_compiler_static_GCJ='-Bstatic'
18235       fi
18236       ;;
18237
18238     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18239       lt_prog_compiler_wl_GCJ='-Wl,'
18240       lt_prog_compiler_pic_GCJ='-KPIC'
18241       lt_prog_compiler_static_GCJ='-Bstatic'
18242       ;;
18243
18244     unicos*)
18245       lt_prog_compiler_wl_GCJ='-Wl,'
18246       lt_prog_compiler_can_build_shared_GCJ=no
18247       ;;
18248
18249     uts4*)
18250       lt_prog_compiler_pic_GCJ='-pic'
18251       lt_prog_compiler_static_GCJ='-Bstatic'
18252       ;;
18253
18254     *)
18255       lt_prog_compiler_can_build_shared_GCJ=no
18256       ;;
18257     esac
18258   fi
18259
18260 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18261 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18262
18263 #
18264 # Check to make sure the PIC flag actually works.
18265 #
18266 if test -n "$lt_prog_compiler_pic_GCJ"; then
18267
18268 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18269 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18270 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   lt_prog_compiler_pic_works_GCJ=no
18274   ac_outfile=conftest.$ac_objext
18275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18276    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18277    # Insert the option either (1) after the last *FLAGS variable, or
18278    # (2) before a word containing "conftest.", or (3) at the end.
18279    # Note that $ac_compile itself does not contain backslashes and begins
18280    # with a dollar sign (not a hyphen), so the echo should work correctly.
18281    # The option is referenced via a variable to avoid confusing sed.
18282    lt_compile=`echo "$ac_compile" | $SED \
18283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18285    -e 's:$: $lt_compiler_flag:'`
18286    (eval echo "\"\$as_me:18286: $lt_compile\"" >&5)
18287    (eval "$lt_compile" 2>conftest.err)
18288    ac_status=$?
18289    cat conftest.err >&5
18290    echo "$as_me:18290: \$? = $ac_status" >&5
18291    if (exit $ac_status) && test -s "$ac_outfile"; then
18292      # The compiler can only warn and ignore the option if not recognized
18293      # So say no if there are warnings other than the usual output.
18294      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18295      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18296      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18297        lt_prog_compiler_pic_works_GCJ=yes
18298      fi
18299    fi
18300    $rm conftest*
18301
18302 fi
18303 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18304 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18305
18306 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18307     case $lt_prog_compiler_pic_GCJ in
18308      "" | " "*) ;;
18309      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18310      esac
18311 else
18312     lt_prog_compiler_pic_GCJ=
18313      lt_prog_compiler_can_build_shared_GCJ=no
18314 fi
18315
18316 fi
18317 case $host_os in
18318   # For platforms which do not support PIC, -DPIC is meaningless:
18319   *djgpp*)
18320     lt_prog_compiler_pic_GCJ=
18321     ;;
18322   *)
18323     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18324     ;;
18325 esac
18326
18327 #
18328 # Check to make sure the static flag actually works.
18329 #
18330 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18331 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18332 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18333 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18334   echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336   lt_prog_compiler_static_works_GCJ=no
18337    save_LDFLAGS="$LDFLAGS"
18338    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18339    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18340    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18341      # The linker can only warn and ignore the option if not recognized
18342      # So say no if there are warnings
18343      if test -s conftest.err; then
18344        # Append any errors to the config.log.
18345        cat conftest.err 1>&5
18346        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18347        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18348        if diff conftest.exp conftest.er2 >/dev/null; then
18349          lt_prog_compiler_static_works_GCJ=yes
18350        fi
18351      else
18352        lt_prog_compiler_static_works_GCJ=yes
18353      fi
18354    fi
18355    $rm conftest*
18356    LDFLAGS="$save_LDFLAGS"
18357
18358 fi
18359 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18360 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18361
18362 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18363     :
18364 else
18365     lt_prog_compiler_static_GCJ=
18366 fi
18367
18368
18369 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18370 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18371 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374   lt_cv_prog_compiler_c_o_GCJ=no
18375    $rm -r conftest 2>/dev/null
18376    mkdir conftest
18377    cd conftest
18378    mkdir out
18379    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18380
18381    lt_compiler_flag="-o out/conftest2.$ac_objext"
18382    # Insert the option either (1) after the last *FLAGS variable, or
18383    # (2) before a word containing "conftest.", or (3) at the end.
18384    # Note that $ac_compile itself does not contain backslashes and begins
18385    # with a dollar sign (not a hyphen), so the echo should work correctly.
18386    lt_compile=`echo "$ac_compile" | $SED \
18387    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18389    -e 's:$: $lt_compiler_flag:'`
18390    (eval echo "\"\$as_me:18390: $lt_compile\"" >&5)
18391    (eval "$lt_compile" 2>out/conftest.err)
18392    ac_status=$?
18393    cat out/conftest.err >&5
18394    echo "$as_me:18394: \$? = $ac_status" >&5
18395    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18396    then
18397      # The compiler can only warn and ignore the option if not recognized
18398      # So say no if there are warnings
18399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18400      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18401      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18402        lt_cv_prog_compiler_c_o_GCJ=yes
18403      fi
18404    fi
18405    chmod u+w . 2>&5
18406    $rm conftest*
18407    # SGI C++ compiler will create directory out/ii_files/ for
18408    # template instantiation
18409    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18410    $rm out/* && rmdir out
18411    cd ..
18412    rmdir conftest
18413    $rm conftest*
18414
18415 fi
18416 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18417 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18418
18419
18420 hard_links="nottested"
18421 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18422   # do not overwrite the value of need_locks provided by the user
18423   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18424 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18425   hard_links=yes
18426   $rm conftest*
18427   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18428   touch conftest.a
18429   ln conftest.a conftest.b 2>&5 || hard_links=no
18430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18431   { echo "$as_me:$LINENO: result: $hard_links" >&5
18432 echo "${ECHO_T}$hard_links" >&6; }
18433   if test "$hard_links" = no; then
18434     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18435 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18436     need_locks=warn
18437   fi
18438 else
18439   need_locks=no
18440 fi
18441
18442 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18443 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18444
18445   runpath_var=
18446   allow_undefined_flag_GCJ=
18447   enable_shared_with_static_runtimes_GCJ=no
18448   archive_cmds_GCJ=
18449   archive_expsym_cmds_GCJ=
18450   old_archive_From_new_cmds_GCJ=
18451   old_archive_from_expsyms_cmds_GCJ=
18452   export_dynamic_flag_spec_GCJ=
18453   whole_archive_flag_spec_GCJ=
18454   thread_safe_flag_spec_GCJ=
18455   hardcode_libdir_flag_spec_GCJ=
18456   hardcode_libdir_flag_spec_ld_GCJ=
18457   hardcode_libdir_separator_GCJ=
18458   hardcode_direct_GCJ=no
18459   hardcode_minus_L_GCJ=no
18460   hardcode_shlibpath_var_GCJ=unsupported
18461   link_all_deplibs_GCJ=unknown
18462   hardcode_automatic_GCJ=no
18463   module_cmds_GCJ=
18464   module_expsym_cmds_GCJ=
18465   always_export_symbols_GCJ=no
18466   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18467   # include_expsyms should be a list of space-separated symbols to be *always*
18468   # included in the symbol list
18469   include_expsyms_GCJ=
18470   # exclude_expsyms can be an extended regexp of symbols to exclude
18471   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18472   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18473   # as well as any symbol that contains `d'.
18474   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18475   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18476   # platforms (ab)use it in PIC code, but their linkers get confused if
18477   # the symbol is explicitly referenced.  Since portable code cannot
18478   # rely on this symbol name, it's probably fine to never include it in
18479   # preloaded symbol tables.
18480   extract_expsyms_cmds=
18481   # Just being paranoid about ensuring that cc_basename is set.
18482   for cc_temp in $compiler""; do
18483   case $cc_temp in
18484     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18485     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18486     \-*) ;;
18487     *) break;;
18488   esac
18489 done
18490 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18491
18492   case $host_os in
18493   cygwin* | mingw* | pw32*)
18494     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18495     # When not using gcc, we currently assume that we are using
18496     # Microsoft Visual C++.
18497     if test "$GCC" != yes; then
18498       with_gnu_ld=no
18499     fi
18500     ;;
18501   interix*)
18502     # we just hope/assume this is gcc and not c89 (= MSVC++)
18503     with_gnu_ld=yes
18504     ;;
18505   openbsd*)
18506     with_gnu_ld=no
18507     ;;
18508   esac
18509
18510   ld_shlibs_GCJ=yes
18511   if test "$with_gnu_ld" = yes; then
18512     # If archive_cmds runs LD, not CC, wlarc should be empty
18513     wlarc='${wl}'
18514
18515     # Set some defaults for GNU ld with shared library support. These
18516     # are reset later if shared libraries are not supported. Putting them
18517     # here allows them to be overridden if necessary.
18518     runpath_var=LD_RUN_PATH
18519     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18520     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18521     # ancient GNU ld didn't support --whole-archive et. al.
18522     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18523         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18524       else
18525         whole_archive_flag_spec_GCJ=
18526     fi
18527     supports_anon_versioning=no
18528     case `$LD -v 2>/dev/null` in
18529       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18530       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18531       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18532       *\ 2.11.*) ;; # other 2.11 versions
18533       *) supports_anon_versioning=yes ;;
18534     esac
18535
18536     # See if GNU ld supports shared libraries.
18537     case $host_os in
18538     aix3* | aix4* | aix5*)
18539       # On AIX/PPC, the GNU linker is very broken
18540       if test "$host_cpu" != ia64; then
18541         ld_shlibs_GCJ=no
18542         cat <<EOF 1>&2
18543
18544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18545 *** to be unable to reliably create shared libraries on AIX.
18546 *** Therefore, libtool is disabling shared libraries support.  If you
18547 *** really care for shared libraries, you may want to modify your PATH
18548 *** so that a non-GNU linker is found, and then restart.
18549
18550 EOF
18551       fi
18552       ;;
18553
18554     amigaos*)
18555       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)'
18556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557       hardcode_minus_L_GCJ=yes
18558
18559       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18560       # that the semantics of dynamic libraries on AmigaOS, at least up
18561       # to version 4, is to share data among multiple programs linked
18562       # with the same dynamic library.  Since this doesn't match the
18563       # behavior of shared libraries on other platforms, we can't use
18564       # them.
18565       ld_shlibs_GCJ=no
18566       ;;
18567
18568     beos*)
18569       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18570         allow_undefined_flag_GCJ=unsupported
18571         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18572         # support --undefined.  This deserves some investigation.  FIXME
18573         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574       else
18575         ld_shlibs_GCJ=no
18576       fi
18577       ;;
18578
18579     cygwin* | mingw* | pw32*)
18580       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18581       # as there is no search path for DLLs.
18582       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18583       allow_undefined_flag_GCJ=unsupported
18584       always_export_symbols_GCJ=no
18585       enable_shared_with_static_runtimes_GCJ=yes
18586       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18587
18588       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18589         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18590         # If the export-symbols file already is a .def file (1st line
18591         # is EXPORTS), use it as is; otherwise, prepend...
18592         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18593           cp $export_symbols $output_objdir/$soname.def;
18594         else
18595           echo EXPORTS > $output_objdir/$soname.def;
18596           cat $export_symbols >> $output_objdir/$soname.def;
18597         fi~
18598         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18599       else
18600         ld_shlibs_GCJ=no
18601       fi
18602       ;;
18603
18604     interix[3-9]*)
18605       hardcode_direct_GCJ=no
18606       hardcode_shlibpath_var_GCJ=no
18607       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18608       export_dynamic_flag_spec_GCJ='${wl}-E'
18609       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18610       # Instead, shared libraries are loaded at an image base (0x10000000 by
18611       # default) and relocated if they conflict, which is a slow very memory
18612       # consuming and fragmenting process.  To avoid this, we pick a random,
18613       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18614       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18615       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'
18616       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'
18617       ;;
18618
18619     gnu* | linux* | k*bsd*-gnu)
18620       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18621         tmp_addflag=
18622         case $cc_basename,$host_cpu in
18623         pgcc*)                          # Portland Group C compiler
18624           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'
18625           tmp_addflag=' $pic_flag'
18626           ;;
18627         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18628           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'
18629           tmp_addflag=' $pic_flag -Mnomain' ;;
18630         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18631           tmp_addflag=' -i_dynamic' ;;
18632         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18633           tmp_addflag=' -i_dynamic -nofor_main' ;;
18634         ifc* | ifort*)                  # Intel Fortran compiler
18635           tmp_addflag=' -nofor_main' ;;
18636         esac
18637         case `$CC -V 2>&1 | sed 5q` in
18638         *Sun\ C*)                       # Sun C 5.9
18639           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18640           tmp_sharedflag='-G' ;;
18641         *Sun\ F*)                       # Sun Fortran 8.3
18642           tmp_sharedflag='-G' ;;
18643         *)
18644           tmp_sharedflag='-shared' ;;
18645         esac
18646         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18647
18648         if test $supports_anon_versioning = yes; then
18649           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18650   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18651   $echo "local: *; };" >> $output_objdir/$libname.ver~
18652           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18653         fi
18654         link_all_deplibs_GCJ=no
18655       else
18656         ld_shlibs_GCJ=no
18657       fi
18658       ;;
18659
18660     netbsd* | netbsdelf*-gnu)
18661       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18662         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18663         wlarc=
18664       else
18665         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18666         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18667       fi
18668       ;;
18669
18670     solaris*)
18671       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18672         ld_shlibs_GCJ=no
18673         cat <<EOF 1>&2
18674
18675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18676 *** create shared libraries on Solaris systems.  Therefore, libtool
18677 *** is disabling shared libraries support.  We urge you to upgrade GNU
18678 *** binutils to release 2.9.1 or newer.  Another option is to modify
18679 *** your PATH or compiler configuration so that the native linker is
18680 *** used, and then restart.
18681
18682 EOF
18683       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18684         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18685         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18686       else
18687         ld_shlibs_GCJ=no
18688       fi
18689       ;;
18690
18691     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18692       case `$LD -v 2>&1` in
18693         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18694         ld_shlibs_GCJ=no
18695         cat <<_LT_EOF 1>&2
18696
18697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18698 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18699 *** is disabling shared libraries support.  We urge you to upgrade GNU
18700 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18701 *** your PATH or compiler configuration so that the native linker is
18702 *** used, and then restart.
18703
18704 _LT_EOF
18705         ;;
18706         *)
18707           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18708             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18709             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18710             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18711           else
18712             ld_shlibs_GCJ=no
18713           fi
18714         ;;
18715       esac
18716       ;;
18717
18718     sunos4*)
18719       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18720       wlarc=
18721       hardcode_direct_GCJ=yes
18722       hardcode_shlibpath_var_GCJ=no
18723       ;;
18724
18725     *)
18726       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18727         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18728         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18729       else
18730         ld_shlibs_GCJ=no
18731       fi
18732       ;;
18733     esac
18734
18735     if test "$ld_shlibs_GCJ" = no; then
18736       runpath_var=
18737       hardcode_libdir_flag_spec_GCJ=
18738       export_dynamic_flag_spec_GCJ=
18739       whole_archive_flag_spec_GCJ=
18740     fi
18741   else
18742     # PORTME fill in a description of your system's linker (not GNU ld)
18743     case $host_os in
18744     aix3*)
18745       allow_undefined_flag_GCJ=unsupported
18746       always_export_symbols_GCJ=yes
18747       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'
18748       # Note: this linker hardcodes the directories in LIBPATH if there
18749       # are no directories specified by -L.
18750       hardcode_minus_L_GCJ=yes
18751       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18752         # Neither direct hardcoding nor static linking is supported with a
18753         # broken collect2.
18754         hardcode_direct_GCJ=unsupported
18755       fi
18756       ;;
18757
18758     aix4* | aix5*)
18759       if test "$host_cpu" = ia64; then
18760         # On IA64, the linker does run time linking by default, so we don't
18761         # have to do anything special.
18762         aix_use_runtimelinking=no
18763         exp_sym_flag='-Bexport'
18764         no_entry_flag=""
18765       else
18766         # If we're using GNU nm, then we don't want the "-C" option.
18767         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18768         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18769           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'
18770         else
18771           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'
18772         fi
18773         aix_use_runtimelinking=no
18774
18775         # Test if we are trying to use run time linking or normal
18776         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18777         # need to do runtime linking.
18778         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18779           for ld_flag in $LDFLAGS; do
18780           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18781             aix_use_runtimelinking=yes
18782             break
18783           fi
18784           done
18785           ;;
18786         esac
18787
18788         exp_sym_flag='-bexport'
18789         no_entry_flag='-bnoentry'
18790       fi
18791
18792       # When large executables or shared objects are built, AIX ld can
18793       # have problems creating the table of contents.  If linking a library
18794       # or program results in "error TOC overflow" add -mminimal-toc to
18795       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18796       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18797
18798       archive_cmds_GCJ=''
18799       hardcode_direct_GCJ=yes
18800       hardcode_libdir_separator_GCJ=':'
18801       link_all_deplibs_GCJ=yes
18802
18803       if test "$GCC" = yes; then
18804         case $host_os in aix4.[012]|aix4.[012].*)
18805         # We only want to do this on AIX 4.2 and lower, the check
18806         # below for broken collect2 doesn't work under 4.3+
18807           collect2name=`${CC} -print-prog-name=collect2`
18808           if test -f "$collect2name" && \
18809            strings "$collect2name" | grep resolve_lib_name >/dev/null
18810           then
18811           # We have reworked collect2
18812           :
18813           else
18814           # We have old collect2
18815           hardcode_direct_GCJ=unsupported
18816           # It fails to find uninstalled libraries when the uninstalled
18817           # path is not listed in the libpath.  Setting hardcode_minus_L
18818           # to unsupported forces relinking
18819           hardcode_minus_L_GCJ=yes
18820           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18821           hardcode_libdir_separator_GCJ=
18822           fi
18823           ;;
18824         esac
18825         shared_flag='-shared'
18826         if test "$aix_use_runtimelinking" = yes; then
18827           shared_flag="$shared_flag "'${wl}-G'
18828         fi
18829       else
18830         # not using gcc
18831         if test "$host_cpu" = ia64; then
18832         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18833         # chokes on -Wl,-G. The following line is correct:
18834           shared_flag='-G'
18835         else
18836           if test "$aix_use_runtimelinking" = yes; then
18837             shared_flag='${wl}-G'
18838           else
18839             shared_flag='${wl}-bM:SRE'
18840           fi
18841         fi
18842       fi
18843
18844       # It seems that -bexpall does not export symbols beginning with
18845       # underscore (_), so it is better to generate a list of symbols to export.
18846       always_export_symbols_GCJ=yes
18847       if test "$aix_use_runtimelinking" = yes; then
18848         # Warning - without using the other runtime loading flags (-brtl),
18849         # -berok will link without error, but may produce a broken library.
18850         allow_undefined_flag_GCJ='-berok'
18851        # Determine the default libpath from the value encoded in an empty executable.
18852        cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858
18859 int
18860 main ()
18861 {
18862
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_link") 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } && {
18881          test -z "$ac_c_werror_flag" ||
18882          test ! -s conftest.err
18883        } && test -s conftest$ac_exeext &&
18884        $as_test_x conftest$ac_exeext; then
18885
18886 lt_aix_libpath_sed='
18887     /Import File Strings/,/^$/ {
18888         /^0/ {
18889             s/^0  *\(.*\)$/\1/
18890             p
18891         }
18892     }'
18893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18894 # Check for a 64-bit object if we didn't find anything.
18895 if test -z "$aix_libpath"; then
18896   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18897 fi
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902
18903 fi
18904
18905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18906       conftest$ac_exeext conftest.$ac_ext
18907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18908
18909        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18910         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"
18911        else
18912         if test "$host_cpu" = ia64; then
18913           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18914           allow_undefined_flag_GCJ="-z nodefs"
18915           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"
18916         else
18917          # Determine the default libpath from the value encoded in an empty executable.
18918          cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924
18925 int
18926 main ()
18927 {
18928
18929   ;
18930   return 0;
18931 }
18932 _ACEOF
18933 rm -f conftest.$ac_objext conftest$ac_exeext
18934 if { (ac_try="$ac_link"
18935 case "(($ac_try" in
18936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937   *) ac_try_echo=$ac_try;;
18938 esac
18939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940   (eval "$ac_link") 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } && {
18947          test -z "$ac_c_werror_flag" ||
18948          test ! -s conftest.err
18949        } && test -s conftest$ac_exeext &&
18950        $as_test_x conftest$ac_exeext; then
18951
18952 lt_aix_libpath_sed='
18953     /Import File Strings/,/^$/ {
18954         /^0/ {
18955             s/^0  *\(.*\)$/\1/
18956             p
18957         }
18958     }'
18959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18960 # Check for a 64-bit object if we didn't find anything.
18961 if test -z "$aix_libpath"; then
18962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18963 fi
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972       conftest$ac_exeext conftest.$ac_ext
18973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18974
18975          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18976           # Warning - without using the other run time loading flags,
18977           # -berok will link without error, but may produce a broken library.
18978           no_undefined_flag_GCJ=' ${wl}-bernotok'
18979           allow_undefined_flag_GCJ=' ${wl}-berok'
18980           # Exported symbols can be pulled into shared objects from archives
18981           whole_archive_flag_spec_GCJ='$convenience'
18982           archive_cmds_need_lc_GCJ=yes
18983           # This is similar to how AIX traditionally builds its shared libraries.
18984           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'
18985         fi
18986       fi
18987       ;;
18988
18989     amigaos*)
18990       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)'
18991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18992       hardcode_minus_L_GCJ=yes
18993       # see comment about different semantics on the GNU ld section
18994       ld_shlibs_GCJ=no
18995       ;;
18996
18997     bsdi[45]*)
18998       export_dynamic_flag_spec_GCJ=-rdynamic
18999       ;;
19000
19001     cygwin* | mingw* | pw32*)
19002       # When not using gcc, we currently assume that we are using
19003       # Microsoft Visual C++.
19004       # hardcode_libdir_flag_spec is actually meaningless, as there is
19005       # no search path for DLLs.
19006       hardcode_libdir_flag_spec_GCJ=' '
19007       allow_undefined_flag_GCJ=unsupported
19008       # Tell ltmain to make .lib files, not .a files.
19009       libext=lib
19010       # Tell ltmain to make .dll files, not .so files.
19011       shrext_cmds=".dll"
19012       # FIXME: Setting linknames here is a bad hack.
19013       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19014       # The linker will automatically build a .lib file if we build a DLL.
19015       old_archive_From_new_cmds_GCJ='true'
19016       # FIXME: Should let the user specify the lib program.
19017       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19018       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19019       enable_shared_with_static_runtimes_GCJ=yes
19020       ;;
19021
19022     darwin* | rhapsody*)
19023       case $host_os in
19024         rhapsody* | darwin1.[012])
19025          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19026          ;;
19027        *) # Darwin 1.3 on
19028          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19029            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19030          else
19031            case ${MACOSX_DEPLOYMENT_TARGET} in
19032              10.[012])
19033                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19034                ;;
19035              10.*)
19036                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19037                ;;
19038            esac
19039          fi
19040          ;;
19041       esac
19042       archive_cmds_need_lc_GCJ=no
19043       hardcode_direct_GCJ=no
19044       hardcode_automatic_GCJ=yes
19045       hardcode_shlibpath_var_GCJ=unsupported
19046       whole_archive_flag_spec_GCJ=''
19047       link_all_deplibs_GCJ=yes
19048     if test "$GCC" = yes ; then
19049         output_verbose_link_cmd='echo'
19050         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19051       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19052       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19053       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}'
19054       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}'
19055     else
19056       case $cc_basename in
19057         xlc*)
19058          output_verbose_link_cmd='echo'
19059          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19060          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19061           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19062          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19063           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}'
19064           ;;
19065        *)
19066          ld_shlibs_GCJ=no
19067           ;;
19068       esac
19069     fi
19070       ;;
19071
19072     dgux*)
19073       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19074       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19075       hardcode_shlibpath_var_GCJ=no
19076       ;;
19077
19078     freebsd1*)
19079       ld_shlibs_GCJ=no
19080       ;;
19081
19082     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19083     # support.  Future versions do this automatically, but an explicit c++rt0.o
19084     # does not break anything, and helps significantly (at the cost of a little
19085     # extra space).
19086     freebsd2.2*)
19087       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19088       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19089       hardcode_direct_GCJ=yes
19090       hardcode_shlibpath_var_GCJ=no
19091       ;;
19092
19093     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19094     freebsd2*)
19095       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19096       hardcode_direct_GCJ=yes
19097       hardcode_minus_L_GCJ=yes
19098       hardcode_shlibpath_var_GCJ=no
19099       ;;
19100
19101     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19102     freebsd* | dragonfly*)
19103       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19104       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19105       hardcode_direct_GCJ=yes
19106       hardcode_shlibpath_var_GCJ=no
19107       ;;
19108
19109     hpux9*)
19110       if test "$GCC" = yes; then
19111         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'
19112       else
19113         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'
19114       fi
19115       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19116       hardcode_libdir_separator_GCJ=:
19117       hardcode_direct_GCJ=yes
19118
19119       # hardcode_minus_L: Not really in the search PATH,
19120       # but as the default location of the library.
19121       hardcode_minus_L_GCJ=yes
19122       export_dynamic_flag_spec_GCJ='${wl}-E'
19123       ;;
19124
19125     hpux10*)
19126       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19127         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19128       else
19129         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19130       fi
19131       if test "$with_gnu_ld" = no; then
19132         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19133         hardcode_libdir_separator_GCJ=:
19134
19135         hardcode_direct_GCJ=yes
19136         export_dynamic_flag_spec_GCJ='${wl}-E'
19137
19138         # hardcode_minus_L: Not really in the search PATH,
19139         # but as the default location of the library.
19140         hardcode_minus_L_GCJ=yes
19141       fi
19142       ;;
19143
19144     hpux11*)
19145       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19146         case $host_cpu in
19147         hppa*64*)
19148           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19149           ;;
19150         ia64*)
19151           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19152           ;;
19153         *)
19154           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19155           ;;
19156         esac
19157       else
19158         case $host_cpu in
19159         hppa*64*)
19160           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19161           ;;
19162         ia64*)
19163           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19164           ;;
19165         *)
19166           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19167           ;;
19168         esac
19169       fi
19170       if test "$with_gnu_ld" = no; then
19171         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19172         hardcode_libdir_separator_GCJ=:
19173
19174         case $host_cpu in
19175         hppa*64*|ia64*)
19176           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19177           hardcode_direct_GCJ=no
19178           hardcode_shlibpath_var_GCJ=no
19179           ;;
19180         *)
19181           hardcode_direct_GCJ=yes
19182           export_dynamic_flag_spec_GCJ='${wl}-E'
19183
19184           # hardcode_minus_L: Not really in the search PATH,
19185           # but as the default location of the library.
19186           hardcode_minus_L_GCJ=yes
19187           ;;
19188         esac
19189       fi
19190       ;;
19191
19192     irix5* | irix6* | nonstopux*)
19193       if test "$GCC" = yes; then
19194         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'
19195       else
19196         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'
19197         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19198       fi
19199       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19200       hardcode_libdir_separator_GCJ=:
19201       link_all_deplibs_GCJ=yes
19202       ;;
19203
19204     netbsd* | netbsdelf*-gnu)
19205       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19206         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19207       else
19208         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19209       fi
19210       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19211       hardcode_direct_GCJ=yes
19212       hardcode_shlibpath_var_GCJ=no
19213       ;;
19214
19215     newsos6)
19216       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19217       hardcode_direct_GCJ=yes
19218       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19219       hardcode_libdir_separator_GCJ=:
19220       hardcode_shlibpath_var_GCJ=no
19221       ;;
19222
19223     openbsd*)
19224       if test -f /usr/libexec/ld.so; then
19225         hardcode_direct_GCJ=yes
19226         hardcode_shlibpath_var_GCJ=no
19227         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19229           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19230           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19231           export_dynamic_flag_spec_GCJ='${wl}-E'
19232         else
19233           case $host_os in
19234            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19235              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19236              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19237              ;;
19238            *)
19239              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19240              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19241              ;;
19242           esac
19243         fi
19244       else
19245         ld_shlibs_GCJ=no
19246       fi
19247       ;;
19248
19249     os2*)
19250       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19251       hardcode_minus_L_GCJ=yes
19252       allow_undefined_flag_GCJ=unsupported
19253       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'
19254       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19255       ;;
19256
19257     osf3*)
19258       if test "$GCC" = yes; then
19259         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19260         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'
19261       else
19262         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19263         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'
19264       fi
19265       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19266       hardcode_libdir_separator_GCJ=:
19267       ;;
19268
19269     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19270       if test "$GCC" = yes; then
19271         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19272         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'
19273         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19274       else
19275         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19276         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'
19277         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~
19278         $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'
19279
19280         # Both c and cxx compiler support -rpath directly
19281         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19282       fi
19283       hardcode_libdir_separator_GCJ=:
19284       ;;
19285
19286     solaris*)
19287       no_undefined_flag_GCJ=' -z text'
19288       if test "$GCC" = yes; then
19289         wlarc='${wl}'
19290         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19291         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19292           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19293       else
19294         wlarc=''
19295         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19296         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19297         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19298       fi
19299       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19300       hardcode_shlibpath_var_GCJ=no
19301       case $host_os in
19302       solaris2.[0-5] | solaris2.[0-5].*) ;;
19303       *)
19304         # The compiler driver will combine and reorder linker options,
19305         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19306         # but is careful enough not to reorder.
19307         # Supported since Solaris 2.6 (maybe 2.5.1?)
19308         if test "$GCC" = yes; then
19309           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19310         else
19311           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19312         fi
19313         ;;
19314       esac
19315       link_all_deplibs_GCJ=yes
19316       ;;
19317
19318     sunos4*)
19319       if test "x$host_vendor" = xsequent; then
19320         # Use $CC to link under sequent, because it throws in some extra .o
19321         # files that make .init and .fini sections work.
19322         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19323       else
19324         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19325       fi
19326       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19327       hardcode_direct_GCJ=yes
19328       hardcode_minus_L_GCJ=yes
19329       hardcode_shlibpath_var_GCJ=no
19330       ;;
19331
19332     sysv4)
19333       case $host_vendor in
19334         sni)
19335           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19336           hardcode_direct_GCJ=yes # is this really true???
19337         ;;
19338         siemens)
19339           ## LD is ld it makes a PLAMLIB
19340           ## CC just makes a GrossModule.
19341           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19342           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19343           hardcode_direct_GCJ=no
19344         ;;
19345         motorola)
19346           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19347           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19348         ;;
19349       esac
19350       runpath_var='LD_RUN_PATH'
19351       hardcode_shlibpath_var_GCJ=no
19352       ;;
19353
19354     sysv4.3*)
19355       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356       hardcode_shlibpath_var_GCJ=no
19357       export_dynamic_flag_spec_GCJ='-Bexport'
19358       ;;
19359
19360     sysv4*MP*)
19361       if test -d /usr/nec; then
19362         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19363         hardcode_shlibpath_var_GCJ=no
19364         runpath_var=LD_RUN_PATH
19365         hardcode_runpath_var=yes
19366         ld_shlibs_GCJ=yes
19367       fi
19368       ;;
19369
19370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19371       no_undefined_flag_GCJ='${wl}-z,text'
19372       archive_cmds_need_lc_GCJ=no
19373       hardcode_shlibpath_var_GCJ=no
19374       runpath_var='LD_RUN_PATH'
19375
19376       if test "$GCC" = yes; then
19377         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19378         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19379       else
19380         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19381         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19382       fi
19383       ;;
19384
19385     sysv5* | sco3.2v5* | sco5v6*)
19386       # Note: We can NOT use -z defs as we might desire, because we do not
19387       # link with -lc, and that would cause any symbols used from libc to
19388       # always be unresolved, which means just about no library would
19389       # ever link correctly.  If we're not using GNU ld we use -z text
19390       # though, which does catch some bad symbols but isn't as heavy-handed
19391       # as -z defs.
19392       no_undefined_flag_GCJ='${wl}-z,text'
19393       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19394       archive_cmds_need_lc_GCJ=no
19395       hardcode_shlibpath_var_GCJ=no
19396       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19397       hardcode_libdir_separator_GCJ=':'
19398       link_all_deplibs_GCJ=yes
19399       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19400       runpath_var='LD_RUN_PATH'
19401
19402       if test "$GCC" = yes; then
19403         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19404         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19405       else
19406         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19407         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19408       fi
19409       ;;
19410
19411     uts4*)
19412       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19413       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19414       hardcode_shlibpath_var_GCJ=no
19415       ;;
19416
19417     *)
19418       ld_shlibs_GCJ=no
19419       ;;
19420     esac
19421   fi
19422
19423 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19424 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19425 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19426
19427 #
19428 # Do we need to explicitly link libc?
19429 #
19430 case "x$archive_cmds_need_lc_GCJ" in
19431 x|xyes)
19432   # Assume -lc should be added
19433   archive_cmds_need_lc_GCJ=yes
19434
19435   if test "$enable_shared" = yes && test "$GCC" = yes; then
19436     case $archive_cmds_GCJ in
19437     *'~'*)
19438       # FIXME: we may have to deal with multi-command sequences.
19439       ;;
19440     '$CC '*)
19441       # Test whether the compiler implicitly links with -lc since on some
19442       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19443       # to ld, don't add -lc before -lgcc.
19444       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19445 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19446       $rm conftest*
19447       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19448
19449       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450   (eval $ac_compile) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } 2>conftest.err; then
19454         soname=conftest
19455         lib=conftest
19456         libobjs=conftest.$ac_objext
19457         deplibs=
19458         wl=$lt_prog_compiler_wl_GCJ
19459         pic_flag=$lt_prog_compiler_pic_GCJ
19460         compiler_flags=-v
19461         linker_flags=-v
19462         verstring=
19463         output_objdir=.
19464         libname=conftest
19465         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19466         allow_undefined_flag_GCJ=
19467         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19468   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }
19472         then
19473           archive_cmds_need_lc_GCJ=no
19474         else
19475           archive_cmds_need_lc_GCJ=yes
19476         fi
19477         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19478       else
19479         cat conftest.err 1>&5
19480       fi
19481       $rm conftest*
19482       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19483 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19484       ;;
19485     esac
19486   fi
19487   ;;
19488 esac
19489
19490 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19491 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19492 library_names_spec=
19493 libname_spec='lib$name'
19494 soname_spec=
19495 shrext_cmds=".so"
19496 postinstall_cmds=
19497 postuninstall_cmds=
19498 finish_cmds=
19499 finish_eval=
19500 shlibpath_var=
19501 shlibpath_overrides_runpath=unknown
19502 version_type=none
19503 dynamic_linker="$host_os ld.so"
19504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19505
19506 need_lib_prefix=unknown
19507 hardcode_into_libs=no
19508
19509 # when you set need_version to no, make sure it does not cause -set_version
19510 # flags to be left without arguments
19511 need_version=unknown
19512
19513 case $host_os in
19514 aix3*)
19515   version_type=linux
19516   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19517   shlibpath_var=LIBPATH
19518
19519   # AIX 3 has no versioning support, so we append a major version to the name.
19520   soname_spec='${libname}${release}${shared_ext}$major'
19521   ;;
19522
19523 aix4* | aix5*)
19524   version_type=linux
19525   need_lib_prefix=no
19526   need_version=no
19527   hardcode_into_libs=yes
19528   if test "$host_cpu" = ia64; then
19529     # AIX 5 supports IA64
19530     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19531     shlibpath_var=LD_LIBRARY_PATH
19532   else
19533     # With GCC up to 2.95.x, collect2 would create an import file
19534     # for dependence libraries.  The import file would start with
19535     # the line `#! .'.  This would cause the generated library to
19536     # depend on `.', always an invalid library.  This was fixed in
19537     # development snapshots of GCC prior to 3.0.
19538     case $host_os in
19539       aix4 | aix4.[01] | aix4.[01].*)
19540       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19541            echo ' yes '
19542            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19543         :
19544       else
19545         can_build_shared=no
19546       fi
19547       ;;
19548     esac
19549     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19550     # soname into executable. Probably we can add versioning support to
19551     # collect2, so additional links can be useful in future.
19552     if test "$aix_use_runtimelinking" = yes; then
19553       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19554       # instead of lib<name>.a to let people know that these are not
19555       # typical AIX shared libraries.
19556       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19557     else
19558       # We preserve .a as extension for shared libraries through AIX4.2
19559       # and later when we are not doing run time linking.
19560       library_names_spec='${libname}${release}.a $libname.a'
19561       soname_spec='${libname}${release}${shared_ext}$major'
19562     fi
19563     shlibpath_var=LIBPATH
19564   fi
19565   ;;
19566
19567 amigaos*)
19568   library_names_spec='$libname.ixlibrary $libname.a'
19569   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19570   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'
19571   ;;
19572
19573 beos*)
19574   library_names_spec='${libname}${shared_ext}'
19575   dynamic_linker="$host_os ld.so"
19576   shlibpath_var=LIBRARY_PATH
19577   ;;
19578
19579 bsdi[45]*)
19580   version_type=linux
19581   need_version=no
19582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19583   soname_spec='${libname}${release}${shared_ext}$major'
19584   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19585   shlibpath_var=LD_LIBRARY_PATH
19586   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19587   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19588   # the default ld.so.conf also contains /usr/contrib/lib and
19589   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19590   # libtool to hard-code these into programs
19591   ;;
19592
19593 cygwin* | mingw* | pw32*)
19594   version_type=windows
19595   shrext_cmds=".dll"
19596   need_version=no
19597   need_lib_prefix=no
19598
19599   case $GCC,$host_os in
19600   yes,cygwin* | yes,mingw* | yes,pw32*)
19601     library_names_spec='$libname.dll.a'
19602     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19603     postinstall_cmds='base_file=`basename \${file}`~
19604       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19605       dldir=$destdir/`dirname \$dlpath`~
19606       test -d \$dldir || mkdir -p \$dldir~
19607       $install_prog $dir/$dlname \$dldir/$dlname~
19608       chmod a+x \$dldir/$dlname'
19609     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19610       dlpath=$dir/\$dldll~
19611        $rm \$dlpath'
19612     shlibpath_overrides_runpath=yes
19613
19614     case $host_os in
19615     cygwin*)
19616       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19617       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19618       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19619       ;;
19620     mingw*)
19621       # MinGW DLLs use traditional 'lib' prefix
19622       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19623       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19624       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19625         # It is most probably a Windows format PATH printed by
19626         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19627         # path with ; separators, and with drive letters. We can handle the
19628         # drive letters (cygwin fileutils understands them), so leave them,
19629         # especially as we might pass files found there to a mingw objdump,
19630         # which wouldn't understand a cygwinified path. Ahh.
19631         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19632       else
19633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19634       fi
19635       ;;
19636     pw32*)
19637       # pw32 DLLs use 'pw' prefix rather than 'lib'
19638       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19639       ;;
19640     esac
19641     ;;
19642
19643   *)
19644     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19645     ;;
19646   esac
19647   dynamic_linker='Win32 ld.exe'
19648   # FIXME: first we should search . and the directory the executable is in
19649   shlibpath_var=PATH
19650   ;;
19651
19652 darwin* | rhapsody*)
19653   dynamic_linker="$host_os dyld"
19654   version_type=darwin
19655   need_lib_prefix=no
19656   need_version=no
19657   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19658   soname_spec='${libname}${release}${major}$shared_ext'
19659   shlibpath_overrides_runpath=yes
19660   shlibpath_var=DYLD_LIBRARY_PATH
19661   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19662
19663   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19664   ;;
19665
19666 dgux*)
19667   version_type=linux
19668   need_lib_prefix=no
19669   need_version=no
19670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19671   soname_spec='${libname}${release}${shared_ext}$major'
19672   shlibpath_var=LD_LIBRARY_PATH
19673   ;;
19674
19675 freebsd1*)
19676   dynamic_linker=no
19677   ;;
19678
19679 freebsd* | dragonfly*)
19680   # DragonFly does not have aout.  When/if they implement a new
19681   # versioning mechanism, adjust this.
19682   if test -x /usr/bin/objformat; then
19683     objformat=`/usr/bin/objformat`
19684   else
19685     case $host_os in
19686     freebsd[123]*) objformat=aout ;;
19687     *) objformat=elf ;;
19688     esac
19689   fi
19690   version_type=freebsd-$objformat
19691   case $version_type in
19692     freebsd-elf*)
19693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19694       need_version=no
19695       need_lib_prefix=no
19696       ;;
19697     freebsd-*)
19698       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19699       need_version=yes
19700       ;;
19701   esac
19702   shlibpath_var=LD_LIBRARY_PATH
19703   case $host_os in
19704   freebsd2*)
19705     shlibpath_overrides_runpath=yes
19706     ;;
19707   freebsd3.[01]* | freebsdelf3.[01]*)
19708     shlibpath_overrides_runpath=yes
19709     hardcode_into_libs=yes
19710     ;;
19711   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19712   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19713     shlibpath_overrides_runpath=no
19714     hardcode_into_libs=yes
19715     ;;
19716   *) # from 4.6 on, and DragonFly
19717     shlibpath_overrides_runpath=yes
19718     hardcode_into_libs=yes
19719     ;;
19720   esac
19721   ;;
19722
19723 gnu*)
19724   version_type=linux
19725   need_lib_prefix=no
19726   need_version=no
19727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19728   soname_spec='${libname}${release}${shared_ext}$major'
19729   shlibpath_var=LD_LIBRARY_PATH
19730   hardcode_into_libs=yes
19731   ;;
19732
19733 hpux9* | hpux10* | hpux11*)
19734   # Give a soname corresponding to the major version so that dld.sl refuses to
19735   # link against other versions.
19736   version_type=sunos
19737   need_lib_prefix=no
19738   need_version=no
19739   case $host_cpu in
19740   ia64*)
19741     shrext_cmds='.so'
19742     hardcode_into_libs=yes
19743     dynamic_linker="$host_os dld.so"
19744     shlibpath_var=LD_LIBRARY_PATH
19745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747     soname_spec='${libname}${release}${shared_ext}$major'
19748     if test "X$HPUX_IA64_MODE" = X32; then
19749       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19750     else
19751       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19752     fi
19753     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19754     ;;
19755    hppa*64*)
19756      shrext_cmds='.sl'
19757      hardcode_into_libs=yes
19758      dynamic_linker="$host_os dld.sl"
19759      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19760      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19762      soname_spec='${libname}${release}${shared_ext}$major'
19763      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19764      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19765      ;;
19766    *)
19767     shrext_cmds='.sl'
19768     dynamic_linker="$host_os dld.sl"
19769     shlibpath_var=SHLIB_PATH
19770     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19772     soname_spec='${libname}${release}${shared_ext}$major'
19773     ;;
19774   esac
19775   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19776   postinstall_cmds='chmod 555 $lib'
19777   ;;
19778
19779 interix[3-9]*)
19780   version_type=linux
19781   need_lib_prefix=no
19782   need_version=no
19783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19784   soname_spec='${libname}${release}${shared_ext}$major'
19785   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19786   shlibpath_var=LD_LIBRARY_PATH
19787   shlibpath_overrides_runpath=no
19788   hardcode_into_libs=yes
19789   ;;
19790
19791 irix5* | irix6* | nonstopux*)
19792   case $host_os in
19793     nonstopux*) version_type=nonstopux ;;
19794     *)
19795         if test "$lt_cv_prog_gnu_ld" = yes; then
19796                 version_type=linux
19797         else
19798                 version_type=irix
19799         fi ;;
19800   esac
19801   need_lib_prefix=no
19802   need_version=no
19803   soname_spec='${libname}${release}${shared_ext}$major'
19804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19805   case $host_os in
19806   irix5* | nonstopux*)
19807     libsuff= shlibsuff=
19808     ;;
19809   *)
19810     case $LD in # libtool.m4 will add one of these switches to LD
19811     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19812       libsuff= shlibsuff= libmagic=32-bit;;
19813     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19814       libsuff=32 shlibsuff=N32 libmagic=N32;;
19815     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19816       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19817     *) libsuff= shlibsuff= libmagic=never-match;;
19818     esac
19819     ;;
19820   esac
19821   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19822   shlibpath_overrides_runpath=no
19823   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19824   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19825   hardcode_into_libs=yes
19826   ;;
19827
19828 # No shared lib support for Linux oldld, aout, or coff.
19829 linux*oldld* | linux*aout* | linux*coff*)
19830   dynamic_linker=no
19831   ;;
19832
19833 # This must be Linux ELF.
19834 linux* | k*bsd*-gnu)
19835   version_type=linux
19836   need_lib_prefix=no
19837   need_version=no
19838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839   soname_spec='${libname}${release}${shared_ext}$major'
19840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19841   shlibpath_var=LD_LIBRARY_PATH
19842   shlibpath_overrides_runpath=no
19843   # This implies no fast_install, which is unacceptable.
19844   # Some rework will be needed to allow for fast_install
19845   # before this can be enabled.
19846   hardcode_into_libs=yes
19847
19848   # Append ld.so.conf contents to the search path
19849   if test -f /etc/ld.so.conf; then
19850     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19851     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19852   fi
19853
19854   # We used to test for /lib/ld.so.1 and disable shared libraries on
19855   # powerpc, because MkLinux only supported shared libraries with the
19856   # GNU dynamic linker.  Since this was broken with cross compilers,
19857   # most powerpc-linux boxes support dynamic linking these days and
19858   # people can always --disable-shared, the test was removed, and we
19859   # assume the GNU/Linux dynamic linker is in use.
19860   dynamic_linker='GNU/Linux ld.so'
19861   ;;
19862
19863 netbsdelf*-gnu)
19864   version_type=linux
19865   need_lib_prefix=no
19866   need_version=no
19867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19868   soname_spec='${libname}${release}${shared_ext}$major'
19869   shlibpath_var=LD_LIBRARY_PATH
19870   shlibpath_overrides_runpath=no
19871   hardcode_into_libs=yes
19872   dynamic_linker='NetBSD ld.elf_so'
19873   ;;
19874
19875 netbsd*)
19876   version_type=sunos
19877   need_lib_prefix=no
19878   need_version=no
19879   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19882     dynamic_linker='NetBSD (a.out) ld.so'
19883   else
19884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19885     soname_spec='${libname}${release}${shared_ext}$major'
19886     dynamic_linker='NetBSD ld.elf_so'
19887   fi
19888   shlibpath_var=LD_LIBRARY_PATH
19889   shlibpath_overrides_runpath=yes
19890   hardcode_into_libs=yes
19891   ;;
19892
19893 newsos6)
19894   version_type=linux
19895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896   shlibpath_var=LD_LIBRARY_PATH
19897   shlibpath_overrides_runpath=yes
19898   ;;
19899
19900 nto-qnx*)
19901   version_type=linux
19902   need_lib_prefix=no
19903   need_version=no
19904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19905   soname_spec='${libname}${release}${shared_ext}$major'
19906   shlibpath_var=LD_LIBRARY_PATH
19907   shlibpath_overrides_runpath=yes
19908   ;;
19909
19910 openbsd*)
19911   version_type=sunos
19912   sys_lib_dlsearch_path_spec="/usr/lib"
19913   need_lib_prefix=no
19914   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19915   case $host_os in
19916     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19917     *)                         need_version=no  ;;
19918   esac
19919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19920   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19921   shlibpath_var=LD_LIBRARY_PATH
19922   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19923     case $host_os in
19924       openbsd2.[89] | openbsd2.[89].*)
19925         shlibpath_overrides_runpath=no
19926         ;;
19927       *)
19928         shlibpath_overrides_runpath=yes
19929         ;;
19930       esac
19931   else
19932     shlibpath_overrides_runpath=yes
19933   fi
19934   ;;
19935
19936 os2*)
19937   libname_spec='$name'
19938   shrext_cmds=".dll"
19939   need_lib_prefix=no
19940   library_names_spec='$libname${shared_ext} $libname.a'
19941   dynamic_linker='OS/2 ld.exe'
19942   shlibpath_var=LIBPATH
19943   ;;
19944
19945 osf3* | osf4* | osf5*)
19946   version_type=osf
19947   need_lib_prefix=no
19948   need_version=no
19949   soname_spec='${libname}${release}${shared_ext}$major'
19950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951   shlibpath_var=LD_LIBRARY_PATH
19952   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19953   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19954   ;;
19955
19956 rdos*)
19957   dynamic_linker=no
19958   ;;
19959
19960 solaris*)
19961   version_type=linux
19962   need_lib_prefix=no
19963   need_version=no
19964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19965   soname_spec='${libname}${release}${shared_ext}$major'
19966   shlibpath_var=LD_LIBRARY_PATH
19967   shlibpath_overrides_runpath=yes
19968   hardcode_into_libs=yes
19969   # ldd complains unless libraries are executable
19970   postinstall_cmds='chmod +x $lib'
19971   ;;
19972
19973 sunos4*)
19974   version_type=sunos
19975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19976   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19977   shlibpath_var=LD_LIBRARY_PATH
19978   shlibpath_overrides_runpath=yes
19979   if test "$with_gnu_ld" = yes; then
19980     need_lib_prefix=no
19981   fi
19982   need_version=yes
19983   ;;
19984
19985 sysv4 | sysv4.3*)
19986   version_type=linux
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988   soname_spec='${libname}${release}${shared_ext}$major'
19989   shlibpath_var=LD_LIBRARY_PATH
19990   case $host_vendor in
19991     sni)
19992       shlibpath_overrides_runpath=no
19993       need_lib_prefix=no
19994       export_dynamic_flag_spec='${wl}-Blargedynsym'
19995       runpath_var=LD_RUN_PATH
19996       ;;
19997     siemens)
19998       need_lib_prefix=no
19999       ;;
20000     motorola)
20001       need_lib_prefix=no
20002       need_version=no
20003       shlibpath_overrides_runpath=no
20004       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20005       ;;
20006   esac
20007   ;;
20008
20009 sysv4*MP*)
20010   if test -d /usr/nec ;then
20011     version_type=linux
20012     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20013     soname_spec='$libname${shared_ext}.$major'
20014     shlibpath_var=LD_LIBRARY_PATH
20015   fi
20016   ;;
20017
20018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20019   version_type=freebsd-elf
20020   need_lib_prefix=no
20021   need_version=no
20022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20023   soname_spec='${libname}${release}${shared_ext}$major'
20024   shlibpath_var=LD_LIBRARY_PATH
20025   hardcode_into_libs=yes
20026   if test "$with_gnu_ld" = yes; then
20027     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20028     shlibpath_overrides_runpath=no
20029   else
20030     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20031     shlibpath_overrides_runpath=yes
20032     case $host_os in
20033       sco3.2v5*)
20034         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20035         ;;
20036     esac
20037   fi
20038   sys_lib_dlsearch_path_spec='/usr/lib'
20039   ;;
20040
20041 uts4*)
20042   version_type=linux
20043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044   soname_spec='${libname}${release}${shared_ext}$major'
20045   shlibpath_var=LD_LIBRARY_PATH
20046   ;;
20047
20048 *)
20049   dynamic_linker=no
20050   ;;
20051 esac
20052 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20053 echo "${ECHO_T}$dynamic_linker" >&6; }
20054 test "$dynamic_linker" = no && can_build_shared=no
20055
20056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20057 if test "$GCC" = yes; then
20058   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20059 fi
20060
20061 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20063 hardcode_action_GCJ=
20064 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20065    test -n "$runpath_var_GCJ" || \
20066    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20067
20068   # We can hardcode non-existant directories.
20069   if test "$hardcode_direct_GCJ" != no &&
20070      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20071      # have to relink, otherwise we might link with an installed library
20072      # when we should be linking with a yet-to-be-installed one
20073      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20074      test "$hardcode_minus_L_GCJ" != no; then
20075     # Linking always hardcodes the temporary library directory.
20076     hardcode_action_GCJ=relink
20077   else
20078     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20079     hardcode_action_GCJ=immediate
20080   fi
20081 else
20082   # We cannot hardcode anything, or else we can only hardcode existing
20083   # directories.
20084   hardcode_action_GCJ=unsupported
20085 fi
20086 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20087 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20088
20089 if test "$hardcode_action_GCJ" = relink; then
20090   # Fast installation is not supported
20091   enable_fast_install=no
20092 elif test "$shlibpath_overrides_runpath" = yes ||
20093      test "$enable_shared" = no; then
20094   # Fast installation is not necessary
20095   enable_fast_install=needless
20096 fi
20097
20098
20099 # The else clause should only fire when bootstrapping the
20100 # libtool distribution, otherwise you forgot to ship ltmain.sh
20101 # with your package, and you will get complaints that there are
20102 # no rules to generate ltmain.sh.
20103 if test -f "$ltmain"; then
20104   # See if we are running on zsh, and set the options which allow our commands through
20105   # without removal of \ escapes.
20106   if test -n "${ZSH_VERSION+set}" ; then
20107     setopt NO_GLOB_SUBST
20108   fi
20109   # Now quote all the things that may contain metacharacters while being
20110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20111   # variables and quote the copies for generation of the libtool script.
20112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20113     SED SHELL STRIP \
20114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20116     deplibs_check_method reload_flag reload_cmds need_locks \
20117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20118     lt_cv_sys_global_symbol_to_c_name_address \
20119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20120     old_postinstall_cmds old_postuninstall_cmds \
20121     compiler_GCJ \
20122     CC_GCJ \
20123     LD_GCJ \
20124     lt_prog_compiler_wl_GCJ \
20125     lt_prog_compiler_pic_GCJ \
20126     lt_prog_compiler_static_GCJ \
20127     lt_prog_compiler_no_builtin_flag_GCJ \
20128     export_dynamic_flag_spec_GCJ \
20129     thread_safe_flag_spec_GCJ \
20130     whole_archive_flag_spec_GCJ \
20131     enable_shared_with_static_runtimes_GCJ \
20132     old_archive_cmds_GCJ \
20133     old_archive_from_new_cmds_GCJ \
20134     predep_objects_GCJ \
20135     postdep_objects_GCJ \
20136     predeps_GCJ \
20137     postdeps_GCJ \
20138     compiler_lib_search_path_GCJ \
20139     archive_cmds_GCJ \
20140     archive_expsym_cmds_GCJ \
20141     postinstall_cmds_GCJ \
20142     postuninstall_cmds_GCJ \
20143     old_archive_from_expsyms_cmds_GCJ \
20144     allow_undefined_flag_GCJ \
20145     no_undefined_flag_GCJ \
20146     export_symbols_cmds_GCJ \
20147     hardcode_libdir_flag_spec_GCJ \
20148     hardcode_libdir_flag_spec_ld_GCJ \
20149     hardcode_libdir_separator_GCJ \
20150     hardcode_automatic_GCJ \
20151     module_cmds_GCJ \
20152     module_expsym_cmds_GCJ \
20153     lt_cv_prog_compiler_c_o_GCJ \
20154     fix_srcfile_path_GCJ \
20155     exclude_expsyms_GCJ \
20156     include_expsyms_GCJ; do
20157
20158     case $var in
20159     old_archive_cmds_GCJ | \
20160     old_archive_from_new_cmds_GCJ | \
20161     archive_cmds_GCJ | \
20162     archive_expsym_cmds_GCJ | \
20163     module_cmds_GCJ | \
20164     module_expsym_cmds_GCJ | \
20165     old_archive_from_expsyms_cmds_GCJ | \
20166     export_symbols_cmds_GCJ | \
20167     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20168     postinstall_cmds | postuninstall_cmds | \
20169     old_postinstall_cmds | old_postuninstall_cmds | \
20170     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20171       # Double-quote double-evaled strings.
20172       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20173       ;;
20174     *)
20175       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20176       ;;
20177     esac
20178   done
20179
20180   case $lt_echo in
20181   *'\$0 --fallback-echo"')
20182     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20183     ;;
20184   esac
20185
20186 cfgfile="$ofile"
20187
20188   cat <<__EOF__ >> "$cfgfile"
20189 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20190
20191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20192
20193 # Shell to use when invoking shell scripts.
20194 SHELL=$lt_SHELL
20195
20196 # Whether or not to build shared libraries.
20197 build_libtool_libs=$enable_shared
20198
20199 # Whether or not to build static libraries.
20200 build_old_libs=$enable_static
20201
20202 # Whether or not to add -lc for building shared libraries.
20203 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20204
20205 # Whether or not to disallow shared libs when runtime libs are static
20206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20207
20208 # Whether or not to optimize for fast installation.
20209 fast_install=$enable_fast_install
20210
20211 # The host system.
20212 host_alias=$host_alias
20213 host=$host
20214 host_os=$host_os
20215
20216 # The build system.
20217 build_alias=$build_alias
20218 build=$build
20219 build_os=$build_os
20220
20221 # An echo program that does not interpret backslashes.
20222 echo=$lt_echo
20223
20224 # The archiver.
20225 AR=$lt_AR
20226 AR_FLAGS=$lt_AR_FLAGS
20227
20228 # A C compiler.
20229 LTCC=$lt_LTCC
20230
20231 # LTCC compiler flags.
20232 LTCFLAGS=$lt_LTCFLAGS
20233
20234 # A language-specific compiler.
20235 CC=$lt_compiler_GCJ
20236
20237 # Is the compiler the GNU C compiler?
20238 with_gcc=$GCC_GCJ
20239
20240 # An ERE matcher.
20241 EGREP=$lt_EGREP
20242
20243 # The linker used to build libraries.
20244 LD=$lt_LD_GCJ
20245
20246 # Whether we need hard or soft links.
20247 LN_S=$lt_LN_S
20248
20249 # A BSD-compatible nm program.
20250 NM=$lt_NM
20251
20252 # A symbol stripping program
20253 STRIP=$lt_STRIP
20254
20255 # Used to examine libraries when file_magic_cmd begins "file"
20256 MAGIC_CMD=$MAGIC_CMD
20257
20258 # Used on cygwin: DLL creation program.
20259 DLLTOOL="$DLLTOOL"
20260
20261 # Used on cygwin: object dumper.
20262 OBJDUMP="$OBJDUMP"
20263
20264 # Used on cygwin: assembler.
20265 AS="$AS"
20266
20267 # The name of the directory that contains temporary libtool files.
20268 objdir=$objdir
20269
20270 # How to create reloadable object files.
20271 reload_flag=$lt_reload_flag
20272 reload_cmds=$lt_reload_cmds
20273
20274 # How to pass a linker flag through the compiler.
20275 wl=$lt_lt_prog_compiler_wl_GCJ
20276
20277 # Object file suffix (normally "o").
20278 objext="$ac_objext"
20279
20280 # Old archive suffix (normally "a").
20281 libext="$libext"
20282
20283 # Shared library suffix (normally ".so").
20284 shrext_cmds='$shrext_cmds'
20285
20286 # Executable file suffix (normally "").
20287 exeext="$exeext"
20288
20289 # Additional compiler flags for building library objects.
20290 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20291 pic_mode=$pic_mode
20292
20293 # What is the maximum length of a command?
20294 max_cmd_len=$lt_cv_sys_max_cmd_len
20295
20296 # Does compiler simultaneously support -c and -o options?
20297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20298
20299 # Must we lock files when doing compilation?
20300 need_locks=$lt_need_locks
20301
20302 # Do we need the lib prefix for modules?
20303 need_lib_prefix=$need_lib_prefix
20304
20305 # Do we need a version for libraries?
20306 need_version=$need_version
20307
20308 # Whether dlopen is supported.
20309 dlopen_support=$enable_dlopen
20310
20311 # Whether dlopen of programs is supported.
20312 dlopen_self=$enable_dlopen_self
20313
20314 # Whether dlopen of statically linked programs is supported.
20315 dlopen_self_static=$enable_dlopen_self_static
20316
20317 # Compiler flag to prevent dynamic linking.
20318 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20319
20320 # Compiler flag to turn off builtin functions.
20321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20322
20323 # Compiler flag to allow reflexive dlopens.
20324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20325
20326 # Compiler flag to generate shared objects directly from archives.
20327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20328
20329 # Compiler flag to generate thread-safe objects.
20330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20331
20332 # Library versioning type.
20333 version_type=$version_type
20334
20335 # Format of library name prefix.
20336 libname_spec=$lt_libname_spec
20337
20338 # List of archive names.  First name is the real one, the rest are links.
20339 # The last name is the one that the linker finds with -lNAME.
20340 library_names_spec=$lt_library_names_spec
20341
20342 # The coded name of the library, if different from the real name.
20343 soname_spec=$lt_soname_spec
20344
20345 # Commands used to build and install an old-style archive.
20346 RANLIB=$lt_RANLIB
20347 old_archive_cmds=$lt_old_archive_cmds_GCJ
20348 old_postinstall_cmds=$lt_old_postinstall_cmds
20349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20350
20351 # Create an old-style archive from a shared archive.
20352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20353
20354 # Create a temporary old-style archive to link instead of a shared archive.
20355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20356
20357 # Commands used to build and install a shared archive.
20358 archive_cmds=$lt_archive_cmds_GCJ
20359 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20360 postinstall_cmds=$lt_postinstall_cmds
20361 postuninstall_cmds=$lt_postuninstall_cmds
20362
20363 # Commands used to build a loadable module (assumed same as above if empty)
20364 module_cmds=$lt_module_cmds_GCJ
20365 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20366
20367 # Commands to strip libraries.
20368 old_striplib=$lt_old_striplib
20369 striplib=$lt_striplib
20370
20371 # Dependencies to place before the objects being linked to create a
20372 # shared library.
20373 predep_objects=$lt_predep_objects_GCJ
20374
20375 # Dependencies to place after the objects being linked to create a
20376 # shared library.
20377 postdep_objects=$lt_postdep_objects_GCJ
20378
20379 # Dependencies to place before the objects being linked to create a
20380 # shared library.
20381 predeps=$lt_predeps_GCJ
20382
20383 # Dependencies to place after the objects being linked to create a
20384 # shared library.
20385 postdeps=$lt_postdeps_GCJ
20386
20387 # The library search path used internally by the compiler when linking
20388 # a shared library.
20389 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20390
20391 # Method to check whether dependent libraries are shared objects.
20392 deplibs_check_method=$lt_deplibs_check_method
20393
20394 # Command to use when deplibs_check_method == file_magic.
20395 file_magic_cmd=$lt_file_magic_cmd
20396
20397 # Flag that allows shared libraries with undefined symbols to be built.
20398 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20399
20400 # Flag that forces no undefined symbols.
20401 no_undefined_flag=$lt_no_undefined_flag_GCJ
20402
20403 # Commands used to finish a libtool library installation in a directory.
20404 finish_cmds=$lt_finish_cmds
20405
20406 # Same as above, but a single script fragment to be evaled but not shown.
20407 finish_eval=$lt_finish_eval
20408
20409 # Take the output of nm and produce a listing of raw symbols and C names.
20410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20411
20412 # Transform the output of nm in a proper C declaration
20413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20414
20415 # Transform the output of nm in a C name address pair
20416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20417
20418 # This is the shared library runtime path variable.
20419 runpath_var=$runpath_var
20420
20421 # This is the shared library path variable.
20422 shlibpath_var=$shlibpath_var
20423
20424 # Is shlibpath searched before the hard-coded library search path?
20425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20426
20427 # How to hardcode a shared library path into an executable.
20428 hardcode_action=$hardcode_action_GCJ
20429
20430 # Whether we should hardcode library paths into libraries.
20431 hardcode_into_libs=$hardcode_into_libs
20432
20433 # Flag to hardcode \$libdir into a binary during linking.
20434 # This must work even if \$libdir does not exist.
20435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20436
20437 # If ld is used when linking, flag to hardcode \$libdir into
20438 # a binary during linking. This must work even if \$libdir does
20439 # not exist.
20440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20441
20442 # Whether we need a single -rpath flag with a separated argument.
20443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20444
20445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20446 # resulting binary.
20447 hardcode_direct=$hardcode_direct_GCJ
20448
20449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20450 # resulting binary.
20451 hardcode_minus_L=$hardcode_minus_L_GCJ
20452
20453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20454 # the resulting binary.
20455 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20456
20457 # Set to yes if building a shared library automatically hardcodes DIR into the library
20458 # and all subsequent libraries and executables linked against it.
20459 hardcode_automatic=$hardcode_automatic_GCJ
20460
20461 # Variables whose values should be saved in libtool wrapper scripts and
20462 # restored at relink time.
20463 variables_saved_for_relink="$variables_saved_for_relink"
20464
20465 # Whether libtool must link a program against all its dependency libraries.
20466 link_all_deplibs=$link_all_deplibs_GCJ
20467
20468 # Compile-time system search path for libraries
20469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20470
20471 # Run-time system search path for libraries
20472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20473
20474 # Fix the shell variable \$srcfile for the compiler.
20475 fix_srcfile_path=$lt_fix_srcfile_path
20476
20477 # Set to yes if exported symbols are required.
20478 always_export_symbols=$always_export_symbols_GCJ
20479
20480 # The commands to list exported symbols.
20481 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20482
20483 # The commands to extract the exported symbol list from a shared archive.
20484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20485
20486 # Symbols that should not be listed in the preloaded symbols.
20487 exclude_expsyms=$lt_exclude_expsyms_GCJ
20488
20489 # Symbols that must always be exported.
20490 include_expsyms=$lt_include_expsyms_GCJ
20491
20492 # ### END LIBTOOL TAG CONFIG: $tagname
20493
20494 __EOF__
20495
20496
20497 else
20498   # If there is no Makefile yet, we rely on a make rule to execute
20499   # `config.status --recheck' to rerun these tests and create the
20500   # libtool script then.
20501   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20502   if test -f "$ltmain_in"; then
20503     test -f Makefile && make "$ltmain"
20504   fi
20505 fi
20506
20507
20508 ac_ext=c
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514 CC="$lt_save_CC"
20515
20516         else
20517           tagname=""
20518         fi
20519         ;;
20520
20521       RC)
20522
20523
20524 # Source file extension for RC test sources.
20525 ac_ext=rc
20526
20527 # Object file extension for compiled RC test sources.
20528 objext=o
20529 objext_RC=$objext
20530
20531 # Code to be used in simple compile tests
20532 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20533
20534 # Code to be used in simple link tests
20535 lt_simple_link_test_code="$lt_simple_compile_test_code"
20536
20537 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20538
20539 # If no C compiler was specified, use CC.
20540 LTCC=${LTCC-"$CC"}
20541
20542 # If no C compiler flags were specified, use CFLAGS.
20543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20544
20545 # Allow CC to be a program name with arguments.
20546 compiler=$CC
20547
20548
20549 # save warnings/boilerplate of simple test code
20550 ac_outfile=conftest.$ac_objext
20551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20553 _lt_compiler_boilerplate=`cat conftest.err`
20554 $rm conftest*
20555
20556 ac_outfile=conftest.$ac_objext
20557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20559 _lt_linker_boilerplate=`cat conftest.err`
20560 $rm conftest*
20561
20562
20563 # Allow CC to be a program name with arguments.
20564 lt_save_CC="$CC"
20565 CC=${RC-"windres"}
20566 compiler=$CC
20567 compiler_RC=$CC
20568 for cc_temp in $compiler""; do
20569   case $cc_temp in
20570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20572     \-*) ;;
20573     *) break;;
20574   esac
20575 done
20576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20577
20578 lt_cv_prog_compiler_c_o_RC=yes
20579
20580 # The else clause should only fire when bootstrapping the
20581 # libtool distribution, otherwise you forgot to ship ltmain.sh
20582 # with your package, and you will get complaints that there are
20583 # no rules to generate ltmain.sh.
20584 if test -f "$ltmain"; then
20585   # See if we are running on zsh, and set the options which allow our commands through
20586   # without removal of \ escapes.
20587   if test -n "${ZSH_VERSION+set}" ; then
20588     setopt NO_GLOB_SUBST
20589   fi
20590   # Now quote all the things that may contain metacharacters while being
20591   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20592   # variables and quote the copies for generation of the libtool script.
20593   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20594     SED SHELL STRIP \
20595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20597     deplibs_check_method reload_flag reload_cmds need_locks \
20598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20599     lt_cv_sys_global_symbol_to_c_name_address \
20600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20601     old_postinstall_cmds old_postuninstall_cmds \
20602     compiler_RC \
20603     CC_RC \
20604     LD_RC \
20605     lt_prog_compiler_wl_RC \
20606     lt_prog_compiler_pic_RC \
20607     lt_prog_compiler_static_RC \
20608     lt_prog_compiler_no_builtin_flag_RC \
20609     export_dynamic_flag_spec_RC \
20610     thread_safe_flag_spec_RC \
20611     whole_archive_flag_spec_RC \
20612     enable_shared_with_static_runtimes_RC \
20613     old_archive_cmds_RC \
20614     old_archive_from_new_cmds_RC \
20615     predep_objects_RC \
20616     postdep_objects_RC \
20617     predeps_RC \
20618     postdeps_RC \
20619     compiler_lib_search_path_RC \
20620     archive_cmds_RC \
20621     archive_expsym_cmds_RC \
20622     postinstall_cmds_RC \
20623     postuninstall_cmds_RC \
20624     old_archive_from_expsyms_cmds_RC \
20625     allow_undefined_flag_RC \
20626     no_undefined_flag_RC \
20627     export_symbols_cmds_RC \
20628     hardcode_libdir_flag_spec_RC \
20629     hardcode_libdir_flag_spec_ld_RC \
20630     hardcode_libdir_separator_RC \
20631     hardcode_automatic_RC \
20632     module_cmds_RC \
20633     module_expsym_cmds_RC \
20634     lt_cv_prog_compiler_c_o_RC \
20635     fix_srcfile_path_RC \
20636     exclude_expsyms_RC \
20637     include_expsyms_RC; do
20638
20639     case $var in
20640     old_archive_cmds_RC | \
20641     old_archive_from_new_cmds_RC | \
20642     archive_cmds_RC | \
20643     archive_expsym_cmds_RC | \
20644     module_cmds_RC | \
20645     module_expsym_cmds_RC | \
20646     old_archive_from_expsyms_cmds_RC | \
20647     export_symbols_cmds_RC | \
20648     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20649     postinstall_cmds | postuninstall_cmds | \
20650     old_postinstall_cmds | old_postuninstall_cmds | \
20651     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20652       # Double-quote double-evaled strings.
20653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20654       ;;
20655     *)
20656       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20657       ;;
20658     esac
20659   done
20660
20661   case $lt_echo in
20662   *'\$0 --fallback-echo"')
20663     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20664     ;;
20665   esac
20666
20667 cfgfile="$ofile"
20668
20669   cat <<__EOF__ >> "$cfgfile"
20670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20671
20672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20673
20674 # Shell to use when invoking shell scripts.
20675 SHELL=$lt_SHELL
20676
20677 # Whether or not to build shared libraries.
20678 build_libtool_libs=$enable_shared
20679
20680 # Whether or not to build static libraries.
20681 build_old_libs=$enable_static
20682
20683 # Whether or not to add -lc for building shared libraries.
20684 build_libtool_need_lc=$archive_cmds_need_lc_RC
20685
20686 # Whether or not to disallow shared libs when runtime libs are static
20687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20688
20689 # Whether or not to optimize for fast installation.
20690 fast_install=$enable_fast_install
20691
20692 # The host system.
20693 host_alias=$host_alias
20694 host=$host
20695 host_os=$host_os
20696
20697 # The build system.
20698 build_alias=$build_alias
20699 build=$build
20700 build_os=$build_os
20701
20702 # An echo program that does not interpret backslashes.
20703 echo=$lt_echo
20704
20705 # The archiver.
20706 AR=$lt_AR
20707 AR_FLAGS=$lt_AR_FLAGS
20708
20709 # A C compiler.
20710 LTCC=$lt_LTCC
20711
20712 # LTCC compiler flags.
20713 LTCFLAGS=$lt_LTCFLAGS
20714
20715 # A language-specific compiler.
20716 CC=$lt_compiler_RC
20717
20718 # Is the compiler the GNU C compiler?
20719 with_gcc=$GCC_RC
20720
20721 # An ERE matcher.
20722 EGREP=$lt_EGREP
20723
20724 # The linker used to build libraries.
20725 LD=$lt_LD_RC
20726
20727 # Whether we need hard or soft links.
20728 LN_S=$lt_LN_S
20729
20730 # A BSD-compatible nm program.
20731 NM=$lt_NM
20732
20733 # A symbol stripping program
20734 STRIP=$lt_STRIP
20735
20736 # Used to examine libraries when file_magic_cmd begins "file"
20737 MAGIC_CMD=$MAGIC_CMD
20738
20739 # Used on cygwin: DLL creation program.
20740 DLLTOOL="$DLLTOOL"
20741
20742 # Used on cygwin: object dumper.
20743 OBJDUMP="$OBJDUMP"
20744
20745 # Used on cygwin: assembler.
20746 AS="$AS"
20747
20748 # The name of the directory that contains temporary libtool files.
20749 objdir=$objdir
20750
20751 # How to create reloadable object files.
20752 reload_flag=$lt_reload_flag
20753 reload_cmds=$lt_reload_cmds
20754
20755 # How to pass a linker flag through the compiler.
20756 wl=$lt_lt_prog_compiler_wl_RC
20757
20758 # Object file suffix (normally "o").
20759 objext="$ac_objext"
20760
20761 # Old archive suffix (normally "a").
20762 libext="$libext"
20763
20764 # Shared library suffix (normally ".so").
20765 shrext_cmds='$shrext_cmds'
20766
20767 # Executable file suffix (normally "").
20768 exeext="$exeext"
20769
20770 # Additional compiler flags for building library objects.
20771 pic_flag=$lt_lt_prog_compiler_pic_RC
20772 pic_mode=$pic_mode
20773
20774 # What is the maximum length of a command?
20775 max_cmd_len=$lt_cv_sys_max_cmd_len
20776
20777 # Does compiler simultaneously support -c and -o options?
20778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20779
20780 # Must we lock files when doing compilation?
20781 need_locks=$lt_need_locks
20782
20783 # Do we need the lib prefix for modules?
20784 need_lib_prefix=$need_lib_prefix
20785
20786 # Do we need a version for libraries?
20787 need_version=$need_version
20788
20789 # Whether dlopen is supported.
20790 dlopen_support=$enable_dlopen
20791
20792 # Whether dlopen of programs is supported.
20793 dlopen_self=$enable_dlopen_self
20794
20795 # Whether dlopen of statically linked programs is supported.
20796 dlopen_self_static=$enable_dlopen_self_static
20797
20798 # Compiler flag to prevent dynamic linking.
20799 link_static_flag=$lt_lt_prog_compiler_static_RC
20800
20801 # Compiler flag to turn off builtin functions.
20802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20803
20804 # Compiler flag to allow reflexive dlopens.
20805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20806
20807 # Compiler flag to generate shared objects directly from archives.
20808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20809
20810 # Compiler flag to generate thread-safe objects.
20811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20812
20813 # Library versioning type.
20814 version_type=$version_type
20815
20816 # Format of library name prefix.
20817 libname_spec=$lt_libname_spec
20818
20819 # List of archive names.  First name is the real one, the rest are links.
20820 # The last name is the one that the linker finds with -lNAME.
20821 library_names_spec=$lt_library_names_spec
20822
20823 # The coded name of the library, if different from the real name.
20824 soname_spec=$lt_soname_spec
20825
20826 # Commands used to build and install an old-style archive.
20827 RANLIB=$lt_RANLIB
20828 old_archive_cmds=$lt_old_archive_cmds_RC
20829 old_postinstall_cmds=$lt_old_postinstall_cmds
20830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20831
20832 # Create an old-style archive from a shared archive.
20833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20834
20835 # Create a temporary old-style archive to link instead of a shared archive.
20836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20837
20838 # Commands used to build and install a shared archive.
20839 archive_cmds=$lt_archive_cmds_RC
20840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20841 postinstall_cmds=$lt_postinstall_cmds
20842 postuninstall_cmds=$lt_postuninstall_cmds
20843
20844 # Commands used to build a loadable module (assumed same as above if empty)
20845 module_cmds=$lt_module_cmds_RC
20846 module_expsym_cmds=$lt_module_expsym_cmds_RC
20847
20848 # Commands to strip libraries.
20849 old_striplib=$lt_old_striplib
20850 striplib=$lt_striplib
20851
20852 # Dependencies to place before the objects being linked to create a
20853 # shared library.
20854 predep_objects=$lt_predep_objects_RC
20855
20856 # Dependencies to place after the objects being linked to create a
20857 # shared library.
20858 postdep_objects=$lt_postdep_objects_RC
20859
20860 # Dependencies to place before the objects being linked to create a
20861 # shared library.
20862 predeps=$lt_predeps_RC
20863
20864 # Dependencies to place after the objects being linked to create a
20865 # shared library.
20866 postdeps=$lt_postdeps_RC
20867
20868 # The library search path used internally by the compiler when linking
20869 # a shared library.
20870 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20871
20872 # Method to check whether dependent libraries are shared objects.
20873 deplibs_check_method=$lt_deplibs_check_method
20874
20875 # Command to use when deplibs_check_method == file_magic.
20876 file_magic_cmd=$lt_file_magic_cmd
20877
20878 # Flag that allows shared libraries with undefined symbols to be built.
20879 allow_undefined_flag=$lt_allow_undefined_flag_RC
20880
20881 # Flag that forces no undefined symbols.
20882 no_undefined_flag=$lt_no_undefined_flag_RC
20883
20884 # Commands used to finish a libtool library installation in a directory.
20885 finish_cmds=$lt_finish_cmds
20886
20887 # Same as above, but a single script fragment to be evaled but not shown.
20888 finish_eval=$lt_finish_eval
20889
20890 # Take the output of nm and produce a listing of raw symbols and C names.
20891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20892
20893 # Transform the output of nm in a proper C declaration
20894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20895
20896 # Transform the output of nm in a C name address pair
20897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20898
20899 # This is the shared library runtime path variable.
20900 runpath_var=$runpath_var
20901
20902 # This is the shared library path variable.
20903 shlibpath_var=$shlibpath_var
20904
20905 # Is shlibpath searched before the hard-coded library search path?
20906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20907
20908 # How to hardcode a shared library path into an executable.
20909 hardcode_action=$hardcode_action_RC
20910
20911 # Whether we should hardcode library paths into libraries.
20912 hardcode_into_libs=$hardcode_into_libs
20913
20914 # Flag to hardcode \$libdir into a binary during linking.
20915 # This must work even if \$libdir does not exist.
20916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20917
20918 # If ld is used when linking, flag to hardcode \$libdir into
20919 # a binary during linking. This must work even if \$libdir does
20920 # not exist.
20921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20922
20923 # Whether we need a single -rpath flag with a separated argument.
20924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20925
20926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20927 # resulting binary.
20928 hardcode_direct=$hardcode_direct_RC
20929
20930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20931 # resulting binary.
20932 hardcode_minus_L=$hardcode_minus_L_RC
20933
20934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20935 # the resulting binary.
20936 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20937
20938 # Set to yes if building a shared library automatically hardcodes DIR into the library
20939 # and all subsequent libraries and executables linked against it.
20940 hardcode_automatic=$hardcode_automatic_RC
20941
20942 # Variables whose values should be saved in libtool wrapper scripts and
20943 # restored at relink time.
20944 variables_saved_for_relink="$variables_saved_for_relink"
20945
20946 # Whether libtool must link a program against all its dependency libraries.
20947 link_all_deplibs=$link_all_deplibs_RC
20948
20949 # Compile-time system search path for libraries
20950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20951
20952 # Run-time system search path for libraries
20953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20954
20955 # Fix the shell variable \$srcfile for the compiler.
20956 fix_srcfile_path=$lt_fix_srcfile_path
20957
20958 # Set to yes if exported symbols are required.
20959 always_export_symbols=$always_export_symbols_RC
20960
20961 # The commands to list exported symbols.
20962 export_symbols_cmds=$lt_export_symbols_cmds_RC
20963
20964 # The commands to extract the exported symbol list from a shared archive.
20965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20966
20967 # Symbols that should not be listed in the preloaded symbols.
20968 exclude_expsyms=$lt_exclude_expsyms_RC
20969
20970 # Symbols that must always be exported.
20971 include_expsyms=$lt_include_expsyms_RC
20972
20973 # ### END LIBTOOL TAG CONFIG: $tagname
20974
20975 __EOF__
20976
20977
20978 else
20979   # If there is no Makefile yet, we rely on a make rule to execute
20980   # `config.status --recheck' to rerun these tests and create the
20981   # libtool script then.
20982   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20983   if test -f "$ltmain_in"; then
20984     test -f Makefile && make "$ltmain"
20985   fi
20986 fi
20987
20988
20989 ac_ext=c
20990 ac_cpp='$CPP $CPPFLAGS'
20991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994
20995 CC="$lt_save_CC"
20996
20997         ;;
20998
20999       *)
21000         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21001 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21002    { (exit 1); exit 1; }; }
21003         ;;
21004       esac
21005
21006       # Append the new tag name to the list of available tags.
21007       if test -n "$tagname" ; then
21008       available_tags="$available_tags $tagname"
21009     fi
21010     fi
21011   done
21012   IFS="$lt_save_ifs"
21013
21014   # Now substitute the updated list of available tags.
21015   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21016     mv "${ofile}T" "$ofile"
21017     chmod +x "$ofile"
21018   else
21019     rm -f "${ofile}T"
21020     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21021 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21022    { (exit 1); exit 1; }; }
21023   fi
21024 fi
21025
21026
21027
21028 # This can be used to rebuild libtool when needed
21029 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21030
21031 # Always use our own libtool.
21032 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21033
21034 # Prevent multiple expansion
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055 if test "x$CC" != xcc; then
21056   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21057 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21058 else
21059   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21060 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21061 fi
21062 set dummy $CC; ac_cc=`echo $2 |
21063                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21064 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067   cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073
21074 int
21075 main ()
21076 {
21077
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 # Make sure it works both with $CC and with simple cc.
21083 # We do the test twice because some compilers refuse to overwrite an
21084 # existing .o file with -o, though they will create one.
21085 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21086 rm -f conftest2.*
21087 if { (case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_try") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_try") 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); };
21105 then
21106   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21107   if test "x$CC" != xcc; then
21108     # Test first that cc exists at all.
21109     if { ac_try='cc -c conftest.$ac_ext >&5'
21110   { (case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_try") 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21120       rm -f conftest2.*
21121       if { (case "(($ac_try" in
21122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123   *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126   (eval "$ac_try") 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); } &&
21130          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_try") 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); };
21139       then
21140         # cc works too.
21141         :
21142       else
21143         # cc exists but doesn't like -o.
21144         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21145       fi
21146     fi
21147   fi
21148 else
21149   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21150 fi
21151 rm -f core conftest*
21152
21153 fi
21154 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21155   { echo "$as_me:$LINENO: result: yes" >&5
21156 echo "${ECHO_T}yes" >&6; }
21157 else
21158   { echo "$as_me:$LINENO: result: no" >&5
21159 echo "${ECHO_T}no" >&6; }
21160
21161 cat >>confdefs.h <<\_ACEOF
21162 #define NO_MINUS_C_MINUS_O 1
21163 _ACEOF
21164
21165 fi
21166
21167 # FIXME: we rely on the cache variable name because
21168 # there is no other way.
21169 set dummy $CC
21170 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21171 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21172    # Losing compiler, so override with the script.
21173    # FIXME: It is wrong to rewrite CC.
21174    # But if we don't then we get into trouble of one sort or another.
21175    # A longer-term fix would be to have automake use am__CC in this case,
21176    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21177    CC="$am_aux_dir/compile $CC"
21178 fi
21179
21180
21181
21182 if test "x$cross_compiling" = "xno"; then
21183         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21184 else
21185         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21186 fi
21187
21188
21189
21190 if test -n "$ac_tool_prefix"; then
21191   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21192 set dummy ${ac_tool_prefix}ar; ac_word=$2
21193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21195 if test "${ac_cv_prog_AR+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   if test -n "$AR"; then
21199   ac_cv_prog_AR="$AR" # Let the user override the test.
21200 else
21201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202 for as_dir in $PATH
21203 do
21204   IFS=$as_save_IFS
21205   test -z "$as_dir" && as_dir=.
21206   for ac_exec_ext in '' $ac_executable_extensions; do
21207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21208     ac_cv_prog_AR="${ac_tool_prefix}ar"
21209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21210     break 2
21211   fi
21212 done
21213 done
21214 IFS=$as_save_IFS
21215
21216 fi
21217 fi
21218 AR=$ac_cv_prog_AR
21219 if test -n "$AR"; then
21220   { echo "$as_me:$LINENO: result: $AR" >&5
21221 echo "${ECHO_T}$AR" >&6; }
21222 else
21223   { echo "$as_me:$LINENO: result: no" >&5
21224 echo "${ECHO_T}no" >&6; }
21225 fi
21226
21227
21228 fi
21229 if test -z "$ac_cv_prog_AR"; then
21230   ac_ct_AR=$AR
21231   # Extract the first word of "ar", so it can be a program name with args.
21232 set dummy ar; ac_word=$2
21233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21235 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21236   echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238   if test -n "$ac_ct_AR"; then
21239   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21240 else
21241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21242 for as_dir in $PATH
21243 do
21244   IFS=$as_save_IFS
21245   test -z "$as_dir" && as_dir=.
21246   for ac_exec_ext in '' $ac_executable_extensions; do
21247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21248     ac_cv_prog_ac_ct_AR="ar"
21249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21250     break 2
21251   fi
21252 done
21253 done
21254 IFS=$as_save_IFS
21255
21256 fi
21257 fi
21258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21259 if test -n "$ac_ct_AR"; then
21260   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21261 echo "${ECHO_T}$ac_ct_AR" >&6; }
21262 else
21263   { echo "$as_me:$LINENO: result: no" >&5
21264 echo "${ECHO_T}no" >&6; }
21265 fi
21266
21267   if test "x$ac_ct_AR" = x; then
21268     AR=""
21269   else
21270     case $cross_compiling:$ac_tool_warned in
21271 yes:)
21272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21273 whose name does not start with the host triplet.  If you think this
21274 configuration is useful to you, please write to autoconf@gnu.org." >&5
21275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21276 whose name does not start with the host triplet.  If you think this
21277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21278 ac_tool_warned=yes ;;
21279 esac
21280     AR=$ac_ct_AR
21281   fi
21282 else
21283   AR="$ac_cv_prog_AR"
21284 fi
21285
21286 if test -n "$ac_tool_prefix"; then
21287   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21288 set dummy ${ac_tool_prefix}ld; ac_word=$2
21289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21291 if test "${ac_cv_prog_LD+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294   if test -n "$LD"; then
21295   ac_cv_prog_LD="$LD" # Let the user override the test.
21296 else
21297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21298 for as_dir in $PATH
21299 do
21300   IFS=$as_save_IFS
21301   test -z "$as_dir" && as_dir=.
21302   for ac_exec_ext in '' $ac_executable_extensions; do
21303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21304     ac_cv_prog_LD="${ac_tool_prefix}ld"
21305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21306     break 2
21307   fi
21308 done
21309 done
21310 IFS=$as_save_IFS
21311
21312 fi
21313 fi
21314 LD=$ac_cv_prog_LD
21315 if test -n "$LD"; then
21316   { echo "$as_me:$LINENO: result: $LD" >&5
21317 echo "${ECHO_T}$LD" >&6; }
21318 else
21319   { echo "$as_me:$LINENO: result: no" >&5
21320 echo "${ECHO_T}no" >&6; }
21321 fi
21322
21323
21324 fi
21325 if test -z "$ac_cv_prog_LD"; then
21326   ac_ct_LD=$LD
21327   # Extract the first word of "ld", so it can be a program name with args.
21328 set dummy ld; ac_word=$2
21329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21331 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21332   echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334   if test -n "$ac_ct_LD"; then
21335   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21336 else
21337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21338 for as_dir in $PATH
21339 do
21340   IFS=$as_save_IFS
21341   test -z "$as_dir" && as_dir=.
21342   for ac_exec_ext in '' $ac_executable_extensions; do
21343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21344     ac_cv_prog_ac_ct_LD="ld"
21345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21346     break 2
21347   fi
21348 done
21349 done
21350 IFS=$as_save_IFS
21351
21352 fi
21353 fi
21354 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21355 if test -n "$ac_ct_LD"; then
21356   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21357 echo "${ECHO_T}$ac_ct_LD" >&6; }
21358 else
21359   { echo "$as_me:$LINENO: result: no" >&5
21360 echo "${ECHO_T}no" >&6; }
21361 fi
21362
21363   if test "x$ac_ct_LD" = x; then
21364     LD=""
21365   else
21366     case $cross_compiling:$ac_tool_warned in
21367 yes:)
21368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21369 whose name does not start with the host triplet.  If you think this
21370 configuration is useful to you, please write to autoconf@gnu.org." >&5
21371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21372 whose name does not start with the host triplet.  If you think this
21373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21374 ac_tool_warned=yes ;;
21375 esac
21376     LD=$ac_ct_LD
21377   fi
21378 else
21379   LD="$ac_cv_prog_LD"
21380 fi
21381
21382
21383 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21385 if test "${ac_cv_header_stdc+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 #include <stdlib.h>
21395 #include <stdarg.h>
21396 #include <string.h>
21397 #include <float.h>
21398
21399 int
21400 main ()
21401 {
21402
21403   ;
21404   return 0;
21405 }
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411   *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414   (eval "$ac_compile") 2>conftest.er1
21415   ac_status=$?
21416   grep -v '^ *+' conftest.er1 >conftest.err
21417   rm -f conftest.er1
21418   cat conftest.err >&5
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } && {
21421          test -z "$ac_c_werror_flag" ||
21422          test ! -s conftest.err
21423        } && test -s conftest.$ac_objext; then
21424   ac_cv_header_stdc=yes
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429         ac_cv_header_stdc=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433
21434 if test $ac_cv_header_stdc = yes; then
21435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21436   cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 #include <string.h>
21443
21444 _ACEOF
21445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21446   $EGREP "memchr" >/dev/null 2>&1; then
21447   :
21448 else
21449   ac_cv_header_stdc=no
21450 fi
21451 rm -f conftest*
21452
21453 fi
21454
21455 if test $ac_cv_header_stdc = yes; then
21456   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21457   cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h.  */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h.  */
21463 #include <stdlib.h>
21464
21465 _ACEOF
21466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21467   $EGREP "free" >/dev/null 2>&1; then
21468   :
21469 else
21470   ac_cv_header_stdc=no
21471 fi
21472 rm -f conftest*
21473
21474 fi
21475
21476 if test $ac_cv_header_stdc = yes; then
21477   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21478   if test "$cross_compiling" = yes; then
21479   :
21480 else
21481   cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <ctype.h>
21488 #include <stdlib.h>
21489 #if ((' ' & 0x0FF) == 0x020)
21490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21492 #else
21493 # define ISLOWER(c) \
21494                    (('a' <= (c) && (c) <= 'i') \
21495                      || ('j' <= (c) && (c) <= 'r') \
21496                      || ('s' <= (c) && (c) <= 'z'))
21497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21498 #endif
21499
21500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21501 int
21502 main ()
21503 {
21504   int i;
21505   for (i = 0; i < 256; i++)
21506     if (XOR (islower (i), ISLOWER (i))
21507         || toupper (i) != TOUPPER (i))
21508       return 2;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest$ac_exeext
21513 if { (ac_try="$ac_link"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_link") 2>&5
21520   ac_status=$?
21521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   :
21533 else
21534   echo "$as_me: program exited with status $ac_status" >&5
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ( exit $ac_status )
21539 ac_cv_header_stdc=no
21540 fi
21541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21542 fi
21543
21544
21545 fi
21546 fi
21547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21549 if test $ac_cv_header_stdc = yes; then
21550
21551 cat >>confdefs.h <<\_ACEOF
21552 #define STDC_HEADERS 1
21553 _ACEOF
21554
21555 fi
21556
21557
21558   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21559 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21560   if test "${knfsd_cv_glibc2+set}" = set; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569
21570       #include <features.h>
21571       #if !defined(__GLIBC__)
21572       # error Nope
21573       #endif
21574
21575 _ACEOF
21576 if { (ac_try="$ac_cpp conftest.$ac_ext"
21577 case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } >/dev/null && {
21589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21590          test ! -s conftest.err
21591        }; then
21592   knfsd_cv_glibc2=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597   knfsd_cv_glibc2=no
21598 fi
21599
21600 rm -f conftest.err conftest.$ac_ext
21601 fi
21602
21603   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21604 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21605   if test $knfsd_cv_glibc2 = yes; then
21606     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21607     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21608   fi
21609
21610
21611   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21612 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21613   if test "${knfsd_cv_bsd_signals+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   if test "$cross_compiling" = yes; then
21617
21618       case "$host_os" in
21619         *linux*) knfsd_cv_bsd_signals=no;;
21620         *bsd*)   knfsd_cv_bsd_signals=yes;;
21621         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21622 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21623    { (exit 1); exit 1; }; };;
21624       esac
21625
21626 else
21627   cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633
21634         #include <signal.h>
21635         #include <unistd.h>
21636         #include <sys/wait.h>
21637
21638         static int counter = 0;
21639         static RETSIGTYPE handler(int num) { counter++; }
21640
21641         int main()
21642         {
21643                 int     s;
21644                 if ((s = fork()) < 0) return 1;
21645                 if (s != 0) {
21646                         if (wait(&s) < 0) return 1;
21647                         return WIFSIGNALED(s)? 1 : 0;
21648                 }
21649
21650                 signal(SIGHUP, handler);
21651                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21652                 return (counter == 2)? 0 : 1;
21653         }
21654
21655 _ACEOF
21656 rm -f conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_link") 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667   { (case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_try") 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   knfsd_cv_bsd_signals=yes
21677 else
21678   echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ( exit $ac_status )
21683 knfsd_cv_bsd_signals=no
21684 fi
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21686 fi
21687
21688
21689 fi
21690      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21691 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21692     test $knfsd_cv_bsd_signals = yes &&
21693 cat >>confdefs.h <<\_ACEOF
21694 #define HAVE_BSD_SIGNALS 1
21695 _ACEOF
21696
21697
21698
21699 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21700 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21701 if test "${ac_cv_func_gethostbyname+set}" = set; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21712 #define gethostbyname innocuous_gethostbyname
21713
21714 /* System header to define __stub macros and hopefully few prototypes,
21715     which can conflict with char gethostbyname (); below.
21716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21717     <limits.h> exists even on freestanding compilers.  */
21718
21719 #ifdef __STDC__
21720 # include <limits.h>
21721 #else
21722 # include <assert.h>
21723 #endif
21724
21725 #undef gethostbyname
21726
21727 /* Override any GCC internal prototype to avoid an error.
21728    Use char because int might match the return type of a GCC
21729    builtin and then its argument prototype would still apply.  */
21730 #ifdef __cplusplus
21731 extern "C"
21732 #endif
21733 char gethostbyname ();
21734 /* The GNU C library defines this for functions which it implements
21735     to always fail with ENOSYS.  Some functions are actually named
21736     something starting with __ and the normal name is an alias.  */
21737 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21738 choke me
21739 #endif
21740
21741 int
21742 main ()
21743 {
21744 return gethostbyname ();
21745   ;
21746   return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753   *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756   (eval "$ac_link") 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } && {
21763          test -z "$ac_c_werror_flag" ||
21764          test ! -s conftest.err
21765        } && test -s conftest$ac_exeext &&
21766        $as_test_x conftest$ac_exeext; then
21767   ac_cv_func_gethostbyname=yes
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772         ac_cv_func_gethostbyname=no
21773 fi
21774
21775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21776       conftest$ac_exeext conftest.$ac_ext
21777 fi
21778 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21780 if test $ac_cv_func_gethostbyname = yes; then
21781   :
21782 else
21783   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21784 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21785 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21786   echo $ECHO_N "(cached) $ECHO_C" >&6
21787 else
21788   ac_check_lib_save_LIBS=$LIBS
21789 LIBS="-lnsl  $LIBS"
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796
21797 /* Override any GCC internal prototype to avoid an error.
21798    Use char because int might match the return type of a GCC
21799    builtin and then its argument prototype would still apply.  */
21800 #ifdef __cplusplus
21801 extern "C"
21802 #endif
21803 char gethostbyname ();
21804 int
21805 main ()
21806 {
21807 return gethostbyname ();
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
21814 case "(($ac_try" in
21815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816   *) ac_try_echo=$ac_try;;
21817 esac
21818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21819   (eval "$ac_link") 2>conftest.er1
21820   ac_status=$?
21821   grep -v '^ *+' conftest.er1 >conftest.err
21822   rm -f conftest.er1
21823   cat conftest.err >&5
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); } && {
21826          test -z "$ac_c_werror_flag" ||
21827          test ! -s conftest.err
21828        } && test -s conftest$ac_exeext &&
21829        $as_test_x conftest$ac_exeext; then
21830   ac_cv_lib_nsl_gethostbyname=yes
21831 else
21832   echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         ac_cv_lib_nsl_gethostbyname=no
21836 fi
21837
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839       conftest$ac_exeext conftest.$ac_ext
21840 LIBS=$ac_check_lib_save_LIBS
21841 fi
21842 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21843 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21844 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21845   LIBNSL="-lnsl"
21846 fi
21847
21848 fi
21849
21850
21851
21852 { echo "$as_me:$LINENO: checking for connect" >&5
21853 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21854 if test "${ac_cv_func_connect+set}" = set; then
21855   echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857   cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21865 #define connect innocuous_connect
21866
21867 /* System header to define __stub macros and hopefully few prototypes,
21868     which can conflict with char connect (); below.
21869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21870     <limits.h> exists even on freestanding compilers.  */
21871
21872 #ifdef __STDC__
21873 # include <limits.h>
21874 #else
21875 # include <assert.h>
21876 #endif
21877
21878 #undef connect
21879
21880 /* Override any GCC internal prototype to avoid an error.
21881    Use char because int might match the return type of a GCC
21882    builtin and then its argument prototype would still apply.  */
21883 #ifdef __cplusplus
21884 extern "C"
21885 #endif
21886 char connect ();
21887 /* The GNU C library defines this for functions which it implements
21888     to always fail with ENOSYS.  Some functions are actually named
21889     something starting with __ and the normal name is an alias.  */
21890 #if defined __stub_connect || defined __stub___connect
21891 choke me
21892 #endif
21893
21894 int
21895 main ()
21896 {
21897 return connect ();
21898   ;
21899   return 0;
21900 }
21901 _ACEOF
21902 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (ac_try="$ac_link"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_link") 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } && {
21916          test -z "$ac_c_werror_flag" ||
21917          test ! -s conftest.err
21918        } && test -s conftest$ac_exeext &&
21919        $as_test_x conftest$ac_exeext; then
21920   ac_cv_func_connect=yes
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925         ac_cv_func_connect=no
21926 fi
21927
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929       conftest$ac_exeext conftest.$ac_ext
21930 fi
21931 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21932 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21933 if test $ac_cv_func_connect = yes; then
21934   :
21935 else
21936   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21937 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21938 if test "${ac_cv_lib_socket_connect+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941   ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lsocket $LIBNSL $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949
21950 /* Override any GCC internal prototype to avoid an error.
21951    Use char because int might match the return type of a GCC
21952    builtin and then its argument prototype would still apply.  */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char connect ();
21957 int
21958 main ()
21959 {
21960 return connect ();
21961   ;
21962   return 0;
21963 }
21964 _ACEOF
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969   *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972   (eval "$ac_link") 2>conftest.er1
21973   ac_status=$?
21974   grep -v '^ *+' conftest.er1 >conftest.err
21975   rm -f conftest.er1
21976   cat conftest.err >&5
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } && {
21979          test -z "$ac_c_werror_flag" ||
21980          test ! -s conftest.err
21981        } && test -s conftest$ac_exeext &&
21982        $as_test_x conftest$ac_exeext; then
21983   ac_cv_lib_socket_connect=yes
21984 else
21985   echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988         ac_cv_lib_socket_connect=no
21989 fi
21990
21991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21992       conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21994 fi
21995 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21996 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21997 if test $ac_cv_lib_socket_connect = yes; then
21998   LIBSOCKET="-lsocket"
21999 else
22000   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22001 echo "$as_me: error: Function 'socket' not found." >&2;}
22002    { (exit 1); exit 1; }; }
22003 fi
22004
22005 fi
22006
22007
22008 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22009 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22010 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22011   echo $ECHO_N "(cached) $ECHO_C" >&6
22012 else
22013   ac_check_lib_save_LIBS=$LIBS
22014 LIBS="-lcrypt  $LIBS"
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021
22022 /* Override any GCC internal prototype to avoid an error.
22023    Use char because int might match the return type of a GCC
22024    builtin and then its argument prototype would still apply.  */
22025 #ifdef __cplusplus
22026 extern "C"
22027 #endif
22028 char crypt ();
22029 int
22030 main ()
22031 {
22032 return crypt ();
22033   ;
22034   return 0;
22035 }
22036 _ACEOF
22037 rm -f conftest.$ac_objext conftest$ac_exeext
22038 if { (ac_try="$ac_link"
22039 case "(($ac_try" in
22040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041   *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044   (eval "$ac_link") 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } && {
22051          test -z "$ac_c_werror_flag" ||
22052          test ! -s conftest.err
22053        } && test -s conftest$ac_exeext &&
22054        $as_test_x conftest$ac_exeext; then
22055   ac_cv_lib_crypt_crypt=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060         ac_cv_lib_crypt_crypt=no
22061 fi
22062
22063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22064       conftest$ac_exeext conftest.$ac_ext
22065 LIBS=$ac_check_lib_save_LIBS
22066 fi
22067 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22068 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22069 if test $ac_cv_lib_crypt_crypt = yes; then
22070   LIBCRYPT="-lcrypt"
22071 fi
22072
22073 if test "$enable_nfsv4" = yes; then
22074     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22075 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22076 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079   ac_check_lib_save_LIBS=$LIBS
22080 LIBS="-levent  $LIBS"
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h.  */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h.  */
22087
22088 /* Override any GCC internal prototype to avoid an error.
22089    Use char because int might match the return type of a GCC
22090    builtin and then its argument prototype would still apply.  */
22091 #ifdef __cplusplus
22092 extern "C"
22093 #endif
22094 char event_dispatch ();
22095 int
22096 main ()
22097 {
22098 return event_dispatch ();
22099   ;
22100   return 0;
22101 }
22102 _ACEOF
22103 rm -f conftest.$ac_objext conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107   *) ac_try_echo=$ac_try;;
22108 esac
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110   (eval "$ac_link") 2>conftest.er1
22111   ac_status=$?
22112   grep -v '^ *+' conftest.er1 >conftest.err
22113   rm -f conftest.er1
22114   cat conftest.err >&5
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } && {
22117          test -z "$ac_c_werror_flag" ||
22118          test ! -s conftest.err
22119        } && test -s conftest$ac_exeext &&
22120        $as_test_x conftest$ac_exeext; then
22121   ac_cv_lib_event_event_dispatch=yes
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126         ac_cv_lib_event_event_dispatch=no
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130       conftest$ac_exeext conftest.$ac_ext
22131 LIBS=$ac_check_lib_save_LIBS
22132 fi
22133 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22134 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22135 if test $ac_cv_lib_event_event_dispatch = yes; then
22136   libevent=1
22137 else
22138   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22139 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22140    { (exit 1); exit 1; }; }
22141 fi
22142
22143     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22144 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22145 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22146   echo $ECHO_N "(cached) $ECHO_C" >&6
22147 else
22148   ac_check_lib_save_LIBS=$LIBS
22149 LIBS="-lnfsidmap  $LIBS"
22150 cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156
22157 /* Override any GCC internal prototype to avoid an error.
22158    Use char because int might match the return type of a GCC
22159    builtin and then its argument prototype would still apply.  */
22160 #ifdef __cplusplus
22161 extern "C"
22162 #endif
22163 char nfs4_init_name_mapping ();
22164 int
22165 main ()
22166 {
22167 return nfs4_init_name_mapping ();
22168   ;
22169   return 0;
22170 }
22171 _ACEOF
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (ac_try="$ac_link"
22174 case "(($ac_try" in
22175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22176   *) ac_try_echo=$ac_try;;
22177 esac
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179   (eval "$ac_link") 2>conftest.er1
22180   ac_status=$?
22181   grep -v '^ *+' conftest.er1 >conftest.err
22182   rm -f conftest.er1
22183   cat conftest.err >&5
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); } && {
22186          test -z "$ac_c_werror_flag" ||
22187          test ! -s conftest.err
22188        } && test -s conftest$ac_exeext &&
22189        $as_test_x conftest$ac_exeext; then
22190   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22196 fi
22197
22198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22199       conftest$ac_exeext conftest.$ac_ext
22200 LIBS=$ac_check_lib_save_LIBS
22201 fi
22202 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22203 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22204 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22205   libnfsidmap=1
22206 else
22207   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22208 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22209    { (exit 1); exit 1; }; }
22210 fi
22211
22212
22213 for ac_header in event.h
22214 do
22215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22217   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220   echo $ECHO_N "(cached) $ECHO_C" >&6
22221 fi
22222 ac_res=`eval echo '${'$as_ac_Header'}'`
22223                { echo "$as_me:$LINENO: result: $ac_res" >&5
22224 echo "${ECHO_T}$ac_res" >&6; }
22225 else
22226   # Is the header compilable?
22227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235 $ac_includes_default
22236 #include <$ac_header>
22237 _ACEOF
22238 rm -f conftest.$ac_objext
22239 if { (ac_try="$ac_compile"
22240 case "(($ac_try" in
22241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242   *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245   (eval "$ac_compile") 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } && {
22252          test -z "$ac_c_werror_flag" ||
22253          test ! -s conftest.err
22254        } && test -s conftest.$ac_objext; then
22255   ac_header_compiler=yes
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260         ac_header_compiler=no
22261 fi
22262
22263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22265 echo "${ECHO_T}$ac_header_compiler" >&6; }
22266
22267 # Is the header present?
22268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h.  */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h.  */
22276 #include <$ac_header>
22277 _ACEOF
22278 if { (ac_try="$ac_cpp conftest.$ac_ext"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } >/dev/null && {
22291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        }; then
22294   ac_header_preproc=yes
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299   ac_header_preproc=no
22300 fi
22301
22302 rm -f conftest.err conftest.$ac_ext
22303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22304 echo "${ECHO_T}$ac_header_preproc" >&6; }
22305
22306 # So?  What about this header?
22307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22308   yes:no: )
22309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22313     ac_header_preproc=yes
22314     ;;
22315   no:yes:* )
22316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22328     ( cat <<\_ASBOX
22329 ## ------------------------------- ##
22330 ## Report this to nfs@lists.sf.net ##
22331 ## ------------------------------- ##
22332 _ASBOX
22333      ) | sed "s/^/$as_me: WARNING:     /" >&2
22334     ;;
22335 esac
22336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341   eval "$as_ac_Header=\$ac_header_preproc"
22342 fi
22343 ac_res=`eval echo '${'$as_ac_Header'}'`
22344                { echo "$as_me:$LINENO: result: $ac_res" >&5
22345 echo "${ECHO_T}$ac_res" >&6; }
22346
22347 fi
22348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22349   cat >>confdefs.h <<_ACEOF
22350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22351 _ACEOF
22352
22353 else
22354   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22355 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22356    { (exit 1); exit 1; }; }
22357 fi
22358
22359 done
22360
22361
22362 for ac_header in nfsidmap.h
22363 do
22364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22369   echo $ECHO_N "(cached) $ECHO_C" >&6
22370 fi
22371 ac_res=`eval echo '${'$as_ac_Header'}'`
22372                { echo "$as_me:$LINENO: result: $ac_res" >&5
22373 echo "${ECHO_T}$ac_res" >&6; }
22374 else
22375   # Is the header compilable?
22376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22378 cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 $ac_includes_default
22385 #include <$ac_header>
22386 _ACEOF
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391   *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394   (eval "$ac_compile") 2>conftest.er1
22395   ac_status=$?
22396   grep -v '^ *+' conftest.er1 >conftest.err
22397   rm -f conftest.er1
22398   cat conftest.err >&5
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } && {
22401          test -z "$ac_c_werror_flag" ||
22402          test ! -s conftest.err
22403        } && test -s conftest.$ac_objext; then
22404   ac_header_compiler=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409         ac_header_compiler=no
22410 fi
22411
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22414 echo "${ECHO_T}$ac_header_compiler" >&6; }
22415
22416 # Is the header present?
22417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425 #include <$ac_header>
22426 _ACEOF
22427 if { (ac_try="$ac_cpp conftest.$ac_ext"
22428 case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22434   ac_status=$?
22435   grep -v '^ *+' conftest.er1 >conftest.err
22436   rm -f conftest.er1
22437   cat conftest.err >&5
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); } >/dev/null && {
22440          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22441          test ! -s conftest.err
22442        }; then
22443   ac_header_preproc=yes
22444 else
22445   echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448   ac_header_preproc=no
22449 fi
22450
22451 rm -f conftest.err conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6; }
22454
22455 # So?  What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457   yes:no: )
22458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22462     ac_header_preproc=yes
22463     ;;
22464   no:yes:* )
22465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22477     ( cat <<\_ASBOX
22478 ## ------------------------------- ##
22479 ## Report this to nfs@lists.sf.net ##
22480 ## ------------------------------- ##
22481 _ASBOX
22482      ) | sed "s/^/$as_me: WARNING:     /" >&2
22483     ;;
22484 esac
22485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22488   echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490   eval "$as_ac_Header=\$ac_header_preproc"
22491 fi
22492 ac_res=`eval echo '${'$as_ac_Header'}'`
22493                { echo "$as_me:$LINENO: result: $ac_res" >&5
22494 echo "${ECHO_T}$ac_res" >&6; }
22495
22496 fi
22497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22498   cat >>confdefs.h <<_ACEOF
22499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22500 _ACEOF
22501
22502 else
22503   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22504 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22505    { (exit 1); exit 1; }; }
22506 fi
22507
22508 done
22509
22510             if test "$enable_gss" = yes; then
22511
22512
22513 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22514         if test -n "$ac_tool_prefix"; then
22515   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22520   echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522   case $PKG_CONFIG in
22523   [\\/]* | ?:[\\/]*)
22524   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22525   ;;
22526   *)
22527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22528 for as_dir in $PATH
22529 do
22530   IFS=$as_save_IFS
22531   test -z "$as_dir" && as_dir=.
22532   for ac_exec_ext in '' $ac_executable_extensions; do
22533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22534     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22536     break 2
22537   fi
22538 done
22539 done
22540 IFS=$as_save_IFS
22541
22542   ;;
22543 esac
22544 fi
22545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22546 if test -n "$PKG_CONFIG"; then
22547   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22548 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22549 else
22550   { echo "$as_me:$LINENO: result: no" >&5
22551 echo "${ECHO_T}no" >&6; }
22552 fi
22553
22554
22555 fi
22556 if test -z "$ac_cv_path_PKG_CONFIG"; then
22557   ac_pt_PKG_CONFIG=$PKG_CONFIG
22558   # Extract the first word of "pkg-config", so it can be a program name with args.
22559 set dummy pkg-config; ac_word=$2
22560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22562 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22563   echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565   case $ac_pt_PKG_CONFIG in
22566   [\\/]* | ?:[\\/]*)
22567   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22568   ;;
22569   *)
22570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in $PATH
22572 do
22573   IFS=$as_save_IFS
22574   test -z "$as_dir" && as_dir=.
22575   for ac_exec_ext in '' $ac_executable_extensions; do
22576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22577     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22579     break 2
22580   fi
22581 done
22582 done
22583 IFS=$as_save_IFS
22584
22585   ;;
22586 esac
22587 fi
22588 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22589 if test -n "$ac_pt_PKG_CONFIG"; then
22590   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22591 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22592 else
22593   { echo "$as_me:$LINENO: result: no" >&5
22594 echo "${ECHO_T}no" >&6; }
22595 fi
22596
22597   if test "x$ac_pt_PKG_CONFIG" = x; then
22598     PKG_CONFIG=""
22599   else
22600     case $cross_compiling:$ac_tool_warned in
22601 yes:)
22602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22603 whose name does not start with the host triplet.  If you think this
22604 configuration is useful to you, please write to autoconf@gnu.org." >&5
22605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22606 whose name does not start with the host triplet.  If you think this
22607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22608 ac_tool_warned=yes ;;
22609 esac
22610     PKG_CONFIG=$ac_pt_PKG_CONFIG
22611   fi
22612 else
22613   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22614 fi
22615
22616 fi
22617 if test -n "$PKG_CONFIG"; then
22618         _pkg_min_version=0.9.0
22619         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22620 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22621         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22622                 { echo "$as_me:$LINENO: result: yes" >&5
22623 echo "${ECHO_T}yes" >&6; }
22624         else
22625                 { echo "$as_me:$LINENO: result: no" >&5
22626 echo "${ECHO_T}no" >&6; }
22627                 PKG_CONFIG=""
22628         fi
22629
22630 fi
22631
22632 pkg_failed=no
22633 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22634 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22635
22636 if test -n "$PKG_CONFIG"; then
22637     if test -n "$RPCSECGSS_CFLAGS"; then
22638         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22639     else
22640         if test -n "$PKG_CONFIG" && \
22641     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22642   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; then
22646   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22647 else
22648   pkg_failed=yes
22649 fi
22650     fi
22651 else
22652         pkg_failed=untried
22653 fi
22654 if test -n "$PKG_CONFIG"; then
22655     if test -n "$RPCSECGSS_LIBS"; then
22656         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22657     else
22658         if test -n "$PKG_CONFIG" && \
22659     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22660   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; then
22664   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22665 else
22666   pkg_failed=yes
22667 fi
22668     fi
22669 else
22670         pkg_failed=untried
22671 fi
22672
22673
22674
22675 if test $pkg_failed = yes; then
22676
22677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22678         _pkg_short_errors_supported=yes
22679 else
22680         _pkg_short_errors_supported=no
22681 fi
22682         if test $_pkg_short_errors_supported = yes; then
22683                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22684         else
22685                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22686         fi
22687         # Put the nasty error message in config.log where it belongs
22688         echo "$RPCSECGSS_PKG_ERRORS" >&5
22689
22690         { echo "$as_me:$LINENO: result: no" >&5
22691 echo "${ECHO_T}no" >&6; }
22692                 { { 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
22693 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;}
22694    { (exit 1); exit 1; }; }
22695
22696
22697 elif test $pkg_failed = untried; then
22698         { { 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
22699 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;}
22700    { (exit 1); exit 1; }; }
22701
22702
22703 else
22704         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22705         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22706         { echo "$as_me:$LINENO: result: yes" >&5
22707 echo "${ECHO_T}yes" >&6; }
22708         :
22709 fi
22710
22711 pkg_failed=no
22712 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22713 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22714
22715 if test -n "$PKG_CONFIG"; then
22716     if test -n "$GSSGLUE_CFLAGS"; then
22717         pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22718     else
22719         if test -n "$PKG_CONFIG" && \
22720     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22721   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); }; then
22725   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22726 else
22727   pkg_failed=yes
22728 fi
22729     fi
22730 else
22731         pkg_failed=untried
22732 fi
22733 if test -n "$PKG_CONFIG"; then
22734     if test -n "$GSSGLUE_LIBS"; then
22735         pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22736     else
22737         if test -n "$PKG_CONFIG" && \
22738     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22739   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; then
22743   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22744 else
22745   pkg_failed=yes
22746 fi
22747     fi
22748 else
22749         pkg_failed=untried
22750 fi
22751
22752
22753
22754 if test $pkg_failed = yes; then
22755
22756 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22757         _pkg_short_errors_supported=yes
22758 else
22759         _pkg_short_errors_supported=no
22760 fi
22761         if test $_pkg_short_errors_supported = yes; then
22762                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22763         else
22764                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22765         fi
22766         # Put the nasty error message in config.log where it belongs
22767         echo "$GSSGLUE_PKG_ERRORS" >&5
22768
22769         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22770
22771 $GSSGLUE_PKG_ERRORS
22772
22773 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22774 installed software in a non-standard prefix.
22775
22776 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22777 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22778 See the pkg-config man page for more details.
22779 " >&5
22780 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22781
22782 $GSSGLUE_PKG_ERRORS
22783
22784 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22785 installed software in a non-standard prefix.
22786
22787 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22788 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22789 See the pkg-config man page for more details.
22790 " >&2;}
22791    { (exit 1); exit 1; }; }
22792 elif test $pkg_failed = untried; then
22793         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22794 is in your PATH or set the PKG_CONFIG environment variable to the full
22795 path to pkg-config.
22796
22797 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22798 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22799 See the pkg-config man page for more details.
22800
22801 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22802 See \`config.log' for more details." >&5
22803 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22804 is in your PATH or set the PKG_CONFIG environment variable to the full
22805 path to pkg-config.
22806
22807 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22808 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22809 See the pkg-config man page for more details.
22810
22811 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22812 See \`config.log' for more details." >&2;}
22813    { (exit 1); exit 1; }; }
22814 else
22815         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22816         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22817         { echo "$as_me:$LINENO: result: yes" >&5
22818 echo "${ECHO_T}yes" >&6; }
22819         :
22820 fi
22821     fi
22822
22823 fi
22824 if test "$knfsd_cv_glibc2" = no; then
22825     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22826 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22827 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22828   echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830   ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-lbsd  $LIBS"
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838
22839 /* Override any GCC internal prototype to avoid an error.
22840    Use char because int might match the return type of a GCC
22841    builtin and then its argument prototype would still apply.  */
22842 #ifdef __cplusplus
22843 extern "C"
22844 #endif
22845 char daemon ();
22846 int
22847 main ()
22848 {
22849 return daemon ();
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (ac_try="$ac_link"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_link") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } && {
22868          test -z "$ac_c_werror_flag" ||
22869          test ! -s conftest.err
22870        } && test -s conftest$ac_exeext &&
22871        $as_test_x conftest$ac_exeext; then
22872   ac_cv_lib_bsd_daemon=yes
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877         ac_cv_lib_bsd_daemon=no
22878 fi
22879
22880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22881       conftest$ac_exeext conftest.$ac_ext
22882 LIBS=$ac_check_lib_save_LIBS
22883 fi
22884 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22885 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22886 if test $ac_cv_lib_bsd_daemon = yes; then
22887   LIBBSD="-lbsd"
22888 fi
22889
22890 fi
22891
22892 if test "$choose_blkid" != no; then
22893    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22894 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22895 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   ac_check_lib_save_LIBS=$LIBS
22899 LIBS="-lblkid  $LIBS"
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906
22907 /* Override any GCC internal prototype to avoid an error.
22908    Use char because int might match the return type of a GCC
22909    builtin and then its argument prototype would still apply.  */
22910 #ifdef __cplusplus
22911 extern "C"
22912 #endif
22913 char blkid_get_library_version ();
22914 int
22915 main ()
22916 {
22917 return blkid_get_library_version ();
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (ac_try="$ac_link"
22924 case "(($ac_try" in
22925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926   *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929   (eval "$ac_link") 2>conftest.er1
22930   ac_status=$?
22931   grep -v '^ *+' conftest.er1 >conftest.err
22932   rm -f conftest.er1
22933   cat conftest.err >&5
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); } && {
22936          test -z "$ac_c_werror_flag" ||
22937          test ! -s conftest.err
22938        } && test -s conftest$ac_exeext &&
22939        $as_test_x conftest$ac_exeext; then
22940   ac_cv_lib_blkid_blkid_get_library_version=yes
22941 else
22942   echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945         ac_cv_lib_blkid_blkid_get_library_version=no
22946 fi
22947
22948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22949       conftest$ac_exeext conftest.$ac_ext
22950 LIBS=$ac_check_lib_save_LIBS
22951 fi
22952 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22953 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22954 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22955   LIBBLKID="-lblkid"
22956 else
22957   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22958 echo "$as_me: error: libblkid needed" >&2;}
22959    { (exit 1); exit 1; }; }
22960 fi
22961
22962    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22963   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22964 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22965 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 fi
22968 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22969 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22970 else
22971   # Is the header compilable?
22972 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22973 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 $ac_includes_default
22981 #include <blkid/blkid.h>
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_compile") 2>conftest.er1
22991   ac_status=$?
22992   grep -v '^ *+' conftest.er1 >conftest.err
22993   rm -f conftest.er1
22994   cat conftest.err >&5
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } && {
22997          test -z "$ac_c_werror_flag" ||
22998          test ! -s conftest.err
22999        } && test -s conftest.$ac_objext; then
23000   ac_header_compiler=yes
23001 else
23002   echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005         ac_header_compiler=no
23006 fi
23007
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23010 echo "${ECHO_T}$ac_header_compiler" >&6; }
23011
23012 # Is the header present?
23013 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23014 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h.  */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h.  */
23021 #include <blkid/blkid.h>
23022 _ACEOF
23023 if { (ac_try="$ac_cpp conftest.$ac_ext"
23024 case "(($ac_try" in
23025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026   *) ac_try_echo=$ac_try;;
23027 esac
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23030   ac_status=$?
23031   grep -v '^ *+' conftest.er1 >conftest.err
23032   rm -f conftest.er1
23033   cat conftest.err >&5
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); } >/dev/null && {
23036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23037          test ! -s conftest.err
23038        }; then
23039   ac_header_preproc=yes
23040 else
23041   echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23043
23044   ac_header_preproc=no
23045 fi
23046
23047 rm -f conftest.err conftest.$ac_ext
23048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23049 echo "${ECHO_T}$ac_header_preproc" >&6; }
23050
23051 # So?  What about this header?
23052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23053   yes:no: )
23054     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23055 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23056     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23057 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23058     ac_header_preproc=yes
23059     ;;
23060   no:yes:* )
23061     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23062 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23063     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23064 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23065     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23066 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23067     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23068 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23069     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23070 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23071     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23072 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23073     ( cat <<\_ASBOX
23074 ## ------------------------------- ##
23075 ## Report this to nfs@lists.sf.net ##
23076 ## ------------------------------- ##
23077 _ASBOX
23078      ) | sed "s/^/$as_me: WARNING:     /" >&2
23079     ;;
23080 esac
23081 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23082 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23083 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23087 fi
23088 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23089 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23090
23091 fi
23092 if test $ac_cv_header_blkid_blkid_h = yes; then
23093   :
23094 else
23095   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23096 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23097    { (exit 1); exit 1; }; }
23098 fi
23099
23100
23101
23102   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23103 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23104   if test "${libblkid_is_recent+set}" = set; then
23105   echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107
23108     saved_LIBS="$LIBS"
23109     LIBS=-lblkid
23110     if test "$cross_compiling" = yes; then
23111   libblkid_is_recent=unknown
23112 else
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119
23120         #include <blkid/blkid.h>
23121         int main()
23122         {
23123                 int vers = blkid_get_library_version(0, 0);
23124                 return vers >= 140 ? 0 : 1;
23125         }
23126
23127 _ACEOF
23128 rm -f conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_link") 2>&5
23136   ac_status=$?
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23139   { (case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144   (eval "$ac_try") 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; }; then
23148   libblkid_is_recent=yes
23149 else
23150   echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 ( exit $ac_status )
23155 libblkid_is_recent=no
23156 fi
23157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23158 fi
23159
23160
23161     LIBS="$saved_LIBS"
23162
23163 fi
23164   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23165 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23166
23167    if test $choose_blkid = yes; then
23168       use_blkid=1
23169       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23170 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23171    else
23172       if test $libblkid_is_recent = yes
23173       then use_blkid=1
23174       else use_blkid=0
23175            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23176 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23177       fi
23178     fi
23179
23180 cat >>confdefs.h <<_ACEOF
23181 #define USE_BLKID $use_blkid
23182 _ACEOF
23183
23184 fi
23185
23186
23187
23188
23189
23190 if test "$enable_gss" = yes; then
23191
23192 for ac_header in nfsidmap.h
23193 do
23194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199   echo $ECHO_N "(cached) $ECHO_C" >&6
23200 fi
23201 ac_res=`eval echo '${'$as_ac_Header'}'`
23202                { echo "$as_me:$LINENO: result: $ac_res" >&5
23203 echo "${ECHO_T}$ac_res" >&6; }
23204 else
23205   # Is the header compilable?
23206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 $ac_includes_default
23215 #include <$ac_header>
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_compile") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } && {
23231          test -z "$ac_c_werror_flag" ||
23232          test ! -s conftest.err
23233        } && test -s conftest.$ac_objext; then
23234   ac_header_compiler=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239         ac_header_compiler=no
23240 fi
23241
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23244 echo "${ECHO_T}$ac_header_compiler" >&6; }
23245
23246 # Is the header present?
23247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255 #include <$ac_header>
23256 _ACEOF
23257 if { (ac_try="$ac_cpp conftest.$ac_ext"
23258 case "(($ac_try" in
23259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260   *) ac_try_echo=$ac_try;;
23261 esac
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } >/dev/null && {
23270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23271          test ! -s conftest.err
23272        }; then
23273   ac_header_preproc=yes
23274 else
23275   echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278   ac_header_preproc=no
23279 fi
23280
23281 rm -f conftest.err conftest.$ac_ext
23282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23283 echo "${ECHO_T}$ac_header_preproc" >&6; }
23284
23285 # So?  What about this header?
23286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23287   yes:no: )
23288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23292     ac_header_preproc=yes
23293     ;;
23294   no:yes:* )
23295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23307     ( cat <<\_ASBOX
23308 ## ------------------------------- ##
23309 ## Report this to nfs@lists.sf.net ##
23310 ## ------------------------------- ##
23311 _ASBOX
23312      ) | sed "s/^/$as_me: WARNING:     /" >&2
23313     ;;
23314 esac
23315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   eval "$as_ac_Header=\$ac_header_preproc"
23321 fi
23322 ac_res=`eval echo '${'$as_ac_Header'}'`
23323                { echo "$as_me:$LINENO: result: $ac_res" >&5
23324 echo "${ECHO_T}$ac_res" >&6; }
23325
23326 fi
23327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23328   cat >>confdefs.h <<_ACEOF
23329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23330 _ACEOF
23331
23332 else
23333   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23334 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23335    { (exit 1); exit 1; }; }
23336 fi
23337
23338 done
23339
23340
23341 for ac_header in spkm3.h
23342 do
23343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 fi
23350 ac_res=`eval echo '${'$as_ac_Header'}'`
23351                { echo "$as_me:$LINENO: result: $ac_res" >&5
23352 echo "${ECHO_T}$ac_res" >&6; }
23353 else
23354   # Is the header compilable?
23355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363 $ac_includes_default
23364 #include <$ac_header>
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_compile") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest.$ac_objext; then
23383   ac_header_compiler=yes
23384 else
23385   echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388         ac_header_compiler=no
23389 fi
23390
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23393 echo "${ECHO_T}$ac_header_compiler" >&6; }
23394
23395 # Is the header present?
23396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23398 cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h.  */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h.  */
23404 #include <$ac_header>
23405 _ACEOF
23406 if { (ac_try="$ac_cpp conftest.$ac_ext"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } >/dev/null && {
23419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23420          test ! -s conftest.err
23421        }; then
23422   ac_header_preproc=yes
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427   ac_header_preproc=no
23428 fi
23429
23430 rm -f conftest.err conftest.$ac_ext
23431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23432 echo "${ECHO_T}$ac_header_preproc" >&6; }
23433
23434 # So?  What about this header?
23435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23436   yes:no: )
23437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23441     ac_header_preproc=yes
23442     ;;
23443   no:yes:* )
23444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23456     ( cat <<\_ASBOX
23457 ## ------------------------------- ##
23458 ## Report this to nfs@lists.sf.net ##
23459 ## ------------------------------- ##
23460 _ASBOX
23461      ) | sed "s/^/$as_me: WARNING:     /" >&2
23462     ;;
23463 esac
23464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467   echo $ECHO_N "(cached) $ECHO_C" >&6
23468 else
23469   eval "$as_ac_Header=\$ac_header_preproc"
23470 fi
23471 ac_res=`eval echo '${'$as_ac_Header'}'`
23472                { echo "$as_me:$LINENO: result: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23474
23475 fi
23476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23477   cat >>confdefs.h <<_ACEOF
23478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23479 _ACEOF
23480
23481 else
23482   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23483 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23484 fi
23485
23486 done
23487
23488     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23489 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23490 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23491   echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493   ac_check_lib_save_LIBS=$LIBS
23494 LIBS="-lnfsidmap  $LIBS"
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
23502 /* Override any GCC internal prototype to avoid an error.
23503    Use char because int might match the return type of a GCC
23504    builtin and then its argument prototype would still apply.  */
23505 #ifdef __cplusplus
23506 extern "C"
23507 #endif
23508 char nfs4_set_debug ();
23509 int
23510 main ()
23511 {
23512 return nfs4_set_debug ();
23513   ;
23514   return 0;
23515 }
23516 _ACEOF
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521   *) ac_try_echo=$ac_try;;
23522 esac
23523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23524   (eval "$ac_link") 2>conftest.er1
23525   ac_status=$?
23526   grep -v '^ *+' conftest.er1 >conftest.err
23527   rm -f conftest.er1
23528   cat conftest.err >&5
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); } && {
23531          test -z "$ac_c_werror_flag" ||
23532          test ! -s conftest.err
23533        } && test -s conftest$ac_exeext &&
23534        $as_test_x conftest$ac_exeext; then
23535   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544       conftest$ac_exeext conftest.$ac_ext
23545 LIBS=$ac_check_lib_save_LIBS
23546 fi
23547 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23548 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23549 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23550
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_NFS4_SET_DEBUG 1
23553 _ACEOF
23554
23555 fi
23556
23557
23558
23559   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23560 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23561
23562 # Check whether --with-krb5 was given.
23563 if test "${with_krb5+set}" = set; then
23564   withval=$with_krb5;  case "$withval" in
23565     yes|no)
23566        krb5_with=""
23567        ;;
23568     *)
23569        krb5_with="$withval"
23570        ;;
23571     esac
23572
23573 fi
23574
23575
23576   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23577              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23578             K5CONFIG=""
23579     if test -f $dir/bin/krb5-config; then
23580       K5CONFIG=$dir/bin/krb5-config
23581     elif test -f "/usr/kerberos/bin/krb5-config"; then
23582       K5CONFIG="/usr/kerberos/bin/krb5-config"
23583     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23584       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23585     fi
23586     if test "$K5CONFIG" != ""; then
23587       KRBCFLAGS=`$K5CONFIG --cflags`
23588       KRBLIBS=`$K5CONFIG --libs gssapi`
23589       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23590
23591 cat >>confdefs.h <<_ACEOF
23592 #define KRB5_VERSION $K5VERS
23593 _ACEOF
23594
23595       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23596                 \( -f $dir/lib/libgssapi_krb5.a -o \
23597                    -f $dir/lib64/libgssapi_krb5.a -o \
23598                    -f $dir/lib64/libgssapi_krb5.so -o \
23599                    -f $dir/lib/libgssapi_krb5.so \) ; then
23600
23601 cat >>confdefs.h <<\_ACEOF
23602 #define HAVE_KRB5 1
23603 _ACEOF
23604
23605          KRBDIR="$dir"
23606                      if test $K5VERS -le 131; then
23607
23608 cat >>confdefs.h <<\_ACEOF
23609 #define USE_GSS_KRB5_CCACHE_NAME 1
23610 _ACEOF
23611
23612          fi
23613          gssapi_lib=gssapi_krb5
23614          break
23615                   elif test \( -f $dir/include/heim_err.h -o\
23616                  -f $dir/include/heimdal/heim_err.h \) -a \
23617                 -f $dir/lib/libroken.a; then
23618
23619 cat >>confdefs.h <<\_ACEOF
23620 #define HAVE_HEIMDAL 1
23621 _ACEOF
23622
23623          KRBDIR="$dir"
23624          gssapi_lib=gssapi
23625         break
23626       fi
23627     fi
23628   done
23629     if test "x$KRBDIR" = "x"; then
23630     if test "x$krb5_with" = "x"; then
23631       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23632 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23633    { (exit 1); exit 1; }; }
23634     else
23635       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23636 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23637    { (exit 1); exit 1; }; }
23638     fi
23639   fi
23640   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23641 echo "${ECHO_T}$KRBDIR" >&6; }
23642
23643     echo "The current KRBDIR is $KRBDIR"
23644   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23645        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23646     KRBLDFLAGS="";
23647   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23648     KRBLDFLAGS="";
23649   else
23650     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23651   fi
23652
23653     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23654 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23655 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23656 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23657   echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659   ac_check_lib_save_LIBS=$LIBS
23660 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23661 cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h.  */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h.  */
23667
23668 /* Override any GCC internal prototype to avoid an error.
23669    Use char because int might match the return type of a GCC
23670    builtin and then its argument prototype would still apply.  */
23671 #ifdef __cplusplus
23672 extern "C"
23673 #endif
23674 char gss_krb5_export_lucid_sec_context ();
23675 int
23676 main ()
23677 {
23678 return gss_krb5_export_lucid_sec_context ();
23679   ;
23680   return 0;
23681 }
23682 _ACEOF
23683 rm -f conftest.$ac_objext conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687   *) ac_try_echo=$ac_try;;
23688 esac
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690   (eval "$ac_link") 2>conftest.er1
23691   ac_status=$?
23692   grep -v '^ *+' conftest.er1 >conftest.err
23693   rm -f conftest.er1
23694   cat conftest.err >&5
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); } && {
23697          test -z "$ac_c_werror_flag" ||
23698          test ! -s conftest.err
23699        } && test -s conftest$ac_exeext &&
23700        $as_test_x conftest$ac_exeext; then
23701   eval "$as_ac_Lib=yes"
23702 else
23703   echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23705
23706         eval "$as_ac_Lib=no"
23707 fi
23708
23709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23710       conftest$ac_exeext conftest.$ac_ext
23711 LIBS=$ac_check_lib_save_LIBS
23712 fi
23713 ac_res=`eval echo '${'$as_ac_Lib'}'`
23714                { echo "$as_me:$LINENO: result: $ac_res" >&5
23715 echo "${ECHO_T}$ac_res" >&6; }
23716 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23717
23718 cat >>confdefs.h <<\_ACEOF
23719 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23720 _ACEOF
23721
23722 fi
23723
23724   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23725 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23726 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23727 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23728   echo $ECHO_N "(cached) $ECHO_C" >&6
23729 else
23730   ac_check_lib_save_LIBS=$LIBS
23731 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738
23739 /* Override any GCC internal prototype to avoid an error.
23740    Use char because int might match the return type of a GCC
23741    builtin and then its argument prototype would still apply.  */
23742 #ifdef __cplusplus
23743 extern "C"
23744 #endif
23745 char gss_krb5_set_allowable_enctypes ();
23746 int
23747 main ()
23748 {
23749 return gss_krb5_set_allowable_enctypes ();
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_link") 2>conftest.er1
23762   ac_status=$?
23763   grep -v '^ *+' conftest.er1 >conftest.err
23764   rm -f conftest.er1
23765   cat conftest.err >&5
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); } && {
23768          test -z "$ac_c_werror_flag" ||
23769          test ! -s conftest.err
23770        } && test -s conftest$ac_exeext &&
23771        $as_test_x conftest$ac_exeext; then
23772   eval "$as_ac_Lib=yes"
23773 else
23774   echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777         eval "$as_ac_Lib=no"
23778 fi
23779
23780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23781       conftest$ac_exeext conftest.$ac_ext
23782 LIBS=$ac_check_lib_save_LIBS
23783 fi
23784 ac_res=`eval echo '${'$as_ac_Lib'}'`
23785                { echo "$as_me:$LINENO: result: $ac_res" >&5
23786 echo "${ECHO_T}$ac_res" >&6; }
23787 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23788
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23791 _ACEOF
23792
23793 fi
23794
23795   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23796 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23797 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23799   echo $ECHO_N "(cached) $ECHO_C" >&6
23800 else
23801   ac_check_lib_save_LIBS=$LIBS
23802 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23803 cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h.  */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h.  */
23809
23810 /* Override any GCC internal prototype to avoid an error.
23811    Use char because int might match the return type of a GCC
23812    builtin and then its argument prototype would still apply.  */
23813 #ifdef __cplusplus
23814 extern "C"
23815 #endif
23816 char gss_krb5_ccache_name ();
23817 int
23818 main ()
23819 {
23820 return gss_krb5_ccache_name ();
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext conftest$ac_exeext
23826 if { (ac_try="$ac_link"
23827 case "(($ac_try" in
23828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829   *) ac_try_echo=$ac_try;;
23830 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832   (eval "$ac_link") 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } && {
23839          test -z "$ac_c_werror_flag" ||
23840          test ! -s conftest.err
23841        } && test -s conftest$ac_exeext &&
23842        $as_test_x conftest$ac_exeext; then
23843   eval "$as_ac_Lib=yes"
23844 else
23845   echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23847
23848         eval "$as_ac_Lib=no"
23849 fi
23850
23851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23852       conftest$ac_exeext conftest.$ac_ext
23853 LIBS=$ac_check_lib_save_LIBS
23854 fi
23855 ac_res=`eval echo '${'$as_ac_Lib'}'`
23856                { echo "$as_me:$LINENO: result: $ac_res" >&5
23857 echo "${ECHO_T}$ac_res" >&6; }
23858 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23859
23860 cat >>confdefs.h <<\_ACEOF
23861 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23862 _ACEOF
23863
23864 fi
23865
23866
23867     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23868 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23869 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23870 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23871   echo $ECHO_N "(cached) $ECHO_C" >&6
23872 else
23873   ac_check_lib_save_LIBS=$LIBS
23874 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23875 cat >conftest.$ac_ext <<_ACEOF
23876 /* confdefs.h.  */
23877 _ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h.  */
23881
23882 /* Override any GCC internal prototype to avoid an error.
23883    Use char because int might match the return type of a GCC
23884    builtin and then its argument prototype would still apply.  */
23885 #ifdef __cplusplus
23886 extern "C"
23887 #endif
23888 char krb5_get_error_message ();
23889 int
23890 main ()
23891 {
23892 return krb5_get_error_message ();
23893   ;
23894   return 0;
23895 }
23896 _ACEOF
23897 rm -f conftest.$ac_objext conftest$ac_exeext
23898 if { (ac_try="$ac_link"
23899 case "(($ac_try" in
23900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901   *) ac_try_echo=$ac_try;;
23902 esac
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904   (eval "$ac_link") 2>conftest.er1
23905   ac_status=$?
23906   grep -v '^ *+' conftest.er1 >conftest.err
23907   rm -f conftest.er1
23908   cat conftest.err >&5
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   (exit $ac_status); } && {
23911          test -z "$ac_c_werror_flag" ||
23912          test ! -s conftest.err
23913        } && test -s conftest$ac_exeext &&
23914        $as_test_x conftest$ac_exeext; then
23915   eval "$as_ac_Lib=yes"
23916 else
23917   echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920         eval "$as_ac_Lib=no"
23921 fi
23922
23923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23924       conftest$ac_exeext conftest.$ac_ext
23925 LIBS=$ac_check_lib_save_LIBS
23926 fi
23927 ac_res=`eval echo '${'$as_ac_Lib'}'`
23928                { echo "$as_me:$LINENO: result: $ac_res" >&5
23929 echo "${ECHO_T}$ac_res" >&6; }
23930 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23931
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23934 _ACEOF
23935
23936 fi
23937
23938
23939     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23940 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23941 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23942 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945   ac_check_lib_save_LIBS=$LIBS
23946 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23947 cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953
23954 /* Override any GCC internal prototype to avoid an error.
23955    Use char because int might match the return type of a GCC
23956    builtin and then its argument prototype would still apply.  */
23957 #ifdef __cplusplus
23958 extern "C"
23959 #endif
23960 char krb5_get_init_creds_opt_set_addressless ();
23961 int
23962 main ()
23963 {
23964 return krb5_get_init_creds_opt_set_addressless ();
23965   ;
23966   return 0;
23967 }
23968 _ACEOF
23969 rm -f conftest.$ac_objext conftest$ac_exeext
23970 if { (ac_try="$ac_link"
23971 case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976   (eval "$ac_link") 2>conftest.er1
23977   ac_status=$?
23978   grep -v '^ *+' conftest.er1 >conftest.err
23979   rm -f conftest.er1
23980   cat conftest.err >&5
23981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982   (exit $ac_status); } && {
23983          test -z "$ac_c_werror_flag" ||
23984          test ! -s conftest.err
23985        } && test -s conftest$ac_exeext &&
23986        $as_test_x conftest$ac_exeext; then
23987   eval "$as_ac_Lib=yes"
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992         eval "$as_ac_Lib=no"
23993 fi
23994
23995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23996       conftest$ac_exeext conftest.$ac_ext
23997 LIBS=$ac_check_lib_save_LIBS
23998 fi
23999 ac_res=`eval echo '${'$as_ac_Lib'}'`
24000                { echo "$as_me:$LINENO: result: $ac_res" >&5
24001 echo "${ECHO_T}$ac_res" >&6; }
24002 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24003
24004 cat >>confdefs.h <<\_ACEOF
24005 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24006 _ACEOF
24007
24008 fi
24009
24010
24011     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24012     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24013 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24014   fi
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24025 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24026 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24027   echo $ECHO_N "(cached) $ECHO_C" >&6
24028 else
24029   ac_check_lib_save_LIBS=$LIBS
24030 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h.  */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h.  */
24037
24038 /* Override any GCC internal prototype to avoid an error.
24039    Use char because int might match the return type of a GCC
24040    builtin and then its argument prototype would still apply.  */
24041 #ifdef __cplusplus
24042 extern "C"
24043 #endif
24044 char authgss_create_default ();
24045 int
24046 main ()
24047 {
24048 return authgss_create_default ();
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057   *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060   (eval "$ac_link") 2>conftest.er1
24061   ac_status=$?
24062   grep -v '^ *+' conftest.er1 >conftest.err
24063   rm -f conftest.er1
24064   cat conftest.err >&5
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); } && {
24067          test -z "$ac_c_werror_flag" ||
24068          test ! -s conftest.err
24069        } && test -s conftest$ac_exeext &&
24070        $as_test_x conftest$ac_exeext; then
24071   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24072 else
24073   echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24075
24076         ac_cv_lib_rpcsecgss_authgss_create_default=no
24077 fi
24078
24079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24080       conftest$ac_exeext conftest.$ac_ext
24081 LIBS=$ac_check_lib_save_LIBS
24082 fi
24083 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24084 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24085 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24086   librpcsecgss=1
24087 else
24088   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24089 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24090    { (exit 1); exit 1; }; }
24091 fi
24092
24093   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24094 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24095 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098   ac_check_lib_save_LIBS=$LIBS
24099 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24100 cat >conftest.$ac_ext <<_ACEOF
24101 /* confdefs.h.  */
24102 _ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h.  */
24106
24107 /* Override any GCC internal prototype to avoid an error.
24108    Use char because int might match the return type of a GCC
24109    builtin and then its argument prototype would still apply.  */
24110 #ifdef __cplusplus
24111 extern "C"
24112 #endif
24113 char authgss_set_debug_level ();
24114 int
24115 main ()
24116 {
24117 return authgss_set_debug_level ();
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext conftest$ac_exeext
24123 if { (ac_try="$ac_link"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_link") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_c_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest$ac_exeext &&
24139        $as_test_x conftest$ac_exeext; then
24140   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24141 else
24142   echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24146 fi
24147
24148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24149       conftest$ac_exeext conftest.$ac_ext
24150 LIBS=$ac_check_lib_save_LIBS
24151 fi
24152 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24153 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24154 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24155
24156 cat >>confdefs.h <<\_ACEOF
24157 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24158 _ACEOF
24159
24160 fi
24161
24162
24163 fi
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24189                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24190                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24191                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24192                  syslog.h unistd.h com_err.h et/com_err.h \
24193                  ifaddrs.h
24194 do
24195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24200   echo $ECHO_N "(cached) $ECHO_C" >&6
24201 fi
24202 ac_res=`eval echo '${'$as_ac_Header'}'`
24203                { echo "$as_me:$LINENO: result: $ac_res" >&5
24204 echo "${ECHO_T}$ac_res" >&6; }
24205 else
24206   # Is the header compilable?
24207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24209 cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h.  */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h.  */
24215 $ac_includes_default
24216 #include <$ac_header>
24217 _ACEOF
24218 rm -f conftest.$ac_objext
24219 if { (ac_try="$ac_compile"
24220 case "(($ac_try" in
24221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222   *) ac_try_echo=$ac_try;;
24223 esac
24224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24225   (eval "$ac_compile") 2>conftest.er1
24226   ac_status=$?
24227   grep -v '^ *+' conftest.er1 >conftest.err
24228   rm -f conftest.er1
24229   cat conftest.err >&5
24230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231   (exit $ac_status); } && {
24232          test -z "$ac_c_werror_flag" ||
24233          test ! -s conftest.err
24234        } && test -s conftest.$ac_objext; then
24235   ac_header_compiler=yes
24236 else
24237   echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24239
24240         ac_header_compiler=no
24241 fi
24242
24243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24245 echo "${ECHO_T}$ac_header_compiler" >&6; }
24246
24247 # Is the header present?
24248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24250 cat >conftest.$ac_ext <<_ACEOF
24251 /* confdefs.h.  */
24252 _ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h.  */
24256 #include <$ac_header>
24257 _ACEOF
24258 if { (ac_try="$ac_cpp conftest.$ac_ext"
24259 case "(($ac_try" in
24260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261   *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24265   ac_status=$?
24266   grep -v '^ *+' conftest.er1 >conftest.err
24267   rm -f conftest.er1
24268   cat conftest.err >&5
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } >/dev/null && {
24271          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24272          test ! -s conftest.err
24273        }; then
24274   ac_header_preproc=yes
24275 else
24276   echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279   ac_header_preproc=no
24280 fi
24281
24282 rm -f conftest.err conftest.$ac_ext
24283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24284 echo "${ECHO_T}$ac_header_preproc" >&6; }
24285
24286 # So?  What about this header?
24287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24288   yes:no: )
24289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24293     ac_header_preproc=yes
24294     ;;
24295   no:yes:* )
24296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24308     ( cat <<\_ASBOX
24309 ## ------------------------------- ##
24310 ## Report this to nfs@lists.sf.net ##
24311 ## ------------------------------- ##
24312 _ASBOX
24313      ) | sed "s/^/$as_me: WARNING:     /" >&2
24314     ;;
24315 esac
24316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24319   echo $ECHO_N "(cached) $ECHO_C" >&6
24320 else
24321   eval "$as_ac_Header=\$ac_header_preproc"
24322 fi
24323 ac_res=`eval echo '${'$as_ac_Header'}'`
24324                { echo "$as_me:$LINENO: result: $ac_res" >&5
24325 echo "${ECHO_T}$ac_res" >&6; }
24326
24327 fi
24328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24329   cat >>confdefs.h <<_ACEOF
24330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24331 _ACEOF
24332
24333 fi
24334
24335 done
24336
24337
24338 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24339 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24340 if test "${ac_cv_c_const+set}" = set; then
24341   echo $ECHO_N "(cached) $ECHO_C" >&6
24342 else
24343   cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349
24350 int
24351 main ()
24352 {
24353 /* FIXME: Include the comments suggested by Paul. */
24354 #ifndef __cplusplus
24355   /* Ultrix mips cc rejects this.  */
24356   typedef int charset[2];
24357   const charset cs;
24358   /* SunOS 4.1.1 cc rejects this.  */
24359   char const *const *pcpcc;
24360   char **ppc;
24361   /* NEC SVR4.0.2 mips cc rejects this.  */
24362   struct point {int x, y;};
24363   static struct point const zero = {0,0};
24364   /* AIX XL C 1.02.0.0 rejects this.
24365      It does not let you subtract one const X* pointer from another in
24366      an arm of an if-expression whose if-part is not a constant
24367      expression */
24368   const char *g = "string";
24369   pcpcc = &g + (g ? g-g : 0);
24370   /* HPUX 7.0 cc rejects these. */
24371   ++pcpcc;
24372   ppc = (char**) pcpcc;
24373   pcpcc = (char const *const *) ppc;
24374   { /* SCO 3.2v4 cc rejects this.  */
24375     char *t;
24376     char const *s = 0 ? (char *) 0 : (char const *) 0;
24377
24378     *t++ = 0;
24379     if (s) return 0;
24380   }
24381   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24382     int x[] = {25, 17};
24383     const int *foo = &x[0];
24384     ++foo;
24385   }
24386   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24387     typedef const int *iptr;
24388     iptr p = 0;
24389     ++p;
24390   }
24391   { /* AIX XL C 1.02.0.0 rejects this saying
24392        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24393     struct s { int j; const int *ap[3]; };
24394     struct s *b; b->j = 5;
24395   }
24396   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24397     const int foo = 10;
24398     if (!foo) return 0;
24399   }
24400   return !cs[0] && !zero.x;
24401 #endif
24402
24403   ;
24404   return 0;
24405 }
24406 _ACEOF
24407 rm -f conftest.$ac_objext
24408 if { (ac_try="$ac_compile"
24409 case "(($ac_try" in
24410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411   *) ac_try_echo=$ac_try;;
24412 esac
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414   (eval "$ac_compile") 2>conftest.er1
24415   ac_status=$?
24416   grep -v '^ *+' conftest.er1 >conftest.err
24417   rm -f conftest.er1
24418   cat conftest.err >&5
24419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420   (exit $ac_status); } && {
24421          test -z "$ac_c_werror_flag" ||
24422          test ! -s conftest.err
24423        } && test -s conftest.$ac_objext; then
24424   ac_cv_c_const=yes
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429         ac_cv_c_const=no
24430 fi
24431
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433 fi
24434 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24435 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24436 if test $ac_cv_c_const = no; then
24437
24438 cat >>confdefs.h <<\_ACEOF
24439 #define const
24440 _ACEOF
24441
24442 fi
24443
24444 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24445 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24446 if test "${ac_cv_type_uid_t+set}" = set; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449   cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 #include <sys/types.h>
24456
24457 _ACEOF
24458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24459   $EGREP "uid_t" >/dev/null 2>&1; then
24460   ac_cv_type_uid_t=yes
24461 else
24462   ac_cv_type_uid_t=no
24463 fi
24464 rm -f conftest*
24465
24466 fi
24467 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24468 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24469 if test $ac_cv_type_uid_t = no; then
24470
24471 cat >>confdefs.h <<\_ACEOF
24472 #define uid_t int
24473 _ACEOF
24474
24475
24476 cat >>confdefs.h <<\_ACEOF
24477 #define gid_t int
24478 _ACEOF
24479
24480 fi
24481
24482 { echo "$as_me:$LINENO: checking for inline" >&5
24483 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24484 if test "${ac_cv_c_inline+set}" = set; then
24485   echo $ECHO_N "(cached) $ECHO_C" >&6
24486 else
24487   ac_cv_c_inline=no
24488 for ac_kw in inline __inline__ __inline; do
24489   cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h.  */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h.  */
24495 #ifndef __cplusplus
24496 typedef int foo_t;
24497 static $ac_kw foo_t static_foo () {return 0; }
24498 $ac_kw foo_t foo () {return 0; }
24499 #endif
24500
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
24504 case "(($ac_try" in
24505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506   *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509   (eval "$ac_compile") 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } && {
24516          test -z "$ac_c_werror_flag" ||
24517          test ! -s conftest.err
24518        } && test -s conftest.$ac_objext; then
24519   ac_cv_c_inline=$ac_kw
24520 else
24521   echo "$as_me: failed program was:" >&5
24522 sed 's/^/| /' conftest.$ac_ext >&5
24523
24524
24525 fi
24526
24527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528   test "$ac_cv_c_inline" != no && break
24529 done
24530
24531 fi
24532 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24533 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24534
24535
24536 case $ac_cv_c_inline in
24537   inline | yes) ;;
24538   *)
24539     case $ac_cv_c_inline in
24540       no) ac_val=;;
24541       *) ac_val=$ac_cv_c_inline;;
24542     esac
24543     cat >>confdefs.h <<_ACEOF
24544 #ifndef __cplusplus
24545 #define inline $ac_val
24546 #endif
24547 _ACEOF
24548     ;;
24549 esac
24550
24551 { echo "$as_me:$LINENO: checking for off_t" >&5
24552 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24553 if test "${ac_cv_type_off_t+set}" = set; then
24554   echo $ECHO_N "(cached) $ECHO_C" >&6
24555 else
24556   cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 $ac_includes_default
24563 typedef off_t ac__type_new_;
24564 int
24565 main ()
24566 {
24567 if ((ac__type_new_ *) 0)
24568   return 0;
24569 if (sizeof (ac__type_new_))
24570   return 0;
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582   (eval "$ac_compile") 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && {
24589          test -z "$ac_c_werror_flag" ||
24590          test ! -s conftest.err
24591        } && test -s conftest.$ac_objext; then
24592   ac_cv_type_off_t=yes
24593 else
24594   echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24596
24597         ac_cv_type_off_t=no
24598 fi
24599
24600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24601 fi
24602 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24603 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24604 if test $ac_cv_type_off_t = yes; then
24605   :
24606 else
24607
24608 cat >>confdefs.h <<_ACEOF
24609 #define off_t long int
24610 _ACEOF
24611
24612 fi
24613
24614 { echo "$as_me:$LINENO: checking for pid_t" >&5
24615 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24616 if test "${ac_cv_type_pid_t+set}" = set; then
24617   echo $ECHO_N "(cached) $ECHO_C" >&6
24618 else
24619   cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625 $ac_includes_default
24626 typedef pid_t ac__type_new_;
24627 int
24628 main ()
24629 {
24630 if ((ac__type_new_ *) 0)
24631   return 0;
24632 if (sizeof (ac__type_new_))
24633   return 0;
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642   *) ac_try_echo=$ac_try;;
24643 esac
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645   (eval "$ac_compile") 2>conftest.er1
24646   ac_status=$?
24647   grep -v '^ *+' conftest.er1 >conftest.err
24648   rm -f conftest.er1
24649   cat conftest.err >&5
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); } && {
24652          test -z "$ac_c_werror_flag" ||
24653          test ! -s conftest.err
24654        } && test -s conftest.$ac_objext; then
24655   ac_cv_type_pid_t=yes
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660         ac_cv_type_pid_t=no
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664 fi
24665 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24666 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24667 if test $ac_cv_type_pid_t = yes; then
24668   :
24669 else
24670
24671 cat >>confdefs.h <<_ACEOF
24672 #define pid_t int
24673 _ACEOF
24674
24675 fi
24676
24677 { echo "$as_me:$LINENO: checking for size_t" >&5
24678 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24679 if test "${ac_cv_type_size_t+set}" = set; then
24680   echo $ECHO_N "(cached) $ECHO_C" >&6
24681 else
24682   cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h.  */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h.  */
24688 $ac_includes_default
24689 typedef size_t ac__type_new_;
24690 int
24691 main ()
24692 {
24693 if ((ac__type_new_ *) 0)
24694   return 0;
24695 if (sizeof (ac__type_new_))
24696   return 0;
24697   ;
24698   return 0;
24699 }
24700 _ACEOF
24701 rm -f conftest.$ac_objext
24702 if { (ac_try="$ac_compile"
24703 case "(($ac_try" in
24704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705   *) ac_try_echo=$ac_try;;
24706 esac
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708   (eval "$ac_compile") 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } && {
24715          test -z "$ac_c_werror_flag" ||
24716          test ! -s conftest.err
24717        } && test -s conftest.$ac_objext; then
24718   ac_cv_type_size_t=yes
24719 else
24720   echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723         ac_cv_type_size_t=no
24724 fi
24725
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 fi
24728 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24729 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24730 if test $ac_cv_type_size_t = yes; then
24731   :
24732 else
24733
24734 cat >>confdefs.h <<_ACEOF
24735 #define size_t unsigned int
24736 _ACEOF
24737
24738 fi
24739
24740 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24741 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24742 if test "${ac_cv_header_time+set}" = set; then
24743   echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745   cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h.  */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h.  */
24751 #include <sys/types.h>
24752 #include <sys/time.h>
24753 #include <time.h>
24754
24755 int
24756 main ()
24757 {
24758 if ((struct tm *) 0)
24759 return 0;
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 rm -f conftest.$ac_objext
24765 if { (ac_try="$ac_compile"
24766 case "(($ac_try" in
24767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24768   *) ac_try_echo=$ac_try;;
24769 esac
24770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24771   (eval "$ac_compile") 2>conftest.er1
24772   ac_status=$?
24773   grep -v '^ *+' conftest.er1 >conftest.err
24774   rm -f conftest.er1
24775   cat conftest.err >&5
24776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777   (exit $ac_status); } && {
24778          test -z "$ac_c_werror_flag" ||
24779          test ! -s conftest.err
24780        } && test -s conftest.$ac_objext; then
24781   ac_cv_header_time=yes
24782 else
24783   echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786         ac_cv_header_time=no
24787 fi
24788
24789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 fi
24791 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24792 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24793 if test $ac_cv_header_time = yes; then
24794
24795 cat >>confdefs.h <<\_ACEOF
24796 #define TIME_WITH_SYS_TIME 1
24797 _ACEOF
24798
24799 fi
24800
24801 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24802 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24803 if test "${ac_cv_struct_tm+set}" = set; then
24804   echo $ECHO_N "(cached) $ECHO_C" >&6
24805 else
24806   cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h.  */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h.  */
24812 #include <sys/types.h>
24813 #include <time.h>
24814
24815 int
24816 main ()
24817 {
24818 struct tm tm;
24819                                      int *p = &tm.tm_sec;
24820                                      return !p;
24821   ;
24822   return 0;
24823 }
24824 _ACEOF
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829   *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832   (eval "$ac_compile") 2>conftest.er1
24833   ac_status=$?
24834   grep -v '^ *+' conftest.er1 >conftest.err
24835   rm -f conftest.er1
24836   cat conftest.err >&5
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } && {
24839          test -z "$ac_c_werror_flag" ||
24840          test ! -s conftest.err
24841        } && test -s conftest.$ac_objext; then
24842   ac_cv_struct_tm=time.h
24843 else
24844   echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24846
24847         ac_cv_struct_tm=sys/time.h
24848 fi
24849
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 fi
24852 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24853 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24854 if test $ac_cv_struct_tm = sys/time.h; then
24855
24856 cat >>confdefs.h <<\_ACEOF
24857 #define TM_IN_SYS_TIME 1
24858 _ACEOF
24859
24860 fi
24861
24862
24863 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24864 # for constant arguments.  Useless!
24865 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24866 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24867 if test "${ac_cv_working_alloca_h+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h.  */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h.  */
24876 #include <alloca.h>
24877 int
24878 main ()
24879 {
24880 char *p = (char *) alloca (2 * sizeof (int));
24881                           if (p) return 0;
24882   ;
24883   return 0;
24884 }
24885 _ACEOF
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890   *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893   (eval "$ac_link") 2>conftest.er1
24894   ac_status=$?
24895   grep -v '^ *+' conftest.er1 >conftest.err
24896   rm -f conftest.er1
24897   cat conftest.err >&5
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } && {
24900          test -z "$ac_c_werror_flag" ||
24901          test ! -s conftest.err
24902        } && test -s conftest$ac_exeext &&
24903        $as_test_x conftest$ac_exeext; then
24904   ac_cv_working_alloca_h=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909         ac_cv_working_alloca_h=no
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24913       conftest$ac_exeext conftest.$ac_ext
24914 fi
24915 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24916 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24917 if test $ac_cv_working_alloca_h = yes; then
24918
24919 cat >>confdefs.h <<\_ACEOF
24920 #define HAVE_ALLOCA_H 1
24921 _ACEOF
24922
24923 fi
24924
24925 { echo "$as_me:$LINENO: checking for alloca" >&5
24926 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24927 if test "${ac_cv_func_alloca_works+set}" = set; then
24928   echo $ECHO_N "(cached) $ECHO_C" >&6
24929 else
24930   cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h.  */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h.  */
24936 #ifdef __GNUC__
24937 # define alloca __builtin_alloca
24938 #else
24939 # ifdef _MSC_VER
24940 #  include <malloc.h>
24941 #  define alloca _alloca
24942 # else
24943 #  ifdef HAVE_ALLOCA_H
24944 #   include <alloca.h>
24945 #  else
24946 #   ifdef _AIX
24947  #pragma alloca
24948 #   else
24949 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24950 char *alloca ();
24951 #    endif
24952 #   endif
24953 #  endif
24954 # endif
24955 #endif
24956
24957 int
24958 main ()
24959 {
24960 char *p = (char *) alloca (1);
24961                                     if (p) return 0;
24962   ;
24963   return 0;
24964 }
24965 _ACEOF
24966 rm -f conftest.$ac_objext conftest$ac_exeext
24967 if { (ac_try="$ac_link"
24968 case "(($ac_try" in
24969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970   *) ac_try_echo=$ac_try;;
24971 esac
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973   (eval "$ac_link") 2>conftest.er1
24974   ac_status=$?
24975   grep -v '^ *+' conftest.er1 >conftest.err
24976   rm -f conftest.er1
24977   cat conftest.err >&5
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } && {
24980          test -z "$ac_c_werror_flag" ||
24981          test ! -s conftest.err
24982        } && test -s conftest$ac_exeext &&
24983        $as_test_x conftest$ac_exeext; then
24984   ac_cv_func_alloca_works=yes
24985 else
24986   echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989         ac_cv_func_alloca_works=no
24990 fi
24991
24992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24993       conftest$ac_exeext conftest.$ac_ext
24994 fi
24995 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24996 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24997
24998 if test $ac_cv_func_alloca_works = yes; then
24999
25000 cat >>confdefs.h <<\_ACEOF
25001 #define HAVE_ALLOCA 1
25002 _ACEOF
25003
25004 else
25005   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25006 # that cause trouble.  Some versions do not even contain alloca or
25007 # contain a buggy version.  If you still want to use their alloca,
25008 # use ar to extract alloca.o from them instead of compiling alloca.c.
25009
25010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25011
25012 cat >>confdefs.h <<\_ACEOF
25013 #define C_ALLOCA 1
25014 _ACEOF
25015
25016
25017 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25018 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25019 if test "${ac_cv_os_cray+set}" = set; then
25020   echo $ECHO_N "(cached) $ECHO_C" >&6
25021 else
25022   cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h.  */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h.  */
25028 #if defined CRAY && ! defined CRAY2
25029 webecray
25030 #else
25031 wenotbecray
25032 #endif
25033
25034 _ACEOF
25035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25036   $EGREP "webecray" >/dev/null 2>&1; then
25037   ac_cv_os_cray=yes
25038 else
25039   ac_cv_os_cray=no
25040 fi
25041 rm -f conftest*
25042
25043 fi
25044 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25045 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25046 if test $ac_cv_os_cray = yes; then
25047   for ac_func in _getb67 GETB67 getb67; do
25048     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25052   echo $ECHO_N "(cached) $ECHO_C" >&6
25053 else
25054   cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h.  */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h.  */
25060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25062 #define $ac_func innocuous_$ac_func
25063
25064 /* System header to define __stub macros and hopefully few prototypes,
25065     which can conflict with char $ac_func (); below.
25066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25067     <limits.h> exists even on freestanding compilers.  */
25068
25069 #ifdef __STDC__
25070 # include <limits.h>
25071 #else
25072 # include <assert.h>
25073 #endif
25074
25075 #undef $ac_func
25076
25077 /* Override any GCC internal prototype to avoid an error.
25078    Use char because int might match the return type of a GCC
25079    builtin and then its argument prototype would still apply.  */
25080 #ifdef __cplusplus
25081 extern "C"
25082 #endif
25083 char $ac_func ();
25084 /* The GNU C library defines this for functions which it implements
25085     to always fail with ENOSYS.  Some functions are actually named
25086     something starting with __ and the normal name is an alias.  */
25087 #if defined __stub_$ac_func || defined __stub___$ac_func
25088 choke me
25089 #endif
25090
25091 int
25092 main ()
25093 {
25094 return $ac_func ();
25095   ;
25096   return 0;
25097 }
25098 _ACEOF
25099 rm -f conftest.$ac_objext conftest$ac_exeext
25100 if { (ac_try="$ac_link"
25101 case "(($ac_try" in
25102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103   *) ac_try_echo=$ac_try;;
25104 esac
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106   (eval "$ac_link") 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } && {
25113          test -z "$ac_c_werror_flag" ||
25114          test ! -s conftest.err
25115        } && test -s conftest$ac_exeext &&
25116        $as_test_x conftest$ac_exeext; then
25117   eval "$as_ac_var=yes"
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122         eval "$as_ac_var=no"
25123 fi
25124
25125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25126       conftest$ac_exeext conftest.$ac_ext
25127 fi
25128 ac_res=`eval echo '${'$as_ac_var'}'`
25129                { echo "$as_me:$LINENO: result: $ac_res" >&5
25130 echo "${ECHO_T}$ac_res" >&6; }
25131 if test `eval echo '${'$as_ac_var'}'` = yes; then
25132
25133 cat >>confdefs.h <<_ACEOF
25134 #define CRAY_STACKSEG_END $ac_func
25135 _ACEOF
25136
25137     break
25138 fi
25139
25140   done
25141 fi
25142
25143 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25144 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25145 if test "${ac_cv_c_stack_direction+set}" = set; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148   if test "$cross_compiling" = yes; then
25149   ac_cv_c_stack_direction=0
25150 else
25151   cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h.  */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h.  */
25157 $ac_includes_default
25158 int
25159 find_stack_direction ()
25160 {
25161   static char *addr = 0;
25162   auto char dummy;
25163   if (addr == 0)
25164     {
25165       addr = &dummy;
25166       return find_stack_direction ();
25167     }
25168   else
25169     return (&dummy > addr) ? 1 : -1;
25170 }
25171
25172 int
25173 main ()
25174 {
25175   return find_stack_direction () < 0;
25176 }
25177 _ACEOF
25178 rm -f conftest$ac_exeext
25179 if { (ac_try="$ac_link"
25180 case "(($ac_try" in
25181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182   *) ac_try_echo=$ac_try;;
25183 esac
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185   (eval "$ac_link") 2>&5
25186   ac_status=$?
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25189   { (case "(($ac_try" in
25190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191   *) ac_try_echo=$ac_try;;
25192 esac
25193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25194   (eval "$ac_try") 2>&5
25195   ac_status=$?
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); }; }; then
25198   ac_cv_c_stack_direction=1
25199 else
25200   echo "$as_me: program exited with status $ac_status" >&5
25201 echo "$as_me: failed program was:" >&5
25202 sed 's/^/| /' conftest.$ac_ext >&5
25203
25204 ( exit $ac_status )
25205 ac_cv_c_stack_direction=-1
25206 fi
25207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25208 fi
25209
25210
25211 fi
25212 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25213 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25214
25215 cat >>confdefs.h <<_ACEOF
25216 #define STACK_DIRECTION $ac_cv_c_stack_direction
25217 _ACEOF
25218
25219
25220 fi
25221
25222
25223
25224
25225
25226
25227 ac_header_dirent=no
25228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25229   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25230 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25231 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25233   echo $ECHO_N "(cached) $ECHO_C" >&6
25234 else
25235   cat >conftest.$ac_ext <<_ACEOF
25236 /* confdefs.h.  */
25237 _ACEOF
25238 cat confdefs.h >>conftest.$ac_ext
25239 cat >>conftest.$ac_ext <<_ACEOF
25240 /* end confdefs.h.  */
25241 #include <sys/types.h>
25242 #include <$ac_hdr>
25243
25244 int
25245 main ()
25246 {
25247 if ((DIR *) 0)
25248 return 0;
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 rm -f conftest.$ac_objext
25254 if { (ac_try="$ac_compile"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_compile") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && {
25267          test -z "$ac_c_werror_flag" ||
25268          test ! -s conftest.err
25269        } && test -s conftest.$ac_objext; then
25270   eval "$as_ac_Header=yes"
25271 else
25272   echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25274
25275         eval "$as_ac_Header=no"
25276 fi
25277
25278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25279 fi
25280 ac_res=`eval echo '${'$as_ac_Header'}'`
25281                { echo "$as_me:$LINENO: result: $ac_res" >&5
25282 echo "${ECHO_T}$ac_res" >&6; }
25283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25284   cat >>confdefs.h <<_ACEOF
25285 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25286 _ACEOF
25287
25288 ac_header_dirent=$ac_hdr; break
25289 fi
25290
25291 done
25292 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25293 if test $ac_header_dirent = dirent.h; then
25294   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25295 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25296 if test "${ac_cv_search_opendir+set}" = set; then
25297   echo $ECHO_N "(cached) $ECHO_C" >&6
25298 else
25299   ac_func_search_save_LIBS=$LIBS
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h.  */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h.  */
25306
25307 /* Override any GCC internal prototype to avoid an error.
25308    Use char because int might match the return type of a GCC
25309    builtin and then its argument prototype would still apply.  */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char opendir ();
25314 int
25315 main ()
25316 {
25317 return opendir ();
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 for ac_lib in '' dir; do
25323   if test -z "$ac_lib"; then
25324     ac_res="none required"
25325   else
25326     ac_res=-l$ac_lib
25327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25328   fi
25329   rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_link") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } && {
25343          test -z "$ac_c_werror_flag" ||
25344          test ! -s conftest.err
25345        } && test -s conftest$ac_exeext &&
25346        $as_test_x conftest$ac_exeext; then
25347   ac_cv_search_opendir=$ac_res
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352
25353 fi
25354
25355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25356       conftest$ac_exeext
25357   if test "${ac_cv_search_opendir+set}" = set; then
25358   break
25359 fi
25360 done
25361 if test "${ac_cv_search_opendir+set}" = set; then
25362   :
25363 else
25364   ac_cv_search_opendir=no
25365 fi
25366 rm conftest.$ac_ext
25367 LIBS=$ac_func_search_save_LIBS
25368 fi
25369 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25370 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25371 ac_res=$ac_cv_search_opendir
25372 if test "$ac_res" != no; then
25373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25374
25375 fi
25376
25377 else
25378   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25379 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25380 if test "${ac_cv_search_opendir+set}" = set; then
25381   echo $ECHO_N "(cached) $ECHO_C" >&6
25382 else
25383   ac_func_search_save_LIBS=$LIBS
25384 cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390
25391 /* Override any GCC internal prototype to avoid an error.
25392    Use char because int might match the return type of a GCC
25393    builtin and then its argument prototype would still apply.  */
25394 #ifdef __cplusplus
25395 extern "C"
25396 #endif
25397 char opendir ();
25398 int
25399 main ()
25400 {
25401 return opendir ();
25402   ;
25403   return 0;
25404 }
25405 _ACEOF
25406 for ac_lib in '' x; do
25407   if test -z "$ac_lib"; then
25408     ac_res="none required"
25409   else
25410     ac_res=-l$ac_lib
25411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25412   fi
25413   rm -f conftest.$ac_objext conftest$ac_exeext
25414 if { (ac_try="$ac_link"
25415 case "(($ac_try" in
25416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417   *) ac_try_echo=$ac_try;;
25418 esac
25419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25420   (eval "$ac_link") 2>conftest.er1
25421   ac_status=$?
25422   grep -v '^ *+' conftest.er1 >conftest.err
25423   rm -f conftest.er1
25424   cat conftest.err >&5
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); } && {
25427          test -z "$ac_c_werror_flag" ||
25428          test ! -s conftest.err
25429        } && test -s conftest$ac_exeext &&
25430        $as_test_x conftest$ac_exeext; then
25431   ac_cv_search_opendir=$ac_res
25432 else
25433   echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25435
25436
25437 fi
25438
25439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25440       conftest$ac_exeext
25441   if test "${ac_cv_search_opendir+set}" = set; then
25442   break
25443 fi
25444 done
25445 if test "${ac_cv_search_opendir+set}" = set; then
25446   :
25447 else
25448   ac_cv_search_opendir=no
25449 fi
25450 rm conftest.$ac_ext
25451 LIBS=$ac_func_search_save_LIBS
25452 fi
25453 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25454 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25455 ac_res=$ac_cv_search_opendir
25456 if test "$ac_res" != no; then
25457   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25458
25459 fi
25460
25461 fi
25462
25463 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25464 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25465 if test "${ac_cv_func_closedir_void+set}" = set; then
25466   echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468   if test "$cross_compiling" = yes; then
25469   ac_cv_func_closedir_void=yes
25470 else
25471   cat >conftest.$ac_ext <<_ACEOF
25472 /* confdefs.h.  */
25473 _ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h.  */
25477 $ac_includes_default
25478 #include <$ac_header_dirent>
25479 #ifndef __cplusplus
25480 int closedir ();
25481 #endif
25482
25483 int
25484 main ()
25485 {
25486 return closedir (opendir (".")) != 0;
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_link") 2>&5
25499   ac_status=$?
25500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502   { (case "(($ac_try" in
25503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504   *) ac_try_echo=$ac_try;;
25505 esac
25506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25507   (eval "$ac_try") 2>&5
25508   ac_status=$?
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); }; }; then
25511   ac_cv_func_closedir_void=no
25512 else
25513   echo "$as_me: program exited with status $ac_status" >&5
25514 echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517 ( exit $ac_status )
25518 ac_cv_func_closedir_void=yes
25519 fi
25520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25521 fi
25522
25523
25524 fi
25525 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25526 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25527 if test $ac_cv_func_closedir_void = yes; then
25528
25529 cat >>confdefs.h <<\_ACEOF
25530 #define CLOSEDIR_VOID 1
25531 _ACEOF
25532
25533 fi
25534
25535 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25536 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25537 if test "${ac_cv_lib_error_at_line+set}" = set; then
25538   echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540   cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h.  */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h.  */
25546 #include <error.h>
25547 int
25548 main ()
25549 {
25550 error_at_line (0, 0, "", 0, "an error occurred");
25551   ;
25552   return 0;
25553 }
25554 _ACEOF
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (ac_try="$ac_link"
25557 case "(($ac_try" in
25558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559   *) ac_try_echo=$ac_try;;
25560 esac
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562   (eval "$ac_link") 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } && {
25569          test -z "$ac_c_werror_flag" ||
25570          test ! -s conftest.err
25571        } && test -s conftest$ac_exeext &&
25572        $as_test_x conftest$ac_exeext; then
25573   ac_cv_lib_error_at_line=yes
25574 else
25575   echo "$as_me: failed program was:" >&5
25576 sed 's/^/| /' conftest.$ac_ext >&5
25577
25578         ac_cv_lib_error_at_line=no
25579 fi
25580
25581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25582       conftest$ac_exeext conftest.$ac_ext
25583 fi
25584 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25585 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25586 if test $ac_cv_lib_error_at_line = no; then
25587   case " $LIBOBJS " in
25588   *" error.$ac_objext "* ) ;;
25589   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25590  ;;
25591 esac
25592
25593 fi
25594
25595
25596 for ac_header in vfork.h
25597 do
25598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25603   echo $ECHO_N "(cached) $ECHO_C" >&6
25604 fi
25605 ac_res=`eval echo '${'$as_ac_Header'}'`
25606                { echo "$as_me:$LINENO: result: $ac_res" >&5
25607 echo "${ECHO_T}$ac_res" >&6; }
25608 else
25609   # Is the header compilable?
25610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 $ac_includes_default
25619 #include <$ac_header>
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   ac_header_compiler=yes
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         ac_header_compiler=no
25644 fi
25645
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648 echo "${ECHO_T}$ac_header_compiler" >&6; }
25649
25650 # Is the header present?
25651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659 #include <$ac_header>
25660 _ACEOF
25661 if { (ac_try="$ac_cpp conftest.$ac_ext"
25662 case "(($ac_try" in
25663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664   *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25668   ac_status=$?
25669   grep -v '^ *+' conftest.er1 >conftest.err
25670   rm -f conftest.er1
25671   cat conftest.err >&5
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } >/dev/null && {
25674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25675          test ! -s conftest.err
25676        }; then
25677   ac_header_preproc=yes
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682   ac_header_preproc=no
25683 fi
25684
25685 rm -f conftest.err conftest.$ac_ext
25686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25687 echo "${ECHO_T}$ac_header_preproc" >&6; }
25688
25689 # So?  What about this header?
25690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25691   yes:no: )
25692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25696     ac_header_preproc=yes
25697     ;;
25698   no:yes:* )
25699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25711     ( cat <<\_ASBOX
25712 ## ------------------------------- ##
25713 ## Report this to nfs@lists.sf.net ##
25714 ## ------------------------------- ##
25715 _ASBOX
25716      ) | sed "s/^/$as_me: WARNING:     /" >&2
25717     ;;
25718 esac
25719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25722   echo $ECHO_N "(cached) $ECHO_C" >&6
25723 else
25724   eval "$as_ac_Header=\$ac_header_preproc"
25725 fi
25726 ac_res=`eval echo '${'$as_ac_Header'}'`
25727                { echo "$as_me:$LINENO: result: $ac_res" >&5
25728 echo "${ECHO_T}$ac_res" >&6; }
25729
25730 fi
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732   cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25734 _ACEOF
25735
25736 fi
25737
25738 done
25739
25740
25741
25742 for ac_func in fork vfork
25743 do
25744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25758 #define $ac_func innocuous_$ac_func
25759
25760 /* System header to define __stub macros and hopefully few prototypes,
25761     which can conflict with char $ac_func (); below.
25762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25763     <limits.h> exists even on freestanding compilers.  */
25764
25765 #ifdef __STDC__
25766 # include <limits.h>
25767 #else
25768 # include <assert.h>
25769 #endif
25770
25771 #undef $ac_func
25772
25773 /* Override any GCC internal prototype to avoid an error.
25774    Use char because int might match the return type of a GCC
25775    builtin and then its argument prototype would still apply.  */
25776 #ifdef __cplusplus
25777 extern "C"
25778 #endif
25779 char $ac_func ();
25780 /* The GNU C library defines this for functions which it implements
25781     to always fail with ENOSYS.  Some functions are actually named
25782     something starting with __ and the normal name is an alias.  */
25783 #if defined __stub_$ac_func || defined __stub___$ac_func
25784 choke me
25785 #endif
25786
25787 int
25788 main ()
25789 {
25790 return $ac_func ();
25791   ;
25792   return 0;
25793 }
25794 _ACEOF
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (ac_try="$ac_link"
25797 case "(($ac_try" in
25798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25799   *) ac_try_echo=$ac_try;;
25800 esac
25801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25802   (eval "$ac_link") 2>conftest.er1
25803   ac_status=$?
25804   grep -v '^ *+' conftest.er1 >conftest.err
25805   rm -f conftest.er1
25806   cat conftest.err >&5
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); } && {
25809          test -z "$ac_c_werror_flag" ||
25810          test ! -s conftest.err
25811        } && test -s conftest$ac_exeext &&
25812        $as_test_x conftest$ac_exeext; then
25813   eval "$as_ac_var=yes"
25814 else
25815   echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818         eval "$as_ac_var=no"
25819 fi
25820
25821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25822       conftest$ac_exeext conftest.$ac_ext
25823 fi
25824 ac_res=`eval echo '${'$as_ac_var'}'`
25825                { echo "$as_me:$LINENO: result: $ac_res" >&5
25826 echo "${ECHO_T}$ac_res" >&6; }
25827 if test `eval echo '${'$as_ac_var'}'` = yes; then
25828   cat >>confdefs.h <<_ACEOF
25829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25830 _ACEOF
25831
25832 fi
25833 done
25834
25835 if test "x$ac_cv_func_fork" = xyes; then
25836   { echo "$as_me:$LINENO: checking for working fork" >&5
25837 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25838 if test "${ac_cv_func_fork_works+set}" = set; then
25839   echo $ECHO_N "(cached) $ECHO_C" >&6
25840 else
25841   if test "$cross_compiling" = yes; then
25842   ac_cv_func_fork_works=cross
25843 else
25844   cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850 $ac_includes_default
25851 int
25852 main ()
25853 {
25854
25855           /* By Ruediger Kuhlmann. */
25856           return fork () < 0;
25857
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest$ac_exeext
25863 if { (ac_try="$ac_link"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_link") 2>&5
25870   ac_status=$?
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25873   { (case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878   (eval "$ac_try") 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; }; then
25882   ac_cv_func_fork_works=yes
25883 else
25884   echo "$as_me: program exited with status $ac_status" >&5
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888 ( exit $ac_status )
25889 ac_cv_func_fork_works=no
25890 fi
25891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25892 fi
25893
25894
25895 fi
25896 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25897 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25898
25899 else
25900   ac_cv_func_fork_works=$ac_cv_func_fork
25901 fi
25902 if test "x$ac_cv_func_fork_works" = xcross; then
25903   case $host in
25904     *-*-amigaos* | *-*-msdosdjgpp*)
25905       # Override, as these systems have only a dummy fork() stub
25906       ac_cv_func_fork_works=no
25907       ;;
25908     *)
25909       ac_cv_func_fork_works=yes
25910       ;;
25911   esac
25912   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25913 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25914 fi
25915 ac_cv_func_vfork_works=$ac_cv_func_vfork
25916 if test "x$ac_cv_func_vfork" = xyes; then
25917   { echo "$as_me:$LINENO: checking for working vfork" >&5
25918 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25919 if test "${ac_cv_func_vfork_works+set}" = set; then
25920   echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922   if test "$cross_compiling" = yes; then
25923   ac_cv_func_vfork_works=cross
25924 else
25925   cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931 /* Thanks to Paul Eggert for this test.  */
25932 $ac_includes_default
25933 #include <sys/wait.h>
25934 #ifdef HAVE_VFORK_H
25935 # include <vfork.h>
25936 #endif
25937 /* On some sparc systems, changes by the child to local and incoming
25938    argument registers are propagated back to the parent.  The compiler
25939    is told about this with #include <vfork.h>, but some compilers
25940    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25941    static variable whose address is put into a register that is
25942    clobbered by the vfork.  */
25943 static void
25944 #ifdef __cplusplus
25945 sparc_address_test (int arg)
25946 # else
25947 sparc_address_test (arg) int arg;
25948 #endif
25949 {
25950   static pid_t child;
25951   if (!child) {
25952     child = vfork ();
25953     if (child < 0) {
25954       perror ("vfork");
25955       _exit(2);
25956     }
25957     if (!child) {
25958       arg = getpid();
25959       write(-1, "", 0);
25960       _exit (arg);
25961     }
25962   }
25963 }
25964
25965 int
25966 main ()
25967 {
25968   pid_t parent = getpid ();
25969   pid_t child;
25970
25971   sparc_address_test (0);
25972
25973   child = vfork ();
25974
25975   if (child == 0) {
25976     /* Here is another test for sparc vfork register problems.  This
25977        test uses lots of local variables, at least as many local
25978        variables as main has allocated so far including compiler
25979        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25980        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25981        reuse the register of parent for one of the local variables,
25982        since it will think that parent can't possibly be used any more
25983        in this routine.  Assigning to the local variable will thus
25984        munge parent in the parent process.  */
25985     pid_t
25986       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25987       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25988     /* Convince the compiler that p..p7 are live; otherwise, it might
25989        use the same hardware register for all 8 local variables.  */
25990     if (p != p1 || p != p2 || p != p3 || p != p4
25991         || p != p5 || p != p6 || p != p7)
25992       _exit(1);
25993
25994     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25995        from child file descriptors.  If the child closes a descriptor
25996        before it execs or exits, this munges the parent's descriptor
25997        as well.  Test for this by closing stdout in the child.  */
25998     _exit(close(fileno(stdout)) != 0);
25999   } else {
26000     int status;
26001     struct stat st;
26002
26003     while (wait(&status) != child)
26004       ;
26005     return (
26006          /* Was there some problem with vforking?  */
26007          child < 0
26008
26009          /* Did the child fail?  (This shouldn't happen.)  */
26010          || status
26011
26012          /* Did the vfork/compiler bug occur?  */
26013          || parent != getpid()
26014
26015          /* Did the file descriptor bug occur?  */
26016          || fstat(fileno(stdout), &st) != 0
26017          );
26018   }
26019 }
26020 _ACEOF
26021 rm -f conftest$ac_exeext
26022 if { (ac_try="$ac_link"
26023 case "(($ac_try" in
26024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025   *) ac_try_echo=$ac_try;;
26026 esac
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028   (eval "$ac_link") 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26032   { (case "(($ac_try" in
26033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034   *) ac_try_echo=$ac_try;;
26035 esac
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037   (eval "$ac_try") 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; }; then
26041   ac_cv_func_vfork_works=yes
26042 else
26043   echo "$as_me: program exited with status $ac_status" >&5
26044 echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26046
26047 ( exit $ac_status )
26048 ac_cv_func_vfork_works=no
26049 fi
26050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26051 fi
26052
26053
26054 fi
26055 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26056 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26057
26058 fi;
26059 if test "x$ac_cv_func_fork_works" = xcross; then
26060   ac_cv_func_vfork_works=$ac_cv_func_vfork
26061   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26062 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26063 fi
26064
26065 if test "x$ac_cv_func_vfork_works" = xyes; then
26066
26067 cat >>confdefs.h <<\_ACEOF
26068 #define HAVE_WORKING_VFORK 1
26069 _ACEOF
26070
26071 else
26072
26073 cat >>confdefs.h <<\_ACEOF
26074 #define vfork fork
26075 _ACEOF
26076
26077 fi
26078 if test "x$ac_cv_func_fork_works" = xyes; then
26079
26080 cat >>confdefs.h <<\_ACEOF
26081 #define HAVE_WORKING_FORK 1
26082 _ACEOF
26083
26084 fi
26085
26086 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26087 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26088 if test "${ac_cv_type_getgroups+set}" = set; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091   if test "$cross_compiling" = yes; then
26092   ac_cv_type_getgroups=cross
26093 else
26094   cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 /* Thanks to Mike Rendell for this test.  */
26101 $ac_includes_default
26102 #define NGID 256
26103 #undef MAX
26104 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26105
26106 int
26107 main ()
26108 {
26109   gid_t gidset[NGID];
26110   int i, n;
26111   union { gid_t gval; long int lval; }  val;
26112
26113   val.lval = -1;
26114   for (i = 0; i < NGID; i++)
26115     gidset[i] = val.gval;
26116   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26117                  gidset);
26118   /* Exit non-zero if getgroups seems to require an array of ints.  This
26119      happens when gid_t is short int but getgroups modifies an array
26120      of ints.  */
26121   return n > 0 && gidset[n] != val.gval;
26122 }
26123 _ACEOF
26124 rm -f conftest$ac_exeext
26125 if { (ac_try="$ac_link"
26126 case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_link") 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26135   { (case "(($ac_try" in
26136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26137   *) ac_try_echo=$ac_try;;
26138 esac
26139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26140   (eval "$ac_try") 2>&5
26141   ac_status=$?
26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143   (exit $ac_status); }; }; then
26144   ac_cv_type_getgroups=gid_t
26145 else
26146   echo "$as_me: program exited with status $ac_status" >&5
26147 echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150 ( exit $ac_status )
26151 ac_cv_type_getgroups=int
26152 fi
26153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26154 fi
26155
26156
26157 if test $ac_cv_type_getgroups = cross; then
26158         cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164 #include <unistd.h>
26165
26166 _ACEOF
26167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26168   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26169   ac_cv_type_getgroups=gid_t
26170 else
26171   ac_cv_type_getgroups=int
26172 fi
26173 rm -f conftest*
26174
26175 fi
26176 fi
26177 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26178 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26179
26180 cat >>confdefs.h <<_ACEOF
26181 #define GETGROUPS_T $ac_cv_type_getgroups
26182 _ACEOF
26183
26184
26185 { echo "$as_me:$LINENO: checking for getgroups" >&5
26186 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26187 if test "${ac_cv_func_getgroups+set}" = set; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26190   cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26198 #define getgroups innocuous_getgroups
26199
26200 /* System header to define __stub macros and hopefully few prototypes,
26201     which can conflict with char getgroups (); below.
26202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26203     <limits.h> exists even on freestanding compilers.  */
26204
26205 #ifdef __STDC__
26206 # include <limits.h>
26207 #else
26208 # include <assert.h>
26209 #endif
26210
26211 #undef getgroups
26212
26213 /* Override any GCC internal prototype to avoid an error.
26214    Use char because int might match the return type of a GCC
26215    builtin and then its argument prototype would still apply.  */
26216 #ifdef __cplusplus
26217 extern "C"
26218 #endif
26219 char getgroups ();
26220 /* The GNU C library defines this for functions which it implements
26221     to always fail with ENOSYS.  Some functions are actually named
26222     something starting with __ and the normal name is an alias.  */
26223 #if defined __stub_getgroups || defined __stub___getgroups
26224 choke me
26225 #endif
26226
26227 int
26228 main ()
26229 {
26230 return getgroups ();
26231   ;
26232   return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (ac_try="$ac_link"
26237 case "(($ac_try" in
26238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239   *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242   (eval "$ac_link") 2>conftest.er1
26243   ac_status=$?
26244   grep -v '^ *+' conftest.er1 >conftest.err
26245   rm -f conftest.er1
26246   cat conftest.err >&5
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); } && {
26249          test -z "$ac_c_werror_flag" ||
26250          test ! -s conftest.err
26251        } && test -s conftest$ac_exeext &&
26252        $as_test_x conftest$ac_exeext; then
26253   ac_cv_func_getgroups=yes
26254 else
26255   echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26257
26258         ac_cv_func_getgroups=no
26259 fi
26260
26261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26262       conftest$ac_exeext conftest.$ac_ext
26263 fi
26264 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26265 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26266
26267
26268 # If we don't yet have getgroups, see if it's in -lbsd.
26269 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26270 ac_save_LIBS=$LIBS
26271 if test $ac_cv_func_getgroups = no; then
26272   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26273 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26274 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   ac_check_lib_save_LIBS=$LIBS
26278 LIBS="-lbsd  $LIBS"
26279 cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285
26286 /* Override any GCC internal prototype to avoid an error.
26287    Use char because int might match the return type of a GCC
26288    builtin and then its argument prototype would still apply.  */
26289 #ifdef __cplusplus
26290 extern "C"
26291 #endif
26292 char getgroups ();
26293 int
26294 main ()
26295 {
26296 return getgroups ();
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305   *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308   (eval "$ac_link") 2>conftest.er1
26309   ac_status=$?
26310   grep -v '^ *+' conftest.er1 >conftest.err
26311   rm -f conftest.er1
26312   cat conftest.err >&5
26313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314   (exit $ac_status); } && {
26315          test -z "$ac_c_werror_flag" ||
26316          test ! -s conftest.err
26317        } && test -s conftest$ac_exeext &&
26318        $as_test_x conftest$ac_exeext; then
26319   ac_cv_lib_bsd_getgroups=yes
26320 else
26321   echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26323
26324         ac_cv_lib_bsd_getgroups=no
26325 fi
26326
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26328       conftest$ac_exeext conftest.$ac_ext
26329 LIBS=$ac_check_lib_save_LIBS
26330 fi
26331 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26332 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26333 if test $ac_cv_lib_bsd_getgroups = yes; then
26334   GETGROUPS_LIB=-lbsd
26335 fi
26336
26337 fi
26338
26339 # Run the program to test the functionality of the system-supplied
26340 # getgroups function only if there is such a function.
26341 if test $ac_cv_func_getgroups = yes; then
26342   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26343 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26344 if test "${ac_cv_func_getgroups_works+set}" = set; then
26345   echo $ECHO_N "(cached) $ECHO_C" >&6
26346 else
26347   if test "$cross_compiling" = yes; then
26348   ac_cv_func_getgroups_works=no
26349 else
26350   cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356 $ac_includes_default
26357 int
26358 main ()
26359 {
26360 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26361        return getgroups (0, 0) == -1;
26362   ;
26363   return 0;
26364 }
26365 _ACEOF
26366 rm -f conftest$ac_exeext
26367 if { (ac_try="$ac_link"
26368 case "(($ac_try" in
26369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26370   *) ac_try_echo=$ac_try;;
26371 esac
26372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26373   (eval "$ac_link") 2>&5
26374   ac_status=$?
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26377   { (case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382   (eval "$ac_try") 2>&5
26383   ac_status=$?
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); }; }; then
26386   ac_cv_func_getgroups_works=yes
26387 else
26388   echo "$as_me: program exited with status $ac_status" >&5
26389 echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392 ( exit $ac_status )
26393 ac_cv_func_getgroups_works=no
26394 fi
26395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26396 fi
26397
26398
26399
26400 fi
26401 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26402 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26403   if test $ac_cv_func_getgroups_works = yes; then
26404
26405 cat >>confdefs.h <<\_ACEOF
26406 #define HAVE_GETGROUPS 1
26407 _ACEOF
26408
26409   fi
26410 fi
26411 LIBS=$ac_save_LIBS
26412
26413 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26414 # -lseq on Dynix/PTX, -lgen on Unixware.
26415 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26416 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26417 if test "${ac_cv_search_getmntent+set}" = set; then
26418   echo $ECHO_N "(cached) $ECHO_C" >&6
26419 else
26420   ac_func_search_save_LIBS=$LIBS
26421 cat >conftest.$ac_ext <<_ACEOF
26422 /* confdefs.h.  */
26423 _ACEOF
26424 cat confdefs.h >>conftest.$ac_ext
26425 cat >>conftest.$ac_ext <<_ACEOF
26426 /* end confdefs.h.  */
26427
26428 /* Override any GCC internal prototype to avoid an error.
26429    Use char because int might match the return type of a GCC
26430    builtin and then its argument prototype would still apply.  */
26431 #ifdef __cplusplus
26432 extern "C"
26433 #endif
26434 char getmntent ();
26435 int
26436 main ()
26437 {
26438 return getmntent ();
26439   ;
26440   return 0;
26441 }
26442 _ACEOF
26443 for ac_lib in '' sun seq gen; do
26444   if test -z "$ac_lib"; then
26445     ac_res="none required"
26446   else
26447     ac_res=-l$ac_lib
26448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26449   fi
26450   rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454   *) ac_try_echo=$ac_try;;
26455 esac
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457   (eval "$ac_link") 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } && {
26464          test -z "$ac_c_werror_flag" ||
26465          test ! -s conftest.err
26466        } && test -s conftest$ac_exeext &&
26467        $as_test_x conftest$ac_exeext; then
26468   ac_cv_search_getmntent=$ac_res
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473
26474 fi
26475
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477       conftest$ac_exeext
26478   if test "${ac_cv_search_getmntent+set}" = set; then
26479   break
26480 fi
26481 done
26482 if test "${ac_cv_search_getmntent+set}" = set; then
26483   :
26484 else
26485   ac_cv_search_getmntent=no
26486 fi
26487 rm conftest.$ac_ext
26488 LIBS=$ac_func_search_save_LIBS
26489 fi
26490 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26491 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26492 ac_res=$ac_cv_search_getmntent
26493 if test "$ac_res" != no; then
26494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26495   ac_cv_func_getmntent=yes
26496
26497 cat >>confdefs.h <<\_ACEOF
26498 #define HAVE_GETMNTENT 1
26499 _ACEOF
26500
26501 else
26502   ac_cv_func_getmntent=no
26503 fi
26504
26505
26506 if test $ac_cv_c_compiler_gnu = yes; then
26507     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26508 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26509 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512     ac_pattern="Autoconf.*'x'"
26513   cat >conftest.$ac_ext <<_ACEOF
26514 /* confdefs.h.  */
26515 _ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h.  */
26519 #include <sgtty.h>
26520 Autoconf TIOCGETP
26521 _ACEOF
26522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26523   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26524   ac_cv_prog_gcc_traditional=yes
26525 else
26526   ac_cv_prog_gcc_traditional=no
26527 fi
26528 rm -f conftest*
26529
26530
26531   if test $ac_cv_prog_gcc_traditional = no; then
26532     cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h.  */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h.  */
26538 #include <termio.h>
26539 Autoconf TCGETA
26540 _ACEOF
26541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26542   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26543   ac_cv_prog_gcc_traditional=yes
26544 fi
26545 rm -f conftest*
26546
26547   fi
26548 fi
26549 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26550 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26551   if test $ac_cv_prog_gcc_traditional = yes; then
26552     CC="$CC -traditional"
26553   fi
26554 fi
26555
26556 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26557 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26558 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26559   echo $ECHO_N "(cached) $ECHO_C" >&6
26560 else
26561   rm -f conftest.sym conftest.file
26562 echo >conftest.file
26563 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26564   if test "$cross_compiling" = yes; then
26565   ac_cv_func_lstat_dereferences_slashed_symlink=no
26566 else
26567   cat >conftest.$ac_ext <<_ACEOF
26568 /* confdefs.h.  */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h.  */
26573 $ac_includes_default
26574 int
26575 main ()
26576 {
26577 struct stat sbuf;
26578      /* Linux will dereference the symlink and fail.
26579         That is better in the sense that it means we will not
26580         have to compile and use the lstat wrapper.  */
26581      return lstat ("conftest.sym/", &sbuf) == 0;
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest$ac_exeext
26587 if { (ac_try="$ac_link"
26588 case "(($ac_try" in
26589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590   *) ac_try_echo=$ac_try;;
26591 esac
26592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26593   (eval "$ac_link") 2>&5
26594   ac_status=$?
26595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26597   { (case "(($ac_try" in
26598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599   *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602   (eval "$ac_try") 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; }; then
26606   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26607 else
26608   echo "$as_me: program exited with status $ac_status" >&5
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ( exit $ac_status )
26613 ac_cv_func_lstat_dereferences_slashed_symlink=no
26614 fi
26615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26616 fi
26617
26618
26619 else
26620   # If the `ln -s' command failed, then we probably don't even
26621   # have an lstat function.
26622   ac_cv_func_lstat_dereferences_slashed_symlink=no
26623 fi
26624 rm -f conftest.sym conftest.file
26625
26626 fi
26627 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26628 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26629
26630 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26631
26632 cat >>confdefs.h <<_ACEOF
26633 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26634 _ACEOF
26635
26636
26637 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26638   case " $LIBOBJS " in
26639   *" lstat.$ac_objext "* ) ;;
26640   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26641  ;;
26642 esac
26643
26644 fi
26645
26646 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26647 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26648 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26649   echo $ECHO_N "(cached) $ECHO_C" >&6
26650 else
26651   if test "$cross_compiling" = yes; then
26652   ac_cv_func_lstat_empty_string_bug=yes
26653 else
26654   cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660 $ac_includes_default
26661 int
26662 main ()
26663 {
26664 struct stat sbuf;
26665   return lstat ("", &sbuf) == 0;
26666   ;
26667   return 0;
26668 }
26669 _ACEOF
26670 rm -f conftest$ac_exeext
26671 if { (ac_try="$ac_link"
26672 case "(($ac_try" in
26673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674   *) ac_try_echo=$ac_try;;
26675 esac
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677   (eval "$ac_link") 2>&5
26678   ac_status=$?
26679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26681   { (case "(($ac_try" in
26682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683   *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686   (eval "$ac_try") 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; }; then
26690   ac_cv_func_lstat_empty_string_bug=no
26691 else
26692   echo "$as_me: program exited with status $ac_status" >&5
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26695
26696 ( exit $ac_status )
26697 ac_cv_func_lstat_empty_string_bug=yes
26698 fi
26699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26700 fi
26701
26702
26703 fi
26704 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26705 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26706 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26707   case " $LIBOBJS " in
26708   *" lstat.$ac_objext "* ) ;;
26709   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26710  ;;
26711 esac
26712
26713
26714 cat >>confdefs.h <<_ACEOF
26715 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26716 _ACEOF
26717
26718 fi
26719
26720 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26721 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26722 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26723   echo $ECHO_N "(cached) $ECHO_C" >&6
26724 else
26725   rm -f conftest.sym conftest.file
26726 echo >conftest.file
26727 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26728   if test "$cross_compiling" = yes; then
26729   ac_cv_func_lstat_dereferences_slashed_symlink=no
26730 else
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 int
26739 main ()
26740 {
26741 struct stat sbuf;
26742      /* Linux will dereference the symlink and fail.
26743         That is better in the sense that it means we will not
26744         have to compile and use the lstat wrapper.  */
26745      return lstat ("conftest.sym/", &sbuf) == 0;
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 rm -f conftest$ac_exeext
26751 if { (ac_try="$ac_link"
26752 case "(($ac_try" in
26753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754   *) ac_try_echo=$ac_try;;
26755 esac
26756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757   (eval "$ac_link") 2>&5
26758   ac_status=$?
26759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26761   { (case "(($ac_try" in
26762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763   *) ac_try_echo=$ac_try;;
26764 esac
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766   (eval "$ac_try") 2>&5
26767   ac_status=$?
26768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); }; }; then
26770   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26771 else
26772   echo "$as_me: program exited with status $ac_status" >&5
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 ( exit $ac_status )
26777 ac_cv_func_lstat_dereferences_slashed_symlink=no
26778 fi
26779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26780 fi
26781
26782
26783 else
26784   # If the `ln -s' command failed, then we probably don't even
26785   # have an lstat function.
26786   ac_cv_func_lstat_dereferences_slashed_symlink=no
26787 fi
26788 rm -f conftest.sym conftest.file
26789
26790 fi
26791 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26792 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26793
26794 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26795
26796 cat >>confdefs.h <<_ACEOF
26797 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26798 _ACEOF
26799
26800
26801 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26802   case " $LIBOBJS " in
26803   *" lstat.$ac_objext "* ) ;;
26804   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26805  ;;
26806 esac
26807
26808 fi
26809
26810 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26811 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26812 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26813   echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815   cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821 #include <sys/types.h>
26822 int
26823 main ()
26824 {
26825 return makedev(0, 0);
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext conftest$ac_exeext
26831 if { (ac_try="$ac_link"
26832 case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837   (eval "$ac_link") 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } && {
26844          test -z "$ac_c_werror_flag" ||
26845          test ! -s conftest.err
26846        } && test -s conftest$ac_exeext &&
26847        $as_test_x conftest$ac_exeext; then
26848   ac_cv_header_sys_types_h_makedev=yes
26849 else
26850   echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26852
26853         ac_cv_header_sys_types_h_makedev=no
26854 fi
26855
26856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26857       conftest$ac_exeext conftest.$ac_ext
26858
26859 fi
26860 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26861 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26862
26863 if test $ac_cv_header_sys_types_h_makedev = no; then
26864 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26865   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26866 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26867 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26868   echo $ECHO_N "(cached) $ECHO_C" >&6
26869 fi
26870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26871 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26872 else
26873   # Is the header compilable?
26874 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26875 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26876 cat >conftest.$ac_ext <<_ACEOF
26877 /* confdefs.h.  */
26878 _ACEOF
26879 cat confdefs.h >>conftest.$ac_ext
26880 cat >>conftest.$ac_ext <<_ACEOF
26881 /* end confdefs.h.  */
26882 $ac_includes_default
26883 #include <sys/mkdev.h>
26884 _ACEOF
26885 rm -f conftest.$ac_objext
26886 if { (ac_try="$ac_compile"
26887 case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892   (eval "$ac_compile") 2>conftest.er1
26893   ac_status=$?
26894   grep -v '^ *+' conftest.er1 >conftest.err
26895   rm -f conftest.er1
26896   cat conftest.err >&5
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } && {
26899          test -z "$ac_c_werror_flag" ||
26900          test ! -s conftest.err
26901        } && test -s conftest.$ac_objext; then
26902   ac_header_compiler=yes
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907         ac_header_compiler=no
26908 fi
26909
26910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26912 echo "${ECHO_T}$ac_header_compiler" >&6; }
26913
26914 # Is the header present?
26915 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26916 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26917 cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923 #include <sys/mkdev.h>
26924 _ACEOF
26925 if { (ac_try="$ac_cpp conftest.$ac_ext"
26926 case "(($ac_try" in
26927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928   *) ac_try_echo=$ac_try;;
26929 esac
26930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26932   ac_status=$?
26933   grep -v '^ *+' conftest.er1 >conftest.err
26934   rm -f conftest.er1
26935   cat conftest.err >&5
26936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937   (exit $ac_status); } >/dev/null && {
26938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26939          test ! -s conftest.err
26940        }; then
26941   ac_header_preproc=yes
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946   ac_header_preproc=no
26947 fi
26948
26949 rm -f conftest.err conftest.$ac_ext
26950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26951 echo "${ECHO_T}$ac_header_preproc" >&6; }
26952
26953 # So?  What about this header?
26954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26955   yes:no: )
26956     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26957 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26958     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26959 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26960     ac_header_preproc=yes
26961     ;;
26962   no:yes:* )
26963     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26964 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26965     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26966 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26967     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26968 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26971     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26973     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26975     ( cat <<\_ASBOX
26976 ## ------------------------------- ##
26977 ## Report this to nfs@lists.sf.net ##
26978 ## ------------------------------- ##
26979 _ASBOX
26980      ) | sed "s/^/$as_me: WARNING:     /" >&2
26981     ;;
26982 esac
26983 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26984 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26985 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26986   echo $ECHO_N "(cached) $ECHO_C" >&6
26987 else
26988   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26989 fi
26990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26991 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26992
26993 fi
26994 if test $ac_cv_header_sys_mkdev_h = yes; then
26995
26996 cat >>confdefs.h <<\_ACEOF
26997 #define MAJOR_IN_MKDEV 1
26998 _ACEOF
26999
27000 fi
27001
27002
27003
27004   if test $ac_cv_header_sys_mkdev_h = no; then
27005     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27006   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27007 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27008 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27009   echo $ECHO_N "(cached) $ECHO_C" >&6
27010 fi
27011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27012 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27013 else
27014   # Is the header compilable?
27015 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27016 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27017 cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27023 $ac_includes_default
27024 #include <sys/sysmacros.h>
27025 _ACEOF
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033   (eval "$ac_compile") 2>conftest.er1
27034   ac_status=$?
27035   grep -v '^ *+' conftest.er1 >conftest.err
27036   rm -f conftest.er1
27037   cat conftest.err >&5
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); } && {
27040          test -z "$ac_c_werror_flag" ||
27041          test ! -s conftest.err
27042        } && test -s conftest.$ac_objext; then
27043   ac_header_compiler=yes
27044 else
27045   echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048         ac_header_compiler=no
27049 fi
27050
27051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27053 echo "${ECHO_T}$ac_header_compiler" >&6; }
27054
27055 # Is the header present?
27056 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27057 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27058 cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064 #include <sys/sysmacros.h>
27065 _ACEOF
27066 if { (ac_try="$ac_cpp conftest.$ac_ext"
27067 case "(($ac_try" in
27068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27069   *) ac_try_echo=$ac_try;;
27070 esac
27071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27073   ac_status=$?
27074   grep -v '^ *+' conftest.er1 >conftest.err
27075   rm -f conftest.er1
27076   cat conftest.err >&5
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); } >/dev/null && {
27079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27080          test ! -s conftest.err
27081        }; then
27082   ac_header_preproc=yes
27083 else
27084   echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27086
27087   ac_header_preproc=no
27088 fi
27089
27090 rm -f conftest.err conftest.$ac_ext
27091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27092 echo "${ECHO_T}$ac_header_preproc" >&6; }
27093
27094 # So?  What about this header?
27095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27096   yes:no: )
27097     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27098 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27099     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27100 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27101     ac_header_preproc=yes
27102     ;;
27103   no:yes:* )
27104     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27105 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27106     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27107 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27108     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27109 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27111 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27113 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27115 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27116     ( cat <<\_ASBOX
27117 ## ------------------------------- ##
27118 ## Report this to nfs@lists.sf.net ##
27119 ## ------------------------------- ##
27120 _ASBOX
27121      ) | sed "s/^/$as_me: WARNING:     /" >&2
27122     ;;
27123 esac
27124 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27125 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27126 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 else
27129   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27130 fi
27131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27133
27134 fi
27135 if test $ac_cv_header_sys_sysmacros_h = yes; then
27136
27137 cat >>confdefs.h <<\_ACEOF
27138 #define MAJOR_IN_SYSMACROS 1
27139 _ACEOF
27140
27141 fi
27142
27143
27144   fi
27145 fi
27146
27147 #AC_FUNC_MALLOC
27148 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27149 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27150 if test "${ac_cv_func_memcmp_working+set}" = set; then
27151   echo $ECHO_N "(cached) $ECHO_C" >&6
27152 else
27153   if test "$cross_compiling" = yes; then
27154   ac_cv_func_memcmp_working=no
27155 else
27156   cat >conftest.$ac_ext <<_ACEOF
27157 /* confdefs.h.  */
27158 _ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h.  */
27162 $ac_includes_default
27163 int
27164 main ()
27165 {
27166
27167   /* Some versions of memcmp are not 8-bit clean.  */
27168   char c0 = '\100', c1 = '\200', c2 = '\201';
27169   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27170     return 1;
27171
27172   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27173      or more and with at least one buffer not starting on a 4-byte boundary.
27174      William Lewis provided this test program.   */
27175   {
27176     char foo[21];
27177     char bar[21];
27178     int i;
27179     for (i = 0; i < 4; i++)
27180       {
27181         char *a = foo + i;
27182         char *b = bar + i;
27183         strcpy (a, "--------01111111");
27184         strcpy (b, "--------10000000");
27185         if (memcmp (a, b, 16) >= 0)
27186           return 1;
27187       }
27188     return 0;
27189   }
27190
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 rm -f conftest$ac_exeext
27196 if { (ac_try="$ac_link"
27197 case "(($ac_try" in
27198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199   *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202   (eval "$ac_link") 2>&5
27203   ac_status=$?
27204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27206   { (case "(($ac_try" in
27207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208   *) ac_try_echo=$ac_try;;
27209 esac
27210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211   (eval "$ac_try") 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; }; then
27215   ac_cv_func_memcmp_working=yes
27216 else
27217   echo "$as_me: program exited with status $ac_status" >&5
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27220
27221 ( exit $ac_status )
27222 ac_cv_func_memcmp_working=no
27223 fi
27224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27225 fi
27226
27227
27228 fi
27229 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27230 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27231 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27232   *" memcmp.$ac_objext "* ) ;;
27233   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27234  ;;
27235 esac
27236
27237
27238 #AC_FUNC_REALLOC
27239
27240
27241 for ac_header in sys/select.h sys/socket.h
27242 do
27243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27245   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 fi
27250 ac_res=`eval echo '${'$as_ac_Header'}'`
27251                { echo "$as_me:$LINENO: result: $ac_res" >&5
27252 echo "${ECHO_T}$ac_res" >&6; }
27253 else
27254   # Is the header compilable?
27255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27257 cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 $ac_includes_default
27264 #include <$ac_header>
27265 _ACEOF
27266 rm -f conftest.$ac_objext
27267 if { (ac_try="$ac_compile"
27268 case "(($ac_try" in
27269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270   *) ac_try_echo=$ac_try;;
27271 esac
27272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273   (eval "$ac_compile") 2>conftest.er1
27274   ac_status=$?
27275   grep -v '^ *+' conftest.er1 >conftest.err
27276   rm -f conftest.er1
27277   cat conftest.err >&5
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); } && {
27280          test -z "$ac_c_werror_flag" ||
27281          test ! -s conftest.err
27282        } && test -s conftest.$ac_objext; then
27283   ac_header_compiler=yes
27284 else
27285   echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27287
27288         ac_header_compiler=no
27289 fi
27290
27291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27293 echo "${ECHO_T}$ac_header_compiler" >&6; }
27294
27295 # Is the header present?
27296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27298 cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304 #include <$ac_header>
27305 _ACEOF
27306 if { (ac_try="$ac_cpp conftest.$ac_ext"
27307 case "(($ac_try" in
27308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309   *) ac_try_echo=$ac_try;;
27310 esac
27311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } >/dev/null && {
27319          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27320          test ! -s conftest.err
27321        }; then
27322   ac_header_preproc=yes
27323 else
27324   echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327   ac_header_preproc=no
27328 fi
27329
27330 rm -f conftest.err conftest.$ac_ext
27331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27332 echo "${ECHO_T}$ac_header_preproc" >&6; }
27333
27334 # So?  What about this header?
27335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27336   yes:no: )
27337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27341     ac_header_preproc=yes
27342     ;;
27343   no:yes:* )
27344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27356     ( cat <<\_ASBOX
27357 ## ------------------------------- ##
27358 ## Report this to nfs@lists.sf.net ##
27359 ## ------------------------------- ##
27360 _ASBOX
27361      ) | sed "s/^/$as_me: WARNING:     /" >&2
27362     ;;
27363 esac
27364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27367   echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369   eval "$as_ac_Header=\$ac_header_preproc"
27370 fi
27371 ac_res=`eval echo '${'$as_ac_Header'}'`
27372                { echo "$as_me:$LINENO: result: $ac_res" >&5
27373 echo "${ECHO_T}$ac_res" >&6; }
27374
27375 fi
27376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27377   cat >>confdefs.h <<_ACEOF
27378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27379 _ACEOF
27380
27381 fi
27382
27383 done
27384
27385 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27386 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27387 if test "${ac_cv_func_select_args+set}" = set; then
27388   echo $ECHO_N "(cached) $ECHO_C" >&6
27389 else
27390   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27391  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27392   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27393    cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399 $ac_includes_default
27400 #ifdef HAVE_SYS_SELECT_H
27401 # include <sys/select.h>
27402 #endif
27403 #ifdef HAVE_SYS_SOCKET_H
27404 # include <sys/socket.h>
27405 #endif
27406
27407 int
27408 main ()
27409 {
27410 extern int select ($ac_arg1,
27411                                             $ac_arg234, $ac_arg234, $ac_arg234,
27412                                             $ac_arg5);
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext
27418 if { (ac_try="$ac_compile"
27419 case "(($ac_try" in
27420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421   *) ac_try_echo=$ac_try;;
27422 esac
27423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424   (eval "$ac_compile") 2>conftest.er1
27425   ac_status=$?
27426   grep -v '^ *+' conftest.er1 >conftest.err
27427   rm -f conftest.er1
27428   cat conftest.err >&5
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); } && {
27431          test -z "$ac_c_werror_flag" ||
27432          test ! -s conftest.err
27433        } && test -s conftest.$ac_objext; then
27434   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27435 else
27436   echo "$as_me: failed program was:" >&5
27437 sed 's/^/| /' conftest.$ac_ext >&5
27438
27439
27440 fi
27441
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443   done
27444  done
27445 done
27446 # Provide a safe default value.
27447 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27448
27449 fi
27450 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27451 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27452 ac_save_IFS=$IFS; IFS=','
27453 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27454 IFS=$ac_save_IFS
27455 shift
27456
27457 cat >>confdefs.h <<_ACEOF
27458 #define SELECT_TYPE_ARG1 $1
27459 _ACEOF
27460
27461
27462 cat >>confdefs.h <<_ACEOF
27463 #define SELECT_TYPE_ARG234 ($2)
27464 _ACEOF
27465
27466
27467 cat >>confdefs.h <<_ACEOF
27468 #define SELECT_TYPE_ARG5 ($3)
27469 _ACEOF
27470
27471 rm -f conftest*
27472
27473 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27474 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27475 if test "${ac_cv_type_signal+set}" = set; then
27476   echo $ECHO_N "(cached) $ECHO_C" >&6
27477 else
27478   cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h.  */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h.  */
27484 #include <sys/types.h>
27485 #include <signal.h>
27486
27487 int
27488 main ()
27489 {
27490 return *(signal (0, 0)) (0) == 1;
27491   ;
27492   return 0;
27493 }
27494 _ACEOF
27495 rm -f conftest.$ac_objext
27496 if { (ac_try="$ac_compile"
27497 case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502   (eval "$ac_compile") 2>conftest.er1
27503   ac_status=$?
27504   grep -v '^ *+' conftest.er1 >conftest.err
27505   rm -f conftest.er1
27506   cat conftest.err >&5
27507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508   (exit $ac_status); } && {
27509          test -z "$ac_c_werror_flag" ||
27510          test ! -s conftest.err
27511        } && test -s conftest.$ac_objext; then
27512   ac_cv_type_signal=int
27513 else
27514   echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517         ac_cv_type_signal=void
27518 fi
27519
27520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27521 fi
27522 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27523 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27524
27525 cat >>confdefs.h <<_ACEOF
27526 #define RETSIGTYPE $ac_cv_type_signal
27527 _ACEOF
27528
27529
27530 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27531 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27532 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27533   echo $ECHO_N "(cached) $ECHO_C" >&6
27534 else
27535   if test "$cross_compiling" = yes; then
27536   ac_cv_func_stat_empty_string_bug=yes
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 $ac_includes_default
27545 int
27546 main ()
27547 {
27548 struct stat sbuf;
27549   return stat ("", &sbuf) == 0;
27550   ;
27551   return 0;
27552 }
27553 _ACEOF
27554 rm -f conftest$ac_exeext
27555 if { (ac_try="$ac_link"
27556 case "(($ac_try" in
27557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27558   *) ac_try_echo=$ac_try;;
27559 esac
27560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27561   (eval "$ac_link") 2>&5
27562   ac_status=$?
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27565   { (case "(($ac_try" in
27566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567   *) ac_try_echo=$ac_try;;
27568 esac
27569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570   (eval "$ac_try") 2>&5
27571   ac_status=$?
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); }; }; then
27574   ac_cv_func_stat_empty_string_bug=no
27575 else
27576   echo "$as_me: program exited with status $ac_status" >&5
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580 ( exit $ac_status )
27581 ac_cv_func_stat_empty_string_bug=yes
27582 fi
27583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27584 fi
27585
27586
27587 fi
27588 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27589 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27590 if test $ac_cv_func_stat_empty_string_bug = yes; then
27591   case " $LIBOBJS " in
27592   *" stat.$ac_objext "* ) ;;
27593   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27594  ;;
27595 esac
27596
27597
27598 cat >>confdefs.h <<_ACEOF
27599 #define HAVE_STAT_EMPTY_STRING_BUG 1
27600 _ACEOF
27601
27602 fi
27603
27604
27605 for ac_func in vprintf
27606 do
27607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27611   echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613   cat >conftest.$ac_ext <<_ACEOF
27614 /* confdefs.h.  */
27615 _ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h.  */
27619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27621 #define $ac_func innocuous_$ac_func
27622
27623 /* System header to define __stub macros and hopefully few prototypes,
27624     which can conflict with char $ac_func (); below.
27625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27626     <limits.h> exists even on freestanding compilers.  */
27627
27628 #ifdef __STDC__
27629 # include <limits.h>
27630 #else
27631 # include <assert.h>
27632 #endif
27633
27634 #undef $ac_func
27635
27636 /* Override any GCC internal prototype to avoid an error.
27637    Use char because int might match the return type of a GCC
27638    builtin and then its argument prototype would still apply.  */
27639 #ifdef __cplusplus
27640 extern "C"
27641 #endif
27642 char $ac_func ();
27643 /* The GNU C library defines this for functions which it implements
27644     to always fail with ENOSYS.  Some functions are actually named
27645     something starting with __ and the normal name is an alias.  */
27646 #if defined __stub_$ac_func || defined __stub___$ac_func
27647 choke me
27648 #endif
27649
27650 int
27651 main ()
27652 {
27653 return $ac_func ();
27654   ;
27655   return 0;
27656 }
27657 _ACEOF
27658 rm -f conftest.$ac_objext conftest$ac_exeext
27659 if { (ac_try="$ac_link"
27660 case "(($ac_try" in
27661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662   *) ac_try_echo=$ac_try;;
27663 esac
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665   (eval "$ac_link") 2>conftest.er1
27666   ac_status=$?
27667   grep -v '^ *+' conftest.er1 >conftest.err
27668   rm -f conftest.er1
27669   cat conftest.err >&5
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); } && {
27672          test -z "$ac_c_werror_flag" ||
27673          test ! -s conftest.err
27674        } && test -s conftest$ac_exeext &&
27675        $as_test_x conftest$ac_exeext; then
27676   eval "$as_ac_var=yes"
27677 else
27678   echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681         eval "$as_ac_var=no"
27682 fi
27683
27684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27685       conftest$ac_exeext conftest.$ac_ext
27686 fi
27687 ac_res=`eval echo '${'$as_ac_var'}'`
27688                { echo "$as_me:$LINENO: result: $ac_res" >&5
27689 echo "${ECHO_T}$ac_res" >&6; }
27690 if test `eval echo '${'$as_ac_var'}'` = yes; then
27691   cat >>confdefs.h <<_ACEOF
27692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27693 _ACEOF
27694
27695 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27697 if test "${ac_cv_func__doprnt+set}" = set; then
27698   echo $ECHO_N "(cached) $ECHO_C" >&6
27699 else
27700   cat >conftest.$ac_ext <<_ACEOF
27701 /* confdefs.h.  */
27702 _ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h.  */
27706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27708 #define _doprnt innocuous__doprnt
27709
27710 /* System header to define __stub macros and hopefully few prototypes,
27711     which can conflict with char _doprnt (); below.
27712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27713     <limits.h> exists even on freestanding compilers.  */
27714
27715 #ifdef __STDC__
27716 # include <limits.h>
27717 #else
27718 # include <assert.h>
27719 #endif
27720
27721 #undef _doprnt
27722
27723 /* Override any GCC internal prototype to avoid an error.
27724    Use char because int might match the return type of a GCC
27725    builtin and then its argument prototype would still apply.  */
27726 #ifdef __cplusplus
27727 extern "C"
27728 #endif
27729 char _doprnt ();
27730 /* The GNU C library defines this for functions which it implements
27731     to always fail with ENOSYS.  Some functions are actually named
27732     something starting with __ and the normal name is an alias.  */
27733 #if defined __stub__doprnt || defined __stub____doprnt
27734 choke me
27735 #endif
27736
27737 int
27738 main ()
27739 {
27740 return _doprnt ();
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (ac_try="$ac_link"
27747 case "(($ac_try" in
27748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749   *) ac_try_echo=$ac_try;;
27750 esac
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752   (eval "$ac_link") 2>conftest.er1
27753   ac_status=$?
27754   grep -v '^ *+' conftest.er1 >conftest.err
27755   rm -f conftest.er1
27756   cat conftest.err >&5
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); } && {
27759          test -z "$ac_c_werror_flag" ||
27760          test ! -s conftest.err
27761        } && test -s conftest$ac_exeext &&
27762        $as_test_x conftest$ac_exeext; then
27763   ac_cv_func__doprnt=yes
27764 else
27765   echo "$as_me: failed program was:" >&5
27766 sed 's/^/| /' conftest.$ac_ext >&5
27767
27768         ac_cv_func__doprnt=no
27769 fi
27770
27771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27772       conftest$ac_exeext conftest.$ac_ext
27773 fi
27774 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27775 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27776 if test $ac_cv_func__doprnt = yes; then
27777
27778 cat >>confdefs.h <<\_ACEOF
27779 #define HAVE_DOPRNT 1
27780 _ACEOF
27781
27782 fi
27783
27784 fi
27785 done
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27818                gethostbyaddr gethostbyname gethostname getmntent \
27819                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27820                realpath rmdir select socket strcasecmp strchr strdup \
27821                strerror strrchr strtol strtoul sigprocmask
27822 do
27823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27827   echo $ECHO_N "(cached) $ECHO_C" >&6
27828 else
27829   cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27837 #define $ac_func innocuous_$ac_func
27838
27839 /* System header to define __stub macros and hopefully few prototypes,
27840     which can conflict with char $ac_func (); below.
27841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27842     <limits.h> exists even on freestanding compilers.  */
27843
27844 #ifdef __STDC__
27845 # include <limits.h>
27846 #else
27847 # include <assert.h>
27848 #endif
27849
27850 #undef $ac_func
27851
27852 /* Override any GCC internal prototype to avoid an error.
27853    Use char because int might match the return type of a GCC
27854    builtin and then its argument prototype would still apply.  */
27855 #ifdef __cplusplus
27856 extern "C"
27857 #endif
27858 char $ac_func ();
27859 /* The GNU C library defines this for functions which it implements
27860     to always fail with ENOSYS.  Some functions are actually named
27861     something starting with __ and the normal name is an alias.  */
27862 #if defined __stub_$ac_func || defined __stub___$ac_func
27863 choke me
27864 #endif
27865
27866 int
27867 main ()
27868 {
27869 return $ac_func ();
27870   ;
27871   return 0;
27872 }
27873 _ACEOF
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (ac_try="$ac_link"
27876 case "(($ac_try" in
27877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27878   *) ac_try_echo=$ac_try;;
27879 esac
27880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27881   (eval "$ac_link") 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } && {
27888          test -z "$ac_c_werror_flag" ||
27889          test ! -s conftest.err
27890        } && test -s conftest$ac_exeext &&
27891        $as_test_x conftest$ac_exeext; then
27892   eval "$as_ac_var=yes"
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897         eval "$as_ac_var=no"
27898 fi
27899
27900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27901       conftest$ac_exeext conftest.$ac_ext
27902 fi
27903 ac_res=`eval echo '${'$as_ac_var'}'`
27904                { echo "$as_me:$LINENO: result: $ac_res" >&5
27905 echo "${ECHO_T}$ac_res" >&6; }
27906 if test `eval echo '${'$as_ac_var'}'` = yes; then
27907   cat >>confdefs.h <<_ACEOF
27908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27909 _ACEOF
27910
27911 fi
27912 done
27913
27914
27915
27916 { echo "$as_me:$LINENO: checking for short" >&5
27917 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27918 if test "${ac_cv_type_short+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 $ac_includes_default
27928 typedef short ac__type_new_;
27929 int
27930 main ()
27931 {
27932 if ((ac__type_new_ *) 0)
27933   return 0;
27934 if (sizeof (ac__type_new_))
27935   return 0;
27936   ;
27937   return 0;
27938 }
27939 _ACEOF
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_compile") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } && {
27954          test -z "$ac_c_werror_flag" ||
27955          test ! -s conftest.err
27956        } && test -s conftest.$ac_objext; then
27957   ac_cv_type_short=yes
27958 else
27959   echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27961
27962         ac_cv_type_short=no
27963 fi
27964
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 fi
27967 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27968 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27969
27970 # The cast to long int works around a bug in the HP C Compiler
27971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27973 # This bug is HP SR number 8606223364.
27974 { echo "$as_me:$LINENO: checking size of short" >&5
27975 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27976 if test "${ac_cv_sizeof_short+set}" = set; then
27977   echo $ECHO_N "(cached) $ECHO_C" >&6
27978 else
27979   if test "$cross_compiling" = yes; then
27980   # Depending upon the size, compute the lo and hi bounds.
27981 cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 $ac_includes_default
27988    typedef short ac__type_sizeof_;
27989 int
27990 main ()
27991 {
27992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27993 test_array [0] = 0
27994
27995   ;
27996   return 0;
27997 }
27998 _ACEOF
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003   *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006   (eval "$ac_compile") 2>conftest.er1
28007   ac_status=$?
28008   grep -v '^ *+' conftest.er1 >conftest.err
28009   rm -f conftest.er1
28010   cat conftest.err >&5
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); } && {
28013          test -z "$ac_c_werror_flag" ||
28014          test ! -s conftest.err
28015        } && test -s conftest.$ac_objext; then
28016   ac_lo=0 ac_mid=0
28017   while :; do
28018     cat >conftest.$ac_ext <<_ACEOF
28019 /* confdefs.h.  */
28020 _ACEOF
28021 cat confdefs.h >>conftest.$ac_ext
28022 cat >>conftest.$ac_ext <<_ACEOF
28023 /* end confdefs.h.  */
28024 $ac_includes_default
28025    typedef short ac__type_sizeof_;
28026 int
28027 main ()
28028 {
28029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28030 test_array [0] = 0
28031
28032   ;
28033   return 0;
28034 }
28035 _ACEOF
28036 rm -f conftest.$ac_objext
28037 if { (ac_try="$ac_compile"
28038 case "(($ac_try" in
28039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040   *) ac_try_echo=$ac_try;;
28041 esac
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043   (eval "$ac_compile") 2>conftest.er1
28044   ac_status=$?
28045   grep -v '^ *+' conftest.er1 >conftest.err
28046   rm -f conftest.er1
28047   cat conftest.err >&5
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); } && {
28050          test -z "$ac_c_werror_flag" ||
28051          test ! -s conftest.err
28052        } && test -s conftest.$ac_objext; then
28053   ac_hi=$ac_mid; break
28054 else
28055   echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28057
28058         ac_lo=`expr $ac_mid + 1`
28059                         if test $ac_lo -le $ac_mid; then
28060                           ac_lo= ac_hi=
28061                           break
28062                         fi
28063                         ac_mid=`expr 2 '*' $ac_mid + 1`
28064 fi
28065
28066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067   done
28068 else
28069   echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28071
28072         cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 $ac_includes_default
28079    typedef short ac__type_sizeof_;
28080 int
28081 main ()
28082 {
28083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28084 test_array [0] = 0
28085
28086   ;
28087   return 0;
28088 }
28089 _ACEOF
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
28092 case "(($ac_try" in
28093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094   *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097   (eval "$ac_compile") 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } && {
28104          test -z "$ac_c_werror_flag" ||
28105          test ! -s conftest.err
28106        } && test -s conftest.$ac_objext; then
28107   ac_hi=-1 ac_mid=-1
28108   while :; do
28109     cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h.  */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h.  */
28115 $ac_includes_default
28116    typedef short ac__type_sizeof_;
28117 int
28118 main ()
28119 {
28120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28121 test_array [0] = 0
28122
28123   ;
28124   return 0;
28125 }
28126 _ACEOF
28127 rm -f conftest.$ac_objext
28128 if { (ac_try="$ac_compile"
28129 case "(($ac_try" in
28130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131   *) ac_try_echo=$ac_try;;
28132 esac
28133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134   (eval "$ac_compile") 2>conftest.er1
28135   ac_status=$?
28136   grep -v '^ *+' conftest.er1 >conftest.err
28137   rm -f conftest.er1
28138   cat conftest.err >&5
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); } && {
28141          test -z "$ac_c_werror_flag" ||
28142          test ! -s conftest.err
28143        } && test -s conftest.$ac_objext; then
28144   ac_lo=$ac_mid; break
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149         ac_hi=`expr '(' $ac_mid ')' - 1`
28150                         if test $ac_mid -le $ac_hi; then
28151                           ac_lo= ac_hi=
28152                           break
28153                         fi
28154                         ac_mid=`expr 2 '*' $ac_mid`
28155 fi
28156
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28158   done
28159 else
28160   echo "$as_me: failed program was:" >&5
28161 sed 's/^/| /' conftest.$ac_ext >&5
28162
28163         ac_lo= ac_hi=
28164 fi
28165
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28167 fi
28168
28169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28170 # Binary search between lo and hi bounds.
28171 while test "x$ac_lo" != "x$ac_hi"; do
28172   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28173   cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h.  */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h.  */
28179 $ac_includes_default
28180    typedef short ac__type_sizeof_;
28181 int
28182 main ()
28183 {
28184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28185 test_array [0] = 0
28186
28187   ;
28188   return 0;
28189 }
28190 _ACEOF
28191 rm -f conftest.$ac_objext
28192 if { (ac_try="$ac_compile"
28193 case "(($ac_try" in
28194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195   *) ac_try_echo=$ac_try;;
28196 esac
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198   (eval "$ac_compile") 2>conftest.er1
28199   ac_status=$?
28200   grep -v '^ *+' conftest.er1 >conftest.err
28201   rm -f conftest.er1
28202   cat conftest.err >&5
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); } && {
28205          test -z "$ac_c_werror_flag" ||
28206          test ! -s conftest.err
28207        } && test -s conftest.$ac_objext; then
28208   ac_hi=$ac_mid
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213         ac_lo=`expr '(' $ac_mid ')' + 1`
28214 fi
28215
28216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28217 done
28218 case $ac_lo in
28219 ?*) ac_cv_sizeof_short=$ac_lo;;
28220 '') if test "$ac_cv_type_short" = yes; then
28221      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28222 See \`config.log' for more details." >&5
28223 echo "$as_me: error: cannot compute sizeof (short)
28224 See \`config.log' for more details." >&2;}
28225    { (exit 77); exit 77; }; }
28226    else
28227      ac_cv_sizeof_short=0
28228    fi ;;
28229 esac
28230 else
28231   cat >conftest.$ac_ext <<_ACEOF
28232 /* confdefs.h.  */
28233 _ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h.  */
28237 $ac_includes_default
28238    typedef short ac__type_sizeof_;
28239 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28240 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28241 #include <stdio.h>
28242 #include <stdlib.h>
28243 int
28244 main ()
28245 {
28246
28247   FILE *f = fopen ("conftest.val", "w");
28248   if (! f)
28249     return 1;
28250   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28251     {
28252       long int i = longval ();
28253       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28254         return 1;
28255       fprintf (f, "%ld\n", i);
28256     }
28257   else
28258     {
28259       unsigned long int i = ulongval ();
28260       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28261         return 1;
28262       fprintf (f, "%lu\n", i);
28263     }
28264   return ferror (f) || fclose (f) != 0;
28265
28266   ;
28267   return 0;
28268 }
28269 _ACEOF
28270 rm -f conftest$ac_exeext
28271 if { (ac_try="$ac_link"
28272 case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_link") 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28281   { (case "(($ac_try" in
28282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283   *) ac_try_echo=$ac_try;;
28284 esac
28285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286   (eval "$ac_try") 2>&5
28287   ac_status=$?
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); }; }; then
28290   ac_cv_sizeof_short=`cat conftest.val`
28291 else
28292   echo "$as_me: program exited with status $ac_status" >&5
28293 echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296 ( exit $ac_status )
28297 if test "$ac_cv_type_short" = yes; then
28298      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28299 See \`config.log' for more details." >&5
28300 echo "$as_me: error: cannot compute sizeof (short)
28301 See \`config.log' for more details." >&2;}
28302    { (exit 77); exit 77; }; }
28303    else
28304      ac_cv_sizeof_short=0
28305    fi
28306 fi
28307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28308 fi
28309 rm -f conftest.val
28310 fi
28311 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28312 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28313
28314
28315
28316 cat >>confdefs.h <<_ACEOF
28317 #define SIZEOF_SHORT $ac_cv_sizeof_short
28318 _ACEOF
28319
28320
28321 { echo "$as_me:$LINENO: checking for int" >&5
28322 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28323 if test "${ac_cv_type_int+set}" = set; then
28324   echo $ECHO_N "(cached) $ECHO_C" >&6
28325 else
28326   cat >conftest.$ac_ext <<_ACEOF
28327 /* confdefs.h.  */
28328 _ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h.  */
28332 $ac_includes_default
28333 typedef int ac__type_new_;
28334 int
28335 main ()
28336 {
28337 if ((ac__type_new_ *) 0)
28338   return 0;
28339 if (sizeof (ac__type_new_))
28340   return 0;
28341   ;
28342   return 0;
28343 }
28344 _ACEOF
28345 rm -f conftest.$ac_objext
28346 if { (ac_try="$ac_compile"
28347 case "(($ac_try" in
28348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28349   *) ac_try_echo=$ac_try;;
28350 esac
28351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28352   (eval "$ac_compile") 2>conftest.er1
28353   ac_status=$?
28354   grep -v '^ *+' conftest.er1 >conftest.err
28355   rm -f conftest.er1
28356   cat conftest.err >&5
28357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358   (exit $ac_status); } && {
28359          test -z "$ac_c_werror_flag" ||
28360          test ! -s conftest.err
28361        } && test -s conftest.$ac_objext; then
28362   ac_cv_type_int=yes
28363 else
28364   echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28366
28367         ac_cv_type_int=no
28368 fi
28369
28370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28371 fi
28372 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28373 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28374
28375 # The cast to long int works around a bug in the HP C Compiler
28376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28378 # This bug is HP SR number 8606223364.
28379 { echo "$as_me:$LINENO: checking size of int" >&5
28380 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28381 if test "${ac_cv_sizeof_int+set}" = set; then
28382   echo $ECHO_N "(cached) $ECHO_C" >&6
28383 else
28384   if test "$cross_compiling" = yes; then
28385   # Depending upon the size, compute the lo and hi bounds.
28386 cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 $ac_includes_default
28393    typedef int ac__type_sizeof_;
28394 int
28395 main ()
28396 {
28397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28398 test_array [0] = 0
28399
28400   ;
28401   return 0;
28402 }
28403 _ACEOF
28404 rm -f conftest.$ac_objext
28405 if { (ac_try="$ac_compile"
28406 case "(($ac_try" in
28407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408   *) ac_try_echo=$ac_try;;
28409 esac
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411   (eval "$ac_compile") 2>conftest.er1
28412   ac_status=$?
28413   grep -v '^ *+' conftest.er1 >conftest.err
28414   rm -f conftest.er1
28415   cat conftest.err >&5
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); } && {
28418          test -z "$ac_c_werror_flag" ||
28419          test ! -s conftest.err
28420        } && test -s conftest.$ac_objext; then
28421   ac_lo=0 ac_mid=0
28422   while :; do
28423     cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429 $ac_includes_default
28430    typedef int ac__type_sizeof_;
28431 int
28432 main ()
28433 {
28434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28435 test_array [0] = 0
28436
28437   ;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest.$ac_objext
28442 if { (ac_try="$ac_compile"
28443 case "(($ac_try" in
28444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28445   *) ac_try_echo=$ac_try;;
28446 esac
28447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28448   (eval "$ac_compile") 2>conftest.er1
28449   ac_status=$?
28450   grep -v '^ *+' conftest.er1 >conftest.err
28451   rm -f conftest.er1
28452   cat conftest.err >&5
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); } && {
28455          test -z "$ac_c_werror_flag" ||
28456          test ! -s conftest.err
28457        } && test -s conftest.$ac_objext; then
28458   ac_hi=$ac_mid; break
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463         ac_lo=`expr $ac_mid + 1`
28464                         if test $ac_lo -le $ac_mid; then
28465                           ac_lo= ac_hi=
28466                           break
28467                         fi
28468                         ac_mid=`expr 2 '*' $ac_mid + 1`
28469 fi
28470
28471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28472   done
28473 else
28474   echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28476
28477         cat >conftest.$ac_ext <<_ACEOF
28478 /* confdefs.h.  */
28479 _ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h.  */
28483 $ac_includes_default
28484    typedef int ac__type_sizeof_;
28485 int
28486 main ()
28487 {
28488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28489 test_array [0] = 0
28490
28491   ;
28492   return 0;
28493 }
28494 _ACEOF
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499   *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502   (eval "$ac_compile") 2>conftest.er1
28503   ac_status=$?
28504   grep -v '^ *+' conftest.er1 >conftest.err
28505   rm -f conftest.er1
28506   cat conftest.err >&5
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); } && {
28509          test -z "$ac_c_werror_flag" ||
28510          test ! -s conftest.err
28511        } && test -s conftest.$ac_objext; then
28512   ac_hi=-1 ac_mid=-1
28513   while :; do
28514     cat >conftest.$ac_ext <<_ACEOF
28515 /* confdefs.h.  */
28516 _ACEOF
28517 cat confdefs.h >>conftest.$ac_ext
28518 cat >>conftest.$ac_ext <<_ACEOF
28519 /* end confdefs.h.  */
28520 $ac_includes_default
28521    typedef int ac__type_sizeof_;
28522 int
28523 main ()
28524 {
28525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28526 test_array [0] = 0
28527
28528   ;
28529   return 0;
28530 }
28531 _ACEOF
28532 rm -f conftest.$ac_objext
28533 if { (ac_try="$ac_compile"
28534 case "(($ac_try" in
28535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536   *) ac_try_echo=$ac_try;;
28537 esac
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539   (eval "$ac_compile") 2>conftest.er1
28540   ac_status=$?
28541   grep -v '^ *+' conftest.er1 >conftest.err
28542   rm -f conftest.er1
28543   cat conftest.err >&5
28544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545   (exit $ac_status); } && {
28546          test -z "$ac_c_werror_flag" ||
28547          test ! -s conftest.err
28548        } && test -s conftest.$ac_objext; then
28549   ac_lo=$ac_mid; break
28550 else
28551   echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554         ac_hi=`expr '(' $ac_mid ')' - 1`
28555                         if test $ac_mid -le $ac_hi; then
28556                           ac_lo= ac_hi=
28557                           break
28558                         fi
28559                         ac_mid=`expr 2 '*' $ac_mid`
28560 fi
28561
28562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28563   done
28564 else
28565   echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28567
28568         ac_lo= ac_hi=
28569 fi
28570
28571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28572 fi
28573
28574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28575 # Binary search between lo and hi bounds.
28576 while test "x$ac_lo" != "x$ac_hi"; do
28577   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28578   cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584 $ac_includes_default
28585    typedef int ac__type_sizeof_;
28586 int
28587 main ()
28588 {
28589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28590 test_array [0] = 0
28591
28592   ;
28593   return 0;
28594 }
28595 _ACEOF
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600   *) ac_try_echo=$ac_try;;
28601 esac
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603   (eval "$ac_compile") 2>conftest.er1
28604   ac_status=$?
28605   grep -v '^ *+' conftest.er1 >conftest.err
28606   rm -f conftest.er1
28607   cat conftest.err >&5
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); } && {
28610          test -z "$ac_c_werror_flag" ||
28611          test ! -s conftest.err
28612        } && test -s conftest.$ac_objext; then
28613   ac_hi=$ac_mid
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618         ac_lo=`expr '(' $ac_mid ')' + 1`
28619 fi
28620
28621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28622 done
28623 case $ac_lo in
28624 ?*) ac_cv_sizeof_int=$ac_lo;;
28625 '') if test "$ac_cv_type_int" = yes; then
28626      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28627 See \`config.log' for more details." >&5
28628 echo "$as_me: error: cannot compute sizeof (int)
28629 See \`config.log' for more details." >&2;}
28630    { (exit 77); exit 77; }; }
28631    else
28632      ac_cv_sizeof_int=0
28633    fi ;;
28634 esac
28635 else
28636   cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 $ac_includes_default
28643    typedef int ac__type_sizeof_;
28644 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28645 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28646 #include <stdio.h>
28647 #include <stdlib.h>
28648 int
28649 main ()
28650 {
28651
28652   FILE *f = fopen ("conftest.val", "w");
28653   if (! f)
28654     return 1;
28655   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28656     {
28657       long int i = longval ();
28658       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28659         return 1;
28660       fprintf (f, "%ld\n", i);
28661     }
28662   else
28663     {
28664       unsigned long int i = ulongval ();
28665       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28666         return 1;
28667       fprintf (f, "%lu\n", i);
28668     }
28669   return ferror (f) || fclose (f) != 0;
28670
28671   ;
28672   return 0;
28673 }
28674 _ACEOF
28675 rm -f conftest$ac_exeext
28676 if { (ac_try="$ac_link"
28677 case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682   (eval "$ac_link") 2>&5
28683   ac_status=$?
28684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28686   { (case "(($ac_try" in
28687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688   *) ac_try_echo=$ac_try;;
28689 esac
28690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691   (eval "$ac_try") 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; }; then
28695   ac_cv_sizeof_int=`cat conftest.val`
28696 else
28697   echo "$as_me: program exited with status $ac_status" >&5
28698 echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28700
28701 ( exit $ac_status )
28702 if test "$ac_cv_type_int" = yes; then
28703      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28704 See \`config.log' for more details." >&5
28705 echo "$as_me: error: cannot compute sizeof (int)
28706 See \`config.log' for more details." >&2;}
28707    { (exit 77); exit 77; }; }
28708    else
28709      ac_cv_sizeof_int=0
28710    fi
28711 fi
28712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28713 fi
28714 rm -f conftest.val
28715 fi
28716 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28717 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28718
28719
28720
28721 cat >>confdefs.h <<_ACEOF
28722 #define SIZEOF_INT $ac_cv_sizeof_int
28723 _ACEOF
28724
28725
28726 { echo "$as_me:$LINENO: checking for long" >&5
28727 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28728 if test "${ac_cv_type_long+set}" = set; then
28729   echo $ECHO_N "(cached) $ECHO_C" >&6
28730 else
28731   cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h.  */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h.  */
28737 $ac_includes_default
28738 typedef long ac__type_new_;
28739 int
28740 main ()
28741 {
28742 if ((ac__type_new_ *) 0)
28743   return 0;
28744 if (sizeof (ac__type_new_))
28745   return 0;
28746   ;
28747   return 0;
28748 }
28749 _ACEOF
28750 rm -f conftest.$ac_objext
28751 if { (ac_try="$ac_compile"
28752 case "(($ac_try" in
28753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754   *) ac_try_echo=$ac_try;;
28755 esac
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757   (eval "$ac_compile") 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } && {
28764          test -z "$ac_c_werror_flag" ||
28765          test ! -s conftest.err
28766        } && test -s conftest.$ac_objext; then
28767   ac_cv_type_long=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772         ac_cv_type_long=no
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776 fi
28777 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28778 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28779
28780 # The cast to long int works around a bug in the HP C Compiler
28781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28783 # This bug is HP SR number 8606223364.
28784 { echo "$as_me:$LINENO: checking size of long" >&5
28785 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28786 if test "${ac_cv_sizeof_long+set}" = set; then
28787   echo $ECHO_N "(cached) $ECHO_C" >&6
28788 else
28789   if test "$cross_compiling" = yes; then
28790   # Depending upon the size, compute the lo and hi bounds.
28791 cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797 $ac_includes_default
28798    typedef long ac__type_sizeof_;
28799 int
28800 main ()
28801 {
28802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28803 test_array [0] = 0
28804
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest.$ac_objext
28810 if { (ac_try="$ac_compile"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_compile") 2>conftest.er1
28817   ac_status=$?
28818   grep -v '^ *+' conftest.er1 >conftest.err
28819   rm -f conftest.er1
28820   cat conftest.err >&5
28821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822   (exit $ac_status); } && {
28823          test -z "$ac_c_werror_flag" ||
28824          test ! -s conftest.err
28825        } && test -s conftest.$ac_objext; then
28826   ac_lo=0 ac_mid=0
28827   while :; do
28828     cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h.  */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h.  */
28834 $ac_includes_default
28835    typedef long ac__type_sizeof_;
28836 int
28837 main ()
28838 {
28839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28840 test_array [0] = 0
28841
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext
28847 if { (ac_try="$ac_compile"
28848 case "(($ac_try" in
28849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28850   *) ac_try_echo=$ac_try;;
28851 esac
28852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28853   (eval "$ac_compile") 2>conftest.er1
28854   ac_status=$?
28855   grep -v '^ *+' conftest.er1 >conftest.err
28856   rm -f conftest.er1
28857   cat conftest.err >&5
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } && {
28860          test -z "$ac_c_werror_flag" ||
28861          test ! -s conftest.err
28862        } && test -s conftest.$ac_objext; then
28863   ac_hi=$ac_mid; break
28864 else
28865   echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28867
28868         ac_lo=`expr $ac_mid + 1`
28869                         if test $ac_lo -le $ac_mid; then
28870                           ac_lo= ac_hi=
28871                           break
28872                         fi
28873                         ac_mid=`expr 2 '*' $ac_mid + 1`
28874 fi
28875
28876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28877   done
28878 else
28879   echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882         cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888 $ac_includes_default
28889    typedef long ac__type_sizeof_;
28890 int
28891 main ()
28892 {
28893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28894 test_array [0] = 0
28895
28896   ;
28897   return 0;
28898 }
28899 _ACEOF
28900 rm -f conftest.$ac_objext
28901 if { (ac_try="$ac_compile"
28902 case "(($ac_try" in
28903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904   *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907   (eval "$ac_compile") 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } && {
28914          test -z "$ac_c_werror_flag" ||
28915          test ! -s conftest.err
28916        } && test -s conftest.$ac_objext; then
28917   ac_hi=-1 ac_mid=-1
28918   while :; do
28919     cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925 $ac_includes_default
28926    typedef long ac__type_sizeof_;
28927 int
28928 main ()
28929 {
28930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28931 test_array [0] = 0
28932
28933   ;
28934   return 0;
28935 }
28936 _ACEOF
28937 rm -f conftest.$ac_objext
28938 if { (ac_try="$ac_compile"
28939 case "(($ac_try" in
28940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941   *) ac_try_echo=$ac_try;;
28942 esac
28943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944   (eval "$ac_compile") 2>conftest.er1
28945   ac_status=$?
28946   grep -v '^ *+' conftest.er1 >conftest.err
28947   rm -f conftest.er1
28948   cat conftest.err >&5
28949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950   (exit $ac_status); } && {
28951          test -z "$ac_c_werror_flag" ||
28952          test ! -s conftest.err
28953        } && test -s conftest.$ac_objext; then
28954   ac_lo=$ac_mid; break
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959         ac_hi=`expr '(' $ac_mid ')' - 1`
28960                         if test $ac_mid -le $ac_hi; then
28961                           ac_lo= ac_hi=
28962                           break
28963                         fi
28964                         ac_mid=`expr 2 '*' $ac_mid`
28965 fi
28966
28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28968   done
28969 else
28970   echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28972
28973         ac_lo= ac_hi=
28974 fi
28975
28976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28977 fi
28978
28979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28980 # Binary search between lo and hi bounds.
28981 while test "x$ac_lo" != "x$ac_hi"; do
28982   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28983   cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989 $ac_includes_default
28990    typedef long ac__type_sizeof_;
28991 int
28992 main ()
28993 {
28994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28995 test_array [0] = 0
28996
28997   ;
28998   return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008   (eval "$ac_compile") 2>conftest.er1
29009   ac_status=$?
29010   grep -v '^ *+' conftest.er1 >conftest.err
29011   rm -f conftest.er1
29012   cat conftest.err >&5
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); } && {
29015          test -z "$ac_c_werror_flag" ||
29016          test ! -s conftest.err
29017        } && test -s conftest.$ac_objext; then
29018   ac_hi=$ac_mid
29019 else
29020   echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023         ac_lo=`expr '(' $ac_mid ')' + 1`
29024 fi
29025
29026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29027 done
29028 case $ac_lo in
29029 ?*) ac_cv_sizeof_long=$ac_lo;;
29030 '') if test "$ac_cv_type_long" = yes; then
29031      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29032 See \`config.log' for more details." >&5
29033 echo "$as_me: error: cannot compute sizeof (long)
29034 See \`config.log' for more details." >&2;}
29035    { (exit 77); exit 77; }; }
29036    else
29037      ac_cv_sizeof_long=0
29038    fi ;;
29039 esac
29040 else
29041   cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047 $ac_includes_default
29048    typedef long ac__type_sizeof_;
29049 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29050 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29051 #include <stdio.h>
29052 #include <stdlib.h>
29053 int
29054 main ()
29055 {
29056
29057   FILE *f = fopen ("conftest.val", "w");
29058   if (! f)
29059     return 1;
29060   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29061     {
29062       long int i = longval ();
29063       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29064         return 1;
29065       fprintf (f, "%ld\n", i);
29066     }
29067   else
29068     {
29069       unsigned long int i = ulongval ();
29070       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29071         return 1;
29072       fprintf (f, "%lu\n", i);
29073     }
29074   return ferror (f) || fclose (f) != 0;
29075
29076   ;
29077   return 0;
29078 }
29079 _ACEOF
29080 rm -f conftest$ac_exeext
29081 if { (ac_try="$ac_link"
29082 case "(($ac_try" in
29083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084   *) ac_try_echo=$ac_try;;
29085 esac
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087   (eval "$ac_link") 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29091   { (case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29096   (eval "$ac_try") 2>&5
29097   ac_status=$?
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); }; }; then
29100   ac_cv_sizeof_long=`cat conftest.val`
29101 else
29102   echo "$as_me: program exited with status $ac_status" >&5
29103 echo "$as_me: failed program was:" >&5
29104 sed 's/^/| /' conftest.$ac_ext >&5
29105
29106 ( exit $ac_status )
29107 if test "$ac_cv_type_long" = yes; then
29108      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29109 See \`config.log' for more details." >&5
29110 echo "$as_me: error: cannot compute sizeof (long)
29111 See \`config.log' for more details." >&2;}
29112    { (exit 77); exit 77; }; }
29113    else
29114      ac_cv_sizeof_long=0
29115    fi
29116 fi
29117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29118 fi
29119 rm -f conftest.val
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29122 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29123
29124
29125
29126 cat >>confdefs.h <<_ACEOF
29127 #define SIZEOF_LONG $ac_cv_sizeof_long
29128 _ACEOF
29129
29130
29131 { echo "$as_me:$LINENO: checking for size_t" >&5
29132 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29133 if test "${ac_cv_type_size_t+set}" = set; then
29134   echo $ECHO_N "(cached) $ECHO_C" >&6
29135 else
29136   cat >conftest.$ac_ext <<_ACEOF
29137 /* confdefs.h.  */
29138 _ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h.  */
29142 $ac_includes_default
29143 typedef size_t ac__type_new_;
29144 int
29145 main ()
29146 {
29147 if ((ac__type_new_ *) 0)
29148   return 0;
29149 if (sizeof (ac__type_new_))
29150   return 0;
29151   ;
29152   return 0;
29153 }
29154 _ACEOF
29155 rm -f conftest.$ac_objext
29156 if { (ac_try="$ac_compile"
29157 case "(($ac_try" in
29158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159   *) ac_try_echo=$ac_try;;
29160 esac
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162   (eval "$ac_compile") 2>conftest.er1
29163   ac_status=$?
29164   grep -v '^ *+' conftest.er1 >conftest.err
29165   rm -f conftest.er1
29166   cat conftest.err >&5
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); } && {
29169          test -z "$ac_c_werror_flag" ||
29170          test ! -s conftest.err
29171        } && test -s conftest.$ac_objext; then
29172   ac_cv_type_size_t=yes
29173 else
29174   echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29176
29177         ac_cv_type_size_t=no
29178 fi
29179
29180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29181 fi
29182 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29183 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29184
29185 # The cast to long int works around a bug in the HP C Compiler
29186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29188 # This bug is HP SR number 8606223364.
29189 { echo "$as_me:$LINENO: checking size of size_t" >&5
29190 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29191 if test "${ac_cv_sizeof_size_t+set}" = set; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194   if test "$cross_compiling" = yes; then
29195   # Depending upon the size, compute the lo and hi bounds.
29196 cat >conftest.$ac_ext <<_ACEOF
29197 /* confdefs.h.  */
29198 _ACEOF
29199 cat confdefs.h >>conftest.$ac_ext
29200 cat >>conftest.$ac_ext <<_ACEOF
29201 /* end confdefs.h.  */
29202 $ac_includes_default
29203    typedef size_t ac__type_sizeof_;
29204 int
29205 main ()
29206 {
29207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29208 test_array [0] = 0
29209
29210   ;
29211   return 0;
29212 }
29213 _ACEOF
29214 rm -f conftest.$ac_objext
29215 if { (ac_try="$ac_compile"
29216 case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_compile") 2>conftest.er1
29222   ac_status=$?
29223   grep -v '^ *+' conftest.er1 >conftest.err
29224   rm -f conftest.er1
29225   cat conftest.err >&5
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); } && {
29228          test -z "$ac_c_werror_flag" ||
29229          test ! -s conftest.err
29230        } && test -s conftest.$ac_objext; then
29231   ac_lo=0 ac_mid=0
29232   while :; do
29233     cat >conftest.$ac_ext <<_ACEOF
29234 /* confdefs.h.  */
29235 _ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h.  */
29239 $ac_includes_default
29240    typedef size_t ac__type_sizeof_;
29241 int
29242 main ()
29243 {
29244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29245 test_array [0] = 0
29246
29247   ;
29248   return 0;
29249 }
29250 _ACEOF
29251 rm -f conftest.$ac_objext
29252 if { (ac_try="$ac_compile"
29253 case "(($ac_try" in
29254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255   *) ac_try_echo=$ac_try;;
29256 esac
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258   (eval "$ac_compile") 2>conftest.er1
29259   ac_status=$?
29260   grep -v '^ *+' conftest.er1 >conftest.err
29261   rm -f conftest.er1
29262   cat conftest.err >&5
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } && {
29265          test -z "$ac_c_werror_flag" ||
29266          test ! -s conftest.err
29267        } && test -s conftest.$ac_objext; then
29268   ac_hi=$ac_mid; break
29269 else
29270   echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29272
29273         ac_lo=`expr $ac_mid + 1`
29274                         if test $ac_lo -le $ac_mid; then
29275                           ac_lo= ac_hi=
29276                           break
29277                         fi
29278                         ac_mid=`expr 2 '*' $ac_mid + 1`
29279 fi
29280
29281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282   done
29283 else
29284   echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29286
29287         cat >conftest.$ac_ext <<_ACEOF
29288 /* confdefs.h.  */
29289 _ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h.  */
29293 $ac_includes_default
29294    typedef size_t ac__type_sizeof_;
29295 int
29296 main ()
29297 {
29298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29299 test_array [0] = 0
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_compile") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest.$ac_objext; then
29322   ac_hi=-1 ac_mid=-1
29323   while :; do
29324     cat >conftest.$ac_ext <<_ACEOF
29325 /* confdefs.h.  */
29326 _ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h.  */
29330 $ac_includes_default
29331    typedef size_t ac__type_sizeof_;
29332 int
29333 main ()
29334 {
29335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29336 test_array [0] = 0
29337
29338   ;
29339   return 0;
29340 }
29341 _ACEOF
29342 rm -f conftest.$ac_objext
29343 if { (ac_try="$ac_compile"
29344 case "(($ac_try" in
29345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346   *) ac_try_echo=$ac_try;;
29347 esac
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349   (eval "$ac_compile") 2>conftest.er1
29350   ac_status=$?
29351   grep -v '^ *+' conftest.er1 >conftest.err
29352   rm -f conftest.er1
29353   cat conftest.err >&5
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); } && {
29356          test -z "$ac_c_werror_flag" ||
29357          test ! -s conftest.err
29358        } && test -s conftest.$ac_objext; then
29359   ac_lo=$ac_mid; break
29360 else
29361   echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29363
29364         ac_hi=`expr '(' $ac_mid ')' - 1`
29365                         if test $ac_mid -le $ac_hi; then
29366                           ac_lo= ac_hi=
29367                           break
29368                         fi
29369                         ac_mid=`expr 2 '*' $ac_mid`
29370 fi
29371
29372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29373   done
29374 else
29375   echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29377
29378         ac_lo= ac_hi=
29379 fi
29380
29381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29382 fi
29383
29384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385 # Binary search between lo and hi bounds.
29386 while test "x$ac_lo" != "x$ac_hi"; do
29387   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29388   cat >conftest.$ac_ext <<_ACEOF
29389 /* confdefs.h.  */
29390 _ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h.  */
29394 $ac_includes_default
29395    typedef size_t ac__type_sizeof_;
29396 int
29397 main ()
29398 {
29399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29400 test_array [0] = 0
29401
29402   ;
29403   return 0;
29404 }
29405 _ACEOF
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_compile") 2>conftest.er1
29414   ac_status=$?
29415   grep -v '^ *+' conftest.er1 >conftest.err
29416   rm -f conftest.er1
29417   cat conftest.err >&5
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); } && {
29420          test -z "$ac_c_werror_flag" ||
29421          test ! -s conftest.err
29422        } && test -s conftest.$ac_objext; then
29423   ac_hi=$ac_mid
29424 else
29425   echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29427
29428         ac_lo=`expr '(' $ac_mid ')' + 1`
29429 fi
29430
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 done
29433 case $ac_lo in
29434 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29435 '') if test "$ac_cv_type_size_t" = yes; then
29436      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29437 See \`config.log' for more details." >&5
29438 echo "$as_me: error: cannot compute sizeof (size_t)
29439 See \`config.log' for more details." >&2;}
29440    { (exit 77); exit 77; }; }
29441    else
29442      ac_cv_sizeof_size_t=0
29443    fi ;;
29444 esac
29445 else
29446   cat >conftest.$ac_ext <<_ACEOF
29447 /* confdefs.h.  */
29448 _ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h.  */
29452 $ac_includes_default
29453    typedef size_t ac__type_sizeof_;
29454 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29455 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29456 #include <stdio.h>
29457 #include <stdlib.h>
29458 int
29459 main ()
29460 {
29461
29462   FILE *f = fopen ("conftest.val", "w");
29463   if (! f)
29464     return 1;
29465   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29466     {
29467       long int i = longval ();
29468       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29469         return 1;
29470       fprintf (f, "%ld\n", i);
29471     }
29472   else
29473     {
29474       unsigned long int i = ulongval ();
29475       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29476         return 1;
29477       fprintf (f, "%lu\n", i);
29478     }
29479   return ferror (f) || fclose (f) != 0;
29480
29481   ;
29482   return 0;
29483 }
29484 _ACEOF
29485 rm -f conftest$ac_exeext
29486 if { (ac_try="$ac_link"
29487 case "(($ac_try" in
29488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489   *) ac_try_echo=$ac_try;;
29490 esac
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492   (eval "$ac_link") 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29496   { (case "(($ac_try" in
29497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498   *) ac_try_echo=$ac_try;;
29499 esac
29500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501   (eval "$ac_try") 2>&5
29502   ac_status=$?
29503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504   (exit $ac_status); }; }; then
29505   ac_cv_sizeof_size_t=`cat conftest.val`
29506 else
29507   echo "$as_me: program exited with status $ac_status" >&5
29508 echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29510
29511 ( exit $ac_status )
29512 if test "$ac_cv_type_size_t" = yes; then
29513      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29514 See \`config.log' for more details." >&5
29515 echo "$as_me: error: cannot compute sizeof (size_t)
29516 See \`config.log' for more details." >&2;}
29517    { (exit 77); exit 77; }; }
29518    else
29519      ac_cv_sizeof_size_t=0
29520    fi
29521 fi
29522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29523 fi
29524 rm -f conftest.val
29525 fi
29526 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29527 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29528
29529
29530
29531 cat >>confdefs.h <<_ACEOF
29532 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29533 _ACEOF
29534
29535
29536 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29537 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29538 if test "${ac_cv_type_socklen_t+set}" = set; then
29539   echo $ECHO_N "(cached) $ECHO_C" >&6
29540 else
29541   cat >conftest.$ac_ext <<_ACEOF
29542 /* confdefs.h.  */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h.  */
29547 $ac_includes_default
29548 typedef socklen_t ac__type_new_;
29549 int
29550 main ()
29551 {
29552 if ((ac__type_new_ *) 0)
29553   return 0;
29554 if (sizeof (ac__type_new_))
29555   return 0;
29556   ;
29557   return 0;
29558 }
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (ac_try="$ac_compile"
29562 case "(($ac_try" in
29563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564   *) ac_try_echo=$ac_try;;
29565 esac
29566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567   (eval "$ac_compile") 2>conftest.er1
29568   ac_status=$?
29569   grep -v '^ *+' conftest.er1 >conftest.err
29570   rm -f conftest.er1
29571   cat conftest.err >&5
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); } && {
29574          test -z "$ac_c_werror_flag" ||
29575          test ! -s conftest.err
29576        } && test -s conftest.$ac_objext; then
29577   ac_cv_type_socklen_t=yes
29578 else
29579   echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29581
29582         ac_cv_type_socklen_t=no
29583 fi
29584
29585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 fi
29587 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29588 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29589
29590 # The cast to long int works around a bug in the HP C Compiler
29591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29593 # This bug is HP SR number 8606223364.
29594 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29595 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29596 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29597   echo $ECHO_N "(cached) $ECHO_C" >&6
29598 else
29599   if test "$cross_compiling" = yes; then
29600   # Depending upon the size, compute the lo and hi bounds.
29601 cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607 $ac_includes_default
29608    typedef socklen_t ac__type_sizeof_;
29609 int
29610 main ()
29611 {
29612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29613 test_array [0] = 0
29614
29615   ;
29616   return 0;
29617 }
29618 _ACEOF
29619 rm -f conftest.$ac_objext
29620 if { (ac_try="$ac_compile"
29621 case "(($ac_try" in
29622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623   *) ac_try_echo=$ac_try;;
29624 esac
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626   (eval "$ac_compile") 2>conftest.er1
29627   ac_status=$?
29628   grep -v '^ *+' conftest.er1 >conftest.err
29629   rm -f conftest.er1
29630   cat conftest.err >&5
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); } && {
29633          test -z "$ac_c_werror_flag" ||
29634          test ! -s conftest.err
29635        } && test -s conftest.$ac_objext; then
29636   ac_lo=0 ac_mid=0
29637   while :; do
29638     cat >conftest.$ac_ext <<_ACEOF
29639 /* confdefs.h.  */
29640 _ACEOF
29641 cat confdefs.h >>conftest.$ac_ext
29642 cat >>conftest.$ac_ext <<_ACEOF
29643 /* end confdefs.h.  */
29644 $ac_includes_default
29645    typedef socklen_t ac__type_sizeof_;
29646 int
29647 main ()
29648 {
29649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29650 test_array [0] = 0
29651
29652   ;
29653   return 0;
29654 }
29655 _ACEOF
29656 rm -f conftest.$ac_objext
29657 if { (ac_try="$ac_compile"
29658 case "(($ac_try" in
29659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660   *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663   (eval "$ac_compile") 2>conftest.er1
29664   ac_status=$?
29665   grep -v '^ *+' conftest.er1 >conftest.err
29666   rm -f conftest.er1
29667   cat conftest.err >&5
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); } && {
29670          test -z "$ac_c_werror_flag" ||
29671          test ! -s conftest.err
29672        } && test -s conftest.$ac_objext; then
29673   ac_hi=$ac_mid; break
29674 else
29675   echo "$as_me: failed program was:" >&5
29676 sed 's/^/| /' conftest.$ac_ext >&5
29677
29678         ac_lo=`expr $ac_mid + 1`
29679                         if test $ac_lo -le $ac_mid; then
29680                           ac_lo= ac_hi=
29681                           break
29682                         fi
29683                         ac_mid=`expr 2 '*' $ac_mid + 1`
29684 fi
29685
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687   done
29688 else
29689   echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29691
29692         cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698 $ac_includes_default
29699    typedef socklen_t ac__type_sizeof_;
29700 int
29701 main ()
29702 {
29703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29704 test_array [0] = 0
29705
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest.$ac_objext; then
29727   ac_hi=-1 ac_mid=-1
29728   while :; do
29729     cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735 $ac_includes_default
29736    typedef socklen_t ac__type_sizeof_;
29737 int
29738 main ()
29739 {
29740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29741 test_array [0] = 0
29742
29743   ;
29744   return 0;
29745 }
29746 _ACEOF
29747 rm -f conftest.$ac_objext
29748 if { (ac_try="$ac_compile"
29749 case "(($ac_try" in
29750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751   *) ac_try_echo=$ac_try;;
29752 esac
29753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754   (eval "$ac_compile") 2>conftest.er1
29755   ac_status=$?
29756   grep -v '^ *+' conftest.er1 >conftest.err
29757   rm -f conftest.er1
29758   cat conftest.err >&5
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); } && {
29761          test -z "$ac_c_werror_flag" ||
29762          test ! -s conftest.err
29763        } && test -s conftest.$ac_objext; then
29764   ac_lo=$ac_mid; break
29765 else
29766   echo "$as_me: failed program was:" >&5
29767 sed 's/^/| /' conftest.$ac_ext >&5
29768
29769         ac_hi=`expr '(' $ac_mid ')' - 1`
29770                         if test $ac_mid -le $ac_hi; then
29771                           ac_lo= ac_hi=
29772                           break
29773                         fi
29774                         ac_mid=`expr 2 '*' $ac_mid`
29775 fi
29776
29777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29778   done
29779 else
29780   echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29782
29783         ac_lo= ac_hi=
29784 fi
29785
29786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29787 fi
29788
29789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29790 # Binary search between lo and hi bounds.
29791 while test "x$ac_lo" != "x$ac_hi"; do
29792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29793   cat >conftest.$ac_ext <<_ACEOF
29794 /* confdefs.h.  */
29795 _ACEOF
29796 cat confdefs.h >>conftest.$ac_ext
29797 cat >>conftest.$ac_ext <<_ACEOF
29798 /* end confdefs.h.  */
29799 $ac_includes_default
29800    typedef socklen_t ac__type_sizeof_;
29801 int
29802 main ()
29803 {
29804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29805 test_array [0] = 0
29806
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815   *) ac_try_echo=$ac_try;;
29816 esac
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818   (eval "$ac_compile") 2>conftest.er1
29819   ac_status=$?
29820   grep -v '^ *+' conftest.er1 >conftest.err
29821   rm -f conftest.er1
29822   cat conftest.err >&5
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } && {
29825          test -z "$ac_c_werror_flag" ||
29826          test ! -s conftest.err
29827        } && test -s conftest.$ac_objext; then
29828   ac_hi=$ac_mid
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833         ac_lo=`expr '(' $ac_mid ')' + 1`
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837 done
29838 case $ac_lo in
29839 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29840 '') if test "$ac_cv_type_socklen_t" = yes; then
29841      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29842 See \`config.log' for more details." >&5
29843 echo "$as_me: error: cannot compute sizeof (socklen_t)
29844 See \`config.log' for more details." >&2;}
29845    { (exit 77); exit 77; }; }
29846    else
29847      ac_cv_sizeof_socklen_t=0
29848    fi ;;
29849 esac
29850 else
29851   cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857 $ac_includes_default
29858    typedef socklen_t ac__type_sizeof_;
29859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29861 #include <stdio.h>
29862 #include <stdlib.h>
29863 int
29864 main ()
29865 {
29866
29867   FILE *f = fopen ("conftest.val", "w");
29868   if (! f)
29869     return 1;
29870   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29871     {
29872       long int i = longval ();
29873       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29874         return 1;
29875       fprintf (f, "%ld\n", i);
29876     }
29877   else
29878     {
29879       unsigned long int i = ulongval ();
29880       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29881         return 1;
29882       fprintf (f, "%lu\n", i);
29883     }
29884   return ferror (f) || fclose (f) != 0;
29885
29886   ;
29887   return 0;
29888 }
29889 _ACEOF
29890 rm -f conftest$ac_exeext
29891 if { (ac_try="$ac_link"
29892 case "(($ac_try" in
29893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29894   *) ac_try_echo=$ac_try;;
29895 esac
29896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29897   (eval "$ac_link") 2>&5
29898   ac_status=$?
29899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29901   { (case "(($ac_try" in
29902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29903   *) ac_try_echo=$ac_try;;
29904 esac
29905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29906   (eval "$ac_try") 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); }; }; then
29910   ac_cv_sizeof_socklen_t=`cat conftest.val`
29911 else
29912   echo "$as_me: program exited with status $ac_status" >&5
29913 echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29915
29916 ( exit $ac_status )
29917 if test "$ac_cv_type_socklen_t" = yes; then
29918      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29919 See \`config.log' for more details." >&5
29920 echo "$as_me: error: cannot compute sizeof (socklen_t)
29921 See \`config.log' for more details." >&2;}
29922    { (exit 77); exit 77; }; }
29923    else
29924      ac_cv_sizeof_socklen_t=0
29925    fi
29926 fi
29927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29928 fi
29929 rm -f conftest.val
29930 fi
29931 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29932 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29933
29934
29935
29936 cat >>confdefs.h <<_ACEOF
29937 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29938 _ACEOF
29939
29940
29941
29942
29943
29944 cat >>confdefs.h <<_ACEOF
29945 #define NFS_STATEDIR "$statedir"
29946 _ACEOF
29947
29948
29949 if test "x$cross_compiling" = "xno"; then
29950         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29951         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29952         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29953         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29954 else
29955         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29956         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29957         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29958         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29959 fi
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971 case $host in
29972   *)
29973     ARCHFLAGS="" ;;
29974 esac
29975
29976 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29977
29978 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29979
29980 AM_CFLAGS="$my_am_cflags"
29981
29982
29983 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29984 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29985
29986
29987 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29988
29989 cat >confcache <<\_ACEOF
29990 # This file is a shell script that caches the results of configure
29991 # tests run on this system so they can be shared between configure
29992 # scripts and configure runs, see configure's option --config-cache.
29993 # It is not useful on other systems.  If it contains results you don't
29994 # want to keep, you may remove or edit it.
29995 #
29996 # config.status only pays attention to the cache file if you give it
29997 # the --recheck option to rerun configure.
29998 #
29999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30001 # following values.
30002
30003 _ACEOF
30004
30005 # The following way of writing the cache mishandles newlines in values,
30006 # but we know of no workaround that is simple, portable, and efficient.
30007 # So, we kill variables containing newlines.
30008 # Ultrix sh set writes to stderr and can't be redirected directly,
30009 # and sets the high bit in the cache file unless we assign to the vars.
30010 (
30011   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30012     eval ac_val=\$$ac_var
30013     case $ac_val in #(
30014     *${as_nl}*)
30015       case $ac_var in #(
30016       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30018       esac
30019       case $ac_var in #(
30020       _ | IFS | as_nl) ;; #(
30021       *) $as_unset $ac_var ;;
30022       esac ;;
30023     esac
30024   done
30025
30026   (set) 2>&1 |
30027     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30028     *${as_nl}ac_space=\ *)
30029       # `set' does not quote correctly, so add quotes (double-quote
30030       # substitution turns \\\\ into \\, and sed turns \\ into \).
30031       sed -n \
30032         "s/'/'\\\\''/g;
30033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30034       ;; #(
30035     *)
30036       # `set' quotes correctly as required by POSIX, so do not add quotes.
30037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30038       ;;
30039     esac |
30040     sort
30041 ) |
30042   sed '
30043      /^ac_cv_env_/b end
30044      t clear
30045      :clear
30046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30047      t end
30048      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30049      :end' >>confcache
30050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30051   if test -w "$cache_file"; then
30052     test "x$cache_file" != "x/dev/null" &&
30053       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30054 echo "$as_me: updating cache $cache_file" >&6;}
30055     cat confcache >$cache_file
30056   else
30057     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30059   fi
30060 fi
30061 rm -f confcache
30062
30063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30064 # Let make expand exec_prefix.
30065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30066
30067 DEFS=-DHAVE_CONFIG_H
30068
30069 ac_libobjs=
30070 ac_ltlibobjs=
30071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30072   # 1. Remove the extension, and $U if already installed.
30073   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30074   ac_i=`echo "$ac_i" | sed "$ac_script"`
30075   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30076   #    will be set to the directory where LIBOBJS objects are built.
30077   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30078   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30079 done
30080 LIBOBJS=$ac_libobjs
30081
30082 LTLIBOBJS=$ac_ltlibobjs
30083
30084
30085 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30086   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30087 Usually this means the macro was only invoked conditionally." >&5
30088 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30089 Usually this means the macro was only invoked conditionally." >&2;}
30090    { (exit 1); exit 1; }; }
30091 fi
30092 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30093   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30094 Usually this means the macro was only invoked conditionally." >&5
30095 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30096 Usually this means the macro was only invoked conditionally." >&2;}
30097    { (exit 1); exit 1; }; }
30098 fi
30099 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30100   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30101 Usually this means the macro was only invoked conditionally." >&5
30102 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30103 Usually this means the macro was only invoked conditionally." >&2;}
30104    { (exit 1); exit 1; }; }
30105 fi
30106 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30107   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30108 Usually this means the macro was only invoked conditionally." >&5
30109 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30110 Usually this means the macro was only invoked conditionally." >&2;}
30111    { (exit 1); exit 1; }; }
30112 fi
30113 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30114   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30115 Usually this means the macro was only invoked conditionally." >&5
30116 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30117 Usually this means the macro was only invoked conditionally." >&2;}
30118    { (exit 1); exit 1; }; }
30119 fi
30120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30121   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30122 Usually this means the macro was only invoked conditionally." >&5
30123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30124 Usually this means the macro was only invoked conditionally." >&2;}
30125    { (exit 1); exit 1; }; }
30126 fi
30127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30128   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30129 Usually this means the macro was only invoked conditionally." >&5
30130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30131 Usually this means the macro was only invoked conditionally." >&2;}
30132    { (exit 1); exit 1; }; }
30133 fi
30134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30135   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30136 Usually this means the macro was only invoked conditionally." >&5
30137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30138 Usually this means the macro was only invoked conditionally." >&2;}
30139    { (exit 1); exit 1; }; }
30140 fi
30141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30142   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30143 Usually this means the macro was only invoked conditionally." >&5
30144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30145 Usually this means the macro was only invoked conditionally." >&2;}
30146    { (exit 1); exit 1; }; }
30147 fi
30148
30149 : ${CONFIG_STATUS=./config.status}
30150 ac_clean_files_save=$ac_clean_files
30151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30152 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30153 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30154 cat >$CONFIG_STATUS <<_ACEOF
30155 #! $SHELL
30156 # Generated by $as_me.
30157 # Run this file to recreate the current configuration.
30158 # Compiler output produced by configure, useful for debugging
30159 # configure, is in config.log if it exists.
30160
30161 debug=false
30162 ac_cs_recheck=false
30163 ac_cs_silent=false
30164 SHELL=\${CONFIG_SHELL-$SHELL}
30165 _ACEOF
30166
30167 cat >>$CONFIG_STATUS <<\_ACEOF
30168 ## --------------------- ##
30169 ## M4sh Initialization.  ##
30170 ## --------------------- ##
30171
30172 # Be more Bourne compatible
30173 DUALCASE=1; export DUALCASE # for MKS sh
30174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30175   emulate sh
30176   NULLCMD=:
30177   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30178   # is contrary to our usage.  Disable this feature.
30179   alias -g '${1+"$@"}'='"$@"'
30180   setopt NO_GLOB_SUBST
30181 else
30182   case `(set -o) 2>/dev/null` in
30183   *posix*) set -o posix ;;
30184 esac
30185
30186 fi
30187
30188
30189
30190
30191 # PATH needs CR
30192 # Avoid depending upon Character Ranges.
30193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30196 as_cr_digits='0123456789'
30197 as_cr_alnum=$as_cr_Letters$as_cr_digits
30198
30199 # The user is always right.
30200 if test "${PATH_SEPARATOR+set}" != set; then
30201   echo "#! /bin/sh" >conf$$.sh
30202   echo  "exit 0"   >>conf$$.sh
30203   chmod +x conf$$.sh
30204   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30205     PATH_SEPARATOR=';'
30206   else
30207     PATH_SEPARATOR=:
30208   fi
30209   rm -f conf$$.sh
30210 fi
30211
30212 # Support unset when possible.
30213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30214   as_unset=unset
30215 else
30216   as_unset=false
30217 fi
30218
30219
30220 # IFS
30221 # We need space, tab and new line, in precisely that order.  Quoting is
30222 # there to prevent editors from complaining about space-tab.
30223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30224 # splitting by setting IFS to empty value.)
30225 as_nl='
30226 '
30227 IFS=" ""        $as_nl"
30228
30229 # Find who we are.  Look in the path if we contain no directory separator.
30230 case $0 in
30231   *[\\/]* ) as_myself=$0 ;;
30232   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30233 for as_dir in $PATH
30234 do
30235   IFS=$as_save_IFS
30236   test -z "$as_dir" && as_dir=.
30237   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30238 done
30239 IFS=$as_save_IFS
30240
30241      ;;
30242 esac
30243 # We did not find ourselves, most probably we were run as `sh COMMAND'
30244 # in which case we are not to be found in the path.
30245 if test "x$as_myself" = x; then
30246   as_myself=$0
30247 fi
30248 if test ! -f "$as_myself"; then
30249   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30250   { (exit 1); exit 1; }
30251 fi
30252
30253 # Work around bugs in pre-3.0 UWIN ksh.
30254 for as_var in ENV MAIL MAILPATH
30255 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30256 done
30257 PS1='$ '
30258 PS2='> '
30259 PS4='+ '
30260
30261 # NLS nuisances.
30262 for as_var in \
30263   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30264   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30265   LC_TELEPHONE LC_TIME
30266 do
30267   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30268     eval $as_var=C; export $as_var
30269   else
30270     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30271   fi
30272 done
30273
30274 # Required to use basename.
30275 if expr a : '\(a\)' >/dev/null 2>&1 &&
30276    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30277   as_expr=expr
30278 else
30279   as_expr=false
30280 fi
30281
30282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30283   as_basename=basename
30284 else
30285   as_basename=false
30286 fi
30287
30288
30289 # Name of the executable.
30290 as_me=`$as_basename -- "$0" ||
30291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30292          X"$0" : 'X\(//\)$' \| \
30293          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30294 echo X/"$0" |
30295     sed '/^.*\/\([^/][^/]*\)\/*$/{
30296             s//\1/
30297             q
30298           }
30299           /^X\/\(\/\/\)$/{
30300             s//\1/
30301             q
30302           }
30303           /^X\/\(\/\).*/{
30304             s//\1/
30305             q
30306           }
30307           s/.*/./; q'`
30308
30309 # CDPATH.
30310 $as_unset CDPATH
30311
30312
30313
30314   as_lineno_1=$LINENO
30315   as_lineno_2=$LINENO
30316   test "x$as_lineno_1" != "x$as_lineno_2" &&
30317   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30318
30319   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30320   # uniformly replaced by the line number.  The first 'sed' inserts a
30321   # line-number line after each line using $LINENO; the second 'sed'
30322   # does the real work.  The second script uses 'N' to pair each
30323   # line-number line with the line containing $LINENO, and appends
30324   # trailing '-' during substitution so that $LINENO is not a special
30325   # case at line end.
30326   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30327   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30328   # E. McMahon (1931-1989) for sed's syntax.  :-)
30329   sed -n '
30330     p
30331     /[$]LINENO/=
30332   ' <$as_myself |
30333     sed '
30334       s/[$]LINENO.*/&-/
30335       t lineno
30336       b
30337       :lineno
30338       N
30339       :loop
30340       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30341       t loop
30342       s/-\n.*//
30343     ' >$as_me.lineno &&
30344   chmod +x "$as_me.lineno" ||
30345     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30346    { (exit 1); exit 1; }; }
30347
30348   # Don't try to exec as it changes $[0], causing all sort of problems
30349   # (the dirname of $[0] is not the place where we might find the
30350   # original and so on.  Autoconf is especially sensitive to this).
30351   . "./$as_me.lineno"
30352   # Exit status is that of the last command.
30353   exit
30354 }
30355
30356
30357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30358   as_dirname=dirname
30359 else
30360   as_dirname=false
30361 fi
30362
30363 ECHO_C= ECHO_N= ECHO_T=
30364 case `echo -n x` in
30365 -n*)
30366   case `echo 'x\c'` in
30367   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30368   *)   ECHO_C='\c';;
30369   esac;;
30370 *)
30371   ECHO_N='-n';;
30372 esac
30373
30374 if expr a : '\(a\)' >/dev/null 2>&1 &&
30375    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30376   as_expr=expr
30377 else
30378   as_expr=false
30379 fi
30380
30381 rm -f conf$$ conf$$.exe conf$$.file
30382 if test -d conf$$.dir; then
30383   rm -f conf$$.dir/conf$$.file
30384 else
30385   rm -f conf$$.dir
30386   mkdir conf$$.dir
30387 fi
30388 echo >conf$$.file
30389 if ln -s conf$$.file conf$$ 2>/dev/null; then
30390   as_ln_s='ln -s'
30391   # ... but there are two gotchas:
30392   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30393   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30394   # In both cases, we have to default to `cp -p'.
30395   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30396     as_ln_s='cp -p'
30397 elif ln conf$$.file conf$$ 2>/dev/null; then
30398   as_ln_s=ln
30399 else
30400   as_ln_s='cp -p'
30401 fi
30402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30403 rmdir conf$$.dir 2>/dev/null
30404
30405 if mkdir -p . 2>/dev/null; then
30406   as_mkdir_p=:
30407 else
30408   test -d ./-p && rmdir ./-p
30409   as_mkdir_p=false
30410 fi
30411
30412 if test -x / >/dev/null 2>&1; then
30413   as_test_x='test -x'
30414 else
30415   if ls -dL / >/dev/null 2>&1; then
30416     as_ls_L_option=L
30417   else
30418     as_ls_L_option=
30419   fi
30420   as_test_x='
30421     eval sh -c '\''
30422       if test -d "$1"; then
30423         test -d "$1/.";
30424       else
30425         case $1 in
30426         -*)set "./$1";;
30427         esac;
30428         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30429         ???[sx]*):;;*)false;;esac;fi
30430     '\'' sh
30431   '
30432 fi
30433 as_executable_p=$as_test_x
30434
30435 # Sed expression to map a string onto a valid CPP name.
30436 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30437
30438 # Sed expression to map a string onto a valid variable name.
30439 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30440
30441
30442 exec 6>&1
30443
30444 # Save the log message, to keep $[0] and so on meaningful, and to
30445 # report actual input values of CONFIG_FILES etc. instead of their
30446 # values after options handling.
30447 ac_log="
30448 This file was extended by linux nfs-utils $as_me 1.1.1, which was
30449 generated by GNU Autoconf 2.61.  Invocation command line was
30450
30451   CONFIG_FILES    = $CONFIG_FILES
30452   CONFIG_HEADERS  = $CONFIG_HEADERS
30453   CONFIG_LINKS    = $CONFIG_LINKS
30454   CONFIG_COMMANDS = $CONFIG_COMMANDS
30455   $ $0 $@
30456
30457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30458 "
30459
30460 _ACEOF
30461
30462 cat >>$CONFIG_STATUS <<_ACEOF
30463 # Files that config.status was made for.
30464 config_files="$ac_config_files"
30465 config_headers="$ac_config_headers"
30466 config_commands="$ac_config_commands"
30467
30468 _ACEOF
30469
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 ac_cs_usage="\
30472 \`$as_me' instantiates files from templates according to the
30473 current configuration.
30474
30475 Usage: $0 [OPTIONS] [FILE]...
30476
30477   -h, --help       print this help, then exit
30478   -V, --version    print version number and configuration settings, then exit
30479   -q, --quiet      do not print progress messages
30480   -d, --debug      don't remove temporary files
30481       --recheck    update $as_me by reconfiguring in the same conditions
30482   --file=FILE[:TEMPLATE]
30483                    instantiate the configuration file FILE
30484   --header=FILE[:TEMPLATE]
30485                    instantiate the configuration header FILE
30486
30487 Configuration files:
30488 $config_files
30489
30490 Configuration headers:
30491 $config_headers
30492
30493 Configuration commands:
30494 $config_commands
30495
30496 Report bugs to <bug-autoconf@gnu.org>."
30497
30498 _ACEOF
30499 cat >>$CONFIG_STATUS <<_ACEOF
30500 ac_cs_version="\\
30501 linux nfs-utils config.status 1.1.1
30502 configured by $0, generated by GNU Autoconf 2.61,
30503   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30504
30505 Copyright (C) 2006 Free Software Foundation, Inc.
30506 This config.status script is free software; the Free Software Foundation
30507 gives unlimited permission to copy, distribute and modify it."
30508
30509 ac_pwd='$ac_pwd'
30510 srcdir='$srcdir'
30511 INSTALL='$INSTALL'
30512 MKDIR_P='$MKDIR_P'
30513 _ACEOF
30514
30515 cat >>$CONFIG_STATUS <<\_ACEOF
30516 # If no file are specified by the user, then we need to provide default
30517 # value.  By we need to know if files were specified by the user.
30518 ac_need_defaults=:
30519 while test $# != 0
30520 do
30521   case $1 in
30522   --*=*)
30523     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30524     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30525     ac_shift=:
30526     ;;
30527   *)
30528     ac_option=$1
30529     ac_optarg=$2
30530     ac_shift=shift
30531     ;;
30532   esac
30533
30534   case $ac_option in
30535   # Handling of the options.
30536   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30537     ac_cs_recheck=: ;;
30538   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30539     echo "$ac_cs_version"; exit ;;
30540   --debug | --debu | --deb | --de | --d | -d )
30541     debug=: ;;
30542   --file | --fil | --fi | --f )
30543     $ac_shift
30544     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30545     ac_need_defaults=false;;
30546   --header | --heade | --head | --hea )
30547     $ac_shift
30548     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30549     ac_need_defaults=false;;
30550   --he | --h)
30551     # Conflict between --help and --header
30552     { echo "$as_me: error: ambiguous option: $1
30553 Try \`$0 --help' for more information." >&2
30554    { (exit 1); exit 1; }; };;
30555   --help | --hel | -h )
30556     echo "$ac_cs_usage"; exit ;;
30557   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30558   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30559     ac_cs_silent=: ;;
30560
30561   # This is an error.
30562   -*) { echo "$as_me: error: unrecognized option: $1
30563 Try \`$0 --help' for more information." >&2
30564    { (exit 1); exit 1; }; } ;;
30565
30566   *) ac_config_targets="$ac_config_targets $1"
30567      ac_need_defaults=false ;;
30568
30569   esac
30570   shift
30571 done
30572
30573 ac_configure_extra_args=
30574
30575 if $ac_cs_silent; then
30576   exec 6>/dev/null
30577   ac_configure_extra_args="$ac_configure_extra_args --silent"
30578 fi
30579
30580 _ACEOF
30581 cat >>$CONFIG_STATUS <<_ACEOF
30582 if \$ac_cs_recheck; then
30583   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30584   CONFIG_SHELL=$SHELL
30585   export CONFIG_SHELL
30586   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30587 fi
30588
30589 _ACEOF
30590 cat >>$CONFIG_STATUS <<\_ACEOF
30591 exec 5>>config.log
30592 {
30593   echo
30594   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30595 ## Running $as_me. ##
30596 _ASBOX
30597   echo "$ac_log"
30598 } >&5
30599
30600 _ACEOF
30601 cat >>$CONFIG_STATUS <<_ACEOF
30602 #
30603 # INIT-COMMANDS
30604 #
30605 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30606
30607 _ACEOF
30608
30609 cat >>$CONFIG_STATUS <<\_ACEOF
30610
30611 # Handling of arguments.
30612 for ac_config_target in $ac_config_targets
30613 do
30614   case $ac_config_target in
30615     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30616     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30617     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30618     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30619     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30620     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30621     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30622     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30623     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30624     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30625     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30626     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30627     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30628     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30629     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30630     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30631     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30632     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30633     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30634     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30635     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30636     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30637     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30638     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30639     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30640     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30641     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30642     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30643
30644   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30646    { (exit 1); exit 1; }; };;
30647   esac
30648 done
30649
30650
30651 # If the user did not use the arguments to specify the items to instantiate,
30652 # then the envvar interface is used.  Set only those that are not.
30653 # We use the long form for the default assignment because of an extremely
30654 # bizarre bug on SunOS 4.1.3.
30655 if $ac_need_defaults; then
30656   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30657   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30658   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30659 fi
30660
30661 # Have a temporary directory for convenience.  Make it in the build tree
30662 # simply because there is no reason against having it here, and in addition,
30663 # creating and moving files from /tmp can sometimes cause problems.
30664 # Hook for its removal unless debugging.
30665 # Note that there is a small window in which the directory will not be cleaned:
30666 # after its creation but before its name has been assigned to `$tmp'.
30667 $debug ||
30668 {
30669   tmp=
30670   trap 'exit_status=$?
30671   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30672 ' 0
30673   trap '{ (exit 1); exit 1; }' 1 2 13 15
30674 }
30675 # Create a (secure) tmp directory for tmp files.
30676
30677 {
30678   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30679   test -n "$tmp" && test -d "$tmp"
30680 }  ||
30681 {
30682   tmp=./conf$$-$RANDOM
30683   (umask 077 && mkdir "$tmp")
30684 } ||
30685 {
30686    echo "$me: cannot create a temporary directory in ." >&2
30687    { (exit 1); exit 1; }
30688 }
30689
30690 #
30691 # Set up the sed scripts for CONFIG_FILES section.
30692 #
30693
30694 # No need to generate the scripts if there are no CONFIG_FILES.
30695 # This happens for instance when ./config.status config.h
30696 if test -n "$CONFIG_FILES"; then
30697
30698 _ACEOF
30699
30700
30701
30702 ac_delim='%!_!# '
30703 for ac_last_try in false false false false false :; do
30704   cat >conf$$subs.sed <<_ACEOF
30705 SHELL!$SHELL$ac_delim
30706 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30707 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30708 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30709 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30710 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30711 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30712 exec_prefix!$exec_prefix$ac_delim
30713 prefix!$prefix$ac_delim
30714 program_transform_name!$program_transform_name$ac_delim
30715 bindir!$bindir$ac_delim
30716 sbindir!$sbindir$ac_delim
30717 libexecdir!$libexecdir$ac_delim
30718 datarootdir!$datarootdir$ac_delim
30719 datadir!$datadir$ac_delim
30720 sysconfdir!$sysconfdir$ac_delim
30721 sharedstatedir!$sharedstatedir$ac_delim
30722 localstatedir!$localstatedir$ac_delim
30723 includedir!$includedir$ac_delim
30724 oldincludedir!$oldincludedir$ac_delim
30725 docdir!$docdir$ac_delim
30726 infodir!$infodir$ac_delim
30727 htmldir!$htmldir$ac_delim
30728 dvidir!$dvidir$ac_delim
30729 pdfdir!$pdfdir$ac_delim
30730 psdir!$psdir$ac_delim
30731 libdir!$libdir$ac_delim
30732 localedir!$localedir$ac_delim
30733 mandir!$mandir$ac_delim
30734 DEFS!$DEFS$ac_delim
30735 ECHO_C!$ECHO_C$ac_delim
30736 ECHO_N!$ECHO_N$ac_delim
30737 ECHO_T!$ECHO_T$ac_delim
30738 LIBS!$LIBS$ac_delim
30739 build_alias!$build_alias$ac_delim
30740 host_alias!$host_alias$ac_delim
30741 target_alias!$target_alias$ac_delim
30742 build!$build$ac_delim
30743 build_cpu!$build_cpu$ac_delim
30744 build_vendor!$build_vendor$ac_delim
30745 build_os!$build_os$ac_delim
30746 host!$host$ac_delim
30747 host_cpu!$host_cpu$ac_delim
30748 host_vendor!$host_vendor$ac_delim
30749 host_os!$host_os$ac_delim
30750 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30751 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30752 INSTALL_DATA!$INSTALL_DATA$ac_delim
30753 am__isrc!$am__isrc$ac_delim
30754 CYGPATH_W!$CYGPATH_W$ac_delim
30755 PACKAGE!$PACKAGE$ac_delim
30756 VERSION!$VERSION$ac_delim
30757 ACLOCAL!$ACLOCAL$ac_delim
30758 AUTOCONF!$AUTOCONF$ac_delim
30759 AUTOMAKE!$AUTOMAKE$ac_delim
30760 AUTOHEADER!$AUTOHEADER$ac_delim
30761 MAKEINFO!$MAKEINFO$ac_delim
30762 install_sh!$install_sh$ac_delim
30763 STRIP!$STRIP$ac_delim
30764 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30765 mkdir_p!$mkdir_p$ac_delim
30766 AWK!$AWK$ac_delim
30767 SET_MAKE!$SET_MAKE$ac_delim
30768 am__leading_dot!$am__leading_dot$ac_delim
30769 AMTAR!$AMTAR$ac_delim
30770 am__tar!$am__tar$ac_delim
30771 am__untar!$am__untar$ac_delim
30772 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30773 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30774 MAINT!$MAINT$ac_delim
30775 RELEASE!$RELEASE$ac_delim
30776 statedir!$statedir$ac_delim
30777 statduser!$statduser$ac_delim
30778 startstatd!$startstatd$ac_delim
30779 enable_nfsv3!$enable_nfsv3$ac_delim
30780 IDMAPD!$IDMAPD$ac_delim
30781 enable_nfsv4!$enable_nfsv4$ac_delim
30782 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30783 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30784 GSSD!$GSSD$ac_delim
30785 SVCGSSD!$SVCGSSD$ac_delim
30786 enable_gss!$enable_gss$ac_delim
30787 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30788 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30789 kprefix!$kprefix$ac_delim
30790 secure_statd!$secure_statd$ac_delim
30791 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30792 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30793 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30794 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30795 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30796 CC!$CC$ac_delim
30797 CFLAGS!$CFLAGS$ac_delim
30798 LDFLAGS!$LDFLAGS$ac_delim
30799 CPPFLAGS!$CPPFLAGS$ac_delim
30800 ac_ct_CC!$ac_ct_CC$ac_delim
30801 EXEEXT!$EXEEXT$ac_delim
30802 _ACEOF
30803
30804   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30805     break
30806   elif $ac_last_try; then
30807     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30808 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30809    { (exit 1); exit 1; }; }
30810   else
30811     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30812   fi
30813 done
30814
30815 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30816 if test -n "$ac_eof"; then
30817   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30818   ac_eof=`expr $ac_eof + 1`
30819 fi
30820
30821 cat >>$CONFIG_STATUS <<_ACEOF
30822 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30824 _ACEOF
30825 sed '
30826 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30827 s/^/s,@/; s/!/@,|#_!!_#|/
30828 :n
30829 t n
30830 s/'"$ac_delim"'$/,g/; t
30831 s/$/\\/; p
30832 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30833 ' >>$CONFIG_STATUS <conf$$subs.sed
30834 rm -f conf$$subs.sed
30835 cat >>$CONFIG_STATUS <<_ACEOF
30836 CEOF$ac_eof
30837 _ACEOF
30838
30839
30840 ac_delim='%!_!# '
30841 for ac_last_try in false false false false false :; do
30842   cat >conf$$subs.sed <<_ACEOF
30843 OBJEXT!$OBJEXT$ac_delim
30844 DEPDIR!$DEPDIR$ac_delim
30845 am__include!$am__include$ac_delim
30846 am__quote!$am__quote$ac_delim
30847 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30848 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30849 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30850 CCDEPMODE!$CCDEPMODE$ac_delim
30851 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30852 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30853 LIBWRAP!$LIBWRAP$ac_delim
30854 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30855 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30856 CXX!$CXX$ac_delim
30857 CXXFLAGS!$CXXFLAGS$ac_delim
30858 ac_ct_CXX!$ac_ct_CXX$ac_delim
30859 CXXDEPMODE!$CXXDEPMODE$ac_delim
30860 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30861 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30862 CPP!$CPP$ac_delim
30863 LN_S!$LN_S$ac_delim
30864 SED!$SED$ac_delim
30865 GREP!$GREP$ac_delim
30866 EGREP!$EGREP$ac_delim
30867 ECHO!$ECHO$ac_delim
30868 AR!$AR$ac_delim
30869 RANLIB!$RANLIB$ac_delim
30870 CXXCPP!$CXXCPP$ac_delim
30871 F77!$F77$ac_delim
30872 FFLAGS!$FFLAGS$ac_delim
30873 ac_ct_F77!$ac_ct_F77$ac_delim
30874 LIBTOOL!$LIBTOOL$ac_delim
30875 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30876 LD!$LD$ac_delim
30877 LIBNSL!$LIBNSL$ac_delim
30878 PKG_CONFIG!$PKG_CONFIG$ac_delim
30879 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30880 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30881 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30882 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30883 LIBSOCKET!$LIBSOCKET$ac_delim
30884 LIBCRYPT!$LIBCRYPT$ac_delim
30885 LIBBSD!$LIBBSD$ac_delim
30886 LIBBLKID!$LIBBLKID$ac_delim
30887 KRBDIR!$KRBDIR$ac_delim
30888 KRBLIBS!$KRBLIBS$ac_delim
30889 KRBCFLAGS!$KRBCFLAGS$ac_delim
30890 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30891 K5VERS!$K5VERS$ac_delim
30892 ALLOCA!$ALLOCA$ac_delim
30893 LIBOBJS!$LIBOBJS$ac_delim
30894 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30895 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30896 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30897 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30898 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30899 AM_CFLAGS!$AM_CFLAGS$ac_delim
30900 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30901 LTLIBOBJS!$LTLIBOBJS$ac_delim
30902 _ACEOF
30903
30904   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
30905     break
30906   elif $ac_last_try; then
30907     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30909    { (exit 1); exit 1; }; }
30910   else
30911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30912   fi
30913 done
30914
30915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30916 if test -n "$ac_eof"; then
30917   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30918   ac_eof=`expr $ac_eof + 1`
30919 fi
30920
30921 cat >>$CONFIG_STATUS <<_ACEOF
30922 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30924 _ACEOF
30925 sed '
30926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30927 s/^/s,@/; s/!/@,|#_!!_#|/
30928 :n
30929 t n
30930 s/'"$ac_delim"'$/,g/; t
30931 s/$/\\/; p
30932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30933 ' >>$CONFIG_STATUS <conf$$subs.sed
30934 rm -f conf$$subs.sed
30935 cat >>$CONFIG_STATUS <<_ACEOF
30936 :end
30937 s/|#_!!_#|//g
30938 CEOF$ac_eof
30939 _ACEOF
30940
30941
30942 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30943 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30944 # trailing colons and then remove the whole line if VPATH becomes empty
30945 # (actually we leave an empty line to preserve line numbers).
30946 if test "x$srcdir" = x.; then
30947   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30948 s/:*\$(srcdir):*/:/
30949 s/:*\${srcdir}:*/:/
30950 s/:*@srcdir@:*/:/
30951 s/^\([^=]*=[     ]*\):*/\1/
30952 s/:*$//
30953 s/^[^=]*=[       ]*$//
30954 }'
30955 fi
30956
30957 cat >>$CONFIG_STATUS <<\_ACEOF
30958 fi # test -n "$CONFIG_FILES"
30959
30960
30961 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30962 do
30963   case $ac_tag in
30964   :[FHLC]) ac_mode=$ac_tag; continue;;
30965   esac
30966   case $ac_mode$ac_tag in
30967   :[FHL]*:*);;
30968   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30969 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30970    { (exit 1); exit 1; }; };;
30971   :[FH]-) ac_tag=-:-;;
30972   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30973   esac
30974   ac_save_IFS=$IFS
30975   IFS=:
30976   set x $ac_tag
30977   IFS=$ac_save_IFS
30978   shift
30979   ac_file=$1
30980   shift
30981
30982   case $ac_mode in
30983   :L) ac_source=$1;;
30984   :[FH])
30985     ac_file_inputs=
30986     for ac_f
30987     do
30988       case $ac_f in
30989       -) ac_f="$tmp/stdin";;
30990       *) # Look for the file first in the build tree, then in the source tree
30991          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30992          # because $ac_f cannot contain `:'.
30993          test -f "$ac_f" ||
30994            case $ac_f in
30995            [\\/$]*) false;;
30996            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30997            esac ||
30998            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30999 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31000    { (exit 1); exit 1; }; };;
31001       esac
31002       ac_file_inputs="$ac_file_inputs $ac_f"
31003     done
31004
31005     # Let's still pretend it is `configure' which instantiates (i.e., don't
31006     # use $as_me), people would be surprised to read:
31007     #    /* config.h.  Generated by config.status.  */
31008     configure_input="Generated from "`IFS=:
31009           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31010     if test x"$ac_file" != x-; then
31011       configure_input="$ac_file.  $configure_input"
31012       { echo "$as_me:$LINENO: creating $ac_file" >&5
31013 echo "$as_me: creating $ac_file" >&6;}
31014     fi
31015
31016     case $ac_tag in
31017     *:-:* | *:-) cat >"$tmp/stdin";;
31018     esac
31019     ;;
31020   esac
31021
31022   ac_dir=`$as_dirname -- "$ac_file" ||
31023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31024          X"$ac_file" : 'X\(//\)[^/]' \| \
31025          X"$ac_file" : 'X\(//\)$' \| \
31026          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31027 echo X"$ac_file" |
31028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31029             s//\1/
31030             q
31031           }
31032           /^X\(\/\/\)[^/].*/{
31033             s//\1/
31034             q
31035           }
31036           /^X\(\/\/\)$/{
31037             s//\1/
31038             q
31039           }
31040           /^X\(\/\).*/{
31041             s//\1/
31042             q
31043           }
31044           s/.*/./; q'`
31045   { as_dir="$ac_dir"
31046   case $as_dir in #(
31047   -*) as_dir=./$as_dir;;
31048   esac
31049   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31050     as_dirs=
31051     while :; do
31052       case $as_dir in #(
31053       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31054       *) as_qdir=$as_dir;;
31055       esac
31056       as_dirs="'$as_qdir' $as_dirs"
31057       as_dir=`$as_dirname -- "$as_dir" ||
31058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31059          X"$as_dir" : 'X\(//\)[^/]' \| \
31060          X"$as_dir" : 'X\(//\)$' \| \
31061          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31062 echo X"$as_dir" |
31063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31064             s//\1/
31065             q
31066           }
31067           /^X\(\/\/\)[^/].*/{
31068             s//\1/
31069             q
31070           }
31071           /^X\(\/\/\)$/{
31072             s//\1/
31073             q
31074           }
31075           /^X\(\/\).*/{
31076             s//\1/
31077             q
31078           }
31079           s/.*/./; q'`
31080       test -d "$as_dir" && break
31081     done
31082     test -z "$as_dirs" || eval "mkdir $as_dirs"
31083   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31084 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31085    { (exit 1); exit 1; }; }; }
31086   ac_builddir=.
31087
31088 case "$ac_dir" in
31089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31090 *)
31091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31092   # A ".." for each directory in $ac_dir_suffix.
31093   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31094   case $ac_top_builddir_sub in
31095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31097   esac ;;
31098 esac
31099 ac_abs_top_builddir=$ac_pwd
31100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31101 # for backward compatibility:
31102 ac_top_builddir=$ac_top_build_prefix
31103
31104 case $srcdir in
31105   .)  # We are building in place.
31106     ac_srcdir=.
31107     ac_top_srcdir=$ac_top_builddir_sub
31108     ac_abs_top_srcdir=$ac_pwd ;;
31109   [\\/]* | ?:[\\/]* )  # Absolute name.
31110     ac_srcdir=$srcdir$ac_dir_suffix;
31111     ac_top_srcdir=$srcdir
31112     ac_abs_top_srcdir=$srcdir ;;
31113   *) # Relative name.
31114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31115     ac_top_srcdir=$ac_top_build_prefix$srcdir
31116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31117 esac
31118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31119
31120
31121   case $ac_mode in
31122   :F)
31123   #
31124   # CONFIG_FILE
31125   #
31126
31127   case $INSTALL in
31128   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31129   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31130   esac
31131   ac_MKDIR_P=$MKDIR_P
31132   case $MKDIR_P in
31133   [\\/$]* | ?:[\\/]* ) ;;
31134   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31135   esac
31136 _ACEOF
31137
31138 cat >>$CONFIG_STATUS <<\_ACEOF
31139 # If the template does not know about datarootdir, expand it.
31140 # FIXME: This hack should be removed a few years after 2.60.
31141 ac_datarootdir_hack=; ac_datarootdir_seen=
31142
31143 case `sed -n '/datarootdir/ {
31144   p
31145   q
31146 }
31147 /@datadir@/p
31148 /@docdir@/p
31149 /@infodir@/p
31150 /@localedir@/p
31151 /@mandir@/p
31152 ' $ac_file_inputs` in
31153 *datarootdir*) ac_datarootdir_seen=yes;;
31154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31155   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31157 _ACEOF
31158 cat >>$CONFIG_STATUS <<_ACEOF
31159   ac_datarootdir_hack='
31160   s&@datadir@&$datadir&g
31161   s&@docdir@&$docdir&g
31162   s&@infodir@&$infodir&g
31163   s&@localedir@&$localedir&g
31164   s&@mandir@&$mandir&g
31165     s&\\\${datarootdir}&$datarootdir&g' ;;
31166 esac
31167 _ACEOF
31168
31169 # Neutralize VPATH when `$srcdir' = `.'.
31170 # Shell code in configure.ac might set extrasub.
31171 # FIXME: do we really want to maintain this feature?
31172 cat >>$CONFIG_STATUS <<_ACEOF
31173   sed "$ac_vpsub
31174 $extrasub
31175 _ACEOF
31176 cat >>$CONFIG_STATUS <<\_ACEOF
31177 :t
31178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31179 s&@configure_input@&$configure_input&;t t
31180 s&@top_builddir@&$ac_top_builddir_sub&;t t
31181 s&@srcdir@&$ac_srcdir&;t t
31182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31183 s&@top_srcdir@&$ac_top_srcdir&;t t
31184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31185 s&@builddir@&$ac_builddir&;t t
31186 s&@abs_builddir@&$ac_abs_builddir&;t t
31187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31188 s&@INSTALL@&$ac_INSTALL&;t t
31189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31190 $ac_datarootdir_hack
31191 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31192
31193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31194   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31195   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31196   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined.  Please make sure it is defined." >&5
31198 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31199 which seems to be undefined.  Please make sure it is defined." >&2;}
31200
31201   rm -f "$tmp/stdin"
31202   case $ac_file in
31203   -) cat "$tmp/out"; rm -f "$tmp/out";;
31204   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31205   esac
31206  ;;
31207   :H)
31208   #
31209   # CONFIG_HEADER
31210   #
31211 _ACEOF
31212
31213 # Transform confdefs.h into a sed script `conftest.defines', that
31214 # substitutes the proper values into config.h.in to produce config.h.
31215 rm -f conftest.defines conftest.tail
31216 # First, append a space to every undef/define line, to ease matching.
31217 echo 's/$/ /' >conftest.defines
31218 # Then, protect against being on the right side of a sed subst, or in
31219 # an unquoted here document, in config.status.  If some macros were
31220 # called several times there might be several #defines for the same
31221 # symbol, which is useless.  But do not sort them, since the last
31222 # AC_DEFINE must be honored.
31223 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31224 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31225 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31226 # PARAMS is the parameter list in the macro definition--in most cases, it's
31227 # just an empty string.
31228 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31229 ac_dB='\\)[      (].*,\\1define\\2'
31230 ac_dC=' '
31231 ac_dD=' ,'
31232
31233 uniq confdefs.h |
31234   sed -n '
31235         t rset
31236         :rset
31237         s/^[     ]*#[    ]*define[       ][      ]*//
31238         t ok
31239         d
31240         :ok
31241         s/[\\&,]/\\&/g
31242         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31243         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31244   ' >>conftest.defines
31245
31246 # Remove the space that was appended to ease matching.
31247 # Then replace #undef with comments.  This is necessary, for
31248 # example, in the case of _POSIX_SOURCE, which is predefined and required
31249 # on some systems where configure will not decide to define it.
31250 # (The regexp can be short, since the line contains either #define or #undef.)
31251 echo 's/ $//
31252 s,^[     #]*u.*,/* & */,' >>conftest.defines
31253
31254 # Break up conftest.defines:
31255 ac_max_sed_lines=50
31256
31257 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31258 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31259 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31260 # et cetera.
31261 ac_in='$ac_file_inputs'
31262 ac_out='"$tmp/out1"'
31263 ac_nxt='"$tmp/out2"'
31264
31265 while :
31266 do
31267   # Write a here document:
31268     cat >>$CONFIG_STATUS <<_ACEOF
31269     # First, check the format of the line:
31270     cat >"\$tmp/defines.sed" <<\\CEOF
31271 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31272 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31273 b
31274 :def
31275 _ACEOF
31276   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31277   echo 'CEOF
31278     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31279   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31280   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31281   grep . conftest.tail >/dev/null || break
31282   rm -f conftest.defines
31283   mv conftest.tail conftest.defines
31284 done
31285 rm -f conftest.defines conftest.tail
31286
31287 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31288 cat >>$CONFIG_STATUS <<\_ACEOF
31289   if test x"$ac_file" != x-; then
31290     echo "/* $configure_input  */" >"$tmp/config.h"
31291     cat "$ac_result" >>"$tmp/config.h"
31292     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31293       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31294 echo "$as_me: $ac_file is unchanged" >&6;}
31295     else
31296       rm -f $ac_file
31297       mv "$tmp/config.h" $ac_file
31298     fi
31299   else
31300     echo "/* $configure_input  */"
31301     cat "$ac_result"
31302   fi
31303   rm -f "$tmp/out12"
31304 # Compute $ac_file's index in $config_headers.
31305 _am_stamp_count=1
31306 for _am_header in $config_headers :; do
31307   case $_am_header in
31308     $ac_file | $ac_file:* )
31309       break ;;
31310     * )
31311       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31312   esac
31313 done
31314 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31315 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31316          X$ac_file : 'X\(//\)[^/]' \| \
31317          X$ac_file : 'X\(//\)$' \| \
31318          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31319 echo X$ac_file |
31320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31321             s//\1/
31322             q
31323           }
31324           /^X\(\/\/\)[^/].*/{
31325             s//\1/
31326             q
31327           }
31328           /^X\(\/\/\)$/{
31329             s//\1/
31330             q
31331           }
31332           /^X\(\/\).*/{
31333             s//\1/
31334             q
31335           }
31336           s/.*/./; q'`/stamp-h$_am_stamp_count
31337  ;;
31338
31339   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31340 echo "$as_me: executing $ac_file commands" >&6;}
31341  ;;
31342   esac
31343
31344
31345   case $ac_file$ac_mode in
31346     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31347   # Strip MF so we end up with the name of the file.
31348   mf=`echo "$mf" | sed -e 's/:.*$//'`
31349   # Check whether this is an Automake generated Makefile or not.
31350   # We used to match only the files named `Makefile.in', but
31351   # some people rename them; so instead we look at the file content.
31352   # Grep'ing the first line is not enough: some people post-process
31353   # each Makefile.in and add a new line on top of each file to say so.
31354   # Grep'ing the whole file is not good either: AIX grep has a line
31355   # limit of 2048, but all sed's we know have understand at least 4000.
31356   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31357     dirpart=`$as_dirname -- "$mf" ||
31358 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31359          X"$mf" : 'X\(//\)[^/]' \| \
31360          X"$mf" : 'X\(//\)$' \| \
31361          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31362 echo X"$mf" |
31363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31364             s//\1/
31365             q
31366           }
31367           /^X\(\/\/\)[^/].*/{
31368             s//\1/
31369             q
31370           }
31371           /^X\(\/\/\)$/{
31372             s//\1/
31373             q
31374           }
31375           /^X\(\/\).*/{
31376             s//\1/
31377             q
31378           }
31379           s/.*/./; q'`
31380   else
31381     continue
31382   fi
31383   # Extract the definition of DEPDIR, am__include, and am__quote
31384   # from the Makefile without running `make'.
31385   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31386   test -z "$DEPDIR" && continue
31387   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31388   test -z "am__include" && continue
31389   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31390   # When using ansi2knr, U may be empty or an underscore; expand it
31391   U=`sed -n 's/^U = //p' < "$mf"`
31392   # Find all dependency output files, they are included files with
31393   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31394   # simplest approach to changing $(DEPDIR) to its actual value in the
31395   # expansion.
31396   for file in `sed -n "
31397     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31398        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31399     # Make sure the directory exists.
31400     test -f "$dirpart/$file" && continue
31401     fdir=`$as_dirname -- "$file" ||
31402 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31403          X"$file" : 'X\(//\)[^/]' \| \
31404          X"$file" : 'X\(//\)$' \| \
31405          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31406 echo X"$file" |
31407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31408             s//\1/
31409             q
31410           }
31411           /^X\(\/\/\)[^/].*/{
31412             s//\1/
31413             q
31414           }
31415           /^X\(\/\/\)$/{
31416             s//\1/
31417             q
31418           }
31419           /^X\(\/\).*/{
31420             s//\1/
31421             q
31422           }
31423           s/.*/./; q'`
31424     { as_dir=$dirpart/$fdir
31425   case $as_dir in #(
31426   -*) as_dir=./$as_dir;;
31427   esac
31428   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31429     as_dirs=
31430     while :; do
31431       case $as_dir in #(
31432       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31433       *) as_qdir=$as_dir;;
31434       esac
31435       as_dirs="'$as_qdir' $as_dirs"
31436       as_dir=`$as_dirname -- "$as_dir" ||
31437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31438          X"$as_dir" : 'X\(//\)[^/]' \| \
31439          X"$as_dir" : 'X\(//\)$' \| \
31440          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31441 echo X"$as_dir" |
31442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31443             s//\1/
31444             q
31445           }
31446           /^X\(\/\/\)[^/].*/{
31447             s//\1/
31448             q
31449           }
31450           /^X\(\/\/\)$/{
31451             s//\1/
31452             q
31453           }
31454           /^X\(\/\).*/{
31455             s//\1/
31456             q
31457           }
31458           s/.*/./; q'`
31459       test -d "$as_dir" && break
31460     done
31461     test -z "$as_dirs" || eval "mkdir $as_dirs"
31462   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31464    { (exit 1); exit 1; }; }; }
31465     # echo "creating $dirpart/$file"
31466     echo '# dummy' > "$dirpart/$file"
31467   done
31468 done
31469  ;;
31470
31471   esac
31472 done # for ac_tag
31473
31474
31475 { (exit 0); exit 0; }
31476 _ACEOF
31477 chmod +x $CONFIG_STATUS
31478 ac_clean_files=$ac_clean_files_save
31479
31480
31481 # configure is writing to config.log, and then calls config.status.
31482 # config.status does its own redirection, appending to config.log.
31483 # Unfortunately, on DOS this fails, as config.log is still kept open
31484 # by configure, so config.status won't be able to write to it; its
31485 # output is simply discarded.  So we exec the FD to /dev/null,
31486 # effectively closing config.log, so it can be properly (re)opened and
31487 # appended to by config.status.  When coming back to configure, we
31488 # need to make the FD available again.
31489 if test "$no_create" != yes; then
31490   ac_cs_success=:
31491   ac_config_status_args=
31492   test "$silent" = yes &&
31493     ac_config_status_args="$ac_config_status_args --quiet"
31494   exec 5>/dev/null
31495   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31496   exec 5>>config.log
31497   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31498   # would make configure fail if this is the last instruction.
31499   $ac_cs_success || { (exit 1); exit 1; }
31500 fi
31501
31502